/* ============================================================
   LFLZ AI Daily — newspaper-style daily layout
   ============================================================ */

:root {
  /* 背景 */
  --bg: #fafbfc;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --bg-soft: #edf2ff;
  --bg-hover: #f8fbff;

  /* 文本 */
  --text: #0f172a;
  --text-2: #3a3f4a;
  --text-body: #0f172a;
  --text-muted: #94a3b8;
  --text-faint: #94a3b8;

  /* Emerald daily accent */
  --accent: #059669;
  --sidebar-w: 180px;
  --daily-side-w: 232px;
  --accent-dark: #047857;
  --accent-deeper: #065f46;
  --accent-soft: rgba(5, 150, 105, 0.12);
  --accent-line: rgba(5, 150, 105, 0.18);
  --accent-hover: rgba(5, 150, 105, 0.55);

  /* 语义 */
  --warn: #fbbf24;
  --warn-bg: #fef3c7;
  --warn-dark: #b45309;
  --success: #34d399;
  --success-dark: #047857;
  --danger: #fb7185;

  /* 评分等级色 */
  --score-high: #b45309;       /* >= 75 */
  --score-mid: #0e7490;        /* 60-74 */
  --score-low: #64748b;        /* < 60 */

  /* 边框 */
  --border: rgba(15, 23, 42, 0.08);
  --border-soft: rgba(15, 23, 42, 0.06);
  --border-strong: rgba(15, 23, 42, 0.14);

  /* 阴影 */
  --shadow-card: none;
  --shadow-card-hover: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-nav: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-dropdown: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);

  /* 圆角 */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 9999px;

  /* 字体 */
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-serif: 'Playfair Display', ui-serif, Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', 'Cascadia Code', Consolas, monospace;

  /* 布局 */
  --header-h: 56px;
  --max-w: 1040px;
}

/* ============================================================
   基础
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { background: #fafbfc; }

body {
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  overflow-x: hidden;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-deeper); }

.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: 8px; top: -999px; z-index: 100;
  background: var(--text); color: #fff;
  padding: 8px 16px; border-radius: var(--r); font-size: 14px;
}
.skip-link:focus { top: 8px; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.sidebar-inner {
  display: none;
}

.site-header-inner {
  display: flex; align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  font-size: 17px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}

.brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 8px;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.3);
}

.primary-nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}

.nav-group { position: relative; }

.nav-trigger {
  appearance: none; background: transparent; border: none;
  color: var(--text-muted); font: inherit;
  font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm);
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.15s, background 0.15s;
}
.nav-trigger:hover, .nav-trigger:focus-visible {
  color: var(--text); background: var(--bg-soft);
  outline: none;
}
.nav-caret { font-size: 9px; opacity: 0.6; }

.nav-menu {
  display: none; position: absolute; top: 100%; left: 0;
  margin-top: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-dropdown);
  min-width: 160px; padding: 6px;
  z-index: 60;
}
.nav-group:hover .nav-menu,
.nav-trigger:focus-visible + .nav-menu,
.nav-menu:focus-within { display: grid; gap: 2px; }

.nav-menu a {
  display: block; padding: 8px 12px;
  border-radius: var(--r-sm); font-size: 14px;
  color: var(--text-2);
}
.nav-menu a:hover { background: var(--accent-soft); color: var(--accent-deeper); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.header-link:hover {
  background: var(--bg-soft);
  color: var(--accent-dark);
}

.login-link {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  background: #fff;
  transition: all 0.15s;
}
.login-link:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.noscript-message {
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
}

/* Tab 栏 */
.tab-bar {
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  min-width: 0;
}
.compact-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-right: 8px;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
}
.compact-brand {
  font-size: 13px;
  font-weight: 700;
}
.compact-date {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-bar a {
  flex: 0 0 auto;
  padding: 12px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-bar a:hover { color: var(--text); }
.tab-bar a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
  font-weight: 600;
}

.language-control {
  position: relative;
  min-width: 0;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.language-button:hover,
.language-button[aria-expanded='true'] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-deeper);
}

.language-button:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.2);
  outline-offset: 2px;
}

.language-button-caret {
  font-size: 10px;
  transition: transform 0.15s;
}

.language-button[aria-expanded='true'] .language-button-caret {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: max-content;
  min-width: 176px;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-dropdown);
}

.language-menu[hidden] {
  display: none;
}

.language-menu a,
.tab-bar .language-menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a[aria-current='true'] {
  background: var(--accent-soft);
  color: var(--accent-deeper);
}

.language-control-compact {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.language-control-compact .language-button {
  min-height: 34px;
  padding: 6px 9px;
}

/* ============================================================
   Main
   ============================================================ */

.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.status-bar {
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent-deeper);
  border: 1px solid var(--accent-line);
}
.status-bar:empty, .status-bar[hidden] { display: none; }
.status-bar.error {
  background: #fef2f2; color: #b91c1c;
  border-color: #fecaca;
}

