/* ============================================================
   安博赛场 · 共享样式表 /assets/site.css
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}
body, h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--neon-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- 2. tokens ---------- */
:root {
  --ink-900: #050C15;
  --ink-800: #0B1B2B;
  --ink-700: #12293D;
  --ink-600: #1E3A50;
  --neon-500: #2BE8B0;
  --neon-700: #0E9E77;
  --amber-500: #FF8A3D;
  --amber-200: #FFD7B0;
  --text-100: #E9F1F8;
  --text-400: #9FB3C8;
  --ice-050: #F2F7FB;

  --font-display: "Helvetica Neue Condensed", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;

  --fs-display: clamp(40px, 7.4vw, 96px);
  --fs-h1: clamp(30px, 4.4vw, 54px);
  --fs-h2: clamp(23px, 2.8vw, 36px);
  --fs-h3: 19px;
  --fs-body: 17px;
  --fs-mono: 13px;

  --header-h: 64px;
  --rail-w: 0px;
  --shell-max: 1280px;
  --gutter: 20px;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 30px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}
@media (min-width: 1200px) {
  :root { --rail-w: 96px; --header-h: 72px; --gutter: 32px; }
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-100);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(760px 520px at 92% -8%, rgba(43, 232, 176, .10), transparent 62%),
    radial-gradient(620px 460px at -8% 26%, rgba(255, 138, 61, .07), transparent 66%),
    radial-gradient(900px 700px at 62% 108%, rgba(14, 158, 119, .10), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
@media (min-width: 1200px) { body { padding-left: var(--rail-w); } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  font-stretch: condensed;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { max-width: 720px; }
strong { color: var(--ice-050); font-weight: 600; }

.mono { font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: .02em; }
.latin { font-size: .82em; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.tilt { display: inline-block; transform: skewX(-4deg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--neon-500);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--neon-500);
  box-shadow: 0 0 10px rgba(43, 232, 176, .6);
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-400); max-width: 660px; line-height: 1.65; }

.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul li { position: relative; padding-left: 22px; margin-top: .5em; color: var(--text-400); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 10px; height: 2px; background: var(--neon-500);
}

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

/* ---------- 4. 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 7vw, 104px); }
.section--tight { padding-block: clamp(32px, 4vw, 58px); }
.section--bleed { padding-inline: 0; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 880px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
}
.grid--linked { position: relative; }
@media (min-width: 880px) {
  .grid--linked::before {
    content: ""; position: absolute; left: 0; right: 0; top: 38px; height: 1px;
    background: repeating-linear-gradient(90deg, var(--ink-600) 0 8px, transparent 8px 18px);
    pointer-events: none; z-index: 0;
  }
  .grid--linked > * { position: relative; z-index: 1; }
}

.rule {
  height: 1px; width: 100%; border: 0;
  background: linear-gradient(90deg, var(--neon-500), rgba(43, 232, 176, 0));
}
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat__num {
  display: block; font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.1; color: var(--neon-500);
}
.stat__label { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .04em; color: var(--text-400); }

/* ---------- 5. 卡片与标签 ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 20px;
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-m);
  transition: border-color .2s var(--ease);
}
.card:hover { border-color: rgba(43, 232, 176, .45); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-400); letter-spacing: .02em; white-space: nowrap; }
.card__body { font-size: 15px; line-height: 1.68; color: var(--text-400); }
.card__summary {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-400);
  transition: transform .22s var(--ease), color .22s var(--ease);
}
.card--fixture:hover .card__summary { transform: translateY(-12px); color: var(--neon-500); }
.card__foot {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid rgba(30, 58, 80, .8);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--text-400);
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  border: 1px solid var(--ink-600); color: var(--text-400); white-space: nowrap;
}
.tag--neon { color: var(--neon-500); border-color: rgba(43, 232, 176, .45); background: rgba(43, 232, 176, .08); }
.tag--amber { color: var(--amber-200); border-color: rgba(255, 138, 61, .5); background: rgba(255, 138, 61, .12); }
.tag--solid { color: var(--ink-900); background: var(--neon-500); border-color: transparent; font-weight: 700; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--neon-500); color: var(--ink-900); }
.btn--primary:hover { background: #5CF2C6; }
.btn--ghost { border-color: var(--ink-600); color: var(--text-100); }
.btn--ghost:hover { border-color: var(--neon-500); color: var(--neon-500); }
.btn--amber { background: var(--amber-500); color: var(--ink-900); }
.btn--amber:hover { background: #FFA264; }
.btn--block { width: 100%; }
.btn__arrow {
  width: 7px; height: 7px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s var(--ease);
}
.btn:hover .btn__arrow { transform: rotate(45deg) translate(2px, -2px); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-400);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-600); }
.breadcrumb a:hover { color: var(--neon-500); }
.breadcrumb [aria-current="page"] { color: var(--text-100); }

/* ---------- 8. 可复用图片容器 ---------- */
.media-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900));
  aspect-ratio: 16 / 9;
}
.media-frame > img,
.media-frame > video { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(43, 232, 176, .07) 0 1px, transparent 1px 72px);
}
.media-frame--tilt { transform: rotate(-1.4deg); }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame__caption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(5, 12, 21, .74);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--text-400);
}
@media (max-width: 560px) { .media-frame { border-radius: var(--radius-m); } }

