/* ==========================================================================
   大江体育 · /assets/site.css
   共享外壳：重置 / 变量 / 中文排版 / 侧边轨道 / 页脚传送带 / 基础组件
   ========================================================================== */

:root {
  --ink: #0B0B0C;
  --paper: #F7F5F0;
  --card: #FCFAF5;
  --red: #C8321E;
  --lake: #123A5C;
  --ink-blue: #071A2B;
  --yellow: #F2B705;
  --green: #1F7A5A;
  --sand: #E8E2D6;
  --stone: #8A8A85;

  --rail-w: 244px;
  --bar-h: 62px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;

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

  --shadow: 0 1px 2px rgba(11, 11, 12, .06);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 220ms;
  --radius: 0;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

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

a { color: var(--red); text-decoration: none; }

button { font: inherit; color: inherit; }

::selection { background: var(--red); color: var(--paper); }

/* ---------- 焦点 ---------- */
:where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--yellow);
  border-radius: var(--radius);
}

:where(a, button):focus:not(:focus-visible) { outline: none; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus { transform: translateY(0); color: var(--paper); }

/* ==========================================================================
   侧边轨道头
   ========================================================================== */
.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 16px 22px 22px;
  background: var(--paper);
  border-right: 1px solid var(--sand);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 顶部阅读进度 */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 4;
  pointer-events: none;
}

/* 品牌 */
.rail-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--paper);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow);
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-desc {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* 汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 16px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.site-rail[data-open] .nav-toggle {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.site-rail[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.site-rail[data-open] .nav-toggle-bar:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* 导航 */
.rail-nav { display: flex; flex-direction: column; }

.rail-nav-title {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--stone);
}

.rail-list {
  list-style: none;
  border-left: 1px solid var(--sand);
}

.rail-list li { margin: 0; }

.rail-list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 6px 9px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail-list a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 260ms var(--ease);
}

.rail-list a:hover {
  color: var(--red);
  background: rgba(200, 50, 30, .05);
}

.rail-list a[aria-current="page"] { font-weight: 800; }
.rail-list a[aria-current="page"]::before { transform: scaleY(1); }
.rail-list a[aria-current="page"] .rail-idx { color: var(--red); }

.rail-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.rail-name { min-width: 0; }

/* 轨道底部 */
.rail-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--sand);
}

.rail-foot-title {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--stone);
}

.rail-util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lake);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.rail-util::after {
  content: "↗";
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  transition: transform var(--dur) var(--ease);
}

.rail-util:hover { color: var(--red); }
.rail-util:hover::after { transform: translate(2px, -2px); }

.rail-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--sand);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

/* 遮罩（仅移动端可见） */
.site-rail::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 43, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease);
  z-index: 1;
}

.site-rail[data-open]::after {
  opacity: 1;
  pointer-events: auto;
}

/* 桌面端为内容让出轨道 */
@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }
}

@media (min-width: 900px) and (max-width: 1180px) {
  :root { --rail-w: 210px; }
}

/* ==========================================================================
   移动端：顶栏 + 抽屉
   ========================================================================== */
@media (max-width: 899px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
  }

  .site-rail {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--sand);
    background: var(--paper);
    overflow: visible;
  }

  .rail-top {
    position: relative;
    z-index: 3;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .brand-name { font-size: 16px; }
  .brand-desc { display: none; }

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

  .rail-nav {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    margin: 0;
    padding: 24px 22px 44px;
    background: var(--ink-blue);
    border-left: 1px solid rgba(247, 245, 240, .1);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(102%);
    transition: transform 280ms var(--ease), opacity 200ms var(--ease);
    z-index: 2;
  }

  .site-rail[data-open] .rail-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .rail-nav-title { color: rgba(247, 245, 240, .45); }

  .rail-list { border-left-color: rgba(247, 245, 240, .14); }

  .rail-list a {
    padding: 13px 6px 13px 16px;
    color: var(--paper);
    font-size: 16.5px;
  }

  .rail-list a:hover {
    background: rgba(247, 245, 240, .07);
    color: var(--yellow);
  }

  .rail-list a[aria-current="page"] { color: var(--yellow); }
  .rail-list a[aria-current="page"] .rail-idx { color: var(--yellow); }

  .rail-idx { color: rgba(247, 245, 240, .5); }

  .rail-foot { display: none; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-foot {
  background: var(--ink);
  color: var(--paper);
}

/* 传送带 */
.entry-belt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--lake);
  border-top: 3px solid var(--red);
}