.scene { display: none; animation: fadeIn 0.2s ease-out; }
.scene:not([hidden]) { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Feed Header
   ============================================================ */

.feed-header {
  margin-bottom: 28px;
  padding: 20px 22px 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: #ffffffed;
  box-shadow: var(--shadow-card);
}

.feed-title {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.2;
}

.feed-subtitle {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.feed-toolbar {
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}

.feed-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  flex: 1 1 auto;
}
.feed-filters::-webkit-scrollbar {
  display: none;
}

.feed-filter-caption {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 0;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.feed-filter {
  display: inline-flex; align-items: center;
  flex: 0 0 auto;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px; font-weight: 400;
  color: rgba(15, 23, 42, 0.55);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.feed-filter:hover {
  color: rgb(21, 94, 117);
  background: rgba(14, 116, 144, 0.08);
}
.feed-filter.active {
  background: rgba(14, 116, 144, 0.16);
  border-color: transparent;
  color: rgb(21, 94, 117);
  box-shadow: none;
}
.feed-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.08);
  color: rgb(15, 118, 110);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.feed-filter.active .feed-filter-count {
  background: rgba(255, 255, 255, 0.7);
}

.feed-facets {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.feed-facets[hidden] {
  display: none;
}

.feed-facets-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.feed-facets-title {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feed-facets-hint {
  min-width: 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.facet-group {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
}

.facet-label {
  padding-top: 6px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.facet-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.facet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.facet-chip:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-deeper);
}

.facet-chip.active {
  border-color: rgba(14, 116, 144, 0.22);
  background: rgba(14, 116, 144, 0.14);
  color: rgb(21, 94, 117);
}

.facet-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.facet-chip.active .facet-count {
  background: rgba(255, 255, 255, 0.72);
  color: rgb(21, 94, 117);
}

.facet-empty {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 26px;
}

/* ============================================================
   日期分组
   ============================================================ */

.feed-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.feed-date-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.feed-timeline-row {
  display: grid;
  grid-template-columns: 52px 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.feed-timeline-time {
  margin-top: 12px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.feed-timeline-axis {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100%;
}

.feed-timeline-line {
  width: 2px;
  min-height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--accent-line) 8%, var(--accent-line));
}

.feed-timeline-dot {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.feed-timeline-row.is-last .feed-timeline-line {
  background: transparent;
}

.hotspot-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 16px 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.hotspot-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hotspot-heading {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  color: var(--text);
}

.hotspot-heading::before {
  content: '🔥';
  margin-right: 8px;
  font-size: 14px;
}

.hotspot-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  border-radius: var(--r);
  padding: 9px 0;
}

.hotspot-card:hover .hotspot-title { color: var(--accent-deeper); }

.hotspot-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hotspot-card-lead {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--accent-line);
}

.hotspot-source-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.hotspot-time {
  color: var(--text-faint);
  white-space: nowrap;
}

.hot-topics {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  padding: 13px 16px 4px;
  margin-bottom: 16px;
}

.hot-topics-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px;
}
.hot-topics-flame { font-size: 14px; }
.hot-topics-title { font-size: 16px; font-weight: 500; color: var(--text); }
.hot-topics-hint { margin-left: auto; font-size: 12px; color: var(--text-muted); }

.hot-topics-list { list-style: none; margin: 0; padding: 0; }
.hot-topics-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border-soft);
}
.hot-topics-rank {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
}
.hot-topics-link {
  flex: 1; min-width: 0;
  font-size: 14px; line-height: 21px;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis;
}
.hot-topics-link:hover { color: var(--accent-deeper); }
.hot-topics-meta {
  display: flex; flex-direction: column; gap: 2px;
  flex-shrink: 0; text-align: right;
}
.hot-topics-count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.hot-topics-srcs {
  font-size: 11px; color: var(--text-faint);
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.hotspot-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hotspot-reason {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hotspot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.hotspot-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}

.hotspot-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.hotspot-summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hotspot-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.hotspot-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  border-radius: var(--r-pill);
  background: #fef3c7;
  color: var(--score-high);
  font-weight: 800;
}

.feed-search {
  margin: 0;
  min-width: min(420px, 100%);
  flex-shrink: 0;
}

.feed-search-inner {
  border-radius: var(--r);
}

.feed-search-button {
  margin-left: 8px;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 14px;
  background: #fff;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.feed-search-button:hover,
.feed-search-button:focus-visible {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  outline: none;
}

.business-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(20, 184, 166, 0.08)),
    var(--bg-card);
  box-shadow: var(--shadow-card);
}
.business-cta-detail { margin-top: 22px; }
.business-cta-kicker {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.business-cta h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}
.business-cta p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.55;
}
.business-cta-actions,
.static-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.business-cta-primary,
.business-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
}
.business-cta-primary {
  background: var(--accent-dark);
  color: #fff;
}
.business-cta-primary:hover {
  background: var(--accent-deeper);
  color: #fff;
}
.business-cta-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.business-cta-secondary:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.date-group { display: flex; flex-direction: column; }

.date-heading {
  position: relative;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14px; font-weight: 400;
  color: var(--text);
  margin: 0 0 14px;
  padding: 2px 0 8px;
  letter-spacing: 0;
}

.date-heading::before {
  display: none;
}

.date-heading-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 400;
}

.date-heading-arrow {
  color: var(--text-faint);
  font-size: 14px;
}

.date-group-list { display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   timeline-card（卡片）
   ============================================================ */

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
  position: relative;
  overflow: hidden;
}

.timeline-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.feed-card {
  width: 100%;
}

.timeline-media {
  margin: 2px 0 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef7f6);
  aspect-ratio: 16 / 9;
}

.timeline-media[hidden] {
  display: none;
}

.timeline-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* 左侧色条（按 category） */
.timeline-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.18s;
}
.timeline-card:hover::before { opacity: 1; }

.timeline-card[data-category='ai-models']::before { background: #8b5cf6; }
.timeline-card[data-category='ai-products']::before { background: var(--accent-dark); }
.timeline-card[data-category='industry']::before { background: var(--warn-dark); }
.timeline-card[data-category='paper']::before { background: var(--success-dark); }
.timeline-card[data-category='tip']::before { background: #ec4899; }
.timeline-card[data-category='tools']::before { background: #ec4899; }
.timeline-card[data-category='research']::before { background: #0f766e; }

/* 头部 */
.timeline-card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 6px;
  flex-wrap: wrap;
}

.timeline-head-left {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 1;
  font-size: 13px;
  color: var(--text-muted);
}

.uc-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-line));
  color: var(--accent-deeper);
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.uc-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.timeline-source {
  font-weight: 500;
  font-size: 11px;
  color: rgb(100, 116, 139);
  max-width: 220px;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.timeline-time {
  display: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.timeline-head-right {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}

.timeline-selected-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  background: var(--warn-bg);
  color: var(--warn-dark);
  font-size: 11px; font-weight: 600;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.starred-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.starred-toggle:hover {
  border-color: var(--warn-dark);
  background: var(--warn-bg);
  color: var(--warn-dark);
}

.starred-toggle.is-starred {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--warn-bg);
  color: var(--warn-dark);
}

.starred-toggle-icon {
  line-height: 1;
  font-size: 14px;
}

.starred-toggle-card {
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}

.starred-toggle-card .starred-toggle-label {
  display: none;
}

.share-btn.starred-toggle-detail {
  background: #fff;
  color: var(--text);
}

.share-btn.starred-toggle-detail.is-starred {
  background: var(--warn-bg);
  color: var(--warn-dark);
  border-color: rgba(245, 158, 11, 0.45);
}

.timeline-score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 22px;
  padding: 0 8px;
  background: rgba(34, 211, 238, 0.16);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700;
  color: #0f172a;
}

.timeline-score.score-high {
  background: rgba(34, 211, 238, 0.16);
  color: var(--score-high);
}
.timeline-score.score-mid {
  background: rgba(34, 211, 238, 0.16);
  color: var(--score-mid);
}
.timeline-score.score-low {
  background: rgba(34, 211, 238, 0.16);
  color: var(--score-low);
}

/* 卡片主体（标题+摘要） */
.uc-body {
  display: block;
  color: inherit;
  cursor: pointer;
  margin: 0 -4px;
  padding: 6px 4px;
  border-radius: var(--r);
  transition: background 0.15s;
}
.uc-body:hover { background: var(--bg-hover); }

.uc-title {
  margin: 0 0 6px;
  font-size: 14px; font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: 0;
}
.uc-body:hover .uc-title { color: var(--accent-deeper); }

.uc-body-p {
  margin: 0;
  font-size: 14px; line-height: 1.7;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uc-quoted {
  margin: 4px 0 0;
  padding: 6px 10px;
  font-size: 12px; line-height: 18px;
  font-weight: 400;
  color: rgb(100, 116, 139);
  border-left: 2px solid rgba(15, 23, 42, 0.08);
}
.uc-quoted-author {
  font-weight: 600;
  color: rgb(71, 85, 105);
}

/* 标签 */
.timeline-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}

.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
}

