/* ==========================================================================
   /assets/site.css — 星空体育入口 共享外壳样式
   暗色赛事数据体系：深空底 / 午夜面板 / 霓虹青 / 电光紫 / 暖橙 / 纸纹米
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; }
img { border-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 2. CSS 变量 ---------- */
:root {
  --ink: #05070F;
  --panel: #0D1428;
  --panel-2: #111A33;
  --line: #22304F;
  --line-soft: rgba(34, 48, 79, .58);
  --cyan: #3BF0DC;
  --violet: #9A6BFF;
  --amber: #FF8B3D;
  --fog: #E9F0FA;
  --steel: #93A3C4;
  --paper: #F3EAD8;
  --alert: #FF5D7E;

  --shell: 1280px;
  --radius: 3px;

  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-editorial: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  --font-data: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;

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

/* ---------- 3. 全局质感基底 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg,
    rgba(233, 240, 250, .022) 0 1px,
    transparent 1px 3px);
}

#main-content { position: relative; z-index: 1; }

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { position: relative; padding: clamp(58px, 8vw, 104px) 0; }
.section--tight { padding: clamp(34px, 5vw, 62px) 0; }

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.layout-split--wide {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

/* ---------- 5. 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--fog);
}

h1 { font-size: clamp(34px, 6vw, 72px); font-weight: 900; }
h2 { font-size: clamp(26px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.6vw, 32px); }
h4 { font-size: clamp(17px, 2vw, 24px); font-weight: 700; }

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

.prose {
  max-width: 74ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: #C9D5EA;
}
.prose p + p { margin-top: 18px; }
.prose h2, .prose h3 { margin-top: 38px; margin-bottom: 14px; }
.prose strong { color: var(--fog); font-weight: 600; }
.prose a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(59, 240, 220, .35); }
.prose a:hover { border-bottom-color: var(--cyan); }

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

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

.btn--accent {
  background: var(--amber);
  color: #1A0D02;
  border-color: var(--amber);
}
.btn--accent:hover { background: #FFA366; border-color: #FFA366; }

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(59, 240, 220, .48);
}
.btn--ghost:hover { background: rgba(59, 240, 220, .12); color: #8FF8EB; border-color: var(--cyan); }

.btn--sm { padding: 8px 15px; font-size: 13px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 240, 220, .35);
  padding-bottom: 3px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.link-more:hover { color: #8FF8EB; border-bottom-color: #8FF8EB; }

/* ---------- 8. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 7, 15, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-upper__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
  transition: height .26s var(--ease);
}

.header-upper { border-bottom: 1px solid var(--line-soft); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  color: var(--cyan);
  filter: drop-shadow(0 0 9px rgba(59, 240, 220, .35));
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .07em;
  color: var(--fog);
}

.brand__line {
  margin-top: 3px;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .09em;
  color: var(--steel);
  transition: opacity .2s var(--ease);
}

.header-season {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--steel);
}
.header-season__k { color: var(--steel); }
.header-season__v { color: var(--amber); font-size: 14px; font-weight: 700; }

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

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle__text { font-size: 13px; font-weight: 600; letter-spacing: .08em; }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: top .2s var(--ease), transform .2s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 滚动收束态 */
.site-header.is-condensed .header-upper__inner { height: 52px; }
.site-header.is-condensed .brand__line { opacity: 0; }

/* 栏目带 */
.header-lower { position: relative; }

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--steel);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--fog); background: rgba(59, 240, 220, .07); }

.nav__link[aria-current="page"] { color: var(--fog); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(59, 240, 220, .75);
}

.nav__cta { margin-left: auto; }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(59, 240, 220, .55);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 118px);
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 46%, var(--amber));
  opacity: .8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 46px 32px;
  padding: 66px 0 46px;
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 12px;
  line-height: 1;
  border-radius: var(--radius);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .07em;
  color: var(--fog);
}
.footer-brand__text {
  margin-top: 15px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--steel);
}

.footer-col { min-width: 0; }
.footer-col__title {
  margin-bottom: 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--amber);
}
.footer-col__list li + li { margin-top: 9px; }
.footer-col__list a {
  font-size: 14.5px;
  color: var(--steel);
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}
.footer-col__list a:hover { color: var(--cyan); padding-left: 4px; }

.footer-service {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 32px;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line-soft);
}
.footer-service__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--steel);
}
.footer-service__k {
  letter-spacing: .1em;
  color: var(--steel);
  flex: 0 0 auto;
}
.footer-service__v { color: var(--fog); word-break: break-all; }
.footer-service__line--wide { grid-column: 1 / -1; }
.footer-service__note {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.75;
  color: var(--steel);
}

.copy-btn {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cyan);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.copy-btn:hover { background: rgba(59, 240, 220, .1); border-color: var(--cyan); }
.copy-btn.is-done { color: var(--amber); border-color: var(--amber); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 20px 0 36px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--steel);
}
.footer-legal__copy { color: var(--steel); }
.footer-legal__links { display: flex; gap: 18px; margin-left: auto; }
.footer-legal__links a { color: var(--steel); text-decoration: none; }
.footer-legal__links a:hover { color: var(--cyan); }
.footer-legal__icp { color: var(--steel); }

/* ---------- 10. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--steel);
}
.crumbs a { color: var(--steel); text-decoration: none; transition: color .18s var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs__sep { opacity: .5; }

/* ---------- 11. 章节色带 / 面板 / 标签 ---------- */
.chapter-band {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(26px, 4vw, 46px);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--steel);
}
.chapter-band__no { color: var(--amber); font-weight: 700; }
.chapter-band__name { color: var(--fog); }
.chapter-band__time { margin-left: auto; color: var(--steel); }

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel--paper {
  background: var(--paper);
  border-color: #D9CDB4;
  color: #131A2B;
}
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: #131A2B; }
.panel--paper p { color: #3A4256; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(13, 20, 40, .6);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--steel);
}
.tag--cyan { color: var(--cyan); border-color: rgba(59, 240, 220, .45); }
.tag--violet { color: var(--violet); border-color: rgba(154, 107, 255, .45); }
.tag--amber { color: var(--amber); border-color: rgba(255, 139, 61, .45); }

/* ---------- 12. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }

.media__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  background: rgba(5, 7, 15, .78);
  border: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cyan);
}
.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 15, .92));
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

/* ---------- 13. 滚动显现 ---------- */
[data-reveal] {
  transition: opacity .42s ease-out var(--reveal-delay, 0ms),
              transform .42s ease-out var(--reveal-delay, 0ms);
}
html.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- 14. 平板 ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 38px 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-split,
  .layout-split--wide { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 15. 移动端 ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }

  .shell { padding-left: 18px; padding-right: 18px; }

  .header-season,
  .header-actions { display: none; }

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

  .header-upper__inner { height: 58px; }
  .site-header.is-condensed .header-upper__inner { height: 52px; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    padding: 12px 18px 22px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .55);
  }

  .site-header[data-open] .nav { display: flex; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .nav__link {
    padding: 13px 10px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 13px;
    bottom: 13px;
    width: 3px;
    height: auto;
  }

  .nav__cta { margin: 16px 0 0; }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 18px;
    padding: 48px 0 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-service { grid-template-columns: 1fr; gap: 12px; padding: 22px 0 24px; }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-legal__links { margin-left: 0; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 17px; }
  .brand__line { font-size: 10px; letter-spacing: .06em; }
}

/* ---------- 16. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal],
  html.js [data-reveal]:not(.is-in) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-progress { box-shadow: none; }
}
