/* ============================================================
   燕云十六声 · 介绍页样式
   配色：墨 / 宣纸 / 鎏金 / 朱砂
   ============================================================ */

/* ---------- 1. 变量与基础 ---------- */
:root {
  --ink-900: #07090a;
  --ink-800: #0b0e0f;
  --ink-700: #101415;
  --ink-600: #161b1d;
  --ink-500: #1e2427;

  --paper: #ece6da;
  --paper-2: #c8c1b3;
  --muted: #8b877d;

  --gold: #c8a06a;
  --gold-soft: #e2c692;
  --cinnabar: #a8382f;

  --line: rgba(236, 230, 218, 0.11);
  --line-strong: rgba(236, 230, 218, 0.2);

  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    "STZhongsong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ink-800);
  color: var(--paper-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(200, 160, 106, 0.09), transparent 70%),
    radial-gradient(760px 520px at 88% 22%, rgba(78, 122, 106, 0.08), transparent 72%),
    radial-gradient(1000px 700px at 50% 108%, rgba(168, 56, 47, 0.06), transparent 70%);
}

body.no-scroll {
  overflow: hidden;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--paper);
  letter-spacing: 0.03em;
}

p {
  margin: 0;
}

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
  color: var(--muted);
}

::selection {
  background: rgba(200, 160, 106, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 2. 顶部进度条 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--gold-soft));
}

/* ---------- 3. 页头与导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(9, 12, 13, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(1320px, 100% - 48px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-seal {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 160, 106, 0.5);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold);
  background: rgba(200, 160, 106, 0.07);
  letter-spacing: 0;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease);
}

.brand:hover .brand-seal {
  transform: rotate(-6deg);
  background: rgba(200, 160, 106, 0.16);
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
  color: var(--paper);
  letter-spacing: 0.16em;
}

.brand-name em {
  margin-top: 7px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.34em;
  color: var(--muted);
}

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

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--paper-2);
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.45s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold-soft);
}

.nav-link.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 4. 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 40px);
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(1100px, 120vw);
  height: 620px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 160, 106, 0.16), transparent 78%);
  filter: blur(10px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100% - 44px);
  margin-inline: auto;
  padding-bottom: clamp(30px, 4vw, 54px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: rgba(226, 198, 146, 0.9);
  margin-bottom: 26px;
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 160, 106, 0.7));
}

.hero-kicker::after {
  background: linear-gradient(90deg, rgba(200, 160, 106, 0.7), transparent);
}

.hero-title {
  display: flex;
  justify-content: center;
  margin: 0;
}

.hero-logo {
  width: clamp(210px, 30vw, 330px);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}

.hero-slogan {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-family: var(--serif);
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--paper);
  text-indent: 0.14em;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  width: min(600px, 100%);
  margin: clamp(18px, 2.2vw, 26px) auto 0;
  font-size: 15px;
  line-height: 2;
  color: rgba(200, 193, 179, 0.82);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(26px, 3vw, 38px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: 1px;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease),
    color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #17130c;
  box-shadow: 0 10px 30px -14px rgba(200, 160, 106, 0.9);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -16px rgba(200, 160, 106, 0.95);
}

.btn-ghost {
  border-color: rgba(236, 230, 218, 0.28);
  color: var(--paper-2);
}

.btn-ghost:hover {
  border-color: rgba(200, 160, 106, 0.7);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  margin-top: clamp(24px, 3vw, 34px);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-tags li + li::before {
  content: "·";
  margin-right: 22px;
  color: rgba(200, 160, 106, 0.6);
}

.hero-visual {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  max-height: min(58vh, 560px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
}

.hero-visual img {
  width: 100%;
  height: auto;
  transform: scale(1.02);
}

.hero-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 26px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(236, 230, 218, 0.5);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

/* ---------- 5. 通用区块 ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9vw, 128px) 0;
  scroll-margin-top: calc(var(--header-h) - 6px);
}

.container {
  width: min(1220px, 100% - 48px);
  margin-inline: auto;
}

.sec-head {
  max-width: 780px;
  margin-bottom: clamp(38px, 5vw, 62px);
}

.sec-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: rgba(200, 160, 106, 0.85);
}

.sec-index span {
  padding: 3px 7px 4px;
  border: 1px solid rgba(200, 160, 106, 0.42);
  border-radius: 1px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--gold);
}

.sec-title {
  font-size: clamp(25px, 3.5vw, 42px);
  line-height: 1.42;
  letter-spacing: 0.06em;
}

.sec-title em {
  font-style: normal;
  color: var(--gold-soft);
  position: relative;
  white-space: nowrap;
}

.sec-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  background: linear-gradient(90deg, rgba(200, 160, 106, 0.32), transparent);
  border-radius: 50%;
}

.sec-lead {
  margin-top: 20px;
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  max-width: 660px;
}

.sec-head-inline {
  margin-bottom: 26px;
}

.sec-head-inline .sec-title {
  font-size: clamp(23px, 2.8vw, 34px);
}

/* ---------- 6. 壹 · 简介 ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.intro-text p {
  font-size: 15px;
  line-height: 2.1;
  color: rgba(200, 193, 179, 0.88);
  margin-bottom: 18px;
}

.intro-note {
  margin-top: 24px;
  padding-left: 14px;
  border-left: 2px solid rgba(200, 160, 106, 0.4);
  font-size: 12px !important;
  line-height: 1.9 !important;
  color: var(--muted) !important;
}

.fact-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  padding: 6px 26px;
}

.fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-row dt {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.fact-row dd {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--paper);
  text-align: right;
  letter-spacing: 0.04em;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-strip li {
  padding: 32px 30px;
  border-left: 1px solid var(--line);
}

.stat-strip li:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-strip strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

.stat-strip span {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 7. 贰 · 世界观 ---------- */
.section-world {
  background: linear-gradient(180deg, rgba(7, 9, 10, 0), rgba(7, 9, 10, 0.85) 40%, rgba(7, 9, 10, 0.85) 60%, rgba(7, 9, 10, 0));
}