.tag-static {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

.tag-static.tag-category-ai-models { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.tag-static.tag-category-ai-products { background: var(--accent-soft); color: var(--accent-deeper); border-color: var(--accent-line); }
.tag-static.tag-category-industry { background: #fef3c7; color: var(--warn-dark); border-color: #fde68a; }
.tag-static.tag-category-paper { background: #d1fae5; color: var(--success-dark); border-color: #a7f3d0; }
.tag-static.tag-category-tip { background: #fce7f3; color: #be185d; border-color: #fbcfe8; }
.tag-static.tag-category-tools { background: #fce7f3; color: #be185d; border-color: #fbcfe8; }
.tag-static.tag-category-research { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.tag-static.tag-source-count { background: #f8fafc; color: var(--text-faint); border-color: var(--border); }

/* 推荐理由 */
.timeline-divider {
  border: none; height: 1px;
  background: var(--border-soft);
  margin: 16px 0 0;
}

.timeline-reason {
  font-size: 12px;
  line-height: 18px;
  color: rgb(4, 120, 87);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  margin-top: 16px;
  background: rgba(52, 211, 153, 0.08);
  border: none;
}

.timeline-reason-label {
  font-weight: 600;
  color: var(--text-2);
  margin-right: 4px;
}

/* ============================================================
   分页
   ============================================================ */

.feed-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.feed-page-link {
  display: inline-flex; align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text-2);
  background: var(--bg-card);
  transition: all 0.15s;
}
.feed-page-link:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.feed-page-current {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   详情页
   ============================================================ */

.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 16px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: all 0.15s;
}
.back-link:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.item-detail { max-width: 760px; margin: 0 auto; }

.item-detail .timeline-card {
  padding: 28px 32px;
}
.item-detail .timeline-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border);
  transform: none;
}
.item-detail .uc-body { cursor: default; background: transparent; }
.item-detail .uc-body:hover { background: transparent; }
.item-detail .uc-body:hover .uc-title { color: var(--text); }
.item-detail .uc-title {
  font-size: 26px; line-height: 1.3;
  margin-bottom: 14px;
}
.item-detail .uc-body-p {
  -webkit-line-clamp: unset;
  overflow: visible;
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- Item detail reading page refinement ---------- */
body[data-page-mode='detail'] .item-detail {
  max-width: min(780px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

body[data-page-mode='detail'] .item-detail > * {
  order: 12;
}

body[data-page-mode='detail'] .item-detail > .detail-meta-row {
  order: 1;
  margin-bottom: 12px;
  gap: 8px;
}

body[data-page-mode='detail'] .item-detail > .date-heading {
  order: 2;
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 13px;
}

body[data-page-mode='detail'] .item-detail > .detail-title {
  order: 3;
  margin: 0 0 14px;
  font-size: clamp(30px, 4.8vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #101418;
}

body[data-page-mode='detail'] .item-detail > .detail-summary {
  order: 4;
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.85;
  color: #1f2937;
  letter-spacing: 0.002em;
}

body[data-page-mode='detail'] .item-detail > .detail-media {
  order: 5;
}

body[data-page-mode='detail'] .item-detail > .detail-source-link {
  order: 5;
  margin-top: 0;
  margin-bottom: 16px;
}

body[data-page-mode='detail'] .item-detail > .detail-breakdown {
  order: 6;
  gap: 14px;
  margin-bottom: 22px;
}

body[data-page-mode='detail'] .item-detail > .share-bar {
  order: 7;
}

body[data-page-mode='detail'] .item-detail > .event-sources {
  order: 8;
}

body[data-page-mode='detail'] .item-detail > .business-cta {
  order: 9;
}

body[data-page-mode='detail'] .detail-title,
body[data-page-mode='detail'] .detail-summary,
body[data-page-mode='detail'] .detail-breakdown-body {
  max-width: 68ch;
  word-break: break-word;
}

.detail-media {
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #f8fafc, #edf7f6);
  box-shadow: var(--shadow-card);
}

.detail-media[hidden] {
  display: none;
}

.detail-media-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: #f8fafc;
}

.detail-media-caption {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.feed-groups[aria-busy='true'] {
  min-height: 260px;
}

body[data-page-mode='detail'] .detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page-mode='detail'] .detail-meta-tag {
  border-color: var(--border-soft);
  background: #f8fafc;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
}

body[data-page-mode='detail'] .detail-meta-score .detail-meta-value {
  color: var(--accent-dark);
  font-weight: 700;
}

body[data-page-mode='detail'] .detail-breakdown-section {
  border-left: 0;
  border-radius: var(--r);
  background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
}

body[data-page-mode='detail'] .detail-breakdown-heading {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: #0f766e;
  margin-bottom: 8px;
}

body[data-page-mode='detail'] .detail-breakdown-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

body[data-page-mode='detail'] .detail-source-link {
  display: inline-flex;
  padding: 9px 14px;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

body[data-page-mode='detail'] .detail-source-link:hover {
  border-color: var(--accent-dark);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

body[data-page-mode='detail'] .event-sources {
  border-radius: var(--r);
}

.detail-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.detail-summary {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  font-size: 13px;
}

.detail-meta-label {
  color: var(--text-faint);
  font-weight: 500;
}

.detail-meta-value {
  color: var(--text);
  font-weight: 600;
}

.detail-meta-score .detail-meta-value {
  color: var(--score-high);
  font-weight: 800;
}

.detail-breakdown {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-breakdown-section {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--accent-soft);
}

.detail-breakdown-heading {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deeper);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-breakdown-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.share-btn-icon {
  font-size: 15px;
  line-height: 1;
}

.share-btn-telegram {
  background: #0088cc;
  color: #fff;
  border-color: #0088cc;
}

.share-btn-telegram:hover {
  background: #006699;
  border-color: #006699;
  color: #fff;
}

.share-btn-weibo {
  background: #e6162d;
  color: #fff;
  border-color: #e6162d;
}

.share-btn-weibo:hover {
  background: #c20f23;
  border-color: #c20f23;
  color: #fff;
}

.share-btn-twitter {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.share-btn-twitter:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.detail-source-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  padding: 10px 18px;
  background: var(--accent-dark);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.25);
}
.detail-source-link:hover {
  background: var(--accent-deeper);
  color: #fff;
}

.event-sources {
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.6), rgba(255, 255, 255, 0.96)),
    var(--bg-card);
  box-shadow: var(--shadow-card);
}

.event-sources-head {
  margin-bottom: 14px;
}

.event-sources-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-deeper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-sources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-source-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.event-source-link:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.event-source-primary {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.event-source-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-source-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.daily-quick-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.daily-quick-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.daily-quick-scroll {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.daily-quick-scroll::-webkit-scrollbar { display: none; }

.daily-quick-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  color: var(--text-2);
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 600;
}

.daily-quick-link:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-deeper);
}

/* ============================================================
   空状态
   ============================================================ */

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h1 { font-size: 24px; margin: 0 0 8px; color: var(--text-2); }
.empty-state p { color: var(--text-muted); margin: 0 0 16px; }

.link-primary {
  display: inline-flex; padding: 8px 20px;
  background: var(--accent-dark); color: #fff;
  border-radius: var(--r-sm); font-weight: 500;
}
.link-primary:hover { background: var(--accent-deeper); color: #fff; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  max-width: 1080px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent-dark);
}

/* ============================================================
   响应式 - 平板
   ============================================================ */

@media (max-width: 900px) {
  .site-header-inner { padding: 0 12px; gap: 12px; }
  .primary-nav { display: none; }
  .header-actions { gap: 6px; margin-left: auto; }
  .header-link { display: none; }
  .login-link { padding: 6px 10px; font-size: 13px; }
  .brand { font-size: 15px; }

  .tab-bar {
    overflow-x: auto; scrollbar-width: none;
    padding: 0 10px;
    gap: 4px;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .compact-brand { font-size: 12px; }
  .compact-date { font-size: 11px; }
  .tab-bar a {
    flex-shrink: 0; padding: 10px 11px; font-size: 13px;
    white-space: nowrap;
  }

  .feed-header { padding: 16px; }
  .main-content { padding: 20px 12px 60px; }
  .feed-title { font-size: 24px; }
  .feed-subtitle { font-size: 13px; margin-bottom: 14px; }
  .feed-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .feed-filters {
    gap: 6px;
    overflow-x: auto; scrollbar-width: none;
    flex-wrap: nowrap;
    margin: 0 -12px;
    padding: 0 12px;
  }
  .feed-filters::-webkit-scrollbar { display: none; }
  .feed-filter {
    flex-shrink: 0; font-size: 12px; padding: 5px 12px;
  }
  .feed-facets {
    margin-top: 12px;
  }
  .feed-facets-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .feed-facets-hint {
    text-align: left;
  }
  .facet-group {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .facet-label {
    padding-top: 0;
  }

  .feed-search {
    width: 100%;
    min-width: 0;
  }

  .feed-search-inner {
    width: 100%;
  }

  .feed-search-meta {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feed-timeline-time {
    margin-top: 0;
    text-align: left;
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-timeline-axis { display: none; }
  .feed-card { grid-column: 1; grid-row: 2; }

  .date-heading { font-size: 15px; }

  .hotspot-panel { padding: 15px 16px; }
  .business-cta {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .business-cta h2 { font-size: 18px; }
  .business-cta-actions { width: 100%; }
  .business-cta-primary,
  .business-cta-secondary { flex: 1; }
  .hotspot-card {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 6px;
    align-items: start;
  }
  .hotspot-card-lead {
    padding-bottom: 10px;
  }
  .hotspot-body {
    gap: 4px;
  }
  .hotspot-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
  .hotspot-title { font-size: 16px; }
  .hotspot-summary { font-size: 13px; }
  .hotspot-reason { font-size: 12px; }
  .hotspot-rank {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .timeline-card { padding: 16px 16px; }
  .uc-title { font-size: 16px; }
  .uc-body-p { font-size: 13px; }

  .item-detail .timeline-card { padding: 20px 18px; }
  .item-detail .uc-title { font-size: 22px; }
  .item-detail .uc-body-p { font-size: 14px; line-height: 1.75; }
  .detail-title { font-size: 22px; }
  .detail-summary { font-size: 14px; line-height: 1.75; }
  .detail-meta-row { gap: 8px; }
  .detail-meta-tag { padding: 5px 10px; font-size: 12px; }
  .share-btn { padding: 7px 14px; font-size: 12px; }
  .event-sources { padding: 14px 16px; }
  .event-source-link { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 560px) {
  .header-actions { display: none; }
  .feed-toolbar { gap: 10px; }
  .feed-search { min-width: 0; width: 100%; }
  .feed-search-inner { padding: 0 10px; }
  .feed-search-button {
    padding: 7px 11px;
    font-size: 12px;
  }
  .feed-search-meta { font-size: 12px; }
  .hotspot-meta { flex-direction: column; gap: 4px; }
  .hotspot-rank { width: 40px; height: 40px; font-size: 12px; }
  .daily-quick-nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .daily-quick-scroll {
    width: 100%;
  }
  .timeline-card-head { gap: 8px; }
  .timeline-media {
    margin-bottom: 10px;
    border-radius: 10px;
  }
  .detail-media {
    margin-bottom: 14px;
    border-radius: var(--r);
  }
  .timeline-source { max-width: 140px; }
  .timeline-time { display: none; }
  .uc-handle,
  .timeline-source {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hotspot-card {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  .hotspot-side {
    grid-column: 2;
    grid-row: 2;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px 10px;
    flex-direction: row;
    white-space: normal;
  }

  .feed-header {
    padding: 14px 12px;
  }

  .feed-title {
    font-size: 22px;
  }

  .feed-subtitle {
    font-size: 12px;
    margin-bottom: 12px;
  }
}

/* ============================================================
   搜索框（feed scene 内）
   ============================================================ */

.feed-search {
  margin-bottom: 0;
}

.feed-search-inner {
  display: flex; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0 14px;
  height: 42px;
  transition: all 0.15s;
}
.feed-search-inner:focus-within {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.feed-search-icon {
  margin-right: 10px;
  color: var(--text-faint);
  font-size: 14px;
}

.feed-search-input {
  flex: 1;
  appearance: none;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 14px;
  color: var(--text);
  min-width: 0;
}
.feed-search-input::placeholder { color: var(--text-faint); }

.feed-search-clear {
  appearance: none; background: var(--bg-soft); border: none;
  color: var(--text-muted);
  width: 24px; height: 24px; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
  padding: 0;
}
.feed-search-clear:hover {
  background: var(--accent-soft); color: var(--accent-dark);
}

.feed-search-meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.feed-search-meta strong { color: var(--accent-dark); }

/* ============================================================
   日报列表
   ============================================================ */

.daily-archive-list {
  display: grid;
  gap: 12px;
}

.daily-archive-latest {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--accent-soft-strong);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.daily-archive-latest:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  color: var(--accent-deeper);
}

.daily-archive-latest-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent-deeper);
  text-transform: uppercase;
}

.daily-archive-latest-date {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--text-muted);
}

.daily-archive-latest-title {
  grid-column: 1 / 3;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
  color: currentColor;
}

.daily-archive-latest-meta {
  grid-row: 1 / 3;
  grid-column: 3;
  justify-self: end;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-body);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .daily-archive-latest {
    grid-template-columns: 1fr;
  }

  .daily-archive-latest-title,
  .daily-archive-latest-meta {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    white-space: normal;
  }
}

.daily-archive-card {
  display: block;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: all 0.18s;
}
.daily-archive-card:hover {
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
  color: inherit;
}

.daily-archive-card-date {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 6px;
}

.daily-archive-date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
}

.daily-archive-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.daily-archive-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.005em;
}
.daily-archive-card:hover .daily-archive-title { color: var(--accent-deeper); }

/* ============================================================
   日报详情
   ============================================================ */

.daily-detail-header {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.daily-detail-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.daily-detail-title {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.daily-detail-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.daily-section { margin-bottom: 36px; }

.daily-section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: baseline; gap: 10px;
}
.daily-section-title::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.daily-section-list {
  display: flex; flex-direction: column; gap: 14px;
}

/* ============================================================
   静态页（about / agent / changelog / feedback / more）
   ============================================================ */

.static-page {
  max-width: 720px; margin: 0 auto;
  padding: 8px 0;
}

.static-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.static-title {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.static-author {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.static-body {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
}
.static-body p { margin: 0 0 12px; }

.static-extra {
  margin-top: 28px;
  display: grid; gap: 16px;
}

.static-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.static-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.static-bullets {
  margin: 0; padding-left: 18px;
  display: grid; gap: 6px;
  font-size: 14px;
  color: var(--text-body);
}
.static-bullets code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  color: var(--accent-deeper);
}

.static-links {
  display: grid; gap: 10px;
  margin-top: 16px;
}
.static-link-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.static-link-card strong {
  font-size: 15px; font-weight: 600;
  color: var(--text);
}
.static-link-card:hover {
  border-color: var(--accent-dark);
  background: var(--accent-soft);
  color: inherit;
}
.static-link-card:hover strong { color: var(--accent-deeper); }

.static-link-groups {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.static-link-group {
  display: grid;
  gap: 10px;
}

.static-link-group-head {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.static-link-group-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: var(--text);
}

.static-link-group-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* topic index and topic detail pages */
.item-detail.topics-page,
.item-detail.topic-page {
  max-width: 1080px;
}

.topics-layout,
.topic-detail-layout {
  display: grid;
  gap: 24px;
  width: 100%;
}

.topics-hero,
.topic-detail-hero {
  display: grid;
  gap: 10px;
}

.topic-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.topic-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.topic-action:hover,
.topic-action-primary {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-deeper);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.topic-card {
  display: grid;
  gap: 9px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
}

.topic-card:hover {
  border-color: var(--accent-line);
  background: #fff;
  transform: translateY(-1px);
  color: inherit;
}

.topic-card-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.topic-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.topic-card-summary {
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.55;
}

.topic-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-card-tags span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent-deeper);
  font-size: 11px;
  font-weight: 600;
}

.topic-card-meta {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

.topic-stream-preview {
  display: grid;
  gap: 14px;
}

.topic-item-list {
  display: grid;
  gap: 8px;
}

.topic-item-link {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
}

.topic-item-link:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: inherit;
}

.topic-item-title {
  color: var(--text);
  font-weight: 650;
  line-height: 1.35;
}

.topic-item-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.topic-empty {
  padding: 18px;
}

/* local starred page */
.item-detail.starred-page {
  max-width: 1080px;
}

.starred-layout {
  display: grid;
  gap: 22px;
  width: 100%;
}

.starred-hero {
  display: grid;
  gap: 10px;
}

.starred-local-hint,
.starred-count {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.starred-count {
  margin: 0;
}

.starred-list {
  display: grid;
  gap: 14px;
}

.starred-card {
  width: 100%;
}

.starred-empty {
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
}

.starred-empty h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--text);
}

.starred-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* weekly/monthly digest pages */
.item-detail.period-page {
  max-width: 1080px;
}

.period-layout {
  display: grid;
  gap: 24px;
  width: 100%;
}

.period-hero {
  display: grid;
  gap: 10px;
}

.period-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.period-hero-meta,
.period-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.period-hero-meta span,
.period-card-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.period-digest-grid {
  display: grid;
  gap: 16px;
}

.period-digest-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.period-card-head {
  display: grid;
  gap: 8px;
}

.period-card-kicker {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--accent-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.period-card-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.period-card-head p {
  margin: 0;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.65;
}

.period-item-list {
  display: grid;
  gap: 8px;
}

.period-item-link {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.period-item-link:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: inherit;
}

.period-item-title {
  color: var(--text);
  font-weight: 650;
  line-height: 1.35;
}

.period-item-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.period-daily-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.period-daily-links a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.period-daily-links a:hover {
  border-color: var(--accent-line);
  color: var(--accent-deeper);
}

.period-empty,
.period-card-empty {
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
}

.period-card-empty {
  padding: 18px;
}

.link-secondary {
  background: #fff;
  color: var(--accent-deeper);
  border: 1px solid var(--accent-line);
}

.link-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-deeper);
}

/* catalog pages: tools / agents / providers */
.item-detail.catalog-page {
  max-width: 1080px;
}

.catalog-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.catalog-hero {
  padding-bottom: 4px;
}

.catalog-hero .static-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-hero .static-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deeper);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.catalog-summary {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
}

.catalog-intent {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.catalog-highlights,
.catalog-tags,
.catalog-hot-list,
.catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-highlight,
.catalog-tag,
.catalog-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
}

.catalog-highlight {
  padding: 7px 11px;
}

.catalog-hot {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0 18px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.catalog-hot h2,
.catalog-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: var(--text);
}

.catalog-hot-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.catalog-hot-link strong {
  font-size: 13px;
  color: var(--text);
}

.catalog-hot-link span {
  font-size: 12px;
  color: var(--text-muted);
}

.catalog-hot-link:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: inherit;
}

.catalog-nav {
  position: sticky;
  top: 12px;
  z-index: 5;
  padding: 10px 0;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.catalog-nav-chip {
  padding: 7px 10px;
  text-decoration: none;
}

.catalog-nav-chip strong {
  color: var(--accent-deeper);
  font-family: var(--font-mono);
  font-size: 11px;
}

.catalog-nav-chip:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-deeper);
}

.catalog-section {
  scroll-margin-top: 84px;
}

.catalog-section-head {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 14px;
}

.catalog-section-kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.catalog-section-head h2 span {
  color: var(--accent-deeper);
  font-family: var(--font-mono);
  font-size: 13px;
}

.catalog-section-head > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.catalog-card:hover {
  border-color: var(--accent-line);
  background: #fff;
  transform: translateY(-1px);
  color: inherit;
}

.catalog-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.catalog-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--accent-deeper);
  font-size: 15px;
  font-weight: 700;
}

.catalog-card-title {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

.catalog-card-desc {
  margin: 10px 0 12px;
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.55;
}

.catalog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 12px;
}

.catalog-price {
  color: var(--accent-deeper);
  font-weight: 600;
}

.catalog-link-mark {
  color: var(--text-faint);
}

.catalog-tag {
  padding: 5px 8px;
}

.catalog-tag.is-strong {
  background: var(--accent-soft);
  color: var(--accent-deeper);
  border-color: var(--accent-line);
}

@media (max-width: 980px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .topic-card {
    min-height: 0;
  }
  .catalog-hot,
  .catalog-section-head {
    grid-template-columns: 1fr;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card {
    min-height: 0;
  }
}

/* changelog 列表 */
.changelog-list {
  display: flex; flex-direction: column; gap: 28px;
  margin-top: 8px;
}

.changelog-entry {
  position: relative;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.changelog-entry-head {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.changelog-entry-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.changelog-entry-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.005em;
}

.changelog-entry-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
}

.changelog-body-p {
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--text-2);
}

.changelog-bullet-detail {
  display: block;
  margin-left: 12px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

/* 响应式 */
@media (max-width: 900px) {
  .static-title, .daily-detail-title { font-size: 26px; }
  .static-body { font-size: 15px; }
  .changelog-entry { padding: 16px 18px; }
  .changelog-entry-title { font-size: 16px; }
  .daily-archive-card { padding: 14px 16px; }
}

/* ============================================================
   Stats overview
   ============================================================ */

.feed-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
}

.feed-stats[hidden] { display: none; }

.feed-category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.feed-category-stats[hidden] { display: none; }

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
}

.stat-context-note {
  flex: 1 1 280px;
  max-width: 100%;
  min-width: 0;
}

.stat-context-note .stat-label {
  display: block;
  min-width: 0;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Date navigation
   ============================================================ */

.date-nav {
  margin-bottom: 20px;
}

.date-nav[hidden] { display: none; }

.date-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.date-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-card);
  transition: all 0.15s;
  white-space: nowrap;
}

.date-nav-btn:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.date-nav-btn.date-nav-disabled {
  color: var(--text-faint);
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
}

.date-nav-archive {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 8px 16px;
}

.date-nav-archive:hover {
  color: var(--accent-deeper);
}

/* ============================================================
   Section number
   ============================================================ */

.daily-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
}

