/* ============================================================
   6688体育主站 · /assets/site.css
   共享壳层：reset、变量、中文排版、轨道头部、页脚、
   通用按钮、面包屑、正文容器、栅格与基础组件
   ============================================================ */

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

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

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

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

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

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

input, textarea, select { font: inherit; }

/* ---------- tokens ---------- */
:root {
  --ink: #07130F;
  --ink-2: #101413;
  --panel: #12211C;
  --lime: #C6FF3D;
  --orange: #FF6A2B;
  --ice: #7FD6FF;
  --white: #F2F5F1;
  --moss: #8FA396;
  --line: #24352D;
  --alert: #FF4D5E;

  --rail-w: 110px;
  --wrap: 1180px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular",
    Consolas, "Liberation Mono", monospace;

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

/* ---------- 中文排版基线 ---------- */
body {
  min-height: 100%;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 78% at 82% -12%, rgba(198, 255, 61, .07), transparent 62%),
    radial-gradient(90% 60% at -6% 104%, rgba(127, 214, 255, .055), transparent 70%),
    linear-gradient(180deg, #07130F 0%, #061110 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 球场边线网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(36, 53, 45, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 53, 45, .38) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: .32;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }

a { text-decoration: none; }

::selection {
  background: var(--lime);
  color: #06110C;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 版心 ---------- */
#main-content {
  position: relative;
  z-index: 1;
  margin-left: var(--rail-w);
  min-height: 40vh;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: #06110C;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}

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

/* ============================================================
   头部 · 侧边轨道
   ============================================================ */
.site-header {
  position: relative;
  z-index: 80;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 0 14px;
  background:
    linear-gradient(180deg, #0A1712 0%, #081311 56%, #060F0C 100%);
  border-right: 1px solid var(--line);
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--ice) 55%, transparent);
  opacity: .8;
}

/* 品牌字标 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 16px;
  color: var(--white);
}

.brand__mark {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--lime);
}

.brand__cn {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--moss);
  line-height: 1;
}

/* 导航本体 */
.rail__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail__nav::-webkit-scrollbar { display: none; }

.rail__kicker { display: none; }

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.rail__item { width: 100%; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 9px 0;
  color: var(--moss);
  border-left: 2px solid transparent;
  transition:
    color .18s var(--ease),
    border-color .18s var(--ease),
    background-color .18s var(--ease),
    transform .18s var(--ease);
}

.rail__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: #4C6155;
  line-height: 1;
  transition: color .18s var(--ease);
}

.rail__label {
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1;
}

.rail__link:hover,
.rail__link:focus-visible {
  color: var(--white);
  border-left-color: var(--lime);
  background-color: rgba(198, 255, 61, .06);
  transform: translateX(2px);
}

.rail__link:hover .rail__num,
.rail__link:focus-visible .rail__num { color: var(--lime); }

.rail__link[aria-current="page"] {
  color: var(--lime);
  border-left-color: var(--lime);
  background-image: linear-gradient(90deg, rgba(198, 255, 61, .16), rgba(198, 255, 61, 0));
}

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

/* 轨道底部收藏 */
.rail__foot {
  display: flex;
  justify-content: center;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line);
}

.rail__fav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--moss);
  transition: color .18s var(--ease);
}

.rail__fav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, .18);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease);
}

.rail__fav-txt {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .3em;
  line-height: 1;
}

.rail__fav:hover,
.rail__fav:focus-visible { color: var(--lime); }

.rail__fav:hover .rail__fav-dot,
.rail__fav:focus-visible .rail__fav-dot {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, .2);
}

/* 移动导航按钮（桌面隐藏） */
.navToggle { display: none; }

/* 阅读进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: calc(var(--rail-w) - 2px);
  z-index: 78;
  width: 2px;
  height: 100vh;
  background: rgba(36, 53, 45, .7);
  pointer-events: none;
}

.scroll-progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: var(--p, 0%);
  background: linear-gradient(180deg, var(--lime) 0%, var(--ice) 100%);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 76;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity .24s var(--ease),
    transform .24s var(--ease),
    visibility .24s linear,
    border-color .18s var(--ease),
    color .18s var(--ease);
}

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

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.to-top__arrow {
  font-size: 15px;
  line-height: 1;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-left: var(--rail-w);
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(22px, 3vw, 44px);
  padding-block: clamp(36px, 6vw, 64px);
}

.footer__col { min-width: 0; }

.footer__brand {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.footer__slogan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--lime);
}

.footer__slogan::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--lime);
}

.footer__desc {
  margin-top: 14px;
  max-width: 26em;
  font-size: 13px;
  line-height: 1.85;
  color: var(--moss);
}

.footer__col--brand .btn { margin-top: 20px; }

.footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--moss);
}

.footer__title::before {
  content: "";
  width: 2px;
  height: 11px;
  background: var(--orange);
}

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

.footer__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: #C9D6CC;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--lime);
  transform: translateX(3px);
}

.footer__meta {
  display: flex;
  flex-direction: column;
}

.footer__meta-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(36, 53, 45, .9);
}

.footer__meta-row:last-child { border-bottom: 0; }

.footer__key {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--moss);
  line-height: 1.9;
}

.footer__val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #D6E0D7;
  word-break: break-word;
}

.footer__legal {
  background: #070C0A;
  border-top: 1px solid var(--line);
}

.footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 16px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--moss);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ============================================================
   通用组件
   ============================================================ */

