/* ==========================================================================
   乐鱼体育站 · 共享样式表 /assets/site.css
   视觉主题：赛场夜灯下的数据指挥舱
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  background: #060F17;
  scroll-behavior: smooth;
}

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

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

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

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

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

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

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

/* ---------- 设计变量 ---------- */
:root {
  --bg: #060F17;
  --panel: #0E1E2B;
  --panel-up: #152C3D;
  --blue: #1B7BFF;
  --teal: #22E0C8;
  --orange: #FF6A2B;
  --red: #FF3D5A;
  --ink: #F2F7FA;
  --ink-2: #9FB3C0;
  --line: #243D50;
  --focus: #FFC24B;
  --ok: #6BE39A;

  --grad: linear-gradient(96deg, #1B7BFF 0%, #22E0C8 100%);
  --grad-soft: linear-gradient(140deg, rgba(27, 123, 255, .18), rgba(34, 224, 200, .10));

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1180px;
  --measure: 44rem;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;

  --shadow-panel: 0 18px 40px rgba(0, 0, 0, .28);
  --shadow-hover: 0 26px 54px rgba(0, 0, 0, .42);
}

/* ---------- 页面基底 ---------- */
body {
  min-height: 100vh;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 10% -10%, rgba(27, 123, 255, .22), transparent 68%),
    radial-gradient(700px 480px at 94% 4%, rgba(34, 224, 200, .14), transparent 70%),
    radial-gradient(540px 440px at 58% 106%, rgba(255, 106, 43, .10), transparent 72%);
}

/* ---------- 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.ly-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--focus);
  color: #06121C;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

.ly-skip:focus,
.ly-skip:focus-visible {
  transform: translateY(0);
  outline-color: #06121C;
}

/* ---------- 通用容器与排版 ---------- */
.ly-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 34px);
}

.ly-section {
  padding-block: clamp(40px, 6vw, 76px);
}

.ly-section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.ly-sec-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--teal);
}

.ly-sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}

.ly-sec-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--grad);
}

.ly-sec-sub {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: 15px;
}

.ly-prose {
  max-width: var(--measure);
  font-size: 16px;
  line-height: 1.7;
  color: #D7E4ED;
}

.ly-prose p { margin-bottom: 1em; }
.ly-prose p:last-child { margin-bottom: 0; }

.ly-prose h2,
.ly-prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 1.6em 0 .6em;
}

.ly-prose h2 { font-size: 24px; }
.ly-prose h3 { font-size: 19px; }

.ly-note {
  border-left: 2px solid var(--blue);
  padding: 6px 0 6px 14px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.num,
.ly-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
}

/* ---------- 头部：紧凑命令栏 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 19, 29, .90);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  transition: min-height .18s ease;
}

.site-head.is-condensed .head-inner { min-height: 58px; }
.site-head.is-condensed .brand-ver { display: none; }

.cmd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 6px 8px 6px 2px;
  border-radius: var(--r-md);
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(27, 123, 255, .16);
  animation: brand-pulse 2.8s ease-in-out infinite;
}

@keyframes brand-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(27, 123, 255, .16); }
  50% { box-shadow: 0 0 0 8px rgba(34, 224, 200, .10); }
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--ink);
}

.brand-ver {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-2);
}

.cmd-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cmd-track::-webkit-scrollbar { display: none; }

.cmd-index {
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--line);
  padding-inline: 6px 10px;
  text-transform: uppercase;
}

.cmd-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}

.cmd-tab:hover {
  background: var(--panel);
  color: var(--ink);
}

.cmd-tab[aria-current="page"] {
  background: var(--panel-up);
  color: var(--ink);
}

.cmd-tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.tab-idx {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-2);
  opacity: .75;
}

.cmd-tab[aria-current="page"] .tab-idx {
  color: var(--teal);
  opacity: 1;
}

.cmd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cmd-sub-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06121C;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .02em;
  transition: background .16s ease, border-color .16s ease;
}

.nav-toggle:hover {
  background: var(--panel-up);
  border-color: var(--blue);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background .18s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s ease;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-head[data-open] .nav-toggle-bars { background: transparent; }
.site-head[data-open] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.site-head[data-open] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-text { font-family: var(--font-display); font-weight: 700; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 0 2px 2px 0;
  transition: width .12s linear;
}

/* ---------- 页脚：堆叠画板 ---------- */
.site-foot {
  width: min(100% - 32px, calc(var(--maxw) + 40px));
  margin: clamp(48px, 7vw, 92px) auto clamp(24px, 4vw, 44px);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3.4vw, 46px) clamp(18px, 2.6vw, 28px);
  background: linear-gradient(180deg, #0E1E2B 0%, #0A1620 100%);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 32px);
  box-shadow: 0 28px 62px rgba(0, 0, 0, .38);
}

.foot-inner {
  max-width: var(--maxw);
  margin-inline: auto;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 30px 32px;
}

.foot-brand { display: flex; flex-direction: column; gap: 12px; }

.foot-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.foot-mark::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--grad);
}

.foot-tag {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 26em;
}

.foot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.foot-badge {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(21, 44, 61, .6);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-2);
}

.foot-col { display: flex; flex-direction: column; gap: 12px; }

.foot-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink);
  padding-left: 14px;
}

.foot-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  border-radius: 3px;
  background: var(--grad);
}