/* ============================================================
   Archive month grouping
   ============================================================ */

.archive-month-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  margin: 24px 0 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
  text-transform: capitalize;
}

.archive-month-heading:first-child {
  margin-top: 0;
}

.archive-month-group {
  display: grid;
  gap: 10px;
}

/* ============================================================
   Responsive additions
   ============================================================ */

@media (max-width: 900px) {
  .feed-stats {
    gap: 14px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .feed-stats::-webkit-scrollbar { display: none; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 12px; }

  .date-nav-btn { padding: 6px 12px; font-size: 12px; }
  .date-nav-archive { font-size: 12px; padding: 6px 12px; }
}

@media (max-width: 560px) {
  .feed-stats { gap: 12px; }
  .stat-value { font-size: 16px; }
  .date-nav-inner { flex-wrap: wrap; }
}

/* ---------- Update status bar ---------- */
.update-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: var(--surface, #f7f7f8);
  border-bottom: 1px solid var(--border, #e5e5e7);
  font-size: 12px;
  color: var(--muted, #6b7280);
  font-family: 'IBM Plex Sans', sans-serif;
}
.update-status-bar[hidden] { display: none; }
.update-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.update-status-dot.stale {
  background: #f59e0b;
}
.update-status-dot.error {
  background: #ef4444;
}
.update-status-text {
  line-height: 1.4;
}

/* SSR fallback feed — visible without JS, hidden when JS is active */
html.js .ssr-feed { display: none; }
.ssr-feed {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}
.ssr-feed-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.ssr-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ssr-card {
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: var(--surface, #fff);
}
.ssr-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.ssr-card-source {
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
}
.ssr-card-score {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent, #22d3ee);
}
.ssr-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.ssr-card-title a {
  color: inherit;
  text-decoration: none;
}
.ssr-card-title a:hover {
  text-decoration: underline;
}
.ssr-card-summary {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted, #6b7280);
  margin: 0;
}
.ssr-item-media {
  margin: 12px 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-muted, #f8fafc);
}
.ssr-item-media-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: var(--surface, #fff);
}
.ssr-item-media-caption {
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted, #6b7280);
}
.ssr-item-media-caption a {
  color: inherit;
  text-decoration: none;
}
.ssr-item-media-caption a:hover {
  text-decoration: underline;
}
.ssr-feed-empty {
  font-size: 0.9rem;
  color: var(--muted, #6b7280);
}

/* ============================================================
   Daily three-column layout
   sidebar (200px) | daily-side (230px) | content (flex)
   ============================================================ */

.page-body {
  display: block;
}

.main-area {
  display: block;
}

.daily-side {
  display: none;
}

/* ---------- Sidebar (desktop) ---------- */

@media (min-width: 901px) {
  .site-header {
    position: fixed;
    left: 0; top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    border-bottom: none;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header .tab-bar {
    display: none;
  }

  .sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 12px 14px;
    gap: 18px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-height: 72px;
    padding: 14px 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    flex-shrink: 0;
  }

  .brand-logo {
    width: 28px; height: 28px;
    border-radius: 9px;
    font-size: 14px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
  }

  .sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .sidebar-group-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    padding: 14px 12px 2px;
    margin-bottom: 0;
  }

  .sidebar-group > .language-control {
    margin: 5px 4px 8px;
  }

  .sidebar-group > .language-control .language-button {
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar-group > .language-control .language-button-caret {
    margin-left: auto;
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    text-decoration: none;
  }

  .sidebar-link:hover {
    background: rgba(26, 29, 35, 0.04);
    color: var(--text);
  }

  .sidebar-link.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    border-color: var(--accent-line);
  }

  .sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    flex-shrink: 0;
  }

  .sidebar-footer .header-link {
    justify-content: center;
  }

  .sidebar-footer .login-link {
    justify-content: center;
    width: 100%;
  }

  /* Page body offset */
  .page-body {
    margin-left: var(--sidebar-w);
  }

  /* Main area: daily-side + content */
  .main-area {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
  }

  .daily-side {
    display: flex;
    flex-direction: column;
    width: var(--daily-side-w);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    padding: 32px 16px 32px 24px;
    background: var(--bg);
  }

  .main-content {
    flex: 1;
    min-width: 0;
    max-width: calc(var(--max-w) + 64px);
    margin: 0 auto;
    padding: 64px 32px 160px;
  }

body[data-page-mode='feed'] .daily-side,
body[data-page-mode='catalog'] .daily-side,
body[data-page-mode='topics'] .daily-side,
body[data-page-mode='starred'] .daily-side,
body[data-page-mode='period'] .daily-side,
body[data-page-mode='static'] .daily-side {
  display: none;
}

  body[data-page-mode='feed'] .main-content,
  body[data-page-mode='catalog'] .main-content,
  body[data-page-mode='topics'] .main-content,
  body[data-page-mode='starred'] .main-content,
  body[data-page-mode='period'] .main-content,
  body[data-page-mode='static'] .main-content {
    flex: 1;
    min-width: 0;
    width: min(1260px, calc(100vw - (var(--sidebar-w) + 64px)));
    max-width: 1260px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 32px;
    padding-right: 32px;
  }

  .site-footer {
    margin-left: var(--sidebar-w);
  }

  .update-status-bar {
    margin-left: var(--sidebar-w);
  }

  .ssr-feed {
    margin-left: var(--sidebar-w);
  }

  .noscript-message {
    margin-left: var(--sidebar-w);
  }
}

/* ---------- Daily side (date list) ---------- */

.daily-side-latest {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 24px;
  transition: border-color 0.15s, color 0.15s;
}

.daily-side-latest:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.daily-side-latest.active {
  border-color: var(--accent);
  color: var(--accent);
}

.daily-side-latest-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: currentColor;
}

.daily-side-latest-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.daily-side-month {
  border-bottom: 1px solid var(--border);
}

.daily-side-month > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 10px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  user-select: none;
}

.daily-side-month > summary::-webkit-details-marker {
  display: none;
}

.daily-side-month > summary::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 50%;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.18s ease;
}