/* 标题与标签 */
.display {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--moss);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.note {
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: .04em;
  color: var(--moss);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color .18s var(--ease),
    border-color .18s var(--ease),
    color .18s var(--ease),
    transform .18s var(--ease);
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #06110C;
}

.btn--lime:hover,
.btn--lime:focus-visible {
  background: #D8FF6E;
  border-color: #D8FF6E;
  transform: translateX(2px);
}

.btn--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #0B0F0C;
}

.btn--orange:hover,
.btn--orange:focus-visible {
  background: #FF8347;
  border-color: #FF8347;
  transform: translateX(2px);
}

.btn--ghost { color: var(--white); }

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateX(2px);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--moss);
}

.tag--live {
  color: var(--alert);
  border-color: rgba(255, 77, 94, .5);
}

.tag--live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--alert);
}

/* 面板 */
.panel {
  padding: clamp(18px, 3vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* 正文容器 */
.prose {
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  line-height: 1.85;
  color: #DCE4DC;
}

.prose p { max-width: 38em; }

.prose p + p { margin-top: 1.1em; }

.prose h2 {
  margin-top: 2em;
  margin-bottom: .6em;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  letter-spacing: -.01em;
}

.prose h3 {
  margin-top: 1.6em;
  margin-bottom: .5em;
  font-size: 1.1rem;
}

.prose ul,
.prose ol {
  max-width: 38em;
  padding-left: 1.1em;
}

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }

.prose li { margin-block: .4em; }

.prose a {
  color: var(--lime);
  border-bottom: 1px solid rgba(198, 255, 61, .35);
}

.prose a:hover { border-bottom-color: var(--lime); }

/* 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--moss);
}

.crumbs a {
  color: var(--moss);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.crumbs__sep { color: var(--line); }

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

/* 章节标题条 */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.section-head__title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.section-head__meta {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--moss);
}

/* 栅格 */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

.span-4, .span-5, .span-6,
.span-7, .span-8, .span-12 { grid-column: span 12; min-width: 0; }

@media (min-width: 901px) {
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }
}

/* 图片容器（页面阶段放入 img / svg） */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: var(--panel);
  background-image:
    radial-gradient(80% 90% at 82% 0%, rgba(198, 255, 61, .1), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(36, 53, 45, .55) 0 1px, transparent 1px 12px);
}

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

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

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1000px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; }

  html { scroll-padding-top: 80px; }

  #main-content { margin-left: 0; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
  }

  .rail {
    position: relative;
    inset: auto;
    z-index: 88;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 64px 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail::before { height: 2px; }

  .brand {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 0;
  }

  .brand__mark { font-size: 18px; }

  .brand__cn {
    writing-mode: horizontal-tb;
    font-size: 11px;
    letter-spacing: .22em;
  }

  .rail__nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    width: min(320px, 84vw);
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    padding: 82px 22px 28px;
    background: linear-gradient(180deg, #0B1A14 0%, #07110E 100%);
    border-right: 1px solid var(--line);
    transform: translateX(-102%);
    transition: transform .32s var(--ease);
    overflow-y: auto;
  }

  .site-header[data-open] .rail__nav { transform: translateX(0); }

  .rail__kicker {
    display: block;
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--moss);
  }

  .rail__list { gap: 0; }

  .rail__link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail__link:hover,
  .rail__link:focus-visible { transform: translateX(3px); }

  .rail__label {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: .16em;
  }

  .rail__num { color: var(--lime); }

  .rail__link[aria-current="page"] {
    background-image: linear-gradient(90deg, rgba(198, 255, 61, .14), transparent);
  }

  .rail__foot {
    padding: 0;
    border-top: 0;
  }

  .rail__fav { flex-direction: row; gap: 8px; }

  .rail__fav-txt {
    writing-mode: horizontal-tb;
    font-size: 12px;
    letter-spacing: .16em;
  }

  .navToggle {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(7, 19, 15, .6);
    cursor: pointer;
  }

  .navToggle__bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--white);
    transition: transform .24s var(--ease), opacity .2s var(--ease),
      background-color .18s var(--ease);
  }

  .site-header[data-open] .navToggle { border-color: var(--lime); }

  .site-header[data-open] .navToggle__bar { background: var(--lime); }

  .site-header[data-open] .navToggle__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .site-header[data-open] .navToggle__bar:nth-child(2) { opacity: 0; }

  .site-header[data-open] .navToggle__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(3, 8, 6, .7);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
  }

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

  .scroll-progress {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
  }

  .scroll-progress__bar {
    width: var(--p, 0%);
    height: 100%;
    background: linear-gradient(90deg, var(--lime) 0%, var(--orange) 100%);
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .site-footer { margin-left: 0; }
}

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

  .display { font-size: clamp(2.1rem, 9vw, 3.2rem); }
}

@media (max-width: 560px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); }

  .footer__meta-row { grid-template-columns: 68px minmax(0, 1fr); }

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

@media (min-width: 901px) and (max-height: 820px) {
  .brand { padding: 8px 4px 10px; gap: 6px; }
  .brand__mark { font-size: 17px; }
  .brand__cn { font-size: 10px; letter-spacing: .26em; }
  .rail__link { padding: 6px 0; gap: 4px; }
  .rail__label { font-size: 12px; letter-spacing: .16em; }
  .rail__foot { padding-top: 8px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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