/* =========================================================
   九博体育 V3.1 · 共享样式 /assets/site.css
   报头式刊头 · 战术板配色 · 精密细线网格
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption,
blockquote, dl, dt, dd, hr, fieldset {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

hr { border: 0; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --deep: #061826;
  --tactical: #0E2B44;
  --cyan: #19D9C7;
  --cyan-soft: #8AF2E9;
  --lava: #FF6A2A;
  --lava-soft: #FF8552;
  --graphite: #2B333A;
  --mist: #E7EDEF;
  --paper: #FAFBFA;
  --ink: #10171C;
  --silver: #9FB0B8;
  --violet: #7668FF;

  /* 衍生 */
  --line-dark: rgba(159, 176, 184, 0.22);
  --line-light: rgba(43, 51, 58, 0.16);
  --body-on-dark: #C6D4DA;
  --body-on-light: #33424A;

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", monospace;

  /* 尺度 */
  --step: 8px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
  --space: 16px;
  --radius: 0;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--body-on-dark);
  background-color: var(--deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--paper);
}

h1 { font-size: clamp(44px, 7.4vw, 112px); }
h2 { font-size: clamp(30px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 1.8vw, 22px); letter-spacing: 0.04em; }

p { max-width: 68ch; }

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

::selection {
  background: var(--cyan);
  color: var(--deep);
}

:focus-visible {
  outline: 2px solid var(--lava);
  outline-offset: 3px;
}

#main-content { scroll-margin-top: 120px; }

/* ---------- 4. 通用文字组件 ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lede {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.85;
  color: var(--cyan-soft);
  max-width: 62ch;
}

.mono-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.4;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
  border: 1px solid var(--line-dark);
  padding: 3px 8px;
  white-space: nowrap;
}

.hairline {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line-dark);
}

/* ---------- 5. 布局容器 ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.stack > * + * { margin-top: var(--space); }

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 32px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (min-width: 901px) {
  .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; }
}

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

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

/* 浅色内容带 */
.band--paper {
  background: var(--mist);
  color: var(--body-on-light);
}

.band--paper h1,
.band--paper h2,
.band--paper h3,
.band--paper h4,
.band--paper strong { color: var(--ink); }

.band--paper .lede { color: #3A4C55; }
.band--paper .hairline { background: var(--line-light); }
.band--paper .mono-tag { color: #0C7B73; }
.band--paper .tag { color: #0C7B73; border-color: var(--line-light); }

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-line: rgba(159, 176, 184, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--btn-line);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.btn--signal {
  --btn-bg: var(--lava);
  --btn-fg: #140A04;
  --btn-line: var(--lava);
  font-weight: 700;
}

.btn--signal:hover {
  --btn-bg: var(--lava-soft);
  --btn-line: var(--lava-soft);
}

.btn--ghost {
  --btn-fg: var(--cyan-soft);
  --btn-line: rgba(25, 217, 199, 0.5);
}

.btn--ghost:hover {
  --btn-bg: rgba(25, 217, 199, 0.12);
  --btn-line: var(--cyan);
  --btn-fg: var(--cyan);
}

.link-quiet {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #B9C9D0;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-quiet:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 7. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lava);
  color: #140A04;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 8. 头部刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--deep);
  border-bottom: 1px solid var(--line-dark);
  color: var(--mist);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(240px, 34vw);
  height: 2px;
  background: var(--cyan);
}

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line-dark);
}

.masthead__aside {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.masthead__version {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.masthead__brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 14px;
  position: relative;
}

.masthead__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--paper);
  transition: color 0.2s ease;
}

.masthead__brand:hover .masthead__name { color: var(--cyan-soft); }

.masthead__brand::after {
  content: "";
  width: 56px;
  height: 2px;
  background: var(--lava);
}

.masthead__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  text-indent: 0.3em;
}

.masthead__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}

/* 主导航 */
.primary-nav {
  border-bottom: 1px solid var(--line-dark);
}

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.primary-nav__list li + li {
  border-left: 1px solid var(--line-dark);
}

.primary-nav__list a {
  position: relative;
  display: block;
  padding: 15px clamp(12px, 1.7vw, 24px) 17px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #B4C6CE;
  transition: color 0.2s ease;
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: clamp(12px, 1.7vw, 24px);
  right: clamp(12px, 1.7vw, 24px);
  bottom: 9px;
  height: 2px;
  background: var(--lava);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s ease;
}

.primary-nav__list a:hover { color: var(--paper); }
.primary-nav__list a:hover::after { transform: scaleX(1); }

.primary-nav__list a[aria-current="page"] { color: var(--cyan); }
.primary-nav__list a[aria-current="page"]::after {
  background: var(--cyan);
  transform: scaleX(1);
}

