/* 云顶会馆 · 共享站套件 /assets/site.css */

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

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

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(120% 80% at 6% -10%, rgba(11, 27, 50, 0.11), transparent 62%),
    radial-gradient(90% 60% at 96% 8%, rgba(146, 164, 184, 0.24), transparent 64%),
    radial-gradient(80% 55% at 44% 108%, rgba(201, 162, 75, 0.14), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root {
  --indigo: #0B1B32;
  --indigo-2: #142B4A;
  --cream: #F4EFE5;
  --sand: #E8DCC8;
  --gold: #C9A24B;
  --orange: #E06A3A;
  --cloud: #92A4B8;
  --ink: #101820;
  --ink-soft: #41505F;
  --glass: rgba(255, 255, 255, 0.12);
  --line: rgba(16, 24, 32, 0.14);
  --line-light: rgba(244, 239, 229, 0.2);
  --shell: 1200px;
  --gutter: clamp(18px, 5vw, 64px);
  --head-h: 82px;
  --r-sm: 2px;
  --r-md: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
img, svg { max-width: 100%; height: auto; }
button { font-family: inherit; }
main { display: block; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
#main-content:focus-visible { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.page-main { padding-block: clamp(32px, 6vw, 76px); }

/* ============ 顶部 ============ */
.site-head { position: sticky; top: 0; z-index: 90; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: #191307;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--r-sm);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.head-bar {
  position: relative;
  background: rgba(11, 27, 50, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid rgba(201, 162, 75, 0.26);
  color: var(--cream);
  transition: background 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.site-head.is-scrolled .head-bar {
  background: var(--indigo);
  border-bottom-color: rgba(201, 162, 75, 0.5);
  box-shadow: 0 22px 44px -34px rgba(5, 12, 24, 0.95);
}

.site-head.is-overlay .head-bar {
  background: linear-gradient(180deg, rgba(11, 27, 50, 0.74), rgba(11, 27, 50, 0.16));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom-color: rgba(201, 162, 75, 0.18);
  box-shadow: none;
}

.head-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 38px);
  min-height: 82px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: var(--r-sm);
  background:
    linear-gradient(160deg, rgba(201, 162, 75, 0.24), rgba(11, 27, 50, 0) 68%),
    repeating-linear-gradient(135deg, rgba(146, 164, 184, 0.16) 0 1px, transparent 1px 6px);
  overflow: hidden;
}
.brand-mark i {
  position: absolute;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}
.brand-mark i:nth-child(1) { width: 23px; top: 11px; }
.brand-mark i:nth-child(2) { width: 16px; top: 18px; opacity: 0.8; }
.brand-mark i:nth-child(3) { width: 9px; top: 25px; opacity: 0.58; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: 0.16em;
  line-height: 1.1;
}
.brand-subline {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cloud);
}

.primary-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: navcount;
}
.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 6px 12px;
  color: rgba(244, 239, 229, 0.8);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.nav-link::before {
  counter-increment: navcount;
  content: "0" counter(navcount);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0;
  color: rgba(146, 164, 184, 0.8);
  transition: color 0.18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--cream); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"]::before { color: var(--orange); }

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--gold {
  background: linear-gradient(118deg, var(--gold) 0%, #E0A64B 46%, var(--orange) 100%);
  color: #1A1206;
  box-shadow: 0 12px 26px -18px rgba(224, 106, 58, 0.95);
}
.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -16px rgba(224, 106, 58, 0.95);
}
.btn--ghost {
  border-color: rgba(244, 239, 229, 0.42);
  background: rgba(255, 255, 255, 0.07);
  color: var(--cream);
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.16);
}
.btn--quiet {
  border-color: rgba(16, 24, 32, 0.28);
  background: transparent;
  color: var(--ink);
}
.btn--quiet:hover {
  border-color: var(--ink);
  background: rgba(11, 27, 50, 0.06);
}
.head-cta {
  padding: 10px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover { background: rgba(201, 162, 75, 0.18); }
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { white-space: nowrap; }

.read-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.read-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

html.is-nav-open,
html.is-nav-open body { overflow: hidden; }

/* ============ 页脚 ============ */
.site-foot {
  position: relative;
  margin-top: clamp(48px, 8vw, 100px);
  background: var(--indigo);
  color: var(--cream);
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange) 42%, rgba(201, 162, 75, 0.12) 100%);
  z-index: 2;
}
.foot-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 52% at 10% 0%, rgba(146, 164, 184, 0.22), transparent 66%),
    radial-gradient(58% 46% at 88% 14%, rgba(201, 162, 75, 0.18), transparent 70%),
    radial-gradient(80% 62% at 50% 118%, rgba(224, 106, 58, 0.14), transparent 72%);
}
.foot-shell { position: relative; z-index: 1; }

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.72fr) minmax(0, 0.72fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3.6vw, 54px);
  padding-block: clamp(44px, 7vw, 84px) clamp(24px, 4vw, 40px);
}

.foot-mark {
  display: block;
  width: 58px;
  height: 6px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--gold), var(--orange) 62%, transparent);
  border-radius: 3px;
}
.foot-intro {
  max-width: 30em;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(244, 239, 229, 0.8);
}
.foot-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(146, 164, 184, 0.3);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 229, 0.82);
}
.status-chip.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}

.foot-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--cloud);
}
.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.foot-link {
  display: inline-block;
  padding-bottom: 2px;
  color: rgba(244, 239, 229, 0.84);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.foot-link:hover,
.foot-link:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(201, 162, 75, 0.65);
}