.foot-list { display: flex; flex-direction: column; gap: 8px; }

.foot-link {
  font-size: 14px;
  color: var(--ink-2);
  transition: color .16s ease, transform .16s ease;
  display: inline-block;
}

.foot-link:hover {
  color: var(--teal);
  transform: translateX(3px);
}

.foot-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px 26px;
  margin-top: clamp(26px, 3.4vw, 38px);
  padding-top: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid var(--line);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-k {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-2);
}

.contact-v {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  word-break: break-word;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.foot-legal,
.foot-copy {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: .02em;
}

/* ---------- 按钮 ---------- */
.ly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.ly-btn--primary {
  background: var(--grad);
  color: #04121C;
  box-shadow: 0 10px 24px rgba(27, 123, 255, .26);
}

.ly-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(34, 224, 200, .30);
}

.ly-btn--ghost {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.ly-btn--ghost:hover {
  background: var(--panel-up);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.ly-btn--sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* ---------- 胶囊标签 ---------- */
.ly-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(21, 44, 61, .7);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-2);
  white-space: nowrap;
}

.ly-pill--live {
  color: var(--orange);
  border-color: rgba(255, 106, 43, .40);
  background: rgba(255, 106, 43, .10);
}

.ly-pill--ok {
  color: var(--ok);
  border-color: rgba(107, 227, 154, .34);
  background: rgba(107, 227, 154, .10);
}

/* ---------- 面板（堆叠画板） ---------- */
.ly-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-panel);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.ly-panel--raised {
  background: var(--panel-up);
  border-color: #2A4A61;
}

.ly-panel--flat {
  box-shadow: none;
}

.ly-panel--hover:hover,
.ly-panel--hover:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #2E5C7A;
}

/* ---------- 网格 ---------- */
.ly-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.ly-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ly-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ly-grid--aside { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

/* ---------- 比分牌画板 ---------- */
.ly-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.ly-score {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--orange);
}

/* ---------- 数据表格 ---------- */
.ly-table {
  width: 100%;
  font-size: 14px;
}

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

.ly-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-2);
  background: rgba(21, 44, 61, .55);
  white-space: nowrap;
}

.ly-table tbody tr { transition: background .16s ease; }
.ly-table tbody tr:hover { background: var(--panel-up); }
.ly-table tbody tr:last-child td { border-bottom: 0; }

.ly-table td.num,
.ly-table th.num {
  text-align: right;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* ---------- 赛季时间轴 ---------- */
.ly-timeline {
  position: relative;
  padding-left: 22px;
}

.ly-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.ly-timeline li {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
}

.ly-timeline li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line);
  transition: border-color .18s ease, background .18s ease;
}

.ly-timeline li:hover::before,
.ly-timeline li.is-active::before {
  border-color: var(--teal);
  background: var(--teal);
}

.ly-timeline li.is-active { color: var(--ink); }

/* ---------- 目录索引列表 ---------- */
.ly-index-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.ly-index-list li:last-child { border-bottom: 0; }

.ly-index-list .idx {
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--teal);
}

/* ---------- 面包屑 ---------- */
.ly-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-size: 13px;
  color: var(--ink-2);
}

.ly-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.ly-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.ly-breadcrumb a {
  color: var(--ink-2);
  transition: color .16s ease;
}

.ly-breadcrumb a:hover { color: var(--teal); }

.ly-breadcrumb-current { color: var(--ink); }

/* ---------- 图片容器基础规则 ---------- */
.ly-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #0E1E2B 0%, #152C3D 100%);
}

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

.ly-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(27, 123, 255, .20) 0%, transparent 52%, rgba(34, 224, 200, .16) 100%);
  pointer-events: none;
}

.ly-media > img,
.ly-media > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 进入视口显现（JS 驱动） ---------- */
[data-reveal] {
  transition: opacity .3s ease, transform .3s ease;
}

[data-reveal].is-locked {
  opacity: 0;
  transform: translateY(14px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .tab-idx { display: none; }
}

@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .ly-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ly-grid--aside { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .head-inner {
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 62px;
  }

  .cmd-brand { order: 1; }
  .brand-name { font-size: 15px; }

  .cmd-actions {
    order: 2;
    margin-left: auto;
  }

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

  .cmd-track {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 26px 52px rgba(0, 0, 0, .48);
    max-height: min(72vh, 520px);
    overflow-y: auto;
  }

  .site-head[data-open] .cmd-track { display: flex; }

  .cmd-index { display: none; }

  .cmd-tab {
    padding: 13px 16px;
    border-radius: var(--r-md);
    font-size: 15px;
  }

  .cmd-tab[aria-current="page"] {
    background: var(--panel-up);
  }

  .cmd-tab[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 11px;
    bottom: 11px;
    width: 3px;
    height: auto;
    border-radius: 3px;
  }
}

@media (max-width: 720px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .foot-base {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .cmd-sub { padding: 9px 14px; }
  .brand-ver { display: none; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 10px 12px; }

  .site-foot {
    width: min(100% - 20px, calc(var(--maxw) + 40px));
  }

  .foot-contact { grid-template-columns: 1fr; }
}

/* ---------- 减弱动效 ---------- */
@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].is-locked {
    opacity: 1;
    transform: none;
  }

  .ly-btn--primary:hover,
  .ly-btn--ghost:hover,
  .ly-panel--hover:hover {
    transform: none;
  }
}
