/* ==========================================================================
   牌乐门主页 · 共享站点样式 /assets/site.css
   结构：1 Reset · 2 变量 · 3 排版 · 4 通用容器 · 5 头部 · 6 页脚
        7 按钮 · 8 卡片折页 · 9 索引组件 · 10 图片容器 · 11 动效 · 12 响应式
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body { margin: 0; }

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; }

::selection { background: rgba(242, 199, 110, 0.32); }

/* ---------- 2. 变量 ---------- */
:root {
  color-scheme: light;

  --green-950: #061F1A;
  --green-900: #082B24;
  --green-800: #0B3B32;
  --green-700: #123F37;
  --green-600: #194B42;
  --red-700: #5A1F2A;
  --red-600: #712834;
  --gold: #C9A45C;
  --gold-bright: #F2C76E;
  --gold-deep: #8C6A36;
  --ivory: #F5EFE2;
  --paper: #E7DFCE;
  --ink: #111815;
  --mist: #769183;

  --line-gold: rgba(201, 164, 92, 0.34);
  --line-gold-soft: rgba(201, 164, 92, 0.16);
  --line-ink: rgba(17, 24, 21, 0.14);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --container: 1280px;
  --gutter: clamp(18px, 4.2vw, 56px);

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-line: 380ms;
  --dur-fold: 220ms;
  --dur-state: 150ms;
}

/* ---------- 3. 排版基础 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

p { max-width: 68ch; }

strong, b { font-weight: 600; }

.theme-dark {
  background-color: var(--green-800);
  color: var(--ivory);
}
.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4 { color: var(--ivory); }
.theme-dark p { color: rgba(245, 239, 226, 0.82); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: clamp(12px, 3vw, 28px);
  top: -120px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(150deg, var(--gold-bright), var(--gold));
  color: #1E1608;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.8);
  transition: top var(--dur-fold) var(--ease-soft);
}
.skip-link:focus { top: 14px; }

/* ---------- 4. 通用容器与分区 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}
.band--deep {
  background-image:
    radial-gradient(120% 90% at 8% 0%, rgba(25, 75, 66, 0.85), transparent 62%),
    linear-gradient(180deg, var(--green-800), var(--green-900));
  color: var(--ivory);
}
.band--deep h2,
.band--deep h3 { color: var(--ivory); }
.band--deep p { color: rgba(245, 239, 226, 0.8); }
.band--red {
  background-image: linear-gradient(150deg, var(--red-700), #3A141C);
  color: var(--ivory);
}
.band--red h2,
.band--red h3 { color: var(--ivory); }
.band--red p { color: rgba(245, 239, 226, 0.82); }
.band--paper {
  background-color: var(--paper);
  color: var(--ink);
}

.path-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 34px);
  opacity: 0.4;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(24px, 3.4vw, 40px);
}
.section-title {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.16;
  margin: 0;
}
.section-lede {
  margin: 0;
  max-width: 60ch;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.85;
}
.theme-dark .section-lede,
.band--deep .section-lede,
.band--red .section-lede { color: rgba(245, 239, 226, 0.66); }

.exhibit-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.exhibit-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.8;
}
.theme-dark .exhibit-label,
.band--deep .exhibit-label,
.band--red .exhibit-label { color: var(--gold); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(118, 145, 131, 0.55);
}
.breadcrumb a {
  color: var(--gold-deep);
  text-decoration: none;
  transition: color var(--dur-state) var(--ease-soft);
}
.breadcrumb a:hover { color: var(--gold); }
.theme-dark .breadcrumb a,
.band--deep .breadcrumb a { color: var(--gold); }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: clamp(10px, 1.6vw, 18px) var(--gutter) 0;
  font-family: var(--font-sans);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 9px 12px 9px 12px;
  border-radius: 28px;
  border: 1px solid var(--line-gold);
  background-image: linear-gradient(180deg, rgba(18, 63, 55, 0.95), rgba(8, 43, 36, 0.97));
  box-shadow:
    0 18px 40px -24px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(245, 239, 226, 0.07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    padding var(--dur-line) var(--ease-soft),
    border-radius var(--dur-line) var(--ease-soft),
    background-color var(--dur-line) var(--ease-soft),
    box-shadow var(--dur-line) var(--ease-soft);
}

.site-header[data-shrink] .header-shell {
  padding-block: 5px;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(180deg, rgba(8, 43, 36, 0.98), rgba(6, 31, 26, 0.99));
  box-shadow:
    0 20px 44px -26px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(245, 239, 226, 0.06);
}

/* 品牌浮岛 */
.brand-island {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--ivory);
  transition: background-color var(--dur-state) var(--ease-soft);
}
.brand-island:hover { background-color: rgba(201, 164, 92, 0.1); }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background-image: linear-gradient(155deg, #E4BF7A, #A9823D);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 16px -10px rgba(0, 0, 0, 0.7);
}
.brand-mark::before {
  content: "";
  width: 15px;
  height: 21px;
  border-radius: 8px 8px 3px 3px;
  background-color: var(--green-900);
  box-shadow: inset 0 -2px 0 rgba(201, 164, 92, 0.35);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--gold-bright);
  transform: translateY(-50%);
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ivory);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.version-chip {
  margin-left: 2px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(242, 199, 110, 0.4);
  background-color: rgba(242, 199, 110, 0.1);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}

