/* ===== 1. tokens & base ===== */
:root {
  --bg: #0F0E0C;
  --surface: #191714;
  --surface-2: #221F1A;
  --text: #F4F0E7;
  --muted: #A79E8E;
  --primary: #D8A74A;
  --accent: #C9583C;
  --line: rgb(244 240 231 / .13);
  --radius: 10px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --fs-xs: 13px; --fs-sm: 15px; --fs-base: 17px; --fs-lg: 20px;
  --fs-h3: 22px; --fs-h2: 30px; --fs-h1: 48px; --fs-hero: 56px;
  --font-head: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; margin-top: var(--space-7); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p, li { text-wrap: pretty; }
p { margin: 0 0 var(--space-4); }
strong { color: #fff; font-weight: 600; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgb(216 167 74 / .28); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--primary); color: #14120F; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: var(--space-4); }


/* ===== 2. layout, header, footer ===== */
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
main { display: block; }
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgb(15 14 12 / .92);
  backdrop-filter: saturate(120%) blur(8px);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em; line-height: 1.1;
}
.brand small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  background: linear-gradient(160deg, var(--primary) 0%, #8f6a26 100%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px 6px 7px 7px;
  border-radius: 2px 8px 2px 8px / 2px 8px 2px 8px;
  border: 2px solid #14120F; border-right-width: 4px;
}
.nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.nav a:hover { color: var(--text); }
.site-foot { margin-top: var(--space-8); border-top: 1px solid var(--line); padding: var(--space-7) 0 var(--space-6); background: var(--surface); }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-6); }
.foot-h { font-family: var(--font-head); font-size: var(--fs-base); font-weight: 700; color: var(--text); margin: 0 0 var(--space-3); }
.foot-brand p:last-child { color: var(--muted); font-size: var(--fs-sm); max-width: 46ch; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot li a { color: var(--muted); font-size: var(--fs-sm); text-decoration: none; }
.site-foot li a:hover { color: var(--primary); }
.fine { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }
.fine p { margin: 0 0 6px; }


/* ===== 3. components ===== */
.hero { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: var(--fs-hero); max-width: 18ch; margin-bottom: var(--space-4); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-3);
}
.lede { font-size: var(--fs-lg); color: #DCD5C7; max-width: 62ch; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); }
.section { padding: var(--space-7) 0 0; }
.section > h2:first-child { margin-top: 0; }
.prose { max-width: 76ch; margin-inline: auto; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: none; border-bottom: 1px solid rgb(216 167 74 / .45); }
.prose a:hover { border-bottom-color: var(--primary); text-decoration: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
.prose blockquote { margin: var(--space-5) 0; padding: 2px 0 2px var(--space-4); border-left: 3px solid var(--primary); color: #DCD5C7; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; background: var(--surface); }
.prose tbody tr:hover { background: rgb(255 255 255 / .02); }
.prose code { font-size: .92em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; color: var(--primary); }
.prose > h2:first-child, .prose > h1:first-child { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: var(--space-4) 0 var(--space-5); }
.stat { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; justify-content: center; min-height: 96px; }
.stat b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); letter-spacing: .04em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: var(--space-6) 0; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-5); color: inherit; text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}
.card:hover { transform: translateY(-2px); border-color: rgb(216 167 74 / .5); }
.card .num { display: block; font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--primary); margin-bottom: var(--space-3); }
.card h3 { font-size: 18px; margin-bottom: var(--space-2); }
.card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.note {
  margin: var(--space-5) 0; padding: var(--space-4) var(--space-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--fs-sm); color: #DCD5C7;
}
.note.warn { border-left: 3px solid var(--accent); }
.note p:last-child { margin-bottom: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 8px;
  background: var(--primary); color: #14120F; font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; transition: filter 160ms ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-5) 0; }
.faq { margin: var(--space-5) 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--space-4) 0; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: var(--fs-base); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: var(--space-3) 0 0; color: #DCD5C7; font-size: var(--fs-sm); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--space-5) 0; display: grid; gap: var(--space-4); }
.steps li { counter-increment: step; position: relative; padding-left: 46px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 100%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  background: var(--surface-2); color: var(--primary); border: 1px solid var(--line);
}
.steps li strong { display: block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ===== 4. page-specific & mobile ===== */
.page-main { padding-top: var(--space-7); }
.prose > p:first-of-type { font-size: var(--fs-lg); color: #DCD5C7; }
.prose .card h3, .prose .stat b { margin-bottom: 0; }
.prose .cards + h2 { margin-top: var(--space-7); }
@media (max-width: 860px) {
  :root { --fs-hero: 32px; --fs-h1: 30px; --fs-h2: 24px; }
  .head-inner { min-height: 58px; flex-wrap: wrap; padding-block: 10px; gap: var(--space-2); }
  .nav { gap: 12px; width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(to right, #000 93%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 13px; }
  .hero { padding: var(--space-7) 0 var(--space-5); }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 10px; border-left-width: 2px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 12px; letter-spacing: 0; }
  .foot-cols { grid-template-columns: 1fr; gap: var(--space-5); }
  .section { padding-top: var(--space-6); }
  h1 { font-weight: 700; }
  .stat { min-height: 78px; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .prose th, .prose td { white-space: normal; min-width: 120px; }
}



/* ===== 5. figures & language switch ===== */
figure.shot { margin: var(--space-6) 0; }
figure.shot img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}
figcaption { margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
figure.shot.cover { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-5) 0; }
figure.shot.cover img { width: 92px; height: 92px; flex: none; aspect-ratio: 1 / 1; border-radius: 16px; }
figure.shot.cover figcaption { margin-top: 0; }
.lang-alt {
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted);
}

/* 手机：首屏收紧，让官方截图在首屏底部露出来 */
@media (max-width: 768px) {
  h1 { font-size: 26px; margin-bottom: var(--space-3); }
  .lede { font-size: 16.5px; line-height: 1.6; margin-bottom: var(--space-4); }
  .nav-sm-hide { display: none; }
  .prose p { margin-bottom: 16px; }
  .prose li { margin-bottom: 10px; }
  .stats { margin: var(--space-3) 0 var(--space-4); }
  figure.shot { margin: var(--space-4) 0 var(--space-5); }
  figure.shot.cover img { width: 72px; height: 72px; }
  .section { padding-top: var(--space-5); }
}
