/* ==========================================================================
   W88赛场 · 共享站点样式 /assets/site.css
   战术板画布：墨底 + 荧光青锚点 + 赛道橙单一 CTA
   ========================================================================== */

:root {
  --ink-950: #07130F;
  --ink-800: #0F2A22;
  --board-black: #050706;
  --chalk: #F2F6F3;
  --paper: #DCE4DF;
  --neon-cyan: #3DF2CE;
  --cyan-deep: #0E7A66;
  --track-orange: #FF6A2B;
  --graphite: #2B3A35;
  --mute-sage: #8FA39C;

  --rail-w: 64px;
  --shell-max: 1320px;
  --gutter: clamp(18px, 3.2vw, 48px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --dur: 190ms;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo Narrow", "Oswald", "PingFang SC", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono",
    Menlo, Consolas, "Courier New", monospace;
}

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

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

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: var(--neon-cyan); text-decoration: none; }
a:hover { color: var(--chalk); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 104px; }

::selection { background: var(--neon-cyan); color: var(--ink-950); }

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 中文排版 ---------- */
.lede {
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.78;
  color: var(--mute-sage);
  max-width: 40em;
}
.lede strong { color: var(--chalk); font-weight: 700; }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 88%;
  letter-spacing: -.02em;
  line-height: .94;
  font-size: clamp(44px, 8vw, 132px);
  color: var(--chalk);
  text-wrap: balance;
}
.display em {
  font-style: normal;
  color: var(--neon-cyan);
}

h2, .h2 {
  font-family: var(--font-display);
  font-stretch: 92%;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.08;
  font-size: clamp(28px, 3.4vw, 44px);
}
h3, .h3 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.005em;
  font-size: clamp(20px, 2vw, 26px);
}

.num {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--neon-cyan);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--ink-950);
  outline-offset: 3px;
}

/* ---------- 容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(38px, 5.2vw, 88px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
}
.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; }

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 4vw, 56px);
  background: var(--graphite);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn--primary {
  background: var(--track-orange);
  border-color: var(--track-orange);
  color: #170A04;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: #FF8450;
  border-color: #FF8450;
  color: #170A04;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--graphite);
  color: var(--chalk);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

/* ---------- 胶囊 / 标签 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--graphite);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--mute-sage);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.5;
}
.pill--accent {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* ---------- 面板 ---------- */
.panel {
  background: var(--ink-800);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 34px);
}
.panel--board {
  background: var(--board-black);
  border-color: #16302A;
  color: var(--chalk);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mute-sage);
  padding-block: 18px 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--graphite);
}
.breadcrumb a {
  color: var(--mute-sage);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.breadcrumb a:hover {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}
.breadcrumb [aria-current="page"] { color: var(--chalk); }

/* ---------- 图片容器（页面阶段使用） ---------- */
.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--graphite);
  background-color: var(--ink-800);
  background-image:
    linear-gradient(to right, rgba(61, 242, 206, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(61, 242, 206, .09) 1px, transparent 1px);
  background-size: 34px 34px;
  aspect-ratio: 16 / 10;
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--notch { border-top-right-radius: 4px; }
.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--mute-sage);
}

/* ==========================================================================
   头部
   ========================================================================== */
body { padding-left: var(--rail-w); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 19, 15, .94);
  border-bottom: 1px solid var(--graphite);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 上层信息条 */
.utility-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px var(--gutter);
  border-bottom: 1px solid var(--graphite);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--mute-sage);
}
.utility-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  flex: none;
}
.utility-bar__note {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.utility-bar__link {
  color: var(--mute-sage);
  border-bottom: 1px solid var(--graphite);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.utility-bar__link:hover {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}

/* 品牌行 */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 13px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--chalk);
  min-width: 0;
}
.brand:hover { color: var(--chalk); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 13px;
  background: var(--neon-cyan);
  color: #04140F;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  transition: background-color var(--dur) var(--ease);
}
.brand:hover .brand__mark { background: #7CFFE4; }
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.12;
}
.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand__tagline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--mute-sage);
  white-space: nowrap;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--graphite);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--chalk);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