.belt-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(20px, 3vw, 30px) clamp(18px, 3vw, 34px);
  color: var(--paper);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.belt-item + .belt-item { border-left: 1px solid rgba(247, 245, 240, .16); }

.belt-item:hover,
.belt-item:focus-visible {
  background: var(--red);
  color: var(--paper);
}

.belt-idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 245, 240, .55);
}

.belt-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: transform var(--dur) var(--ease);
}

.belt-item:hover .belt-text { transform: translateX(4px); }

.belt-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(247, 245, 240, .62);
  transition: color var(--dur) var(--ease);
}

.belt-item:hover .belt-kicker { color: rgba(247, 245, 240, .92); }

.belt-label {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.belt-arrow {
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--yellow);
  transition: transform var(--dur) var(--ease);
}

.belt-item:hover .belt-arrow { transform: translateX(5px); }

/* 页脚主体 */
.foot-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1.15fr);
  gap: clamp(26px, 3.5vw, 60px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 4.5vw, 60px) var(--gutter) clamp(26px, 3vw, 40px);
}

.foot-logo {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.foot-tag {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(247, 245, 240, .5);
}

.foot-coord {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(247, 245, 240, .4);
}

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

.foot-group-title {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(247, 245, 240, .45);
}

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

.foot-list a {
  color: rgba(247, 245, 240, .86);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.foot-list a:hover { color: var(--yellow); }

.foot-contact-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(247, 245, 240, .8);
}

.foot-strong {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.foot-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(247, 245, 240, .5);
}

/* 法务条 */
.foot-legal { background: var(--ink-blue); }

.foot-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(247, 245, 240, .6);
}

.foot-copy,
.foot-icp { margin: 0; }

.foot-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin-left: auto;
}

.foot-legal-links a {
  color: rgba(247, 245, 240, .78);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.foot-legal-links a:hover { color: var(--yellow); }

/* ==========================================================================
   通用工具与基础组件
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.page-head {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
}

.coord {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--stone);
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn::after {
  content: "→";
  font-family: var(--mono);
  font-size: 13px;
  transition: transform var(--dur) var(--ease);
}

.btn:hover::after { transform: translateX(3px); }

.btn--primary {
  background: var(--red);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--ink);
  color: var(--paper);
}

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

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--lake);
  line-height: 1.5;
}

.tag--red { border-color: var(--red); color: var(--red); }
.tag--green { border-color: var(--green); color: var(--green); }

.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)); }

.module {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2vw, 26px);
}

/* 图片容器基础（页面阶段直接内嵌 <img>） */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--sand);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* 章节与进场 */
[data-section].is-current {
  --section-active: 1;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    transition: opacity 480ms var(--ease), transform 480ms var(--ease);
  }

  [data-reveal].is-pending {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .foot-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .foot-contact { grid-column: 1 / -1; }
}

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

@media (max-width: 760px) {
  .entry-belt { grid-template-columns: 1fr; }

  .belt-item + .belt-item {
    border-left: 0;
    border-top: 1px solid rgba(247, 245, 240, .16);
  }

  .foot-body { grid-template-columns: 1fr; }

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

  .foot-legal-inner { flex-direction: column; align-items: flex-start; }

  .foot-legal-links { margin-left: 0; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .foot-links { grid-template-columns: 1fr; }
}

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

  .read-progress { transition: none; }

  [data-reveal].is-pending {
    opacity: 1;
    transform: none;
  }

  .belt-item:hover .belt-text,
  .belt-item:hover .belt-arrow { transform: none; }
}
