/* ============================================================
   乐鱼赛事 · 共享站点样式 /assets/site.css
   夜间球场数据指挥舱：框架式导航 + 深海蓝网格 + 荧光青刻度
   ============================================================ */

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

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

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

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

/* ---------- design tokens ---------- */
:root {
  --deep-navy: #061423;
  --midnight: #0B2239;
  --electic-cyan: #35F2E6;
  --cyan: #35F2E6;
  --orange: #FF7A2F;
  --coral: #FF4D5E;
  --steel: #8FA3B8;
  --mist: #E8F1F7;
  --graphite: #1B2C3D;
  --ice: #F7FBFD;
  --grid: #24435C;

  --rail-w: 248px;
  --gutter: clamp(18px, 3.2vw, 46px);
  --maxw: 1180px;
  --radius: 6px;

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

/* ---------- base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  background-color: var(--deep-navy);
  background-image:
    radial-gradient(circle at 78% -10%, rgba(53, 242, 230, 0.10), transparent 46%),
    radial-gradient(circle at 18% 108%, rgba(255, 122, 47, 0.07), transparent 44%),
    linear-gradient(to right, rgba(36, 67, 92, 0.30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 67, 92, 0.30) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::selection,
::selection { background: rgba(53, 242, 230, 0.28); color: var(--ice); }

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

h1 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.02em; }
h3 { font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em; }

p { max-width: 42em; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -180%);
  padding: 11px 20px;
  border-radius: 3px;
  background: var(--cyan);
  color: #04121f;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 阅读进度 ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: rgba(36, 67, 92, 0.55);
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: transform 0.12s linear;
}

/* ============================================================
   头部：框架式纵向导航轨
   ============================================================ */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 150;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, #08192b 0%, var(--midnight) 58%, #071a2c 100%);
  border-right: 1px solid rgba(53, 242, 230, 0.18);
  box-shadow: inset -1px 0 0 rgba(6, 20, 35, 0.9);
}

.rail__inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100%;
  padding: 26px 18px 22px;
}

.rail__brand { display: block; }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(53, 242, 230, 0.55);
  border-radius: 4px;
  background: rgba(53, 242, 230, 0.07);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ice);
}
.brand__latin {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--steel);
}

.brand__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--steel);
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(53, 242, 230, 0.55);
  animation: dotPulse 2.4s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 242, 230, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(53, 242, 230, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 242, 230, 0); }
}

/* 移动端目录按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(53, 242, 230, 0.35);
  border-radius: 3px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  background: rgba(53, 242, 230, 0.05);
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle__label { line-height: 1; }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 122, 47, 0.10);
}

/* 导航 */
.nav { flex: 1 1 auto; min-height: 0; }
.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 67, 92, 0.9);
}
.nav__item { display: block; }
.nav__link {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  color: #c2d3e2;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav__link:hover {
  color: var(--ice);
  background: rgba(53, 242, 230, 0.08);
  border-left-color: rgba(53, 242, 230, 0.55);
}
.nav__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.nav__label { min-width: 0; }
.nav__link[aria-current="page"] {
  color: var(--ice);
  border-left-color: var(--orange);
  background: linear-gradient(90deg, rgba(255, 122, 47, 0.18), rgba(255, 122, 47, 0) 78%);
}
.nav__link[aria-current="page"] .nav__index { color: var(--orange); font-weight: 600; }

/* 轨内工具区 */
.rail__tools {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(36, 67, 92, 0.9);
}

.range { display: block; }
.range__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--steel);
}
.range__set {
  display: flex;
  border: 1px solid rgba(36, 67, 92, 0.95);
  border-radius: 3px;
  overflow: hidden;
}
.range__btn {
  flex: 1 1 0;
  padding: 8px 2px;
  border-right: 1px solid rgba(36, 67, 92, 0.95);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.range__btn:last-child { border-right: 0; }
.range__btn:hover { color: var(--ice); background: rgba(53, 242, 230, 0.08); }
.range__btn[aria-pressed="true"] {
  background: rgba(53, 242, 230, 0.16);
  color: var(--cyan);
  font-weight: 600;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--ghost {
  border-color: rgba(53, 242, 230, 0.45);
  color: var(--cyan);
  background: rgba(53, 242, 230, 0.04);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(53, 242, 230, 0.14);
  color: var(--ice);
}
.btn--solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #0a1420;
}
.btn--solid:hover { background: #ff9355; border-color: #ff9355; }
.rail__cta { width: 100%; }

/* ============================================================
   页脚
   ============================================================ */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 9vw, 132px);
  background: linear-gradient(180deg, rgba(11, 34, 57, 0.55) 0%, var(--midnight) 100%);
  border-top: 1px solid rgba(53, 242, 230, 0.18);
}