.foot-contact__item {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
}
.foot-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cloud);
}
.foot-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 239, 229, 0.9);
  overflow-wrap: anywhere;
}
.copy-btn {
  padding: 3px 9px;
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.copy-btn:hover {
  background: rgba(201, 162, 75, 0.18);
  color: var(--cream);
}
.copy-btn.is-copied {
  border-color: var(--orange);
  background: rgba(224, 106, 58, 0.2);
  color: #FFE6D8;
}

.foot-contact-line {
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(146, 164, 184, 0.22);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(146, 164, 184, 0.9);
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(146, 164, 184, 0.22);
  font-size: 12.5px;
  color: rgba(244, 239, 229, 0.7);
}
.foot-copy { margin: 0; }
.foot-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-legal__links li { margin: 0; }
.foot-legal__links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(146, 164, 184, 0.45);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.foot-legal__links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.foot-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--cloud);
}
.to-top {
  margin-left: auto;
  padding: 8px 15px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 239, 229, 0.86);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.to-top:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.18);
  color: var(--cream);
}

/* ============ 通用组件 ============ */
.stack { display: grid; gap: var(--gap-stack, 18px); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.crumb a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 24, 32, 0.2);
}
.crumb a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.crumb__sep { color: rgba(16, 24, 32, 0.32); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
}
.surface--ink .kicker { color: var(--gold); }

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.55vw, 18.5px);
  line-height: 1.82;
  color: var(--ink-soft);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.06em;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(16, 24, 32, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tag--gold {
  border-color: rgba(201, 162, 75, 0.6);
  background: rgba(201, 162, 75, 0.14);
  color: #7A5C15;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.section-head__title { margin: 0; font-size: clamp(22px, 2.6vw, 30px); }
.section-head__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.surface {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #FBF8F1;
}
.surface--glass {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.56);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 64px -52px rgba(11, 27, 50, 0.85);
}
.surface--sand {
  border-color: rgba(16, 24, 32, 0.1);
  background: var(--sand);
}
.surface--ink {
  border-color: rgba(201, 162, 75, 0.24);
  background: var(--indigo-2);
  color: rgba(244, 239, 229, 0.88);
}
.surface--ink h2,
.surface--ink h3,
.surface--ink h4 { color: var(--cream); }
.surface--ink a { color: var(--gold); }

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink);
}
.prose h2 { margin-top: 2em; font-size: clamp(22px, 2.4vw, 28px); }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose a {
  color: #1B3A5C;
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 75, 0.85);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--orange); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: var(--sand);
  color: #33414F;
}
.prose code {
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: rgba(11, 27, 50, 0.07);
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 14.5px;
}
.prose th, .prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.prose th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  background: rgba(232, 220, 200, 0.5);
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 42px) 0;
  background: linear-gradient(90deg, rgba(16, 24, 32, 0.24), rgba(16, 24, 32, 0.02));
}
.surface--ink .rule { background: linear-gradient(90deg, rgba(201, 162, 75, 0.5), transparent); }

.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.media-frame {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 75, 0.24);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(146, 164, 184, 0.35), transparent 60%),
    linear-gradient(155deg, #24405F, #0B1B32 58%, #142B4A);
  aspect-ratio: 16 / 9;
}
.media-frame img,
.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(7, 17, 31, 0.86));
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 229, 0.82);
}
.media-frame__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(244, 239, 229, 0.46);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #FBF8F1;
  overflow: hidden;
}
.disclosure + .disclosure { margin-top: 10px; }
.disclosure__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}
.disclosure__trigger:hover { background: rgba(11, 27, 50, 0.05); }
.disclosure__title { display: block; }
.disclosure__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.disclosure__icon::before,
.disclosure__icon::after {
  content: "";
  position: absolute;
  background: var(--orange);
}
.disclosure__icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.disclosure__icon::after {
  left: 6px; top: 0;
  width: 2px; height: 14px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.disclosure__trigger[aria-expanded="true"] .disclosure__icon::after {
  transform: scaleY(0);
  opacity: 0;
}
.disclosure__panel {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.disclosure__panel[hidden] { display: none; }
.disclosure.is-open { border-color: rgba(201, 162, 75, 0.55); }

.toc {
  position: sticky;
  top: calc(var(--head-h) + 22px);
  padding-left: 16px;
  border-left: 2px solid rgba(201, 162, 75, 0.35);
}
.toc__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.toc__list li { margin: 0; }
.toc__link {
  display: block;
  padding: 5px 0 5px 12px;
  margin-left: -18px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.toc__link:hover { color: var(--ink); }
.toc__link.is-active,
.toc__link[aria-current="true"] {
  border-left-color: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

[data-hero] { position: relative; }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .nav-link { font-size: 13.5px; padding-inline: 4px; }
  .brand-subline { letter-spacing: 0.14em; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .head-bar__inner { justify-content: space-between; }

  .primary-nav {
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin-left: 0;
    padding: clamp(22px, 5vw, 40px) var(--gutter) 48px;
    overflow-y: auto;
    background: rgba(9, 22, 40, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(201, 162, 75, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s var(--ease);
  }
  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid rgba(146, 164, 184, 0.16); }
  .nav-link {
    display: flex;
    align-items: baseline;
    width: 100%;
    padding: 17px 2px;
    font-size: 19px;
    letter-spacing: 0.08em;
  }
  .nav-link::before { font-size: 11px; }
  .nav-link::after { left: 2px; right: auto; width: 26px; bottom: 10px; }

  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .toc { position: static; }
}

@media (max-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .head-cta { display: none; }
  .brand-subline { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark i:nth-child(1) { width: 18px; top: 9px; }
  .brand-mark i:nth-child(2) { width: 13px; top: 16px; }
  .brand-mark i:nth-child(3) { width: 8px; top: 23px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .to-top { margin-left: 0; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
  .surface { padding: 20px; }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
  .btn { padding: 11px 16px; font-size: 13px; }
}

@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;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}
