/* ============================================================
   雷霆体育 · 共享站点样式  /assets/site.css
   侧边轨道导航 + 赛事数据板视觉体系
   ============================================================ */

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

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

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

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

a { color: inherit; text-decoration: none; }

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

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

table { width: 100%; border-collapse: collapse; border-spacing: 0; }

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --lt-blue: #1236E8;
  --lt-yellow: #FFE81A;
  --lt-black: #08090D;
  --lt-night: #0A1B4D;
  --lt-silver: #C4CBD8;
  --lt-slate: #5A6B8C;
  --lt-ice: #F4F7FF;
  --lt-concrete: #E2E6EF;
  --lt-cyan: #00E0C6;

  --lt-rail-w: 88px;
  --lt-rail-open: 208px;
  --lt-topbar-h: 56px;

  --lt-page-max: 1440px;
  --lt-gutter: 24px;
  --lt-ease: cubic-bezier(.2, .8, .2, 1);

  --lt-font-display: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lt-font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --lt-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  margin: 0;
  padding-top: var(--lt-topbar-h);
  background: var(--lt-ice);
  color: var(--lt-black);
  font-family: var(--lt-font-display);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { line-height: 1.25; }

strong { font-weight: 700; }

/* 焦点环：2px 电光黄 + 内侧深空黑描边 */
:focus-visible {
  outline: 2px solid var(--lt-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--lt-black);
}

/* 等宽数字 */
.lt-num,
[data-num] {
  font-family: var(--lt-font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
}

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 300;
  padding: 12px 22px;
  background: var(--lt-yellow);
  color: var(--lt-black);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: top 160ms var(--lt-ease);
}
.skip-link:focus { top: 12px; }

#main-content { scroll-margin-top: calc(var(--lt-topbar-h) + 8px); }

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--lt-page-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.shell--bleed {
  max-width: none;
  padding-inline: 0;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- 5. 章节标记 ---------- */
.section-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: inherit;
}

.section-mark__num {
  flex: 0 0 auto;
  font-family: var(--lt-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--lt-blue);
}

.section-mark__name {
  flex: 0 0 auto;
  font-family: var(--lt-font-serif);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.35;
  color: inherit;
}

.section-mark__line {
  flex: 1 1 auto;
  height: 1px;
  align-self: center;
  background: currentColor;
  opacity: .24;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background-color 150ms var(--lt-ease), color 150ms var(--lt-ease), border-color 150ms var(--lt-ease);
}

.btn--primary { background: var(--lt-blue); color: #fff; }
.btn--primary:hover { background: var(--lt-black); color: var(--lt-yellow); }

.btn--yellow { background: var(--lt-yellow); color: var(--lt-black); }
.btn--yellow:hover { background: var(--lt-black); color: var(--lt-yellow); }

.btn--line {
  background: transparent;
  color: var(--lt-black);
  border-color: var(--lt-black);
}
.btn--line:hover { background: var(--lt-black); color: var(--lt-ice); }

/* ---------- 7. 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--lt-slate); }

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

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

.crumb__item[aria-current="page"] { color: var(--lt-black); font-weight: 600; }

.crumb__link {
  color: var(--lt-slate);
  border-bottom: 1px solid transparent;
  transition: color 150ms var(--lt-ease), border-color 150ms var(--lt-ease);
}
.crumb__link:hover { color: var(--lt-blue); border-bottom-color: var(--lt-yellow); }

.crumb__sep { color: var(--lt-silver); }

/* ---------- 8. 正文容器 ---------- */
.lede {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--lt-slate);
}

.prose { max-width: 40em; }

.prose p { margin-bottom: 1.1em; font-size: 16px; line-height: 1.75; }

.prose h2 {
  margin: 1.8em 0 .7em;
  font-family: var(--lt-font-serif);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
}

.prose h3 {
  margin: 1.5em 0 .5em;
  font-size: 19px;
  font-weight: 800;
}

.prose ul { margin: 0 0 1.2em; }

.prose li { position: relative; padding-left: 22px; margin-bottom: .5em; }

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 9px;
  height: 1px;
  background: var(--lt-blue);
}

.prose a {
  color: var(--lt-blue);
  border-bottom: 1px solid rgba(18, 54, 232, .38);
  transition: color 150ms var(--lt-ease), border-color 150ms var(--lt-ease);
}
.prose a:hover { color: var(--lt-black); border-bottom-color: var(--lt-yellow); }

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--lt-concrete);
  border-radius: 0;
  transition: border-color 150ms var(--lt-ease), background-color 150ms var(--lt-ease), color 150ms var(--lt-ease), outline-color 150ms var(--lt-ease);
  outline: 1px solid transparent;
  outline-offset: 0;
}

.card:hover,
.card:focus-within {
  border-color: var(--lt-yellow);
  outline-color: var(--lt-yellow);
  background: var(--lt-black);
  color: var(--lt-ice);
}