.world-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 380px at 88% 8%, rgba(168, 56, 47, 0.12), transparent 72%),
    radial-gradient(720px 420px at 6% 78%, rgba(78, 122, 106, 0.1), transparent 74%);
}

.world-quote {
  margin: 0 0 clamp(44px, 5vw, 64px);
  padding: 4px 0 4px 30px;
  border-left: 2px solid rgba(200, 160, 106, 0.55);
  max-width: 880px;
}

.world-quote p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.95;
  color: var(--paper);
  letter-spacing: 0.05em;
}

.world-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  position: relative;
  padding: 34px 28px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.004));
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    background-color 0.5s var(--ease);
}

.pillar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  transition: width 0.6s var(--ease);
}

.pillar:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 160, 106, 0.36);
  background-color: rgba(255, 255, 255, 0.035);
}

.pillar:hover::after {
  width: 100%;
}

.pillar-no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(200, 160, 106, 0.75);
}

.pillar h3 {
  margin: 14px 0 12px;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.pillar p {
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(48px, 6vw, 72px);
}

.timeline li {
  position: relative;
  padding: 26px 34px 0 0;
  border-top: 1px solid var(--line);
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 160, 106, 0.12);
}

.tl-year {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
}

.tl-body h4 {
  margin: 10px 0 8px;
  font-size: 15px;
  color: var(--paper);
}

.tl-body p {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 260px;
}

/* ---------- 8. 叁 · 玩法 ---------- */
.play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.play-card {
  position: relative;
  padding: 32px 28px 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.004));
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.play-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 160, 106, 0.4);
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.9);
}

.play-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 160, 106, 0.34);
  border-radius: 50%;
  color: var(--gold);
  transition: background-color 0.5s var(--ease), transform 0.6s var(--ease);
}

.play-card:hover .play-icon {
  background: rgba(200, 160, 106, 0.12);
  transform: rotate(-8deg);
}

.play-icon svg {
  width: 21px;
  height: 21px;
}

.play-card h3 {
  margin: 20px 0 10px;
  font-size: 17px;
  line-height: 1.6;
}

.play-card p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}

.play-tag {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 11px !important;
  letter-spacing: 0.16em;
  color: rgba(200, 160, 106, 0.75) !important;
}