/* ---------- 9. 显现 ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 10. 跳转链接 ---------- */
.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 220;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--neon-500); color: var(--ink-900);
  font-size: 14px; font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 11. 页头 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(5, 12, 21, .78), rgba(5, 12, 21, 0));
  transition: background-color .28s var(--ease), border-color .28s var(--ease);
}
@media (min-width: 1200px) { .site-header { left: var(--rail-w); } }
.site-header.is-solid {
  background: rgba(11, 27, 43, .95);
  border-bottom-color: var(--ink-600);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--header-h);
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__rule {
  width: 3px; height: 26px; border-radius: 2px;
  background: linear-gradient(180deg, var(--neon-500), var(--neon-700));
  box-shadow: 0 0 12px rgba(43, 232, 176, .55);
}
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.brand__latin {
  display: none;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-400);
}
@media (min-width: 480px) { .brand__latin { display: inline; } }

.nav__toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  padding: 8px 13px; border: 1px solid var(--ink-600); border-radius: var(--radius-pill);
  font-size: 13px; color: var(--text-100);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav__toggle[aria-expanded="true"] { border-color: var(--neon-500); color: var(--neon-500); }
.nav__toggle-text { font-family: var(--font-mono); letter-spacing: .08em; }
.nav__toggle-bars { position: relative; width: 14px; height: 10px; }
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor; transition: transform .2s var(--ease);
}
.nav__toggle-bars::before { top: 0; }
.nav__toggle-bars::after { bottom: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(4.2px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-4.2px) rotate(-45deg); }

/* 移动端导航面板 */
.nav {
  position: fixed;
  left: var(--rail-w); right: 0; top: var(--header-h);
  z-index: 59;
  padding: 10px var(--gutter) 22px;
  background: var(--ink-900);
  border-bottom: 1px solid var(--ink-600);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
}
.nav[data-open] { opacity: 1; visibility: visible; transform: none; }
.nav__list { display: flex; flex-direction: column; }
.nav__item { display: block; }
.nav__link {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 2px; font-size: 16px; color: var(--text-100);
  border-bottom: 1px solid rgba(30, 58, 80, .7);
}
.nav__link::after {
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 7px; height: 7px;
  border-top: 2px solid var(--ink-600); border-right: 2px solid var(--ink-600);
  transform: translateY(-50%) rotate(45deg);
  transition: border-color .18s var(--ease);
}
.nav__link:hover { color: var(--neon-500); }
.nav__link[aria-current="page"] { color: var(--neon-500); }
.nav__link[aria-current="page"]::after { border-color: var(--neon-500); }