.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--lt-black);
  color: var(--lt-yellow);
  font-family: var(--lt-font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.card:hover .card__num,
.card:focus-within .card__num { background: var(--lt-yellow); color: var(--lt-black); }

.card__title { font-size: 19px; font-weight: 800; line-height: 1.4; }

.card__text { font-size: 15px; line-height: 1.7; color: var(--lt-slate); }

.card:hover .card__text,
.card:focus-within .card__text { color: var(--lt-silver); }

/* ---------- 10. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--lt-slate);
  border: 1px solid var(--lt-slate);
  background: transparent;
}

.tag--blue { background: var(--lt-blue); color: #fff; border-color: var(--lt-blue); }

.tag--yellow { background: var(--lt-yellow); color: var(--lt-black); border-color: var(--lt-yellow); }

/* ---------- 11. 数据表 ---------- */
.table-scroll { width: 100%; overflow-x: auto; }

.data-table { min-width: 520px; font-size: 15px; }

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--lt-concrete);
  vertical-align: middle;
}

.data-table thead th {
  background: var(--lt-black);
  color: var(--lt-ice);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  border-bottom-color: var(--lt-black);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) { background: var(--lt-concrete); }

.data-table tbody tr.is-current { background: var(--lt-yellow); color: var(--lt-black); }

/* ---------- 12. 图片容器 ---------- */
.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--lt-night);
  border: 1px solid rgba(196, 203, 216, .3);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* 低对比网格底纹（深色分区用） */
.grid-veil { position: relative; }

.grid-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 203, 216, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 203, 216, .13) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- 13. 整宽强调块 ---------- */
.banner {
  padding: 40px 28px;
  background: var(--lt-blue);
  color: #fff;
  border-radius: 0;
}

.banner--yellow { background: var(--lt-yellow); color: var(--lt-black); }

.banner--night { background: var(--lt-black); color: var(--lt-ice); }

/* ---------- 14. 复制按钮 ---------- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(196, 203, 216, .34);
  color: var(--lt-silver);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color 150ms var(--lt-ease), color 150ms var(--lt-ease), border-color 150ms var(--lt-ease);
}

.copy-btn__icon { display: inline-flex; flex: 0 0 auto; }

.copy-btn__label { display: inline-block; }

.copy-btn:hover {
  background: var(--lt-yellow);
  color: var(--lt-black);
  border-color: var(--lt-yellow);
}

.copy-btn[data-copied] {
  background: var(--lt-cyan);
  color: var(--lt-black);
  border-color: var(--lt-cyan);
}

/* ============================================================
   15. 站点头部
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
}

/* --- 移动端顶栏 --- */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--lt-topbar-h);
  padding: 0 12px;
  background: var(--lt-black);
  color: var(--lt-ice);
  border-bottom: 1px solid rgba(196, 203, 216, .22);
}

.topbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--lt-ice);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: color 150ms var(--lt-ease);
}

.topbar__toggle:hover { color: var(--lt-yellow); }

.topbar__bars { display: grid; gap: 4px; width: 18px; }

.topbar__bars i { display: block; height: 1.5px; background: currentColor; }

.topbar__toggle-text { white-space: nowrap; }

