:root {
  color-scheme: dark;
  --bg: #131211;
  --surface: #1b1a18;
  --surface-2: #22201d;
  --paper: #f4f0ea;
  --paper-ink: #27242a;
  --muted: #9d968c;
  --line: rgba(244, 240, 232, 0.1);
  --accent: #f36f4f;
  --accent-2: #65b58e;
  --gold: #c7a75b;
  --ink: #eee8df;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  font-family: "Space Grotesk", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(19, 18, 17, 0.86);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  min-height: 62px;
  padding: 0 52px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 160px;
}

.brand-mark {
  align-items: center;
  border: 1px solid rgba(243, 111, 79, 0.55);
  border-radius: 7px;
  color: var(--accent);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 10px;
}

.nav-links a,
.filter,
.icon-button,
.login-button,
.reader-toolbar button,
.publish-form button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover,
.filter.active,
.filter:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.header-tools {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.search-box {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  width: min(22vw, 230px);
}

.search-box input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.icon-button,
.login-button,
.reader-toolbar button {
  background: var(--surface);
  border-color: var(--line);
}

main {
  margin: 0 auto;
  max-width: 1220px;
  padding: 48px 52px 72px;
}

.hero-section {
  padding: 18px 0 44px;
}

.eyebrow,
.kicker,
.paper-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  margin-bottom: 18px;
  max-width: 760px;
}

h1::first-line {
  color: var(--ink);
}

.hero-section h1 {
  color: var(--accent);
}

.hero-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 720px;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 0 0 20px;
}

.section-heading h2 {
  font-size: 20px;
  margin: 0;
}

.text-link {
  color: var(--accent);
  font-size: 14px;
}

.featured-card {
  background:
    linear-gradient(120deg, rgba(37, 84, 65, 0.8), rgba(20, 27, 31, 0.95)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  min-height: 330px;
  overflow: hidden;
  padding: 36px;
}

.featured-content {
  align-self: end;
  max-width: 760px;
}

.meta-row {
  align-items: center;
  color: rgba(238, 232, 223, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.meta-row.compact {
  font-size: 12px;
  margin-bottom: 12px;
}

.pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
}

.pill.success {
  color: #8bcba9;
}

.pill.tone {
  border-color: rgba(199, 167, 91, 0.38);
  color: var(--gold);
}

.featured-card h3 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.14;
  margin-bottom: 18px;
}

.featured-card p {
  color: rgba(238, 232, 223, 0.72);
  font-size: 16px;
  line-height: 1.75;
  max-width: 700px;
}

.featured-image {
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.15)),
    url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=900&q=80") center / cover;
  border-radius: var(--radius);
  min-height: 250px;
  opacity: 0.9;
}

.card-footer {
  align-items: center;
  color: rgba(238, 232, 223, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.play-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--ink);
  min-height: 34px;
  padding: 7px 12px;
}

.play-chip.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.content-grid-section,
.audio-section,
.reader-section,
.publish-section {
  padding-top: 58px;
}

.filter-group {
  display: flex;
  gap: 8px;
}

.filter {
  background: var(--surface);
}

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

.article-card {
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--paper-ink);
  display: block;
  min-width: 0;
  overflow: hidden;
}

.article-card img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.article-body {
  padding: 20px;
}

.article-body .pill {
  background: rgba(39, 36, 42, 0.06);
  border-color: rgba(39, 36, 42, 0.1);
  color: #514a55;
}

.article-body h3,
.audio-item h3 {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.article-body p {
  color: #6e6871;
  line-height: 1.7;
}

.date-line {
  color: var(--muted);
  font-size: 13px;
}

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

.audio-item {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  padding: 18px;
}

.round-play {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.waveform {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(6, 1fr);
  max-width: 340px;
}

.waveform span {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
  display: block;
  height: 5px;
  opacity: 0.75;
}

.waveform span:nth-child(2n) {
  opacity: 0.38;
}

.reader-toolbar {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 auto 28px;
  max-width: 880px;
  padding: 12px 16px;
}

.reader-toolbar button {
  margin-left: auto;
}

.reader-paper {
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--paper-ink);
  margin: 0 auto;
  max-width: 880px;
  padding: clamp(30px, 7vw, 80px);
}

.reader-paper h2 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.15;
}

.lead {
  color: #706a74;
  font-size: 20px;
  font-style: italic;
  line-height: 1.8;
}

.reader-paper p {
  line-height: 1.9;
}

.summary-box {
  background: #ebe5df;
  border: 1px solid #d9d0c8;
  border-radius: var(--radius);
  margin: 32px 0;
  padding: 22px;
}

.publish-section {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

.publish-section p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
}

.publish-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  padding: 22px;
}

