/* ==========================================================================
   九州体育 · 共享外壳样式  /assets/site.css
   夜场墨绿基底 + 荧光青绿数据高亮 + 琥珀金入口
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #061A15;
  --ink-2: #0A211A;
  --moss: #12362C;
  --mint: #38F2B0;
  --amber: #F4B64A;
  --brick: #B85C4B;
  --mustard: #D6B94C;
  --stone: #8B9A90;
  --bone: #F3EFE3;
  --clay: #C47A5A;
  --graphite: #263630;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-cond: "Barlow Condensed", "Oswald", "Arial Narrow", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --rail-w: 252px;
  --gutter: 20px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --line: 1px solid var(--graphite);
}

/* ---------- 3. 基底排版 ---------- */
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; }
main:focus { outline: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
}

p { line-height: 1.7; }

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

a:hover { color: var(--bone); }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---------- 4. 跳转链 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-cond);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: top .16s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

/* ==========================================================================
   5. 头部 / 侧边轨道导航
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 26, 21, .96);
  border-bottom: var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-head__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px var(--gutter);
}

/* --- 品牌 --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  color: var(--bone);
}

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

.brand__mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--mint) 0%, #7BE3B6 45%, var(--amber) 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--stone);
  line-height: 1.3;
}

/* --- 移动端开关 --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 13px;
  background: rgba(18, 54, 44, .6);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-cond);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(56, 242, 176, .55);
  background: rgba(56, 242, 176, .1);
}

.nav-toggle__bars {
  display: block;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--mint);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle__bars span:nth-child(2) { width: 12px; }

.site-head[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-head[data-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-head[data-open="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- 导航轨道 --- */
.rail {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  padding: 16px var(--gutter) 26px;
  background: linear-gradient(180deg, #0B241C 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--mint);
  box-shadow: 0 26px 50px rgba(0, 0, 0, .6);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.site-head[data-open="true"] .rail {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.rail__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rail__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
}

.rail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 12px;
  color: rgba(243, 239, 227, .78);
  font-family: var(--font-cond);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.rail__link:hover {
  color: var(--bone);
  background: rgba(56, 242, 176, .07);
  border-left-color: var(--stone);
}

.rail__link[aria-current="page"] {
  color: var(--mint);
  background: linear-gradient(90deg, rgba(56, 242, 176, .16), rgba(56, 242, 176, 0) 88%);
  border-left-color: var(--mint);
}

.rail__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--stone);
  transition: color .18s var(--ease);
}

.rail__link[aria-current="page"] .rail__num {
  color: var(--amber);
}

.rail__txt {
  flex: 1 1 auto;
  min-width: 0;
}

.rail__tick {
  flex: none;
  width: 12px;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transition: opacity .18s var(--ease), width .18s var(--ease);
}

.rail__link:hover .rail__tick,
.rail__link[aria-current="page"] .rail__tick {
  opacity: .85;
  width: 20px;
}

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed rgba(38, 54, 48, .95);
}

.rail__note {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--stone);
}

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(6, 26, 21, .68);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--bone);
}

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

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn--amber:hover {
  background: #FFC96D;
  border-color: #FFC96D;
  color: var(--ink);
}

.btn--ghost {
  background: rgba(18, 54, 44, .35);
  border-color: rgba(139, 154, 144, .5);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(56, 242, 176, .08);
}

.btn--sm {
  min-height: 44px;
  padding: 9px 16px;
  font-size: .92rem;
}

.btn--block { width: 100%; }

/* ---------- 7. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 56px; }

.grid {
  display: grid;
  gap: 20px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 16px);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rule {
  height: 1px;
  border: 0;
  margin: 32px 0;
  background: linear-gradient(90deg, var(--graphite) 0%, rgba(38, 54, 48, 0) 100%);
}

/* ---------- 8. 排版组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--mint);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-head__title {
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
}

.section-head__desc {
  max-width: 62ch;
  font-size: .95rem;
  color: var(--stone);
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin: 1.9em 0 .55em;
  font-size: clamp(1.32rem, 2.6vw, 1.8rem);
}

.prose h3 {
  margin: 1.6em 0 .45em;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.prose p,
.prose li {
  color: rgba(243, 239, 227, .84);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li { margin: .32em 0; }

/* ---------- 9. 档案卡 / 面板 / 标签 / 指标 ---------- */
.panel {
  position: relative;
  padding: 22px;
  background: linear-gradient(155deg, var(--moss) 0%, #0B241C 100%);
  border: var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.card {
  position: relative;
  padding: 20px;
  background: linear-gradient(160deg, #102E25 0%, #0A211A 100%);
  border: var(--line);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.card:hover {
  border-color: rgba(56, 242, 176, .48);
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(56, 242, 176, .32);
  border-radius: 999px;
  background: rgba(56, 242, 176, .12);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  white-space: nowrap;
}

.tag--amber {
  background: rgba(244, 182, 74, .12);
  border-color: rgba(244, 182, 74, .38);
  color: var(--amber);
}

.tag--red {
  background: rgba(184, 92, 75, .18);
  border-color: rgba(184, 92, 75, .55);
  color: #E7A093;
}

.tag--yellow {
  background: rgba(214, 185, 76, .14);
  border-color: rgba(214, 185, 76, .48);
  color: var(--mustard);
}

.tag--stone {
  background: rgba(139, 154, 144, .12);
  border-color: rgba(139, 154, 144, .38);
  color: var(--stone);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--bone);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  padding-top: 18px;
  font-size: .8rem;
  color: var(--stone);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: var(--graphite);
}

.breadcrumb a {
  color: var(--stone);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--mint); }

.breadcrumb [aria-current="page"] { color: var(--bone); }

/* ---------- 11. 图片容器（供页面阶段使用） ---------- */
.media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 54, 44, 1) 0%, rgba(6, 26, 21, 1) 100%);
  border: var(--line);
}

