/* ============================================================
   大江体育安装 · 共享站点样式  /assets/site.css
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  --ink: #071C1F;
  --ink-2: #0B2427;
  --teal: #0E2C30;
  --edge: #174247;
  --clay: #C75B32;
  --clay-lite: #E08A5F;
  --sand: #F0C9B4;
  --cream: #F7F1E7;
  --lime: #B8FF3D;
  --yellow: #F2C94C;
  --red: #E5483F;

  --rail-w: 92px;
  --bar-h: 64px;
  --maxw: 1240px;

  --r-lg: 32px;
  --r-md: 20px;
  --r-sm: 12px;
  --r-pill: 999px;

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

  --ease: cubic-bezier(.22, .61, .36, 1);

  --sp: 0;
}

/* ---------- base ---------- */
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
  padding-top: var(--bar-h);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open { overflow: hidden; }

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

h1 { font-size: clamp(34px, 5.6vw, 68px); }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 27px); }

p { text-wrap: pretty; }

::selection {
  background: var(--lime);
  color: #08201A;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: #08201A;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

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

/* ============================================================
   HEADER · 框架式导航
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(7, 28, 31, .94);
  border-bottom: 2px solid var(--edge);
}

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

.brand__glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--clay);
  color: #FFF6EF;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(184, 255, 61, .16);
}

.brand__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--cream);
}

/* --- nav（移动端：底部抽屉框架条） --- */
.frame-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 72px;
  z-index: 86;
  max-height: 64vh;
  overflow-y: auto;
  padding: 18px 16px 20px;
  background: var(--teal);
  border-top: 2px solid var(--edge);
  border-radius: 26px 26px 0 0;
  transform: translateY(120%);
  visibility: hidden;
  transition: transform .24s var(--ease), visibility .24s var(--ease);
}

.site-header[data-open] .frame-nav {
  transform: translateY(0);
  visibility: visible;
}

.frame-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.frame-nav__item { display: block; }

.frame-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: var(--r-md);
  background: rgba(23, 66, 71, .62);
  color: rgba(247, 241, 231, .82);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .1em;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.frame-nav__link:hover { background: var(--edge); color: var(--cream); }

.frame-nav__link[aria-current="page"] {
  background: var(--lime);
  color: #08201A;
  font-weight: 700;
}

/* --- quick entries（移动端：底部动作条） --- */
.frame-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 87;
  height: 72px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--teal);
  border-top: 1px solid rgba(23, 66, 71, .9);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(120%);
  visibility: hidden;
  transition: transform .24s var(--ease), visibility .24s var(--ease);
}

.site-header[data-open] .frame-actions {
  transform: translateY(0);
  visibility: visible;
}

.frame-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--clay);
  color: #FFF6EF;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.frame-cta:hover { background: var(--clay-lite); }

.frame-cta--ghost {
  background: transparent;
  color: var(--sand);
  box-shadow: inset 0 0 0 2px var(--edge);
}

.frame-cta--ghost:hover { box-shadow: inset 0 0 0 2px var(--sand); color: var(--cream); }

/* --- toggle --- */
.nav-toggle {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--teal);
  color: var(--lime);
  cursor: pointer;
  transition: background .2s var(--ease);
}

.nav-toggle:hover { background: var(--edge); }

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}

.site-header[data-open] .nav-toggle__bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* --- scroll progress --- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform: scaleX(var(--sp, 0));
  transform-origin: left center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 62%);
  border-top: 2px solid var(--edge);
}

.footer-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 26px clamp(18px, 4vw, 52px);
  background: var(--clay);
  color: #FFF6EF;
}

.footer-band__mark {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .05em;
}

.footer-band__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: rgba(255, 246, 239, .84);
}

.footer-main {
  max-width: calc(var(--maxw) + 104px);
  margin-inline: auto;
  padding: clamp(26px, 4vw, 52px) clamp(18px, 4vw, 52px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 20px;
}

.footer-col__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--clay-lite);
  text-transform: uppercase;
}

.footer-col__list {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 241, 231, .72);
}

.footer-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color .18s var(--ease);
}

a.footer-link:hover { color: var(--lime); }

.footer-col--contact .footer-col__list { color: rgba(240, 201, 180, .8); font-size: 13px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 26px;
  max-width: calc(var(--maxw) + 104px);
  margin-inline: auto;
  padding: 20px clamp(18px, 4vw, 52px) 34px;
  border-top: 1px solid rgba(23, 66, 71, .9);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(240, 201, 180, .58);
}

.footer-base__note { flex: 1 1 320px; min-width: 220px; line-height: 1.6; }

/* ============================================================
   通用布局
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.grid-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 20px;
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--clay-lite);
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}

.section-head__note {
  flex: 1 1 240px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 241, 231, .62);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay-lite);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(240, 201, 180, .7);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--edge);
}

.breadcrumb__link {
  color: var(--sand);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.breadcrumb__link:hover { color: var(--lime); }

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

/* ---------- 正文 ---------- */
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(247, 241, 231, .86);
}

.prose > * + * { margin-top: 1em; }

.prose h2,
.prose h3 { margin-top: 1.6em; color: var(--cream); }

.prose a { color: var(--clay-lite); text-underline-offset: 3px; }
.prose a:hover { color: var(--lime); }

.prose ul,
.prose ol { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: .4em; }