.daily-side-month[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.daily-side-month-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-2);
  letter-spacing: 0.03em;
  text-transform: capitalize;
}

.daily-side-month-count {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.daily-side-day-list {
  list-style: none;
  margin: 4px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.daily-side-day {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 10px 8px 0;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-body);
  transition: background 0.12s, color 0.12s;
}

.daily-side-day:hover {
  background: var(--border);
  color: var(--text);
}

.daily-side-day.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.daily-side-day-num {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-left: 14px;
  min-width: 52px;
  flex-shrink: 0;
}

.daily-side-day.active .daily-side-day-num {
  color: var(--accent);
  font-weight: 600;
}

.daily-side-day-headline {
  font-size: 12.5px;
  line-height: 1.45;
  flex: 1;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Daily masthead, sections, and newspaper article frame ---------- */

.daily-masthead {
  text-align: left;
  margin-bottom: 96px;
}

.daily-masthead-eyebrow {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.daily-masthead-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.daily-masthead-eyebrow .sep {
  color: var(--text-muted);
  opacity: 0.6;
}

.daily-masthead-title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 8.5vw, 104px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 36px;
}

.daily-masthead-title .accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
  z-index: 0;
}

.daily-masthead-title .accent::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 6px;
  height: 14px;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 1px;
}