.media > img,
.media > picture,
.media > picture > img {
  width: 100%;
  height: 100%;
  display: block;
}

.media > img,
.media > picture > img {
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(198deg, rgba(6, 26, 21, 0) 42%, rgba(6, 26, 21, .74) 100%);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }

.media__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--stone);
}

/* ==========================================================================
   12. 页脚
   ========================================================================== */
.site-foot {
  position: relative;
  margin-top: 72px;
  padding-top: 52px;
  background:
    radial-gradient(130% 110% at 10% 0%, rgba(18, 54, 44, .96) 0%, rgba(6, 26, 21, 1) 64%),
    var(--ink);
  border-top: var(--line);
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint) 0%, var(--amber) 44%, rgba(214, 185, 76, 0) 82%);
}

.site-foot__grid {
  display: grid;
  gap: 34px 26px;
  padding-bottom: 34px;
}

.site-foot__mark {
  margin-bottom: 10px;
  font-family: var(--font-cond);
  font-size: clamp(2.4rem, 9vw, 3.9rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56, 242, 176, .24);
  user-select: none;
}

.site-foot__brandline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bone);
}

.site-foot__desc {
  margin: 10px 0 16px;
  max-width: 46ch;
  font-size: .9rem;
  color: rgba(243, 239, 227, .7);
}

.site-foot__title {
  margin-bottom: 12px;
  font-family: var(--font-cond);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}

.foot-list {
  list-style: none;
  display: grid;
  gap: 2px;
}

.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 2px 0;
  color: rgba(243, 239, 227, .72);
  font-size: .92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.foot-link:hover {
  color: var(--mint);
  border-bottom-color: rgba(56, 242, 176, .5);
}

.foot-facts {
  display: grid;
  gap: 11px;
}

.foot-fact {
  display: grid;
  gap: 1px;
}

.foot-fact dt {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}

.foot-fact dd {
  font-size: .9rem;
  color: rgba(243, 239, 227, .86);
  overflow-wrap: anywhere;
}

.site-foot__note {
  margin-top: 14px;
  max-width: 32ch;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--stone);
}

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 18px 0 28px;
  border-top: var(--line);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--stone);
}

.site-foot__legal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.site-foot__copy { margin: 0; }

/* ==========================================================================
   13. JS 注入元素
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, var(--mint) 0%, var(--amber) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--ink);
}

[data-reveal] {
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.has-js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   14. 响应式
   ========================================================================== */
@media (min-width: 560px) {
  :root { --gutter: 26px; }
  .section { padding-block: 68px; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding-block: 80px; }

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

  .site-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__intro { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-head {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    background:
      linear-gradient(180deg, rgba(18, 54, 44, .94) 0%, rgba(6, 26, 21, 1) 58%),
      var(--ink);
    border-right: var(--line);
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-head::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 46%;
    background: linear-gradient(180deg, var(--mint) 0%, rgba(56, 242, 176, 0) 100%);
    pointer-events: none;
  }

  .site-head__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px 20px 20px;
    border-bottom: 1px dashed rgba(38, 54, 48, .95);
  }

  .site-head__bar .brand { width: 100%; }

  .nav-toggle { display: none; }

  .rail {
    position: static;
    flex: 1 1 auto;
    max-height: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    padding: 22px 20px 26px;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    transition: none;
  }

  .rail-scrim { display: none; }

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

  .grid--editorial {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 40px;
  }

  .site-foot__grid {
    grid-template-columns: 1.35fr .8fr 1.35fr .8fr;
    gap: 30px 26px;
  }

  .site-foot__intro { grid-column: auto; }

  .scroll-progress { left: var(--rail-w); }
}

@media (min-width: 1280px) {
  :root { --rail-w: 272px; }
  .section { padding-block: 92px; }
}

/* ---------- 15. 面向无动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .card:hover { transform: none; }
}
