/* ============================================================
   9博体育中国站 · 共享外壳样式 /assets/site.css
   墨夜底色 + 蓝图网格 + 夜间赛场控制台
   ============================================================ */

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

:root {
  --ink: #06100D;
  --ink-2: #0C1E18;
  --glass: #143028;
  --line: #27443A;
  --lime: #C8FF3D;
  --orange: #FF8B3D;
  --silver: #B9C3BE;
  --paper: #EDF4F0;
  --teal: #2E725C;
  --muted: #72857C;

  --bg: var(--ink);
  --text: var(--paper);
  --text-dim: var(--silver);

  --font-display: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;

  --header-h: 72px;
  --maxw: 1360px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

body {
  margin: 0;
  min-height: 100%;
  padding-bottom: 56px;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 80% -10%, rgba(46, 114, 92, .34), transparent 68%),
    radial-gradient(820px 480px at 4% 14%, rgba(200, 255, 61, .055), transparent 70%),
    repeating-linear-gradient(90deg, rgba(39, 68, 58, .32) 0 1px, transparent 1px 96px);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 90%;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: .98; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.6rem); line-height: 1.06; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.28; letter-spacing: -.01em; }
h4 { font-size: 1rem; line-height: 1.4; letter-spacing: 0; }

p { margin: 0 0 1.2em; max-width: 38em; }
p:last-child { margin-bottom: 0; }

a { color: var(--lime); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

strong, b { color: var(--paper); font-weight: 700; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }

small { font-size: .82rem; }

hr, .rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

::selection { background: var(--lime); color: #08150F; }

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--lime);
  color: #08150F;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #08150F; }

#main-content { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 44px);
}
.container--narrow { max-width: 880px; }

.page-top { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 64px)); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.grid-12 > * { min-width: 0; }

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

@media (max-width: 899px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: 1 / -1; }
}

/* ---------- 章节与排版基元 ---------- */
.section {
  padding-block: clamp(44px, 6.5vw, 104px);
  border-top: 1px solid rgba(39, 68, 58, .65);
}
.section--flush { border-top: 0; }

.section__head { margin-bottom: clamp(24px, 3.5vw, 48px); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

.lede {
  margin: 0 0 1.2em;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.8;
  color: var(--silver);
  max-width: 34em;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .06em;
}

.serif-accent {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: .01em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #08150F;
}
.btn--lime:hover { background: #D9FF73; border-color: #D9FF73; color: #08150F; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover { background: rgba(20, 48, 40, .68); border-color: var(--teal); color: var(--paper); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: rgba(20, 48, 40, .44);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--silver);
  white-space: nowrap;
}
.tag--lime { background: var(--lime); border-color: var(--lime); color: #08150F; }
.tag--orange { background: rgba(255, 139, 61, .1); border-color: rgba(255, 139, 61, .5); color: var(--orange); }
.tag--silver { background: transparent; border-color: var(--line); color: var(--silver); }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-block: 18px 0; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.breadcrumb__link {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.breadcrumb__link:hover { color: var(--lime); border-bottom-color: var(--lime); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb__current { color: var(--lime); }

/* ---------- 图片容器（页面阶段复用） ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background-color: var(--ink-2);
  background-image: linear-gradient(155deg, var(--glass), rgba(6, 16, 13, .96));
}
.image-frame--wide { aspect-ratio: 21 / 9; }
.image-frame--tall { aspect-ratio: 3 / 4; }
.image-frame--square { aspect-ratio: 1 / 1; }
.image-frame--empty {
  background-image: repeating-linear-gradient(135deg, rgba(39, 68, 58, .55) 0 1px, transparent 1px 18px);
}
.image-frame__img,
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--silver);
  background: linear-gradient(transparent, rgba(6, 16, 13, .92));
}

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .24s var(--ease), border-color .24s var(--ease),
              backdrop-filter .24s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(12, 30, 24, .93);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--maxw);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 44px);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
  background: rgba(39, 68, 58, .7);
}
.header-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(200, 255, 61, .55);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .1s linear;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--glass), rgba(6, 16, 13, .92));
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--lime);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--paper);
}
.brand__tagline {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 状态灯 */
.site-status {
  display: none;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: rgba(20, 48, 40, .5);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--silver);
  white-space: nowrap;
}
.site-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 139, 61, .16);
  animation: status-pulse 2.6s var(--ease) infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

/* 主导航 */
.primary-nav { margin-left: auto; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav__item { display: flex; }
.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: var(--silver);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .22s var(--ease);
}
.primary-nav__link:hover { color: var(--paper); }
.primary-nav__link:hover::after { transform: scaleX(1); }
.primary-nav__link[aria-current="page"] { color: var(--lime); }
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 工具组与移动按钮 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 48, 40, .55);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--teal); }
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .22s var(--ease);
}
.site-header[data-open="true"] .nav-toggle {
  background: rgba(200, 255, 61, .14);
  border-color: var(--lime);
  color: var(--lime);
}
.site-header[data-open="true"] .nav-toggle__bars span:first-child { transform: translateY(2.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* 移动端导航面板 */
@media (max-width: 1079px) {
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 59;
    margin: 0;
    padding: 14px clamp(16px, 5vw, 32px) 24px;
    background: rgba(6, 16, 13, .97);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
  }
  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__item + .primary-nav__item { border-top: 1px solid rgba(39, 68, 58, .6); }
  .primary-nav__link { display: block; padding: 14px 2px; font-size: 1rem; }
  .primary-nav__link::after { display: none; }
  .primary-nav__link[aria-current="page"] { padding-left: 12px; box-shadow: inset 2px 0 0 var(--lime); }
}

@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .primary-nav { margin-left: auto; }
  .header-tools { margin-left: 0; }
}
@media (min-width: 1280px) {
  .site-status { display: inline-flex; }
}