.topbar__brand {
  margin-left: 4px;
  margin-right: auto;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  background: var(--lt-yellow);
  color: var(--lt-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background-color 150ms var(--lt-ease), color 150ms var(--lt-ease);
}

.topbar__cta:hover { background: var(--lt-blue); color: #fff; }

/* --- 轨道 / 抽屉 --- */
.rail {
  position: fixed;
  top: var(--lt-topbar-h);
  left: 0;
  width: min(304px, 86vw);
  height: calc(100vh - var(--lt-topbar-h));
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--lt-black);
  color: var(--lt-ice);
  border-right: 1px solid rgba(196, 203, 216, .22);
  transform: translateX(-100%);
  transition: transform 170ms var(--lt-ease), width 170ms var(--lt-ease);
}

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

.rail__head,
.rail__nav,
.rail__foot { width: 100%; }

.rail__head {
  padding: 18px 0 16px;
  border-bottom: 1px solid rgba(196, 203, 216, .18);
}

.rail__brand { display: flex; align-items: center; }

.rail__glyph {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 26px;
  background: var(--lt-blue);
  color: #fff;
  font-family: var(--lt-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.rail__wordmark {
  margin-left: 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  white-space: nowrap;
}

.rail__nav { padding: 6px 0; }

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

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  color: var(--lt-silver);
  border-bottom: 1px solid rgba(196, 203, 216, .12);
  transition: background-color 150ms var(--lt-ease), color 150ms var(--lt-ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--lt-yellow);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 150ms var(--lt-ease);
}

.rail__link:hover { background: var(--lt-blue); color: #fff; }

.rail__link:hover::before { transform: scaleY(1); }

.rail__link[aria-current="page"] {
  background: var(--lt-night);
  color: #fff;
  font-weight: 600;
}

.rail__link[aria-current="page"]::before { transform: scaleY(1); }

.rail__icon {
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  height: 56px;
  color: inherit;
}

.rail__link:hover .rail__icon,
.rail__link[aria-current="page"] .rail__icon { color: var(--lt-yellow); }

.rail__label {
  padding-right: 16px;
  font-size: 15px;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 130ms var(--lt-ease) 40ms;
}

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(196, 203, 216, .18);
}

.rail__round {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 26px;
  font-size: 13px;
  color: var(--lt-silver);
}

.rail__round-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--lt-yellow);
  color: var(--lt-black);
  font-family: var(--lt-font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.rail__round-text { white-space: nowrap; letter-spacing: .02em; }

.rail__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 0 12px;
  background: var(--lt-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: background-color 150ms var(--lt-ease), color 150ms var(--lt-ease);
}

.rail__cta:hover { background: var(--lt-yellow); color: var(--lt-black); }

.rail__foot .copy-btn {
  margin: 0 12px;
  justify-content: flex-start;
  font-size: 13px;
}

/* 阅读进度 */
.rail__progress { display: none; }

.rail__progress-fill {
  display: block;
  width: 100%;
  height: var(--lt-progress, 0%);
  background: var(--lt-yellow);
  transition: height 90ms linear;
}

/* 遮罩 */
.rail__scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(8, 9, 13, .68);
}

/* ============================================================
   16. 站点页脚
   ============================================================ */
.site-footer {
  width: 100%;
  background: var(--lt-black);
  color: var(--lt-silver);
  border-top: 3px solid var(--lt-yellow);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: var(--lt-page-max);
  margin-inline: auto;
  padding: 56px 20px 0;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(196, 203, 216, .2);
}

.site-footer__wordmark {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .02em;
  color: #fff;
}

.site-footer__tagline { font-size: 14px; color: var(--lt-silver); }

.site-footer__round {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lt-font-mono);
  font-size: 13px;
  color: var(--lt-silver);
}

.site-footer__round-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 6px;
  background: var(--lt-yellow);
  color: var(--lt-black);
  font-weight: 700;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.site-footer__col { min-width: 0; }

.site-footer__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(196, 203, 216, .24);
  font-family: var(--lt-font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}

.site-footer__links { display: flex; flex-direction: column; gap: 10px; }

.site-footer__links a {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: 14px;
  color: var(--lt-silver);
  transition: color 150ms var(--lt-ease);
}

.site-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--lt-yellow);
  transition: width 150ms var(--lt-ease);
}

.site-footer__links a:hover { color: var(--lt-yellow); }

.site-footer__links a:hover::after { width: 100%; }

.site-footer__base {
  padding: 24px 0 28px;
  border-top: 1px solid rgba(196, 203, 216, .2);
}

.site-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  justify-content: space-between;
}

.site-footer__legal {
  font-family: var(--lt-font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--lt-silver);
}

.site-footer__contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.site-footer__addr { font-size: 13px; color: var(--lt-silver); }

.site-footer__note {
  margin-top: 16px;
  max-width: 58em;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(196, 203, 216, .78);
}

/* ============================================================
   17. 响应式
   ============================================================ */
@media (min-width: 768px) {
  .shell { padding-inline: 32px; }

  .grid-12 { gap: var(--lt-gutter); }

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

  .site-footer__inner { padding-inline: 32px; }

  .banner { padding: 48px 40px; }

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

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

  .topbar { display: none; }

  .rail__scrim { display: none; }

  .site-header { width: var(--lt-rail-w); height: 100vh; }

  .rail {
    top: 0;
    left: 0;
    width: var(--lt-rail-w);
    height: 100vh;
    transform: none;
    border-right: 1px solid rgba(196, 203, 216, .22);
    z-index: 1;
  }

  .rail:hover,
  .rail:focus-within { width: var(--lt-rail-open); }

  .rail__head,
  .rail__nav,
  .rail__foot { width: var(--lt-rail-open); }

  .rail__label { opacity: 0; }

  .rail:hover .rail__label,
  .rail:focus-within .rail__label { opacity: 1; }

  .rail__progress {
    display: block;
    position: fixed;
    top: 0;
    left: calc(var(--lt-rail-w) - 2px);
    width: 2px;
    height: 100vh;
    background: rgba(196, 203, 216, .16);
    z-index: 82;
    pointer-events: none;
  }

  .site-footer__inner { padding-inline: 40px; }
}

@media (min-width: 1280px) {
  .shell { padding-inline: 48px; }
}

/* dvh 修正 */
@supports (height: 100dvh) {
  .rail { height: calc(100dvh - var(--lt-topbar-h)); }
  @media (min-width: 1024px) {
    .rail { height: 100dvh; }
    .rail__progress { height: 100dvh; }
  }
}

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

  .rail,
  .rail__link::before,
  .rail__label,
  .card {
    transition: none !important;
  }

  .rail__progress-fill { transition: none !important; }
}
