/* ============ 九博体育看台 · 共享样式 ============ */

/* --- reset --- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- tokens --- */
:root {
  --ink: #060B14;
  --ink-2: #0D1A2B;
  --line: #1E2C42;
  --neon: #35F2A0;
  --blue: #3C8CFF;
  --amber: #FF8A3D;
  --cyan: #6BE3FF;
  --white: #F2F7FF;
  --mute: #8C9BB3;
  --danger: #FF5C6C;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --shell: 1320px;
  --gutter: 24px;
  --header-h: 84px;
}

/* --- 中文排版基线 --- */
h1, h2, h3, .display-1, .display-2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 900; line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.display-1 { font-size: clamp(2.6rem, 8vw, 7rem); }
.display-2 { font-size: clamp(1.8rem, 4vw, 3rem); }

.prose { max-width: 68ch; color: var(--mute); }
.prose > p + p,
.prose > p + h2,
.prose > p + h3 { margin-top: 1.15em; }
.prose h2,
.prose h3 { color: var(--white); margin-top: 1.6em; }
.prose a { color: var(--blue); border-bottom: 1px solid rgba(60, 140, 255, 0.42); }
.prose a:hover { border-bottom-color: var(--blue); }
.prose strong { color: var(--white); font-weight: 700; }
.prose ul { margin-top: 1em; }
.prose li { position: relative; padding-left: 20px; }
.prose li + li { margin-top: 0.55em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--neon);
}

/* ============ 布局容器 ============ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(64px, 10vw, 140px) 0; }
.page-hero { padding: clamp(140px, 18vw, 240px) 0 clamp(48px, 7vw, 96px); position: relative; }
.page-body { padding: clamp(56px, 8vw, 112px) 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head--row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* 斜切色带过渡 */
.band-slant {
  height: clamp(56px, 8vw, 120px);
  margin: clamp(40px, 6vw, 88px) 0;
  background: linear-gradient(100deg, rgba(53, 242, 160, 0.16), rgba(60, 140, 255, 0.16) 55%, rgba(107, 227, 255, 0.05));
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
  pointer-events: none;
}

/* ============ 细粒度排版组件 ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--neon);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.8;
  color: var(--mute);
  max-width: 60ch;
}

/* ============ 面板 / 标签 / 统计 ============ */
.surface {
  background: var(--ink-2);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 4px;
}
.surface--neon {
  border-color: rgba(53, 242, 160, 0.34);
  box-shadow: var(--shadow), 0 0 0 1px rgba(53, 242, 160, 0.12);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mute);
  background: rgba(13, 26, 43, 0.7);
}
.tag--amber { color: var(--amber); border-color: rgba(255, 138, 61, 0.42); }
.tag--blue { color: var(--blue); border-color: rgba(60, 140, 255, 0.42); }
.tag--neon { color: var(--neon); border-color: rgba(53, 242, 160, 0.42); }

.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}
.stat-value--blue { color: var(--blue); }
.stat-value--amber { color: var(--amber); }
.stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mute);
}

/* ============ 网格 ============ */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--halves { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--thirds { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ============ 图片容器 ============ */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(60, 140, 255, 0.22), transparent 60%),
    radial-gradient(90% 80% at 88% 96%, rgba(53, 242, 160, 0.16), transparent 62%),
    linear-gradient(150deg, #0D1A2B, #060B14);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  border-top: 2px solid var(--neon);
  border-left: 2px solid var(--neon);
  pointer-events: none;
}
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary {
  background: var(--neon);
  color: #04140C;
  box-shadow: 0 14px 40px rgba(53, 242, 160, 0.22);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(53, 242, 160, 0.32); }
.btn--ghost {
  border-color: var(--line);
  color: var(--white);
  background: rgba(13, 26, 43, 0.6);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ============ 面包屑 ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--mute); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--neon); }

/* ============ 跳转链接 ============ */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--neon);
  color: #04140C;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ============ 头部 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: transparent;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-condensed {
  background: rgba(6, 11, 20, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  transition: padding 0.3s var(--ease);
}
.site-header.is-condensed .header-inner { padding-top: 9px; padding-bottom: 9px; }

/* 品牌 */
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--neon);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--neon);
  background: rgba(53, 242, 160, 0.07);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--white);
  white-space: nowrap;
}
.brand-sub {
  display: block;
  max-height: 20px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--mute);
  white-space: nowrap;
  opacity: 1;
  transition: max-height 0.3s var(--ease), opacity 0.22s var(--ease);
}
.site-header.is-condensed .brand-sub { max-height: 0; opacity: 0; }

/* 悬浮胶囊导航 */
.nav-island {
  justify-self: center;
  display: flex;
  align-items: center;
  max-width: 100%;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 26, 43, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-island:hover { border-color: rgba(53, 242, 160, 0.32); }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mute);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--white); background: rgba(60, 140, 255, 0.16); }
.nav-link[aria-current="page"] {
  color: #04140C;
  background: var(--neon);
}
.nav-link[aria-current="page"]:hover { color: #04140C; background: var(--neon); }

/* 行动胶囊 */
.cta-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--neon);
  color: #04140C;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 14px 40px rgba(53, 242, 160, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cta-pill:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(53, 242, 160, 0.32); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  justify-self: end;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 26, 43, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--neon); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: background 0.22s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 阅读进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: rgba(30, 44, 66, 0.55);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--neon));
}

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  background: var(--ink);
  border-top: 2px solid var(--line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(80px, 12vw, 160px);
  background: linear-gradient(180deg, rgba(53, 242, 160, 0.09), rgba(60, 140, 255, 0.05) 45%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 100%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr 1.5fr;
  gap: clamp(32px, 4vw, 56px);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}
.footer-tagline {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--mute);
}
.footer-icp {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.footer-title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon);
}
.footer-list li + li { margin-top: 10px; }
.footer-list a {
  display: inline-block;
  padding-left: 0;
  border-left: 2px solid transparent;
  font-size: 0.94rem;
  color: var(--mute);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-list a:hover {
  color: var(--white);
  padding-left: 8px;
  border-left-color: var(--neon);
}
.footer-contact li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--mute);
}
.footer-contact strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--white);
  word-break: break-all;
}
.footer-note {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--mute);
  opacity: 0.8;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--mute);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--mute); transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--neon); }

/* ============ 进入视口动效 ============ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============ 响应式：平板与移动 ============ */
@media (max-width: 960px) {
  :root { --gutter: 16px; }

  .site-header { padding-top: 0; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 11px var(--gutter);
  }
  .site-header.is-condensed .header-inner { padding-top: 8px; padding-bottom: 8px; }

  .brand-text { display: none; }
  .brand-mark { display: inline-flex; }

  .cta-pill { display: none; }
  .nav-toggle { display: grid; }

  .nav-island {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 16px;
    justify-self: stretch;
    width: auto;
    padding: 7px;
    border-radius: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.68);
    opacity: 0;
    transform: translateY(calc(100% + 32px));
    pointer-events: none;
    transition: transform 0.32s var(--ease), opacity 0.28s var(--ease);
  }
  .nav-island[data-open] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-list { gap: 4px; }
  .nav-link {
    padding: 10px 15px;
    font-size: 13px;
    scroll-snap-align: start;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { font-size: 0.74rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-hero { padding-top: clamp(112px, 26vw, 150px); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-legal { gap: 14px; }
  .breadcrumb { font-size: 11px; }
}

/* ============ 无障碍与减动效 ============ */
@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;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .nav-island { transition: none; }
}
