/* ============================================================
   九博体育中心 · 共享样式表 /assets/site.css
   深墨绿战术蓝图体系：结构线、等宽索引、青橙双强调
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --ink: #081A15;
  --ink-2: #0F2B24;
  --line: #24443B;
  --text: #D7DED9;
  --muted: #8FA29B;
  --paper: #F4F7F5;
  --cyan: #39F2D0;
  --cyan-deep: #0E8B76;
  --amber: #FFB13B;
  --steel: #5F7A73;
  --ink-text: #07110F;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(57, 242, 208, .18);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.18;
  color: inherit;
}
h1 { font-size: clamp(34px, 5.2vw, 68px); font-weight: 900; letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; letter-spacing: 0; }

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

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

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

/* ---------- 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: -90px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 2px;
  transition: top .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--text);
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(36, 68, 59, .55) 0 1px, transparent 1px 100%);
  background-size: 88px 100%;
  background-repeat: repeat;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.site-header[data-scrolled] {
  background-color: rgba(8, 26, 21, .96);
  box-shadow: 0 18px 36px -30px #000;
}

.header-inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav utility";
  align-items: center;
  gap: clamp(12px, 2.2vw, 34px);
}

/* 品牌 */
.header-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  transition: color .18s var(--ease);
}
.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(57, 242, 208, .16), rgba(57, 242, 208, 0) 62%);
  transition: border-color .18s var(--ease);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 6px;
  height: 6px;
  background: var(--amber);
}
.brand:hover .brand-mark { border-color: var(--cyan); }
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--paper);
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--muted);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}
.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle-text { display: block; }
.site-header[data-open] .nav-toggle { color: var(--cyan); border-color: var(--cyan); }
.site-header[data-open] .nav-toggle-bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 导航 */
.site-nav { grid-area: nav; justify-self: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.1vw, 18px);
}
.nav-item { display: block; }
.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 4px 11px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--text);
  transition: color .18s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--steel);
  transition: color .18s var(--ease);
}
.nav-label { display: block; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"] .nav-index { color: var(--amber); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 右侧快捷区 */
.header-utility {
  grid-area: utility;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 16px);
}
.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 242, 208, .16);
}
.utility-link {
  padding: 5px 1px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.utility-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* 滚动进度条（由 JS 插入页头） */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  pointer-events: none;
  transition: width .09s linear;
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn-primary { background: var(--cyan); color: var(--ink-text); }
.btn-primary:hover { background: #6BF7E0; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  overflow: hidden;
  color: var(--text);
  background-color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .62;
  background-image:
    linear-gradient(90deg, rgba(36, 68, 59, .55) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(36, 68, 59, .3) 0 1px, transparent 1px 100%);
  background-size: 88px 100%, 100% 88px;
  background-repeat: repeat;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(57, 242, 208, 0) 46%, var(--amber) 100%);
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .85fr .85fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.brand--footer .brand-mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 13px; }
.footer-note {
  max-width: 34ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--steel);
}
.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--cyan);
}
.footer-list li + li { margin-top: 10px; }
.footer-list a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14.5px;
  color: var(--text);
  transition: color .18s var(--ease);
}
.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.footer-list a:hover { color: var(--cyan); }
.footer-list a:hover::after { transform: scaleX(1); }

.footer-col--contact .contact-list { display: block; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 13px;
}
.contact-list li:last-child { margin-bottom: 0; }
.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--steel);
}
.contact-val {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--steel);
}
.footer-base p { margin: 0; }
.footer-legal { color: var(--steel); }
.footer-copy { color: var(--steel); }
.footer-cta {
  margin-left: auto;
  padding-bottom: 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--cyan);
  border-bottom: 1px solid rgba(57, 242, 208, .35);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.footer-cta:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* ============================================================
   页面容器与通用排版组件
   ============================================================ */
.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--tight { padding: clamp(24px, 3.5vw, 44px) 0; }

.rule {
  display: block;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.4;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

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

/* 浅色反白分区 */
.theme-paper {
  background: var(--paper);
  color: var(--ink-text);
}
.theme-paper h1,
.theme-paper h2,
.theme-paper h3,
.theme-paper h4 { color: var(--ink-text); }
.theme-paper strong,
.theme-paper b { color: var(--ink-text); }
.theme-paper .eyebrow { color: var(--cyan-deep); }
.theme-paper .rule { background: rgba(36, 68, 59, .24); }
.theme-paper .footer-col-title { color: var(--cyan-deep); }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  transition: color .18s var(--ease);
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-sep { color: var(--steel); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ============================================================
   图片容器基础规则（页面阶段复用）
   ============================================================ */
.figure { display: block; margin: 0; }
.figure-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16 / 10;
  background-color: var(--ink-2);
  background-image:
    linear-gradient(118deg, rgba(57, 242, 208, .12), rgba(255, 177, 59, .07) 58%, rgba(8, 26, 21, 0) 78%),
    repeating-linear-gradient(90deg, rgba(36, 68, 59, .6) 0 1px, transparent 1px 44px);
  border: 1px solid var(--line);
}
.figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.figure-media--wide { aspect-ratio: 21 / 9; }
.figure-media--tall { aspect-ratio: 4 / 5; }
.figure-media--square { aspect-ratio: 1 / 1; }
.figure--cut .figure-media {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  border: 0;
}
.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================================
   回到顶部（JS 生成）
   ============================================================ */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(15, 43, 36, .94);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), color .18s var(--ease), border-color .18s var(--ease), visibility .22s;
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { color: var(--cyan); border-color: var(--cyan); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand utility"
      "nav nav";
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 0;
  }
  .header-brand { grid-area: brand; }
  .header-utility { grid-area: utility; justify-self: end; }
  .site-nav {
    grid-area: nav;
    justify-self: stretch;
    display: none;
    margin-top: 12px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .site-header[data-open] .site-nav { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-link {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 13px 2px 13px 12px;
    font-size: 15.5px;
    border-left: 2px solid transparent;
    border-bottom: 1px solid rgba(36, 68, 59, .65);
  }
  .nav-item:last-child .nav-link { border-bottom: 0; }
  .nav-link::after { display: none; }
  .nav-link:hover { color: var(--cyan); }
  .nav-link[aria-current="page"] { border-left-color: var(--cyan); }
  .nav-index { min-width: 26px; }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .version-chip { display: none; }
  .brand-name { font-size: 15px; }
  .brand-tagline { letter-spacing: .1em; }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-cta { margin-left: 0; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 560px) {
  .utility-link { display: none; }
  .brand-tagline { font-size: 9.5px; }
  .to-top { padding: 9px 11px; letter-spacing: .08em; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
