/* ==========================================================================
   8体育手机版 — 共享站点样式 /assets/site.css
   夜墨绿指挥台 · 荧光青刻度 · 信号橙数字
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

:where(a, button, [tabindex], summary):focus-visible {
  outline: 2px solid var(--cyan-hi);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --ink: #061310;
  --band: #0A1E19;
  --lift: #102A23;
  --line: #1D3B32;
  --cyan: #2CE8C4;
  --cyan-hi: #7DF5DE;
  --orange: #FF7A2D;
  --text: #E6F3EE;
  --muted: #9FBDB4;
  --mist: #0F3A31;

  /* 字体 */
  --font-head: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;

  /* 尺规 */
  --radius-card: 22px;
  --radius-pill: 999px;
  --page-max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --header-h-sm: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 3. Chinese typography & utilities ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(32px, 5.2vw, 60px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.num {
  font-family: var(--font-num);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--page-max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(44px, 7vw, 96px);
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(44, 232, 196, 0));
}

.prose { max-width: 72ch; }
.prose p + p { margin-top: 1em; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb > * + *::before {
  content: "/";
  margin-right: 8px;
  color: #3C5F55;
}

/* ---------- 4. Grid ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  grid-template-columns: 1fr;
}
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  color: var(--cyan);
  background: rgba(44, 232, 196, 0.06);
  border-color: rgba(44, 232, 196, 0.55);
}
.btn-ghost:hover {
  color: var(--cyan-hi);
  background: rgba(44, 232, 196, 0.15);
  border-color: var(--cyan-hi);
  box-shadow: 0 0 0 4px rgba(44, 232, 196, 0.1);
}

.btn-solid {
  color: #04201A;
  background: linear-gradient(150deg, var(--cyan-hi), var(--cyan));
  border-color: transparent;
}
.btn-solid:hover { box-shadow: 0 10px 26px -14px rgba(44, 232, 196, 0.9); }

.btn-orange {
  color: #1A0A00;
  background: linear-gradient(150deg, #FFA76B, var(--orange));
  border-color: transparent;
}
.btn-orange:hover { box-shadow: 0 10px 26px -14px rgba(255, 122, 45, 0.95); }

.btn-sm { padding: 8px 15px; font-size: 13px; }

/* ---------- 6. Card / tag ---------- */
.card {
  background: linear-gradient(165deg, var(--lift), #0A1C17 78%);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.6vw, 28px);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 62%);
  opacity: 0.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(44, 232, 196, 0.07);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 45, 0.4);
  background: rgba(255, 122, 45, 0.09);
}

/* ---------- 7. Media frame (页面阶段放置图片/图表) ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(160deg, var(--mist), #071A15 72%),
    var(--ink);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 232, 196, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 232, 196, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.75;
  pointer-events: none;
}
.media-frame img,
.media-frame svg {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 3; }
.media-frame__label {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ==========================================================================
   8. Skip link
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 400;
  padding: 11px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: #04201A;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   9. Header — 紧凑命令栏
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: linear-gradient(180deg, rgba(6, 19, 16, 0.97) 0%, rgba(10, 30, 25, 0.93) 100%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 1px, transparent 1px 14px);
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}
.site-header[data-scrolled] {
  box-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.95);
}
.site-header[data-scrolled]::after { opacity: 0.42; }
.site-header[data-scrolled] .brand-tag { opacity: 0; }

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-hi));
  box-shadow: 0 0 12px rgba(44, 232, 196, 0.55);
  transition: width .1s linear;
}

.header-inner {
  position: relative;
  width: min(calc(100% - var(--gutter) * 2), var(--page-max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding-block: 10px;
  transition: min-height .24s var(--ease), padding-block .24s var(--ease);
}
.site-header[data-scrolled] .header-inner {
  min-height: var(--header-h-sm);
  padding-block: 4px;
}

/* ---- 品牌 ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #04201A;
  background: linear-gradient(150deg, var(--cyan-hi) 0%, var(--cyan) 55%, var(--mist) 145%);
  box-shadow: 0 0 0 1px rgba(44, 232, 196, 0.34), 0 10px 22px -14px rgba(44, 232, 196, 0.95);
  transition: transform .28s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-tag {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--muted);
  transition: opacity .24s var(--ease);
}

/* ---- 导航 ---- */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-index {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #3C5F55;
  transition: color .18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width .22s var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(44, 232, 196, 0.07);
}
.nav-link:hover .nav-index { color: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(44, 232, 196, 0.1);
}
.nav-link[aria-current="page"] .nav-index { color: var(--cyan); }
.nav-link[aria-current="page"]::after { width: 16px; }

/* ---- 操作区 ---- */
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta { padding: 10px 18px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--lift);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.nav-toggle:hover { border-color: rgba(44, 232, 196, 0.5); }
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle-bars span:nth-child(2) { width: 70%; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(52px, 8vw, 110px);
  background: linear-gradient(180deg, var(--band) 0%, #04100D 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(44, 232, 196, 0.12) 46%, var(--orange) 100%);
  opacity: 0.85;
}

.footer-inner {
  width: min(calc(100% - var(--gutter) * 2), var(--page-max));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3.2vw, 52px);
}

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

.footer-brand .brand { margin-bottom: 16px; }

.footer-note {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 34ch;
}
.footer-note--small {
  max-width: 32ch;
  margin-top: 14px;
  font-size: 12.5px;
  color: #7E9C93;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(44, 232, 196, 0.06);
  font-size: 12px;
  color: var(--cyan);
  line-height: 1.6;
}
.footer-badge-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(44, 232, 196, 0.18);
}

.footer-title {
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer-link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: width .2s var(--ease);
}
.footer-link:hover { color: var(--text); transform: translateX(4px); }
.footer-link:hover::before { width: 6px; }
.footer-link[aria-current="page"] { color: var(--cyan); }

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.contact-key {
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: #5C8078;
  text-transform: uppercase;
}
.contact-val {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.footer-contact-list li:first-child .contact-val {
  font-family: var(--font-num);
  font-feature-settings: "tnum" 1;
  color: var(--cyan-hi);
}
.footer-contact-list li:nth-child(2) .contact-val {
  font-family: var(--font-num);
  font-feature-settings: "tnum" 1;
  font-size: 16px;
  color: var(--orange);
}

.footer-bar {
  width: min(calc(100% - var(--gutter) * 2), var(--page-max));
  margin-inline: auto;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-legal {
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #7E9C93;
  margin: 0;
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-link { padding: 8px 9px; font-size: 13.5px; }
  .nav-index { display: none; }
  .header-cta { padding: 9px 15px; font-size: 13px; }
}

@media (max-width: 920px) {
  .header-inner { min-height: 64px; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    justify-content: flex-start;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #081B16 0%, #061310 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 44px -28px rgba(0, 0, 0, 0.95);
    transition: max-height .3s var(--ease);
  }
  .site-nav[data-open] {
    max-height: min(78vh, 560px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 22px;
  }
  .nav-link {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 14px;
    justify-content: flex-start;
  }
  .nav-index { display: inline; font-size: 11px; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    box-shadow: inset 3px 0 0 0 var(--cyan);
  }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .grid--7-5,
  .grid--8-4 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-tag { display: none; }
  .header-cta { padding: 8px 13px; font-size: 12.5px; }
  .nav-toggle { padding: 8px 12px; }
  .nav-toggle-text { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .footer-note { max-width: none; }
}

@media (max-width: 400px) {
  .header-cta { display: none; }
}

/* ---------- 12. Motion preferences ---------- */
@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;
  }
  .btn:hover,
  .brand:hover .brand-mark,
  .footer-link:hover { transform: none; }
}