.primary-nav__utility,
.primary-nav__note { display: none; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  color: var(--cyan-soft);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- 9. 移动端头部 ---------- */
@media (max-width: 900px) {
  .masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
  }

  .masthead__aside { display: none; }

  .masthead__brand {
    justify-items: start;
    padding: 0;
    gap: 4px;
  }

  .masthead__name {
    font-size: 26px;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }

  .masthead__brand::after { width: 36px; height: 2px; }

  .masthead__sub { font-size: 9px; letter-spacing: 0.22em; }

  .masthead__tools { display: none; }

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

  .site-header[data-open] { background: var(--tactical); }

  .primary-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    border-bottom: 0;
    transition: max-height 0.32s ease, opacity 0.24s ease, visibility 0.24s linear;
  }

  .primary-nav[data-open] {
    max-height: min(74vh, 560px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    border-bottom: 1px solid var(--line-dark);
  }

  .primary-nav__list { display: block; padding: 6px 0 2px; }

  .primary-nav__list li + li {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .primary-nav__list a {
    padding: 16px 2px 16px;
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .primary-nav__list a::after {
    left: 2px;
    right: auto;
    width: 26px;
    bottom: 11px;
  }

  .primary-nav__utility {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0 4px;
  }

  .primary-nav__note {
    display: block;
    padding: 8px 0 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--silver);
  }
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--tactical);
  color: var(--body-on-dark);
  border-top: 1px solid var(--line-dark);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(280px, 42vw);
  height: 2px;
  background: var(--cyan);
}

.site-footer__inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
}

.footer-masthead {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.footer-brand:hover { color: var(--cyan); }

.footer-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver);
}

.footer-summary {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.85;
  color: #AFC0C8;
  max-width: 34ch;
}

.footer-cta { margin-top: 6px; justify-self: start; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.footer-col { min-width: 0; }

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-list li + li { margin-top: 9px; }

.footer-list a {
  font-size: 14px;
  color: #BCCCD3;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(25, 217, 199, 0.5);
}

.footer-list--contact li {
  display: grid;
  gap: 2px;
}

.footer-list--contact li + li { margin-top: 14px; }

.footer-value {
  font-size: 14px;
  line-height: 1.65;
  color: #C6D4DA;
  overflow-wrap: anywhere;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.footer-legal__icp,
.footer-legal__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--silver);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal__links a {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #AFC0C8;
  transition: color 0.2s ease;
}

.footer-legal__links a:hover { color: var(--cyan); }

.footer-note {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.8;
  color: var(--silver);
  max-width: 90ch;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { justify-content: flex-start; }
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--silver);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--cyan);
  font-size: 11px;
}

.breadcrumbs a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(25, 217, 199, 0.5);
}

.breadcrumbs [aria-current="page"] {
  color: var(--cyan-soft);
  overflow-wrap: anywhere;
}

.band--paper .breadcrumbs { color: #5A6B74; }
.band--paper .breadcrumbs a:hover { color: #0C7B73; }
.band--paper .breadcrumbs [aria-current="page"] { color: #0C7B73; }

/* ---------- 12. 面板与基础组件 ---------- */
.panel {
  background: rgba(14, 43, 68, 0.55);
  border: 1px solid var(--line-dark);
  padding: clamp(20px, 3vw, 34px);
}

.band--paper .panel {
  background: var(--paper);
  border-color: var(--line-light);
  color: var(--body-on-light);
}

/* ---------- 13. 图片容器（页面阶段放置占位） ---------- */
.figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-dark);
  background: var(--deep);
}

.figure__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #071E2E;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(25, 217, 199, 0.10) 0,
      rgba(25, 217, 199, 0.10) 1px,
      transparent 1px,
      transparent 14px);
}

.figure__media > img,
.figure__media > picture,
.figure__media > video,
.figure__media > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--silver);
  background: rgba(6, 24, 38, 0.65);
}

.figure__mark {
  position: absolute;
  border: 1px solid var(--cyan);
  background: rgba(25, 217, 199, 0.08);
  pointer-events: none;
}

.figure__mark-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  padding: 2px 7px;
  background: var(--cyan);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  white-space: nowrap;
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--phone .figure__media { aspect-ratio: 9 / 19; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure--diagram .figure__media { aspect-ratio: 4 / 3; }

.figure--phone { max-width: 360px; }

@media (max-width: 600px) {
  .figure--wide .figure__media { aspect-ratio: 16 / 10; }
  .figure--phone { max-width: 100%; }
}

/* ---------- 14. 滚动进度条（脚本生成） ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: var(--lava);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 15. 进入视口显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 无障碍工具 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 17. 减少动态偏好 ---------- */
@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;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover { transform: none; }
}