.publish-form label {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.publish-form input,
.publish-form select,
.publish-form textarea {
  background: #11100f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  outline: 0;
  padding: 10px 12px;
}

.publish-form textarea {
  min-height: 110px;
  resize: vertical;
}

.publish-form button {
  background: var(--accent);
  border: 0;
  color: #fff;
  justify-self: start;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 34px 20px;
}

.site-footer strong,
.site-footer a {
  color: var(--ink);
}

.detail-shell {
  max-width: 1280px;
}

.crumbs {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px 16px;
}

.crumbs a:hover {
  color: var(--ink);
}

.detail-hero {
  align-items: stretch;
  background:
    linear-gradient(120deg, rgba(37, 84, 65, 0.74), rgba(20, 27, 31, 0.96)),
    url("https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=1600&q=80") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin-bottom: 34px;
  min-height: 430px;
  padding: clamp(28px, 6vw, 64px);
}

.detail-hero-copy {
  align-self: end;
  max-width: 840px;
}

.detail-hero h1 {
  color: #f8f2e7;
  font-size: clamp(34px, 4.7vw, 60px);
  line-height: 1.08;
  max-width: 930px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.detail-hero h1::first-line {
  color: #f8f2e7;
}

.detail-hero p {
  color: rgba(238, 232, 223, 0.75);
  font-size: 18px;
  line-height: 1.8;
  max-width: 760px;
}

.detail-hero .meta-row {
  color: rgba(238, 232, 223, 0.72);
}

.detail-hero .pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.detail-hero .play-chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8f2e7;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stat-card {
  align-self: end;
  background: rgba(19, 18, 17, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 22px;
}

.hero-stat-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.hero-stat-card strong {
  font-size: 28px;
  line-height: 1.2;
}

.hero-stat-card small {
  color: var(--muted);
  line-height: 1.6;
}

.detail-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 250px minmax(0, 1fr);
}

.detail-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 86px;
}

.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.side-panel a,
.side-panel span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.side-panel a:hover {
  color: var(--accent);
}

.source-card strong {
  line-height: 1.45;
}

.detail-paper {
  max-width: none;
}

.detail-paper h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 42px;
}

.detail-paper h2:first-of-type {
  margin-top: 0;
}

.audio-player-card {
  align-items: center;
  background: #ebe5df;
  border: 1px solid #d9d0c8;
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
  margin: 34px 0;
  padding: 20px;
}

.audio-player-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.audio-player-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.audio-player-top span {
  color: #756e76;
  font-size: 13px;
}

.progress-track {
  background: #d9d0c8;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-track span {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 38%;
}

.audio-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audio-chapters button {
  background: #f7f3ed;
  border: 1px solid #d9d0c8;
  border-radius: 999px;
  color: #5b535b;
  min-height: 30px;
  padding: 5px 10px;
  white-space: nowrap;
}

.detail-figure {
  margin: 38px 0;
}

.detail-figure img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  width: 100%;
}

.detail-figure figcaption {
  color: #7b747c;
  font-size: 13px;
  margin-top: 10px;
}

.detail-paper blockquote {
  border-left: 4px solid var(--accent);
  color: #4a444c;
  font-size: 22px;
  line-height: 1.7;
  margin: 34px 0;
  padding: 4px 0 4px 22px;
}

.revision-box {
  background: #ebe5df;
  border: 1px solid #d9d0c8;
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  margin-top: 40px;
  padding: 22px;
}

.revision-box h3 {
  margin-bottom: 0;
}

.revision-box div {
  border-top: 1px solid #d9d0c8;
  padding-top: 14px;
}