.nav-toggle__bar {
  display: block;
  width: 15px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

/* 左侧战术贴纸导航条 */
.nav-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 95;
  display: flex;
  flex-direction: column;
  background: var(--ink-950);
  border-right: 1px solid var(--graphite);
  padding-bottom: 12px;
}
.nav-rail__head {
  padding: 14px 2px 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--mute-sage);
}
.nav-rail__list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.nav-rail__list > li { flex: none; }

.rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 15px 4px;
  color: var(--chalk);
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.rail__item:hover {
  background: var(--ink-800);
  transform: translateX(2px);
}
.rail__idx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--mute-sage);
  transition: color var(--dur) var(--ease);
}
.rail__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
}
.rail__item:hover .rail__label { color: var(--neon-cyan); }
.rail__item:hover .rail__idx { color: var(--neon-cyan); }

.rail__item[aria-current="page"] {
  background: var(--ink-800);
  box-shadow: inset 3px 0 0 var(--neon-cyan);
}
.rail__item[aria-current="page"] .rail__label,
.rail__item[aria-current="page"] .rail__idx { color: var(--neon-cyan); }

.nav-rail__foot {
  padding: 12px 2px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--graphite);
}

/* 滚动进度条（site_js 注入） */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 130;
  pointer-events: none;
  background: rgba(43, 58, 53, .6);
}
.scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--track-orange));
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--ink-950);
  border-top: 1px solid var(--graphite);
  padding-top: clamp(40px, 5vw, 72px);
  margin-top: clamp(40px, 6vw, 96px);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: 96px;
  height: 3px;
  background: var(--neon-cyan);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(26px, 3vw, 52px);
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--graphite);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mute-sage);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer__back:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.footer__col { min-width: 0; }
.footer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute-sage);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--graphite);
  margin-bottom: 16px;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a {
  display: inline-block;
  font-size: 15px;
  color: var(--chalk);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__list a:hover {
  color: var(--neon-cyan);
  transform: translateX(3px);
}
.footer__list--plain li {
  font-size: 14px;
  line-height: 1.72;
  color: var(--mute-sage);
  word-break: break-word;
}
.footer__list--plain li:last-child {
  padding-top: 4px;
  border-top: 1px solid var(--graphite);
  font-size: 13px;
  line-height: 1.7;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--graphite);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mute-sage);
}
.footer__legalnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer__legalnav a {
  color: var(--mute-sage);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer__legalnav a:hover {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}
.footer__icp { color: var(--graphite); }
.footer__icp:hover { color: var(--mute-sage); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__col--contact .footer__list--plain {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 28px;
  }
}

@media (max-width: 960px) {
  body { padding-left: 0; }

  .nav-toggle { display: inline-flex; }

  .nav-rail {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    border-right: 0;
    border-top: 1px solid var(--graphite);
    border-bottom: 1px solid var(--graphite);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms var(--ease), padding 220ms var(--ease);
  }
  .nav-rail[data-open] {
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 16px var(--gutter) 20px;
  }
  .nav-rail__head,
  .nav-rail__foot { display: none; }

  .nav-rail__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .rail__item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--graphite);
    border-radius: var(--radius-pill);
    background: var(--ink-800);
  }
  .rail__item:hover { transform: none; }
  .rail__label {
    writing-mode: horizontal-tb;
    font-size: 14px;
    letter-spacing: .04em;
  }
  .rail__idx { font-size: 10.5px; }
  .rail__item[aria-current="page"] {
    box-shadow: none;
    border-color: var(--neon-cyan);
    background: rgba(61, 242, 206, .12);
  }

  .skip-link { left: 10px; }

  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .utility-bar { font-size: 10.5px; padding-inline: var(--gutter); }
  .utility-bar__note { white-space: normal; line-height: 1.5; }
  .utility-bar__link { display: none; }

  .masthead { padding-block: 11px; gap: 12px; }
  .brand__tagline { display: none; }
  .brand__name { font-size: 17px; }
  .brand__mark { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
  .masthead__cta { display: none; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__col--contact .footer__list--plain { grid-template-columns: 1fr; }
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .nav-rail__list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .btn:hover,
  .btn--primary:hover,
  .btn--ghost:hover,
  .rail__item:hover,
  .footer__list a:hover { transform: none; }
  .skip-link { transition: none; }
}