.site-foot__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 74px) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(26px, 4vw, 48px);
}

.site-foot__brand { display: block; }
.site-foot__mark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ice);
  line-height: 1.2;
}
.site-foot__mark span {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--steel);
}
.site-foot__note {
  margin-top: 16px;
  max-width: 34em;
  font-size: 13.5px;
  line-height: 1.75;
  color: #9fb4c7;
}
.site-foot__brand .btn { margin-top: 20px; }

.site-foot__col { display: block; }
.site-foot__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: uppercase;
}
.site-foot__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}
.site-foot__link {
  display: inline-block;
  padding: 6px 0;
  color: #a9bccd;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-foot__link:hover { color: var(--ice); transform: translateX(3px); }

.site-foot__contact {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 24px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  border-top: 1px solid rgba(36, 67, 92, 0.85);
}
.site-foot__contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #b6c8d8;
}
.site-foot__contact-item span {
  color: var(--steel);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.site-foot__legal {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter) 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  border-top: 1px solid rgba(36, 67, 92, 0.55);
}
.site-foot__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #6f849b;
}

/* ============================================================
   通用页面组件
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--cyan);
  text-transform: uppercase;
}
.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }
.lede {
  max-width: 40em;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.85;
  color: #b7c9d9;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
}
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: #3f5a72; }
.breadcrumb [aria-current="page"] { color: var(--mist); }

/* 章节 */
.section { padding-block: clamp(40px, 6vw, 84px); }
.section__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--orange);
}
.section__title {
  margin-top: 12px;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.025em;
  color: var(--ice);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(36, 67, 92, 0.95);
  border-radius: 2px;
  background: rgba(27, 44, 61, 0.85);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.tag--cyan { border-color: rgba(53, 242, 230, 0.45); color: var(--cyan); }
.tag--orange { border-color: rgba(255, 122, 47, 0.5); color: var(--orange); }

/* 资料卡 */
.card {
  position: relative;
  padding: 18px 20px;
  border: 1px solid rgba(36, 67, 92, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 44, 61, 0.92), rgba(11, 34, 57, 0.92));
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.card:hover { border-color: rgba(53, 242, 230, 0.5); }
.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.card__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mist);
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.card__body {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #b4c6d6;
}

/* 微型数据条 */
.data-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(36, 67, 92, 0.85);
  overflow: hidden;
}
.data-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.data-bar--pulse .data-bar__fill {
  background: linear-gradient(90deg, var(--coral), var(--orange));
}

/* 响应式图片容器 */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(36, 67, 92, 0.9);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 52% 18%, #123049 0%, #061423 78%);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.82);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(53, 242, 230, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 242, 230, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.3;
  mix-blend-mode: screen;
}
.media__cap {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 2px;
  background: rgba(6, 20, 35, 0.78);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

/* 进场显现 */
[data-reveal] { transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   响应式：≤ 1199px 收窄导航轨
   ============================================================ */
@media (max-width: 1199px) {
  :root { --rail-w: 224px; }
  .site-foot__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .site-foot__brand { grid-column: 1 / -1; }
}

/* ============================================================
   响应式：≤ 959px 顶部吸顶 + 抽屉导航
   ============================================================ */
@media (max-width: 959px) {
  body { padding-left: 0; }

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

  .read-progress { top: auto; bottom: 0; }

  .rail {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(53, 242, 230, 0.18);
  }
  .rail__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    min-height: 0;
    padding: 12px 16px 14px;
  }
  .rail__brand {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .brand__status { margin-top: 0; font-size: 10px; letter-spacing: 0.08em; }

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

  .nav {
    order: 3;
    flex: 1 1 100%;
    display: none;
  }
  .rail[data-open] .nav { display: block; }
  .nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 12px;
  }
  .nav__link { padding: 11px 10px; font-size: 14px; }

  .rail__tools {
    order: 4;
    flex: 1 1 100%;
    display: none;
    margin-top: 0;
    padding-top: 14px;
  }
  .rail[data-open] .rail__tools { display: flex; }
  .rail__cta { width: 100%; }

  .site-foot__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}

/* ============================================================
   响应式：≤ 640px
   ============================================================ */
@media (max-width: 640px) {
  body { line-height: 1.72; }
  .nav__list { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr; }
  .site-foot__contact { gap: 8px 18px; }
  .site-foot__legal { padding-bottom: 34px; }
  .brand__latin { letter-spacing: 0.18em; }
  .brand__status { display: none; }
  .media::after { background-size: 32px 32px; }
}

/* ============================================================
   降低动态效果
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .read-progress__bar { transition: none; }
  .data-bar__fill { transition: none; }
  .skip-link { transition: none; }
  .site-foot__link { transition: none; }
  .js [data-reveal],
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
