:root {
  --canvas: #f3f5f7;
  --surface: #ffffff;
  --surface-quiet: #e9edf2;
  --ink: #10141a;
  --muted: #596473;
  --line: #d7dce3;
  --accent: #2f63e9;
  --accent-strong: #1e4fc5;
  --accent-soft: #e7edff;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(43, 58, 82, .12);
  --shell: min(1400px, calc(100% - 56px));
  color-scheme: light;
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei",
    system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
a { color: inherit; }
img, iframe, video { display: block; width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 72px;
  border-bottom: 1px solid rgba(215, 220, 227, .85);
  background: rgba(243, 245, 247, .9);
  backdrop-filter: blur(18px);
}
.nav-shell {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.06em;
  text-decoration: none;
}
.brand-logo { width: 51px; height: 51px; border-radius: 10px; object-fit: cover; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 8px; }
.primary-nav a {
  color: #35404e;
  font-size: 14px /* 与栏目页导航同字号 */;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--accent-strong); }
.menu-button { display: none; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.site-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.site-search input {
  width: 120px;
  border: 0;
  outline: 0;
  padding: 9px 4px 9px 14px;
  background: transparent;
}
.site-search button {
  border: 0;
  padding: 9px 14px;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 760;
}

.hero-section {
  min-height: 620px;
  padding-block: 46px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(370px, .72fr);
  gap: 52px;
  align-items: center;
}
.hero-media {
  min-height: 500px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe4ea;
  box-shadow: var(--shadow);
}
.hero-media figure { height: 100%; margin: 0; position: relative; }
.hero-media img, .hero-media iframe {
  height: 500px;
  object-fit: cover;
}
.media-source {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: rgba(8, 12, 18, .75);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 11px;
}
.media-source a { color: white; font-weight: 760; }
.hero-copy { max-width: 560px; }
.kicker {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1 {
  margin: 0;
  font-size: clamp(45px, 4.6vw, 76px);
  line-height: .99;
  letter-spacing: -.065em;
}
.hero-summary {
  max-width: 34rem;
  margin: 26px 0 18px;
  color: var(--muted);
  font-size: 18px;
}
.hero-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}
.hero-meta span + span::before { content: "·"; margin-right: 10px; }
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 780;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.primary-link:hover { background: var(--accent-strong); }
.primary-link:active { transform: scale(.98); }

.audio-feature { padding-top: 28px; }
.audiobook-panel, .analysis-panel { border-radius: var(--radius); }
.audiobook-panel {
  padding: 28px 32px;
  overflow: hidden;
  background: var(--accent);
  color: white;
}
.audio-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.audio-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}
.audio-intro { max-width: 620px; margin: 13px 0 0; color: #dce5ff; }
.audio-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: 42px;
  align-items: end;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.28);
}
.audio-player-zone { min-width: 0; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.section-heading p { margin: 10px 0 0; color: var(--muted); }
.audiobook-panel .kicker { color: #cbd8ff; }
.live-dot {
  flex: none;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
}
.audio-stage {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: center;
}
.audio-index {
  color: rgba(255, 255, 255, .4);
  font-size: 76px;
  font-weight: 850;
  line-height: .8;
  letter-spacing: -.08em;
}
.audio-copy p { margin: 0 0 8px; color: #dfe6ff; font-size: 13px; }
.audio-copy h3 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.waveform {
  height: 42px;
  margin: 0 0 18px;
  opacity: .52;
  background:
    repeating-linear-gradient(90deg, white 0 2px, transparent 2px 7px);
  mask-image: linear-gradient(135deg, transparent 5%, black 30% 70%, transparent 95%);
}
.audio-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  color: #dce5ff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.audio-progress {
  width: 100%;
  height: 4px;
  margin: 0;
  accent-color: white;
  cursor: pointer;
}
.audio-progress:disabled { cursor: default; opacity: .72; }
.audio-controls { display: flex; justify-content: space-between; gap: 10px; }
.audio-controls button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  padding: 0 17px;
  background: transparent;
  color: white;
  cursor: pointer;
  font-weight: 720;
}
.audio-controls button:hover { background: rgba(255, 255, 255, .12); }
.audio-controls button:active { transform: scale(.98); }
.audio-controls .audio-play {
  background: white;
  color: var(--accent-strong);
}
.audio-status { min-height: 1.5em; margin: 14px 0 0; color: #dce5ff; font-size: 12px; }

.analysis-wrap { padding-bottom: 94px; }
.analysis-panel {
  position: relative;
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.analysis-score {
  position: absolute;
  right: 32px;
  top: 30px;
  display: grid;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.analysis-score strong {
  color: var(--accent);
  font-size: 54px;
  line-height: .95;
  letter-spacing: -.07em;
}
.analysis-panel h2 {
  max-width: 760px;
  margin: 8px 110px 12px 0;
  font-size: clamp(30px, 3.2vw, 47px);
  line-height: 1.03;
  letter-spacing: -.05em;
}
.analysis-summary {
  max-width: 860px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 17px;
}
.analysis-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}
.analysis-list li {
  counter-increment: point;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px 14px;
  align-content: start;
  min-height: 150px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.analysis-list li:last-child { grid-column: 1 / -1; min-height: 0; }
.analysis-list li::before {
  content: "0" counter(point);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}
.analysis-list a {
  font-size: 18px;
  font-weight: 760;
  line-height: 1.3;
  text-decoration: none;
}
.analysis-list small {
  grid-column: 2;
  max-width: 58ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.latest-section { padding-bottom: 104px; }
.latest-heading { align-items: end; margin-bottom: 30px; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 18px;
}
.story-card {
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}
.story-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-quiet);
}
.story-figure { height: 100%; margin: 0; position: relative; }
.story-media img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-media img { transform: scale(1.025); }
.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(9, 13, 20, .82);
  color: white;
  font-size: 10px;
  font-weight: 760;
}
.story-body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: 15px 2px 10px;
}
.story-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.story-topline strong { color: var(--accent-strong); }
.story-card h3 {
  min-height: 2.5em;
  margin: 12px 0 8px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.story-card p {
  min-height: 3.25em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}
.story-card > a { display: block; text-decoration: none; }

.video-section {
  padding: 94px 0;
  background: #0d1219;
  color: white;
}
.video-layout {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  gap: 70px;
  align-items: center;
}
.video-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: .96;
  letter-spacing: -.065em;
}
.video-copy p:not(.kicker) { max-width: 390px; color: #aab4c0; }
.video-card { position: relative; }
.video-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #303946;
  border-radius: var(--radius);
  padding: 0;
  background: #111923;
  color: white;
  cursor: pointer;
}
.video-poster img { height: 100%; object-fit: cover; opacity: .7; }
.video-poster::after {
  content: "播放";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: white;
  color: #10141a;
  font-weight: 820;
  transform: translate(-50%, -50%);
}
.video-card iframe { aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-caption { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; }
.video-caption strong { font-size: 18px; }
.video-caption a { color: #aec1ff; font-size: 12px; }

.site-footer { padding: 52px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-layout { display: grid; justify-items: center; gap: 8px; text-align: center; }
.footer-layout p { max-width: 720px; color: var(--muted); font-size: 13px; }
.source-note { text-align: center; }
.footer-meta { display: grid; justify-items: center; gap: 4px; }
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-meta a:hover { color: var(--accent-strong); }
.media-fallback {
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 6px;
  background: var(--surface-quiet);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .site-header { height: 112px; }
  .nav-shell {
    grid-template-columns: 1fr auto;
    grid-template-rows: 62px 49px;
    gap: 0 20px;
  }
  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    border-top: 1px solid rgba(215, 220, 227, .75);
  }
  .nav-actions { grid-column: 2; grid-row: 1; }
  .hero-section { grid-template-columns: 1fr 1fr; gap: 30px; }
  .audio-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --shell: min(100% - 28px, 680px); }
  .site-header { height: 64px; }
  .nav-shell {
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr;
    gap: 12px;
  }
  .menu-button {
    display: block;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-weight: 750;
  }
  .primary-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    width: auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: auto;
    max-height: calc(100dvh - 84px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 13px 16px; border-bottom: 1px solid var(--line); }
  .site-search { display: none; }
  .nav-shell { grid-template-columns: 1fr auto auto; }
  .nav-actions { grid-column: 2; }
  .menu-button { grid-column: 3; }
  .hero-section {
    min-height: 0;
    padding-block: 20px 58px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-media { min-height: 0; }
  .hero-media img, .hero-media iframe { height: auto; aspect-ratio: 4 / 3; }
  .hero-copy { max-width: none; }
  h1 { font-size: clamp(41px, 12vw, 60px); }
  .hero-summary { margin-top: 18px; font-size: 16px; }
  .audio-feature { padding-top: 14px; }
  .audiobook-panel, .analysis-panel { padding: 24px; }
  .audio-heading { align-items: flex-start; }
  .audio-content { grid-template-columns: 1fr; gap: 24px; }
  .audio-stage { grid-template-columns: 64px 1fr; }
  .audio-index { font-size: 58px; }
  .analysis-wrap { padding-bottom: 70px; }
  .analysis-score { position: static; text-align: left; }
  .analysis-panel h2 { margin-top: 26px; }
  .analysis-list { grid-template-columns: 1fr; }
  .analysis-list li { grid-template-columns: 26px 1fr; }
  .analysis-list li:last-child { grid-column: auto; }
  .analysis-list small { grid-column: 2; }
  .latest-heading { align-items: flex-start; flex-direction: column; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card h3, .story-card p { min-height: 0; }
  .video-section { padding: 70px 0; }
  .video-layout { grid-template-columns: 1fr; gap: 36px; }
  .video-copy h2 { font-size: 48px; }
}

@media (max-width: 430px) {
  .audio-heading { display: block; }
  .live-dot { display: inline-block; margin-top: 12px; }
  .audio-controls button { padding-inline: 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Daily video broadcast ---------------------------------------------------- */
.broadcast-section {
  padding: 52px 0 78px;
  background: linear-gradient(180deg, #101722 0%, #0d1219 100%);
  color: white;
}
.broadcast-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 420px);
  gap: 64px;
  align-items: center;
}
.broadcast-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: .98;
  letter-spacing: -.06em;
}
.broadcast-copy p:not(.kicker) { max-width: 440px; color: #aab4c0; }
.broadcast-meta {
  margin-top: 22px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7f8b9b;
}
.broadcast-player {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .45);
}
.broadcast-player video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 76vh;
  object-fit: contain;
  background: #000;
}
@media (max-width: 900px) {
  .broadcast-section { padding: 34px 0 56px; }
  .broadcast-layout { grid-template-columns: 1fr; gap: 32px; }
  .broadcast-copy h2 { font-size: 42px; }
  .broadcast-player video { max-height: none; }
}

/* Merged analysis + latest heading ---------------------------------------- */
.latest-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.latest-heading .analysis-summary {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 17px;
  color: var(--muted);
}
.latest-heading .section-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  opacity: .8;
}
.latest-heading .analysis-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  white-space: nowrap;
}
.latest-heading .analysis-score span { font-size: 13px; color: var(--muted); }
.latest-heading .analysis-score strong { font-size: 26px; letter-spacing: -.02em; }
@media (max-width: 640px) {
  .latest-heading { gap: 16px; }
  .latest-heading .analysis-score { padding: 8px 12px; }
}

/* ── Night mode ─────────────────────────────────────────────────────────────
   theme.js sets data-theme on <html>. site-nav.css already followed it, which
   is why on the column pages the bar changed and the page under it did not;
   the homepage had no toggle at all. The palette above is variable-driven, so
   most of the page follows from re-pointing those variables -- only the few
   places that hardcode a light value need naming. Sections that are dark by
   design (the audiobook panel, the video and broadcast blocks) are left alone. */
[data-theme="dark"] {
  --canvas: #0c0d12;
  --surface: #14161d;
  --surface-quiet: #1b1e27;
  --ink: #e7e8ef;
  --muted: #9aa0ad;
  --line: #2a2e38;
  --accent: #6c9dff;
  --accent-strong: #8ab2ff;
  --accent-soft: #1b2540;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
/* 顶栏的背景与分隔线是写死的浅色, 不走上面那批变量 —— 只改变量的话, 夜间模式下
   品牌字已经变浅、顶栏底色还是浅的, 结果是浅字压浅底, 手机上整条几乎看不见。 */
[data-theme="dark"] .site-header {
  border-bottom-color: rgba(255, 255, 255, .10);
  background: rgba(12, 13, 18, .92);
}
[data-theme="dark"] .primary-nav { border-top-color: rgba(255, 255, 255, .10); }
[data-theme="dark"] .primary-nav a { color: #b9c0cd; }
[data-theme="dark"] .primary-nav a:hover { color: #e7e8ef; }
[data-theme="dark"] .hero-media { background: #1b1e27; }
[data-theme="dark"] .broadcast-meta { color: #8b90a0; }

.theme-toggle {
  flex-shrink: 0;
  padding: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); }
