/* =========================================================
   必一体育 · 共享站点样式 /assets/site.css
   框架式导航 + 堆叠画板 + 河线动线
   ========================================================= */

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

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

body { margin: 0; }

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

ol, ul { padding: 0; list-style: none; }

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

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

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink: #06191C;
  --deep: #0A3438;
  --panel: #12565A;
  --mist: #2E7D7A;
  --sand: #E7D6B8;
  --paper: #F7F0E4;
  --orange: #FF6B35;
  --mint: #35E0B2;
  --slate: #526462;
  --white: #FFFFFF;

  --rail-w: 0px;
  --shell-max: 1320px;
  --gutter: 20px;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "HarmonyOS Sans SC", sans-serif;
  --font-head: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-open: 280ms;
  --dur-enter: 480ms;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

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

/* ---------- 3. 中文排版与底色 ---------- */
body {
  background: var(--paper);
  color: var(--deep);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--deep);
}

h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(25px, 3.4vw, 34px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }

p + p { margin-top: 1.2em; }

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

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

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

/* ---------- 4. 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 5. 页头：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  isolation: isolate;
  background: rgba(10, 52, 56, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(231, 214, 184, 0.16);
  color: var(--paper);
}

/* 左侧竖轨：导航即边框 */
.header-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: linear-gradient(180deg, var(--panel) 0%, var(--deep) 42%, var(--ink) 100%);
  border-right: 1px solid rgba(231, 214, 184, 0.14);
}

.rail-node {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  opacity: 0.7;
}

.rail-node--mint {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(53, 224, 178, 0.16);
  opacity: 1;
}

.rail-word {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(231, 214, 184, 0.62);
}

@media (min-width: 1080px) {
  .header-rail { display: flex; }
}

.header-bar {
  position: relative;
  max-width: var(--shell-max);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px var(--gutter);
  transition: min-height 220ms var(--ease), padding 220ms var(--ease);
}

.site-header[data-tight="true"] .header-bar {
  min-height: 62px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  transform: skewX(-7deg);
  transition: background-color var(--dur-fast) var(--ease);
}

.brand:hover .brand-mark { background: #ff8256; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.brand-line {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(231, 214, 184, 0.6);
  white-space: nowrap;
}

/* 主导航（桌面） */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(247, 240, 228, 0.8);
  text-decoration: none;
  border-radius: 2px;
  transition: color var(--dur-fast) var(--ease);
}

.nav-link:hover { color: var(--mint); }

.nav-link[aria-current="page"] { color: var(--paper); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 2px;
  background: var(--orange);
}

.nav-shortcuts { display: none; }
.nav-cta { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(231, 214, 184, 0.32);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.nav-toggle:hover { border-color: var(--mint); color: var(--mint); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur-open) var(--ease), opacity var(--dur-fast) 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);
}

/* 河线进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: rgba(231, 214, 184, 0.1);
}

.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint), var(--orange));
  transition: transform 120ms linear;
}

/* ---------- 6. 页头移动态 ---------- */
@media (max-width: 979px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .header-actions { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 0 var(--gutter);
    background: rgba(6, 25, 28, 0.985);
    border-bottom: 1px solid rgba(231, 214, 184, 0.18);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height var(--dur-open) var(--ease),
                opacity 220ms var(--ease),
                padding var(--dur-open) var(--ease),
                visibility var(--dur-open);
  }

  .nav[data-open="true"] {
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding: 14px var(--gutter) 24px;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 54px;
    padding: 12px 0 12px 14px;
    font-size: 17px;
    border-bottom: 1px solid rgba(231, 214, 184, 0.12);
  }

  .nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 18px;
    transform: translateY(-50%);
  }

  .nav-shortcuts {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(231, 214, 184, 0.22);
  }

  .nav-shortcuts__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: rgba(231, 214, 184, 0.48);
  }

  .nav-shortcuts a {
    font-size: 14px;
    color: rgba(247, 240, 228, 0.72);
    text-decoration: none;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

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

  .nav-cta {
    display: flex;
    width: 100%;
    margin-top: 18px;
    min-height: 48px;
  }
}

@media (max-width: 520px) {
  .brand-line { display: none; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; font-size: 17px; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 0 10px; }
  .header-bar { gap: 14px; }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(247, 240, 228, 0.76);
}

.footer-river {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 6% 0%, rgba(53, 224, 178, 0.14), transparent 62%),
    radial-gradient(90% 70% at 94% 6%, rgba(255, 107, 53, 0.11), transparent 64%),
    linear-gradient(112deg, rgba(46, 125, 122, 0.16) 0%, transparent 46%);
}

