/* ==========================================================================
   《荒野穷游秘闻录》专题页样式
   域名：xfshzn.com  ·  主题：荒野悬疑 / 暗夜电影质感
   ========================================================================== */

:root {
  --bg: #090c12;
  --bg-2: #0d121c;
  --panel: #121826;
  --panel-2: #17202f;
  --panel-3: #1d2738;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf5;
  --muted: #98a3b8;
  --muted-2: #6d7a90;
  --accent: #e8a14d;
  --accent-2: #f6c686;
  --accent-deep: #c9862f;
  --danger: #e2574b;
  --green: #4cc38a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --maxw: 1240px;
  --nav-h: 66px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(232, 161, 77, 0.32);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* 无障碍：跳转正文 */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #20160a;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* 顶部阅读进度条 */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-2), var(--danger));
  z-index: 120;
  transition: width 0.1s linear;
}

/* ==========================================================================
   导航
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(9, 12, 18, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #22160a;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 6px 18px -6px rgba(232, 161, 77, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 15px;
}

.brand-en {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}
.menu-toggle span {
  top: 20px;
}
.menu-toggle span::before {
  top: -6px;
  left: 0;
}
.menu-toggle span::after {
  top: 6px;
  left: 0;
}
.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(232, 161, 77, 0.16), transparent 60%),
    radial-gradient(720px 460px at 8% 92%, rgba(226, 87, 75, 0.12), transparent 60%),
    linear-gradient(180deg, #0c1019 0%, var(--bg) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 40%, transparent 78%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-cover {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
}

.hero-cover figcaption {
  margin: 12px 4px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.hero-cover figcaption b {
  color: var(--text);
  font-weight: 700;
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(232, 161, 77, 0.4);
  background: rgba(232, 161, 77, 0.08);
  color: var(--accent-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(180deg, var(--accent-2), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-dek {
  margin: 0 0 26px;
  color: #c6cedd;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  color: #241708;
  box-shadow: 0 12px 28px -10px rgba(232, 161, 77, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(232, 161, 77, 0.65);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
}

.play-ico {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 12px 26px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta span {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.hero-meta i {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   布局：侧栏 + 正文
   ========================================================================== */
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 40px) 40px;
}

.aside {
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.toc-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc li a {
  display: flex;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}

.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 12px;
  opacity: 0.85;
}

.toc li a:hover,
.toc li a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.toc-aside {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(232, 161, 77, 0.14), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.toc-aside b {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 6px;
}
.toc-aside p {
  margin: 0 0 8px;
}
.toc-aside p:last-child {
  margin: 0;
}

.article {
  min-width: 0;
}

/* 章节标题 */
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.01em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.sec-title .num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.lede {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--accent-2);
}

.article section {
  margin-bottom: clamp(40px, 6vw, 68px);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.article p {
  color: #c6cedd;
}

.article p strong {
  color: var(--text);
}

/* 配图 */
.figure {
  margin: 26px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.figure:hover img {
  transform: scale(1.035);
}

.figure figcaption {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--muted);
}
.figure figcaption b {
  color: var(--accent-2);
  font-weight: 700;
}

.figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.figure-row .figure {
  margin: 0;
}

/* 列表 */
.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #c6cedd;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(76, 195, 138, 0.16);
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}

/* 分幕 */
.act {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 12px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
}
.act span {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(232, 161, 77, 0.12);
  color: var(--accent-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   播放器
   ========================================================================== */
.player-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #05070c;
  box-shadow: var(--shadow);
}

.player-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070c;
}

.player-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.15), rgba(5, 7, 12, 0.6));
}

.big-play {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(232, 161, 77, 0.95);
  color: #241708;
  box-shadow: 0 14px 40px -8px rgba(232, 161, 77, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}
.big-play:hover {
  transform: scale(1.08);
}
.big-play .play-ico {
  border-width: 12px 0 12px 20px;
  margin-left: 4px;
}

.player-ep {
  margin: 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(9, 12, 18, 0.72);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 600;
}

.player-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 161, 77, 0.1);
  border: 1px solid rgba(232, 161, 77, 0.28);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   选集
   ========================================================================== */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.episode-grid a {
  padding: 12px 6px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 600;
  color: #c6cedd;
  transition: 0.18s;
}
.episode-grid a:hover,
.episode-grid a:focus-visible {
  border-color: rgba(232, 161, 77, 0.5);
  color: var(--accent-2);
  transform: translateY(-2px);
}
.episode-grid a.latest {
  background: linear-gradient(145deg, var(--accent-2), var(--accent-deep));
  color: #241708;
  border-color: transparent;
  font-weight: 800;
}

/* ==========================================================================
   影评
   ========================================================================== */
.rating-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
}

.rating-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

.score {
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
}
.score small {
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
}
.rating-total p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.stars {
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 18px;
}
.stars .empty {
  color: var(--muted-2);
}

.rating-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.rating-detail .row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  align-items: center;
  gap: 14px;
}
.rating-detail .label {
  font-size: 14px;
  font-weight: 600;
}
.rating-detail .label small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.rating-detail .bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.rating-detail .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-2));
  animation: fillBar 1.2s ease both;
  transform-origin: left;
}
.rating-detail .val {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-2);
  text-align: right;
}

@keyframes fillBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.comment {
  display: flex;
  gap: 14px;
  padding: 18px;
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment .av {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-2);
}

.comment .head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
.comment .head time {
  color: var(--muted-2);
  font-weight: 500;
  font-size: 12px;
}
.comment p {
  margin: 6px 0 0;
  font-size: 14.5px;
}

.tag-praise {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232, 161, 77, 0.12);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   分享
   ========================================================================== */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
}
.share-btn span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 13px;
}
.share-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 161, 77, 0.5);
  background: var(--panel-2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 300;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
}
.faq-item summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ==========================================================================
   相关推荐
   ========================================================================== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rel-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.22s, border-color 0.22s;
}
.rel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 161, 77, 0.4);
}
.rel-card .pic img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.rel-card .info {
  padding: 14px 16px;
}
.rel-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.rel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(36px, 5vw, 60px) clamp(16px, 4vw, 40px) 28px;
}

footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: var(--maxw);
  margin: 0 auto;
}

footer h5 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
}
footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 46ch;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
footer ul a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.18s;
}
footer ul a:hover {
  color: var(--accent-2);
}

footer .bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12.5px;
}

.brand-mini {
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--muted);
}

/* ==========================================================================
   播放弹窗
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(6px);
}

.modal-body {
  position: relative;
  width: min(920px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s;
}
.modal.open .modal-body {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(9, 12, 18, 0.7);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070c;
}
.modal-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-playing {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.modal-playing .play-ico {
  border-width: 14px 0 14px 24px;
  color: #fff;
  opacity: 0.85;
}
.modal-playing p {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
}
.modal-playing small {
  color: var(--muted);
  font-size: 12.5px;
}

/* ==========================================================================
   动画 / 响应式
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .aside {
    position: static;
    order: 2;
  }
  .article {
    order: 1;
  }
  .toc {
    display: none;
  }
  .toc-aside {
    margin-top: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-cover {
    max-width: 360px;
    margin: 0 auto;
  }
  .rating-wrap {
    grid-template-columns: 1fr;
  }
  .rating-total {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
  }
  footer .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(9, 12, 18, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-meta {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
  }
  .figure-row,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .rating-detail .row {
    grid-template-columns: 84px 1fr 38px;
    gap: 10px;
  }
  footer .grid {
    grid-template-columns: 1fr;
  }
}