.revision-box span {
  color: #7b747c;
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.revision-box p {
  margin-bottom: 0;
}

.related-section {
  padding-top: 58px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 14px 22px;
  }

  .nav-links,
  .header-tools {
    justify-content: start;
    overflow-x: auto;
  }

  .search-box {
    width: min(100%, 320px);
  }

  main {
    padding: 34px 22px 56px;
  }

  .featured-card,
  .publish-section,
  .detail-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 16px;
    flex-direction: column;
  }

  .detail-sidebar {
    position: static;
  }

  .side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel .kicker,
  .source-card strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  .featured-card {
    padding: 24px;
  }

  .audio-item {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

  .audio-player-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .audio-player-top {
    align-items: start;
    flex-direction: column;
  }

  .audio-item .date-line {
    grid-column: 2;
  }

  .reader-toolbar button {
    margin-left: 0;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   以下为静态生成器新增样式（浅色主题 / 页脚 / 搜索 / 文章页组件）
   ============================================================ */

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2ec;
  --surface: #ffffff;
  --surface-2: #f1ece4;
  --muted: #6f6960;
  --line: rgba(39, 36, 42, 0.12);
  --ink: #27242a;
  --shadow: 0 24px 60px rgba(39, 36, 42, 0.12);
}

[data-theme="light"] .site-header {
  background: rgba(246, 242, 236, 0.88);
}

[data-theme="light"] .nav-links a.active,
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .filter.active,
[data-theme="light"] .filter:hover {
  background: rgba(39, 36, 42, 0.08);
}

[data-theme="light"] .pill {
  background: rgba(39, 36, 42, 0.05);
  border-color: rgba(39, 36, 42, 0.12);
}

[data-theme="light"] .pill.success {
  color: #2f7d54;
}

[data-theme="light"] .meta-row {
  color: #6f6960;
}

[data-theme="light"] .article-card {
  background: #ffffff;
  border: 1px solid rgba(39, 36, 42, 0.1);
}

[data-theme="light"] .publish-form input,
[data-theme="light"] .publish-form select,
[data-theme="light"] .publish-form textarea {
  background: #faf7f2;
}

/* 页脚 */
.site-footer {
  display: block;
  padding: 44px 52px 36px;
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1220px;
}

.footer-col p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.footer-col a {
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 2;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px;
  justify-content: space-between;
  margin: 28px auto 0;
  max-width: 1220px;
  padding-top: 18px;
}

/* 正文组件 */
.post-content img {
  border-radius: var(--radius);
  height: auto;
  max-width: 100%;
}

.post-content table {
  border-collapse: collapse;
  margin: 26px 0;
  width: 100%;
}

.post-content th,
.post-content td {
  border: 1px solid #d9d0c8;
  padding: 10px 14px;
  text-align: left;
}

.post-content th {
  background: #ebe5df;
}

.post-content pre {
  background: #2a272c;
  border-radius: var(--radius);
  color: #efe9e0;
  overflow-x: auto;
  padding: 18px;
}

.post-content code {
  font-size: 0.92em;
}

.summary-box strong {
  display: block;
  margin-bottom: 10px;
}

.summary-box p:last-child,
.viz-module p:last-child {
  margin-bottom: 0;
}

.viz-module {
  margin: 30px 0;
}

.audio-player-card audio {
  width: 100%;
}

.member-note {
  background: rgba(199, 167, 91, 0.16);
  border: 1px solid rgba(199, 167, 91, 0.45);
  border-radius: var(--radius);
  color: #7c6227;
  font-size: 14px;
  margin-bottom: 26px;
  padding: 12px 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.tag-row a {
  background: #ebe5df;
  border: 1px solid #d9d0c8;
  border-radius: 999px;
  color: #5b535b;
  font-size: 13px;
  padding: 6px 12px;
}

.tag-row a:hover {
  color: var(--accent);
}

.source-link-box {
  align-items: center;
  background: #ebe5df;
  border: 1px solid #d9d0c8;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 36px;
  padding: 18px 22px;
}

.source-link-box a {
  color: var(--accent);
  font-weight: 600;
}

/* 列表页 / 搜索页 */
.page-header {
  padding: 8px 0 34px;
}

.page-header h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-header p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

.big-search {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 18px;
  outline: none;
  padding: 16px 18px;
  width: 100%;
}

.big-search:focus {
  border-color: var(--accent);
}

.hot-terms {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  margin: 16px 0 34px;
}

.hot-terms button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 6px 12px;
}

.search-meta {
  color: var(--muted);
  margin-bottom: 18px;
}

.empty-note {
  color: var(--muted);
  padding: 30px 0;
}

/* 订阅模块 */
.subscribe-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subscribe-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 20px;
}

.subscribe-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.subscribe-form input {
  background: #fff;
  border: 1px solid #d9d0c8;
  border-radius: var(--radius);
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
}

.subscribe-form button {
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  padding: 10px 16px;
}

/* 语言切换 / 阅读进度 / 提示 */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-switch a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 12px;
}

.lang-switch a.current,
.lang-switch a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reading-progress {
  height: 3px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 60;
}

.reading-progress span {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  display: block;
  height: 100%;
  width: 0;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 28px;
  box-shadow: var(--shadow);
  color: var(--ink);
  left: 50%;
  padding: 10px 18px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 99;
}

@media (max-width: 920px) {
  .footer-grid,
  .subscribe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-grid,
  .subscribe-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   交互反馈与可访问性增强
   ============================================================ */

/* 卡片 hover：轻微上浮 + 阴影 */
.article-card,
.featured-card,
.subscribe-card,
.audio-item {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.article-card:hover,
.subscribe-card:hover,
.audio-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.featured-card:hover {
  transform: translateY(-2px);
}

[data-theme="light"] .article-card:hover,
[data-theme="light"] .subscribe-card:hover,
[data-theme="light"] .audio-item:hover {
  border-color: rgba(39, 36, 42, 0.16);
  box-shadow: 0 14px 34px rgba(39, 36, 42, 0.14);
}

/* 交互元素：平滑过渡 */
.nav-links a,
.filter,
.icon-button,
.login-button,
.play-chip,
.pill,
.text-link,
.tag-row a,
.hot-terms button,
.lang-switch a,
.side-panel a,
.footer-col a {
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.play-chip:hover {
  transform: translateY(-1px);
}

.text-link:hover {
  color: var(--gold);
}

/* 键盘焦点可见环 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .article-card:hover,
  .featured-card:hover,
  .subscribe-card:hover,
  .audio-item:hover,
  .play-chip:hover {
    transform: none;
  }
}