.daily-masthead-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.daily-masthead-date {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1.2px;
  color: var(--text-2);
  text-transform: capitalize;
}

.daily-masthead-meta-rule {
  height: 1px;
  background: linear-gradient(to right, var(--border) 0, var(--accent-hover) 50%, var(--border) 100%);
}

.daily-masthead-tagline {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.daily-availability-note {
  margin: -12px 0 36px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

.daily-availability-note.is-fallback {
  border-left-color: #c98218;
  background: color-mix(in srgb, #c98218 10%, transparent);
}

.daily-section {
  margin: 0;
  padding: 0 0 32px;
}

.daily-section + .daily-section {
  padding-top: 32px;
}

.daily-section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
}

.daily-section-num {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.daily-section-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: 1px;
}

.daily-section-en {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.daily-section-count {
  margin-left: auto;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.daily-section-articles {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  background: transparent;
}

.daily-article {
  padding: 24px 0;
}

.daily-article:first-child {
  padding-top: 8px;
}

.daily-article:last-child {
  padding-bottom: 8px;
}

.daily-article + .daily-article {
  border-top: 1px solid var(--border);
}

.daily-article-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 14px;
}

.daily-article-title a {
  color: inherit;
}

.daily-article-title a:hover {
  color: var(--accent);
}

.daily-article-summary {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text-2);
  margin: 0;
}

.daily-article-source {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.daily-article-source a {
  color: var(--text-body);
}

.daily-article-source a:hover {
  color: var(--accent);
}

.role-tag {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.daily-metrics {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
}

.daily-metric {
  text-align: center;
}

.daily-metric-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.daily-metric-label {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.daily-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 88px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
}

.daily-prev-next a,
.daily-prev-next span {
  color: var(--text-body);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}

.daily-prev-next a:hover {
  color: var(--accent);
}

.daily-prev-next [aria-disabled="true"] {
  color: var(--text-muted);
}

/* ---------- Daily newspaper-style alignment refinements ---------- */
body[data-page-mode='daily'] .main-content {
  max-width: min(1120px, calc(100vw - var(--sidebar-w) - var(--daily-side-w) - 32px));
  margin: 0 auto;
}

body[data-page-mode='daily'] .daily-archive-list {
  display: grid;
  gap: 14px;
}

body[data-page-mode='daily'] .daily-archive-card {
  background: #fff;
  border-color: var(--border-soft);
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

body[data-page-mode='daily'] .daily-archive-card:hover {
  transform: translateY(-2px);
}

body[data-page-mode='daily'] .daily-archive-card-date {
  justify-content: space-between;
  margin-bottom: 8px;
}

body[data-page-mode='daily'] .daily-archive-date {
  font-size: 14px;
  letter-spacing: 0.14em;
}

body[data-page-mode='daily'] .daily-archive-title {
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
}

body[data-page-mode='daily'] .daily-archive-card:hover .daily-archive-title {
  color: var(--accent-deeper);
}

body[data-page-mode='daily'] .archive-month-heading {
  margin-top: 28px;
  border-bottom-color: var(--border-soft);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

body[data-page-mode='daily'] .archive-month-group {
  gap: 12px;
}

body[data-page-mode='daily'] .daily-masthead {
  margin-bottom: 72px;
}

body[data-page-mode='daily'] .daily-masthead-title {
  font-size: clamp(50px, 8vw, 92px);
  margin-bottom: 28px;
  gap: 10px;
}

body[data-page-mode='daily'] .daily-masthead-eyebrow {
  margin-bottom: 22px;
  letter-spacing: 0.22em;
}

body[data-page-mode='daily'] .daily-section {
  margin: 0;
  padding: 0 0 38px;
}

body[data-page-mode='daily'] .daily-section + .daily-section {
  margin-top: 0;
  padding-top: 0;
}

body[data-page-mode='daily'] .daily-section-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 14px;
}

body[data-page-mode='daily'] .daily-section-num {
  font-size: 62px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 800;
  margin-top: 0.05em;
}

body[data-page-mode='daily'] .daily-section-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

body[data-page-mode='daily'] .daily-section-en {
  margin-top: 2px;
  text-align: right;
  font-size: 10px;
  letter-spacing: 3px;
}

body[data-page-mode='daily'] .daily-section-count {
  margin-left: 0;
  align-self: start;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 1.6px;
}

body[data-page-mode='daily'] .daily-section-articles {
  display: grid;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body[data-page-mode='daily'] .daily-article {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-card);
}

body[data-page-mode='daily'] .daily-article + .daily-article {
  border-top: 1px solid var(--border);
}

body[data-page-mode='daily'] .daily-article:first-child {
  padding-top: 20px;
}

body[data-page-mode='daily'] .daily-article:last-child {
  padding-bottom: 20px;
}

body[data-page-mode='daily'] .daily-article-title {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 12px;
}

body[data-page-mode='daily'] .daily-article-summary {
  font-size: 15px;
  line-height: 1.7;
}

body[data-page-mode='daily'] .daily-article-source {
  margin-top: 12px;
  font-size: 11px;
}

body[data-page-mode='daily'] .daily-metrics {
  margin-top: 64px;
  padding-top: 34px;
}

body[data-page-mode='daily'] .daily-prev-next {
  margin-top: 64px;
  gap: 14px;
}

/* ---------- Mobile: hide sidebar, show tab-bar ---------- */

@media (max-width: 900px) {
  .sidebar-inner { display: none; }
  .site-header .tab-bar { display: flex; }
  .daily-side { display: none; }
  .main-area { display: block; }
  .main-content {
    max-width: none;
    padding: 32px 16px 80px;
  }
  body[data-page-mode='daily'] .main-content {
    width: 100%;
    max-width: none;
  }
  body[data-page-mode='daily'] .daily-detail-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .page-body { margin-left: 0; }
  .site-footer { margin-left: 0; }
  .update-status-bar { margin-left: 0; }
  .language-control-compact .language-menu {
    position: fixed;
    top: 52px;
    left: 10px;
  }
  .ssr-feed { margin-left: 0; }
  .noscript-message { margin-left: 0; }
  .daily-masthead { margin-bottom: 56px; }
  .daily-masthead-title { font-size: clamp(42px, 13vw, 72px); }
  .daily-section-num { font-size: 40px; }

  body[data-page-mode='detail'] .item-detail {
    max-width: 100%;
  }

  body[data-page-mode='detail'] .detail-title {
    font-size: clamp(28px, 6.2vw, 44px);
  }

  body[data-page-mode='detail'] .detail-summary {
    font-size: 16px;
    line-height: 1.8;
  }

  body[data-page-mode='detail'] .detail-breakdown-body {
    font-size: 15px;
    line-height: 1.78;
  }

  body[data-page-mode='daily'] .daily-masthead {
    margin-bottom: 56px;
  }

  body[data-page-mode='daily'] .daily-masthead-title {
    font-size: clamp(44px, 10vw, 68px);
  }

  body[data-page-mode='daily'] .daily-archive-card {
    padding: 16px;
  }

  body[data-page-mode='daily'] .daily-section-title {
    font-size: 30px;
  }

  body[data-page-mode='daily'] .daily-article {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .daily-masthead {
    margin-bottom: 52px;
  }
  .daily-masthead-eyebrow {
    gap: 8px;
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1.5;
    flex-wrap: wrap;
  }
  .daily-masthead-eyebrow::before {
    width: 28px;
  }
  .daily-masthead-title {
    font-size: clamp(36px, 12vw, 48px);
    line-height: 1.05;
    margin-bottom: 22px;
  }
  .daily-masthead-title .accent::after {
    bottom: 4px;
    height: 10px;
  }
  .daily-masthead-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .daily-masthead-meta-rule {
    display: none;
  }
  .daily-masthead-date {
    font-size: 13px;
    line-height: 1.4;
  }
  .daily-masthead-tagline {
    font-size: 10px;
    letter-spacing: 2.4px;
  }
  .daily-section-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 10px;
  }
  .daily-section-num {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    font-size: 34px;
  }
  .daily-section-title {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    font-size: 21px;
    line-height: 1.2;
  }
  .daily-section-en {
    grid-column: 2 / -1;
    grid-row: 2;
    min-width: 0;
    font-size: 9.5px;
    letter-spacing: 2.2px;
  }
  .daily-section-count {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
    font-size: 10px;
    letter-spacing: 1px;
  }
  .daily-section-articles {
    padding: 16px 14px;
  }
  .daily-article {
    padding: 22px 0;
  }
  .daily-metrics {
    margin-top: 48px;
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .daily-prev-next {
    margin-top: 48px;
    font-size: 11px;
    letter-spacing: 0.6px;
  }

  body[data-page-mode='detail'] .item-detail {
    max-width: 100%;
  }

  body[data-page-mode='detail'] .detail-title {
    font-size: clamp(28px, 7.4vw, 40px);
    line-height: 1.2;
  }

  body[data-page-mode='detail'] .detail-summary {
    font-size: 16px;
    line-height: 1.8;
  }

  body[data-page-mode='detail'] .detail-breakdown-body {
    font-size: 14px;
    line-height: 1.75;
  }

  body[data-page-mode='daily'] .daily-masthead-title {
    font-size: clamp(44px, 12vw, 64px);
  }

  body[data-page-mode='daily'] .daily-masthead {
    margin-bottom: 52px;
  }

  body[data-page-mode='daily'] .daily-archive-list {
    gap: 12px;
  }

  body[data-page-mode='daily'] .daily-archive-card {
    padding: 16px;
  }

  body[data-page-mode='daily'] .daily-section-title {
    font-size: 30px;
  }

  body[data-page-mode='daily'] .daily-section-articles {
    gap: 10px;
  }

  body[data-page-mode='daily'] .daily-article {
    padding: 18px;
  }
}

/* ---------- Feed header hidden on home daily ---------- */

.feed-header.hidden-on-daily {
  display: none;
}

/* Card title + summary (competitor parity) */
.timeline-title {
  display: block;
  margin: 0;
  font-size: 15px; font-weight: 700;
  line-height: 1.45;
  color: rgb(15, 23, 42);
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.15s;
}
.timeline-title:hover { color: var(--accent-deeper); }

.timeline-summary {
  margin: 0;
  font-size: 12.5px; line-height: 20px;
  color: rgb(15, 23, 42);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