/* ============================================================
   路径索引：移动端底部节点条 / 桌面端右侧纵向节点
   ============================================================ */
.path-rail {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 55;
  background: rgba(6, 16, 13, .95);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.path-rail__list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}
.path-rail__item { flex: 1 1 auto; display: flex; }
.path-rail__node {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.path-rail__node::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.path-rail__node:hover { color: var(--paper); }
.path-rail__node[aria-current="page"] { color: var(--lime); }
.path-rail__node[aria-current="page"]::before {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, .18);
}
.path-rail__label { line-height: 1; }

@media (min-width: 1080px) {
  body { padding-bottom: 0; }
  .path-rail {
    inset: 50% 16px auto auto;
    z-index: 58;
    transform: translateY(-50%);
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    width: auto;
  }
  .path-rail__list { flex-direction: column; align-items: flex-end; gap: 14px; }
  .path-rail__item { flex: 0 0 auto; }
  .path-rail__node {
    flex: 0 0 auto;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-size: .56rem;
    letter-spacing: .14em;
  }
  .path-rail__label {
    opacity: 0;
    transform: translateX(4px);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .path-rail__node:hover .path-rail__label,
  .path-rail__node:focus-visible .path-rail__label,
  .path-rail__node[aria-current="page"] .path-rail__label {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 30, 24, .92), rgba(6, 16, 13, 1));
  color: var(--silver);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(220px, 42vw);
  height: 1px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(200, 255, 61, .5);
}
.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 3.5vw, 44px) 24px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
}
@media (min-width: 760px) {
  .footer__top { grid-template-columns: 1.05fr 1.6fr .95fr; }
}
@media (min-width: 1180px) {
  .footer__top { grid-template-columns: 1fr 1.75fr 1fr; }
}

.footer__brand { min-width: 0; }
.footer__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--glass), rgba(6, 16, 13, .95));
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.footer__brand-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--paper);
}
.footer__brand-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 24px 20px;
  min-width: 0;
}
.footer-col { min-width: 0; }
.footer-col__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-col__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col__link {
  display: inline-block;
  color: var(--silver);
  font-size: .86rem;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-col__link:hover { color: var(--lime); border-bottom-color: var(--lime); }

.footer__contact { display: grid; align-content: start; }

.contact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .82rem;
}
.contact-list__item { display: grid; gap: 1px; }
.contact-list__label {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list__value {
  color: var(--paper);
  overflow-wrap: anywhere;
}
.footer__note {
  margin: 14px 0 0;
  max-width: 32em;
  font-size: .76rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid rgba(39, 68, 58, .7);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.footer__legal,
.footer__copy { margin: 0; max-width: none; }

/* ============================================================
   显现协议
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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