/* ---------- 9. 肆 · 美术 ---------- */
.art-layout {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(34px, 5vw, 66px);
  align-items: center;
}

.art-figure {
  margin: 0;
  position: relative;
}

.art-figure img {
  width: 100%;
  border: 1px solid var(--line);
}

.art-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
}

.art-figure figcaption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.art-text p {
  font-size: 14px;
  line-height: 2.1;
  color: rgba(200, 193, 179, 0.85);
  margin-bottom: 16px;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.palette li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--paper-2);
  letter-spacing: 0.08em;
}

.palette code {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0;
}

.sw {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.sw-dai { background: #2f3a3c; }
.sw-zhe { background: #8a5a3b; }
.sw-xuan { background: #e7e0d2; }
.sw-zhu { background: #a8382f; }
.sw-jin { background: #c8a06a; }

/* ---------- 10. 伍 · 特色展示 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}

.shot {
  margin: 0;
  cursor: pointer;
}

.shot-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0d0e;
}

.shot-media::before {
  content: "官方素材 · yysls.cn";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(236, 230, 218, 0.72);
  background: rgba(6, 8, 9, 0.55);
  border: 1px solid rgba(236, 230, 218, 0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.shot-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42));
  transition: opacity 0.5s var(--ease);
}

.shot-media img {
  width: 100%;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.shot:hover .shot-media img,
.shot:focus-visible .shot-media img {
  transform: scale(1.045);
}

.shot:hover .shot-media::after,
.shot:focus-visible .shot-media::after {
  opacity: 1;
}

.shot figcaption {
  padding: 16px 2px 0;
}

.shot figcaption h3 {
  font-size: 16.5px;
  letter-spacing: 0.08em;
  transition: color 0.4s var(--ease);
}

.shot:hover figcaption h3 {
  color: var(--gold-soft);
}

.shot figcaption p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.gallery-note {
  margin-top: clamp(28px, 3vw, 40px);
  padding-left: 14px;
  border-left: 2px solid rgba(200, 160, 106, 0.32);
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  max-width: 820px;
}

/* ---------- 11. 陆 · 素材来源 ---------- */
.source-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.source-table {
  width: 100%;
  border-collapse: collapse;
}

.source-table caption {
  text-align: left;
  padding-bottom: 16px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.source-table th,
.source-table td {
  padding: 14px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.source-table th {
  padding-top: 0;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}

.source-table td:first-child,
.source-table th:first-child {
  padding-left: 0;
  color: var(--paper-2);
}

.source-table a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(200, 160, 106, 0.35);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.source-table a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.source-aside h3 {
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--paper);
  margin-bottom: 8px;
}

.link-list li {
  border-bottom: 1px dashed var(--line);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  font-size: 13.5px;
  color: var(--paper-2);
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}

.link-list a span {
  color: var(--muted);
  font-size: 12px;
}

.link-list a:hover {
  color: var(--gold-soft);
  padding-left: 8px;
}

.disclaimer {
  margin-top: 32px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.disclaimer h4 {
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.disclaimer p {
  font-size: 12px;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 8px;
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 54px 0 70px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 8, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand img {
  width: 148px;
  opacity: 0.82;
}

.footer-brand p {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-fine {
  font-size: 11.5px;
  line-height: 2.1;
  color: rgba(139, 135, 125, 0.85);
  text-align: right;
}

/* ---------- 13. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 150;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(200, 160, 106, 0.4);
  border-radius: 50%;
  background: rgba(10, 13, 14, 0.78);
  color: var(--gold);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
    background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.to-top svg {
  width: 19px;
  height: 19px;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--gold);
  color: #14100a;
}

/* ---------- 14. 图片查看器 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 32px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 6, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
  animation: fadeIn 0.3s var(--ease);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  animation: lbIn 0.42s var(--ease);
}

.lb-figure {
  margin: 0;
}

.lb-figure img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #050708;
}

.lb-figure figcaption {
  padding-top: 18px;
  max-width: 820px;
}

.lb-count {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.lb-figure h4 {
  margin: 8px 0 6px;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.lb-figure p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--paper-2);
}

.lb-figure small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.lb-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(236, 230, 218, 0.22);
  border-radius: 50%;
  background: rgba(10, 13, 14, 0.7);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.lb-btn svg {
  width: 20px;
  height: 20px;
}

.lb-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100a;
}

.lb-close {
  position: absolute;
  top: -58px;
  right: 0;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 34%;
  z-index: 2;
}

.lb-prev { left: -62px; }
.lb-next { right: -62px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lbIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- 15. 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav {
    gap: 22px;
  }

  .nav-link {
    font-size: 13px;
  }

  .lb-prev { left: -16px; }
  .lb-next { right: -16px; }
}

@media (max-width: 940px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 16px;
    background: rgba(9, 12, 13, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    padding: 15px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(236, 230, 218, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    color: var(--gold-soft);
  }

  .hero-visual {
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .hero-visual img {
    height: 100%;
    object-fit: cover;
    object-position: 50% 58%;
  }

  .intro-grid,
  .art-layout,
  .source-layout {
    grid-template-columns: 1fr;
  }

  .art-figure {
    order: -1;
  }

  .pillar-grid,
  .play-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .timeline li {
    padding: 22px 0 0 24px;
    border-top: none;
    border-left: 1px solid var(--line);
  }

  .timeline li::before {
    top: 0;
    left: -4px;
  }

  .timeline li:first-child {
    border-left: none;
    padding-left: 0;
  }

  .timeline li:first-child::before {
    left: 0;
  }

  .tl-body p {
    max-width: none;
  }

  .lightbox {
    padding: 20px;
  }

  .lb-figure img {
    max-height: 56vh;
  }

  .lb-close {
    top: -50px;
  }
}

@media (max-width: 720px) {
  .container,
  .header-inner {
    width: calc(100% - 36px);
  }

  .hero {
    padding-top: calc(var(--header-h) + 26px);
  }

  .hero-kicker {
    font-size: 10.5px;
    letter-spacing: 0.22em;
    margin-bottom: 20px;
  }

  .hero-kicker::before,
  .hero-kicker::after {
    width: 18px;
  }

  .hero-slogan {
    letter-spacing: 0.1em;
  }

  .hero-tags {
    gap: 6px 14px;
    font-size: 11px;
  }

  .hero-tags li + li::before {
    content: none;
    margin: 0;
  }

  .hero-visual figcaption {
    right: 14px;
    bottom: 16px;
    font-size: 10px;
  }

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

  .stat-strip {
    grid-template-columns: 1fr;
    border-bottom: none;
  }

  .stat-strip li {
    padding: 20px 0;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }

  .stat-strip li:first-child {
    border-top: 1px solid var(--line);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .footer-fine {
    text-align: left;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: -56px;
  }

  .lb-prev { left: 0; }
  .lb-next { right: 0; }

  .lightbox {
    padding: 56px 18px 88px;
  }

  .lb-close {
    top: -46px;
  }
}

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

  .fact-card {
    padding: 4px 18px;
  }

  .fact-row {
    flex-direction: column;
    gap: 4px;
  }

  .fact-row dd {
    text-align: left;
  }

  .source-table th,
  .source-table td {
    padding: 12px 8px;
    font-size: 12px;
  }

  /* 窄屏下表格改为「条目卡」堆叠，避免三列挤压 */
  .source-table thead {
    display: none;
  }

  .source-table tbody tr {
    display: block;
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--line);
  }

  .source-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }

  .source-table td:first-child {
    display: block;
    padding-bottom: 6px;
    text-align: left;
    font-family: var(--serif);
    font-size: 14px;
    color: var(--paper);
  }

  .source-table td::before {
    flex-shrink: 0;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-align: left;
  }

  .source-table td:nth-child(2)::before {
    content: "页面位置";
  }

  .source-table td:nth-child(3)::before {
    content: "来源";
  }

  .source-table td:first-child::before {
    content: none;
  }

  .btn {
    flex: 1 1 140px;
    min-width: 0;
    padding: 13px 18px;
  }
}

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 18. 打印 ---------- */
@media print {
  .site-header,
  .to-top,
  .lightbox,
  .progress {
    display: none !important;
  }

  body {
    background: #fff;
    color: #222;
  }
}