.footer-river::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 224, 178, 0.5) 22%, rgba(255, 107, 53, 0.45) 68%, transparent);
}

.footer-inner {
  position: relative;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) var(--gutter) 26px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 132px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0.02em;
  color: rgba(231, 214, 184, 0.2);
  user-select: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer-wordmark {
    background: linear-gradient(94deg, rgba(231, 214, 184, 0.55), rgba(53, 224, 178, 0.22) 72%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(231, 214, 184, 0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid rgba(231, 214, 184, 0.16);
}

@media (min-width: 620px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--contact { grid-column: span 2; }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1.5fr; gap: 40px; }
  .footer-col--contact { grid-column: auto; }
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--sand);
}

.footer-heading::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

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

.footer-list a {
  font-size: 15px;
  color: rgba(247, 240, 228, 0.78);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

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

.footer-list--data li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}

.footer-key {
  flex: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(231, 214, 184, 0.46);
}

.footer-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: rgba(247, 240, 228, 0.86);
  word-break: break-word;
}

.footer-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 240, 228, 0.48);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(231, 214, 184, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 240, 228, 0.52);
}

.footer-icp { color: rgba(231, 214, 184, 0.6); }

/* ---------- 8. 容器与画板 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.panel {
  position: relative;
  padding: clamp(26px, 4vw, 56px);
}

.panel--sand { background: var(--sand); color: var(--deep); }

.panel--solid { background: var(--deep); color: var(--paper); }
.panel--solid h1,
.panel--solid h2,
.panel--solid h3,
.panel--solid strong { color: var(--paper); }

.panel--glass {
  background: rgba(247, 240, 228, 0.14);
  border: 1px solid rgba(231, 214, 184, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel--outline { border: 1px solid rgba(10, 52, 56, 0.18); }

/* ---------- 9. 标题体系 ---------- */
.chapter-no {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.chapter-no::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.panel--solid .chapter-no { color: var(--mint); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--mist);
}

.panel--solid .eyebrow { color: var(--mint); }

.display-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.5vw, 96px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: var(--deep);
}

.panel--solid .display-title { color: var(--paper); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 10px 26px -16px rgba(255, 107, 53, 0.95);
}

.btn-primary:hover { background: #ff8256; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(231, 214, 184, 0.36);
}

.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }

.btn-solid { background: var(--deep); color: var(--paper); }
.btn-solid:hover { background: var(--panel); transform: translateY(-1px); }

/* ---------- 11. 面包屑 / 标签 / 数据 ---------- */
.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(--slate);
}

.breadcrumb a {
  color: var(--panel);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(82, 100, 98, 0.5);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(46, 125, 122, 0.42);
  border-radius: 999px;
  color: var(--panel);
}

.tag--mint {
  border-color: rgba(53, 224, 178, 0.72);
  color: #0c6450;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
}

.stat__value {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.panel--solid .stat__label { color: rgba(247, 240, 228, 0.62); }

/* ---------- 12. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: block;
  width: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 122, 0.22), rgba(231, 214, 184, 0.62));
  border: 1px solid rgba(10, 52, 56, 0.12);
}

.media-frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 38%;
  height: 1px;
  background: var(--orange);
  z-index: 2;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 42%, rgba(6, 25, 28, 0.42) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ---------- 13. 河线分隔 ---------- */
.river-line {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 122, 0.5) 18%, rgba(255, 107, 53, 0.4) 58%, transparent);
}

/* ---------- 14. 可展开内容组 ---------- */
.disclosure {
  border-top: 1px solid rgba(10, 52, 56, 0.16);
}

.disclosure + .disclosure { border-top: 1px solid rgba(10, 52, 56, 0.16); }

.disclosure__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--deep);
  transition: color var(--dur-fast) var(--ease);
}

.disclosure__trigger:hover { color: var(--panel); }

.disclosure__trigger::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--orange);
  transition: transform var(--dur-open) var(--ease);
}

.disclosure[data-open="true"] .disclosure__trigger::after { transform: rotate(45deg); }

.disclosure__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-open) var(--ease);
}

.disclosure__body {
  padding: 0 0 22px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
}

.panel--solid .disclosure { border-top-color: rgba(231, 214, 184, 0.2); }
.panel--solid .disclosure__trigger { color: var(--paper); }
.panel--solid .disclosure__body { color: rgba(247, 240, 228, 0.7); }

/* ---------- 15. 减少动效 ---------- */
@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;
  }

  .scroll-meter__fill { transition: none; }
}