.nav-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  counter-reset: navidx;
}
.nav-track > li {
  display: flex;
  counter-increment: navidx;
}
.nav-track a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: rgba(245, 239, 226, 0.82);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-state) var(--ease-soft),
    border-color var(--dur-state) var(--ease-soft),
    color var(--dur-state) var(--ease-soft);
}
.nav-track a::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity var(--dur-state) var(--ease-soft);
}
.nav-track a:hover {
  background-color: rgba(201, 164, 92, 0.13);
  border-color: rgba(201, 164, 92, 0.3);
  color: var(--ivory);
}
.nav-track a:hover::before { opacity: 1; }
.nav-track a[aria-current="page"] {
  background-color: rgba(201, 164, 92, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.nav-track a[aria-current="page"]::before {
  opacity: 1;
  color: var(--gold-bright);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(150deg, var(--gold-bright), var(--gold));
  color: #1E1608;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px rgba(242, 199, 110, 0.95);
  transition: transform var(--dur-state) var(--ease-soft), box-shadow var(--dur-state) var(--ease-soft);
}
.nav-cta::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(242, 199, 110, 1);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px 9px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-gold);
  background-color: rgba(201, 164, 92, 0.09);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: background-color var(--dur-state) var(--ease-soft), border-color var(--dur-state) var(--ease-soft);
}
.nav-toggle:hover { background-color: rgba(201, 164, 92, 0.18); }
.nav-toggle-glyph {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle-glyph span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--gold);
  transition: transform var(--dur-fold) var(--ease-soft), opacity var(--dur-fold) var(--ease-soft);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-glyph span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-glyph span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-glyph span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  background-image:
    radial-gradient(120% 80% at 10% 0%, rgba(25, 75, 66, 0.7), transparent 58%),
    linear-gradient(180deg, #082B24, #0B3B32 55%, #061F1A);
  color: var(--ivory);
  font-family: var(--font-sans);
}

.footer-rail {
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 22px, transparent 22px 38px);
  opacity: 0.45;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(0, 2fr) minmax(230px, 1.1fr);
  gap: clamp(26px, 3.6vw, 58px);
  padding-block: clamp(44px, 6vw, 76px) clamp(30px, 4vw, 44px);
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ivory);
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.footer-summary {
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(245, 239, 226, 0.66);
}
.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(242, 199, 110, 0.34);
  background-color: rgba(242, 199, 110, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}
.footer-version-key {
  color: rgba(245, 239, 226, 0.5);
  letter-spacing: 0.14em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  counter-reset: fcol;
}

.footer-col { counter-increment: fcol; }

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ivory);
}
.footer-col-title::before {
  content: counter(fcol, decimal-leading-zero);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 164, 92, 0.35);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.footer-links {
  display: grid;
  gap: 2px;
}
.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(245, 239, 226, 0.76);
  text-decoration: none;
  transition: color var(--dur-state) var(--ease-soft);
}
.footer-links a::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-state) var(--ease-soft), transform var(--dur-state) var(--ease-soft);
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-links a:hover::after { opacity: 0.9; transform: translateX(0); }

.footer-contact {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 2px;
  border-top: 1px solid var(--line-gold-soft);
  padding-block-start: 16px;
}
.footer-contact-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-contact-list {
  display: grid;
  gap: 9px;
}
.footer-contact-list li {
  display: grid;
  gap: 1px;
}
.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.footer-contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 239, 226, 0.9);
  word-break: break-word;
}
.footer-contact-note {
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.72;
  color: rgba(245, 239, 226, 0.5);
}

.footer-base {
  border-top: 1px solid var(--line-gold-soft);
}
.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(16px, 3vw, 34px);
  padding-block: 18px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(245, 239, 226, 0.52);
}
.footer-copy { margin: 0; }
.footer-icp { margin: 0; }
.footer-coord {
  margin: 0;
  margin-left: auto;
  color: rgba(201, 164, 92, 0.75);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur-state) var(--ease-soft),
    background-color var(--dur-state) var(--ease-soft),
    border-color var(--dur-state) var(--ease-soft),
    color var(--dur-state) var(--ease-soft),
    box-shadow var(--dur-state) var(--ease-soft);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background-image: linear-gradient(150deg, #F7D68C, #E5B45E);
  color: #1E1608;
  box-shadow: 0 16px 32px -20px rgba(242, 199, 110, 0.95);
}
.btn--gold:hover { box-shadow: 0 20px 36px -18px rgba(242, 199, 110, 1); }

.btn--outline {
  border-color: var(--line-gold);
  background-color: rgba(201, 164, 92, 0.08);
  color: var(--gold-bright);
}
.btn--outline:hover {
  border-color: var(--gold);
  background-color: rgba(201, 164, 92, 0.18);
}