/* ---------- 面板 ---------- */
.panel {
  padding: clamp(18px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  background: var(--teal);
  border: 1px solid rgba(23, 66, 71, .9);
}

.panel--clay { background: var(--clay); border-color: transparent; color: #FFF6EF; }
.panel--edge { background: var(--edge); border-color: transparent; }

/* ---------- 胶囊标签 ---------- */
.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: var(--r-pill);
  background: rgba(23, 66, 71, .9);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.7;
  white-space: nowrap;
}

.data-chip--lime { background: var(--lime); color: #08201A; font-weight: 700; }
.data-chip--clay { background: var(--clay); color: #FFF6EF; }
.data-chip--yellow { background: rgba(242, 201, 76, .14); color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(242, 201, 76, .5); }
.data-chip--red { background: rgba(229, 72, 63, .14); color: #FF8E85; box-shadow: inset 0 0 0 1px rgba(229, 72, 63, .55); }

/* ---------- 轮次数字 ---------- */
.round-stamp {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(72px, 14vw, 220px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.05em;
  color: var(--clay);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.btn--primary { background: var(--clay); color: #FFF6EF; }
.btn--primary:hover { background: var(--clay-lite); }

.btn--lime { background: var(--lime); color: #08201A; font-weight: 700; }
.btn--lime:hover { background: #CDFF78; }

.btn--ghost { box-shadow: inset 0 0 0 2px var(--edge); color: var(--cream); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--sand); color: var(--sand); }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background-color: var(--teal);
  background-image:
    linear-gradient(135deg, rgba(199, 91, 50, .26), rgba(7, 28, 31, .95)),
    repeating-linear-gradient(90deg, rgba(184, 255, 61, .07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(184, 255, 61, .07) 0 1px, transparent 1px 44px);
}

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

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

/* ---------- 战术时间轴 ---------- */
.tactical-rail {
  position: relative;
  padding-left: 28px;
}

.tactical-rail::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--clay), var(--edge));
}

.tactical-rail__item {
  position: relative;
  padding-bottom: 22px;
}

.tactical-rail__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--clay);
}

.tactical-rail__item[data-active="true"]::before {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(184, 255, 61, .18);
}

/* ---------- 错落卡片堆叠 ---------- */
.card-stack {
  display: grid;
  gap: 14px;
}

.card-stack > * { border-radius: var(--r-md); }
.card-stack > *:nth-child(3n+1) { border-radius: 30px 14px 30px 14px; }
.card-stack > *:nth-child(3n+2) { border-radius: 14px 30px 14px 30px; }
.card-stack > *:nth-child(even) { margin-left: clamp(0px, 2vw, 22px); }

/* ---------- 专题研究板 ---------- */
.topic-board {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--teal);
  border: 1px solid rgba(23, 66, 71, .85);
}

.topic-board__note {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(247, 241, 231, .66);
}

/* ---------- 分段标签页 ---------- */
.segmented { display: grid; gap: 18px; }

.segmented__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--teal);
}

.segmented__tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: rgba(247, 241, 231, .7);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.segmented__tab:hover { background: rgba(23, 66, 71, .8); color: var(--cream); }

.segmented__tab[aria-selected="true"] {
  background: var(--lime);
  color: #08201A;
  font-weight: 700;
}

.segmented__panel { outline-offset: 6px; }

/* ============================================================
   栅格工具（≥768px 生效）
   ============================================================ */
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
}

@media (min-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-col--contact .footer-col__list { font-size: 12.5px; }
}

/* ============================================================
   桌面端：左侧竖向框架导航
   ============================================================ */
@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .site-header {
    top: 0;
    bottom: 0;
    right: auto;
    left: 0;
    width: var(--rail-w);
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: linear-gradient(180deg, #0B2427 0%, #071C1F 52%, #0E2C30 100%);
    border-bottom: 0;
    border-right: 2px solid var(--edge);
  }

  .brand {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 0 16px;
    min-height: 0;
  }

  .brand__glyph {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 24px;
  }

  .brand__name {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3em;
    color: var(--sand);
  }

  .frame-nav {
    position: static;
    inset: auto;
    z-index: auto;
    max-height: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    transform: none;
    visibility: visible;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    scrollbar-width: none;
    transition: none;
  }

  .frame-nav::-webkit-scrollbar { display: none; }

  .frame-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
  }

  .frame-nav__link {
    writing-mode: vertical-rl;
    min-height: 0;
    padding: 12px 9px;
    border-radius: var(--r-pill);
    background: transparent;
    font-size: 12px;
    letter-spacing: .18em;
    color: rgba(247, 241, 231, .7);
  }

  .frame-nav__link:hover { background: rgba(23, 66, 71, .7); color: var(--cream); }

  .frame-nav__link[aria-current="page"] {
    background: var(--lime);
    color: #08201A;
    font-weight: 700;
  }

  .frame-actions {
    position: static;
    inset: auto;
    z-index: auto;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px 22px;
    background: transparent;
    border: 0;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .frame-cta {
    writing-mode: vertical-rl;
    flex: 0 0 auto;
    min-height: 0;
    padding: 14px 9px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    letter-spacing: .16em;
  }

  .nav-toggle { display: none; }

  .scroll-progress {
    left: auto;
    right: -3px;
    bottom: 0;
    top: 0;
    width: 3px;
    height: auto;
  }

  .scroll-progress__bar {
    transform: scaleY(var(--sp, 0));
    transform-origin: top center;
  }

  .footer-band,
  .footer-main,
  .footer-base { padding-inline: clamp(24px, 4vw, 56px); }
}

/* ============================================================
   可访问性：减弱动效
   ============================================================ */
@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;
  }
}