/* 桌面端横向导航 */
@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav {
    position: static; flex: 1 1 auto;
    display: flex; justify-content: center;
    padding: 0; background: none; border: 0;
    max-height: none; overflow: visible;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__list { flex-direction: row; align-items: center; gap: 2px; }
  .nav__link {
    padding: 9px 13px; font-size: 14px; color: var(--text-400);
    border-bottom: 0; border-radius: var(--radius-pill);
    transition: color .18s var(--ease), background-color .18s var(--ease);
  }
  .nav__link:hover { color: var(--neon-500); background: rgba(43, 232, 176, .08); }
  .nav__link::after {
    left: 13px; right: 13px; top: auto; bottom: 3px;
    width: auto; height: 2px;
    border: 0; background: var(--neon-500);
    transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .2s var(--ease);
  }
  .nav__link:hover::after { transform: scaleX(1); }
  .nav__link[aria-current="page"] { color: var(--neon-500); }
  .nav__link[aria-current="page"]::after { transform: scaleX(1); }
}

/* 常用入口 */
.quick { position: relative; flex: 0 0 auto; }
.quick__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-pill);
  background: var(--neon-500); color: var(--ink-900);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  transition: background-color .18s var(--ease);
}
.quick__btn:hover { background: #5CF2C6; }
.quick__btn::after {
  content: ""; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .2s var(--ease);
}
.quick__btn[aria-expanded="true"]::after { transform: rotate(225deg) translate(-1px, -1px); }
.quick__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  width: min(300px, calc(100vw - 32px));
  padding: 14px;
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-m);
  box-shadow: 0 24px 48px rgba(5, 12, 21, .65);
}
.quick__panel[hidden] { display: none; }
.quick__title {
  margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-400);
}
.quick__list { display: grid; gap: 2px; }
.quick__link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: 10px; font-size: 14px;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.quick__link:hover { background: rgba(43, 232, 176, .1); color: var(--neon-500); }
.quick__round { font-family: var(--font-mono); font-size: 11px; color: var(--amber-500); letter-spacing: .04em; }
.quick__all {
  display: block; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--ink-600);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--neon-500);
}

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--neon-700), var(--neon-500));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 12. 左侧品牌轨道 ---------- */
.rail {
  display: none;
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 70;
  flex-direction: column; align-items: center; justify-content: space-between;
  gap: 14px; padding: 20px 0;
  background: linear-gradient(180deg, var(--ink-900), #03080E 58%, var(--ink-900));
  border-right: 1px solid var(--ink-600);
}
@media (min-width: 1200px) { .rail { display: flex; } }
.rail__mark {
  width: 3px; height: 30px; border-radius: 2px;
  background: linear-gradient(180deg, var(--neon-500), var(--neon-700));
  box-shadow: 0 0 14px rgba(43, 232, 176, .6);
}
.rail__chapter {
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em;
  color: var(--text-400); white-space: nowrap;
}
.rail__top {
  display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
  width: 46px; padding: 11px 0;
  border: 1px solid var(--ink-600); border-radius: var(--radius-s);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--text-400);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.rail__top.is-visible { opacity: 1; transform: none; }
.rail__top:hover { border-color: var(--neon-500); color: var(--neon-500); }
.rail__top-arrow {
  width: 8px; height: 8px;
  border-top: 2px solid currentColor; border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--ink-900);
  border-top: 1px solid var(--ink-600);
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; width: min(320px, 60%); height: 2px;
  background: linear-gradient(90deg, var(--neon-500), transparent);
}
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 32px 24px;
  padding-block: clamp(40px, 5vw, 68px);
}
@media (min-width: 560px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__col { min-width: 0; }
.footer__brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em;
}
.footer__brand-latin { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-400); }
.footer__claim { margin-top: 12px; max-width: 280px; font-size: 14px; line-height: 1.65; color: var(--text-400); }
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--neon-500);
}
.footer__list { display: grid; gap: 9px; }
.footer__link { font-size: 14px; color: var(--text-400); transition: color .18s var(--ease); }
.footer__link:hover { color: var(--neon-500); }
.footer__text { font-size: 14px; line-height: 1.7; color: var(--text-400); max-width: 260px; }
.footer__text + .footer__text { margin-top: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; padding-block: 20px;
  border-top: 1px solid var(--ink-600);
}
.footer__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--text-400); max-width: none; }
.footer__icp { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--text-400); max-width: none; }

/* ---------- 14. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .card--fixture:hover .card__summary { transform: none; }
}