.btn--ghost {
  border-color: var(--line-ink);
  background-color: rgba(11, 59, 50, 0.05);
  color: var(--green-800);
}
.btn--ghost:hover {
  border-color: rgba(11, 59, 50, 0.3);
  background-color: rgba(11, 59, 50, 0.1);
}

/* ---------- 8. 卡片与折页 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-gold);
  background-image: linear-gradient(180deg, rgba(18, 63, 55, 0.78), rgba(8, 43, 36, 0.9));
  color: var(--ivory);
  box-shadow: inset 0 1px 0 rgba(245, 239, 226, 0.05);
}
.card h3 {
  margin: 0 0 8px;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--ivory);
}
.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(245, 239, 226, 0.76);
}

.card--light {
  border-color: rgba(140, 106, 54, 0.28);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(231, 223, 206, 0.5));
  color: var(--ink);
  box-shadow: 0 18px 36px -30px rgba(17, 24, 21, 0.6);
}
.card--light h3 { color: var(--ink); }
.card--light p { color: rgba(17, 24, 21, 0.72); }

.fold {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(140, 106, 54, 0.24);
  background-color: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  transition: border-color var(--dur-state) var(--ease-soft), background-color var(--dur-state) var(--ease-soft);
}
.fold + .fold { margin-top: 10px; }
.fold[open] {
  border-color: rgba(201, 164, 92, 0.6);
  background-color: rgba(255, 255, 255, 0.86);
}
.fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.fold-summary::-webkit-details-marker { display: none; }
.fold-summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--gold-deep);
  transition: transform var(--dur-fold) var(--ease-soft), color var(--dur-fold) var(--ease-soft);
}
.fold[open] .fold-summary::after {
  content: "–";
  color: var(--green-700);
}
.fold-body {
  padding: 0 20px 20px;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(17, 24, 21, 0.78);
}

/* ---------- 9. 索引组件 ---------- */
.pill-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(140, 106, 54, 0.3);
  background-color: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gold-deep);
  cursor: pointer;
  transition:
    background-color var(--dur-state) var(--ease-soft),
    border-color var(--dur-state) var(--ease-soft),
    color var(--dur-state) var(--ease-soft);
}
.pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pill[aria-pressed="true"],
.pill.is-active {
  background-color: var(--green-800);
  border-color: var(--green-800);
  color: var(--gold-bright);
}
.theme-dark .pill,
.band--deep .pill {
  border-color: rgba(201, 164, 92, 0.36);
  color: rgba(245, 239, 226, 0.78);
}
.theme-dark .pill[aria-pressed="true"],
.theme-dark .pill.is-active,
.band--deep .pill[aria-pressed="true"],
.band--deep .pill.is-active {
  background-color: rgba(242, 199, 110, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background-image: linear-gradient(180deg, var(--gold), rgba(201, 164, 92, 0.12));
}
.timeline-item {
  position: relative;
  padding-bottom: 26px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(242, 199, 110, 0.16);
}

/* ---------- 10. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-gold-soft);
  background-image:
    radial-gradient(90% 70% at 20% 10%, rgba(201, 164, 92, 0.22), transparent 60%),
    linear-gradient(150deg, var(--green-700), var(--green-950));
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(135deg, rgba(245, 239, 226, 0.045) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}
.media-frame img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }
.media-frame--tall { aspect-ratio: 4 / 5; }

/* ---------- 11. 动效协议 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s var(--ease-soft),
    transform 0.55s var(--ease-soft);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-track a { padding: 8px 10px; font-size: 13px; }
  .nav-cta { padding: 9px 15px; font-size: 13px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-gold);
    background-image: linear-gradient(180deg, rgba(18, 63, 55, 0.99), rgba(6, 31, 26, 0.99));
    box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity var(--dur-fold) var(--ease-soft),
      transform var(--dur-fold) var(--ease-soft),
      visibility var(--dur-fold) var(--ease-soft);
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-track {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .nav-track a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    background-color: rgba(245, 239, 226, 0.04);
  }
  .nav-track a::before { opacity: 0.75; }
  .nav-cta {
    justify-content: center;
    padding: 13px 18px;
    font-size: 15px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: clamp(26px, 5vw, 40px);
  }
  .footer-summary { max-width: 46ch; }
}

@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 96px; }
  .header-shell { padding: 8px 10px; border-radius: 22px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .brand-mark::before { width: 13px; height: 18px; }
  .brand-mark::after { right: 13px; }
  .brand-name { font-size: 17px; }
  .version-chip { display: none; }
  .nav-toggle-text { display: none; }

  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-coord { margin-left: 0; }
  .footer-base-inner { padding-block: 16px 20px; }
}

@media (max-width: 400px) {
  .brand-sub { display: none; }
}

/* ---------- 无障碍：减少动态 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-header[data-shrink] .header-shell,
  .header-shell,
  .site-nav {
    transition: none;
  }
}
