/* ==========================================================================
   乐竞体育 /assets/site.css
   夜间赛场指挥中心 · 数据大屏气质 · 共享外壳与基础组件
   ========================================================================== */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lime); }

/* ---------- 2. 变量 ---------- */
:root {
  --bg: #05070E;
  --panel: #0E1626;
  --panel-2: #1B2A44;
  --line: #2E3D57;
  --ice: #EAF2FF;
  --mist: #7A8AA3;
  --lime: #4CF39B;
  --lime-deep: #0F6B4A;
  --orange: #FF7A2F;
  --alert: #FF4D5E;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo,
    Consolas, "Courier New", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(880px 520px at 78% -6%, rgba(76, 243, 155, 0.10), transparent 62%),
    radial-gradient(720px 480px at 2% 102%, rgba(255, 122, 47, 0.07), transparent 64%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ice);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--ice); }
small { font-size: 12.5px; }

::selection { background: var(--lime); color: #04150D; }

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

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 8vw, 96px); }

.grid { display: grid; gap: var(--gap, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

/* ---------- 5. 排版工具类 ---------- */
.type-display {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ice);
}
.type-lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  color: #AFC0D8;
  max-width: 46ch;
}
.type-caption {
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.type-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.type-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--lime) 0%, #2FD486 100%);
  color: #04150D;
  box-shadow: 0 12px 30px rgba(76, 243, 155, 0.18);
}
.btn-primary:hover {
  color: #04150D;
  box-shadow: 0 16px 36px rgba(76, 243, 155, 0.3);
}

.btn-ghost {
  background: rgba(27, 42, 68, 0.72);
  border-color: var(--line);
  color: var(--ice);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

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

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

/* ---------- 7. 胶囊标记 ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(27, 42, 68, 0.55);
  color: #B9C8DD;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.pill:hover { border-color: var(--lime); color: var(--ice); }
.pill[aria-pressed="true"],
.pill[aria-selected="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #04150D;
  font-weight: 600;
}

/* ---------- 8. 面板与卡片 ---------- */
.panel {
  background: linear-gradient(160deg, rgba(27, 42, 68, 0.72), rgba(14, 22, 38, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.panel--flat { background: var(--panel); border-radius: var(--r-md); box-shadow: none; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.4vw, 26px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: rgba(76, 243, 155, 0.45); transform: translateY(-3px); }

/* ---------- 9. 图片容器（共享基础规则） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--panel-2) 0%, var(--panel) 55%, #0A1120 100%);
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(76, 243, 155, 0.16), transparent 55%),
    radial-gradient(95% 80% at 6% 98%, rgba(255, 122, 47, 0.12), transparent 60%);
  pointer-events: none;
}
.media-frame > img,
.media-frame > picture > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

@media (max-width: 600px) {
  .media-frame { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
}

/* ---------- 10. 数据表格 ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}
table.data { width: 100%; min-width: 560px; font-size: 14.5px; }
.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.data td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(46, 61, 87, 0.55);
  color: #D6E2F2;
}
.data tbody tr:hover { background: rgba(27, 42, 68, 0.55); }
.data tbody tr:last-child td { border-bottom: 0; }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--mist);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* ---------- 12. 正文容器 ---------- */
.prose { max-width: 68ch; font-size: 17px; line-height: 1.8; color: #C6D4E8; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0; }
.prose h2 { margin-top: 2em; font-size: clamp(22px, 3vw, 30px); }
.prose h3 { margin-top: 1.7em; }
.prose a { color: var(--lime); border-bottom: 1px solid rgba(76, 243, 155, 0.35); }
.prose a:hover { border-bottom-color: var(--lime); }
.prose ul, .prose ol { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--lime); }
.prose blockquote {
  border-left: 2px solid var(--lime);
  padding-left: 18px;
  color: #AFC0D8;
}

/* ---------- 13. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--lime);
  color: #04150D;
  font-size: 14px;
  font-weight: 700;
  transition: top 0.25s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 14px; color: #04150D; }

/* ==========================================================================
   14. 头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.97), rgba(5, 7, 14, 0.84));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: border-color 0.3s var(--ease);
}
.site-header[data-open] { border-bottom-color: rgba(76, 243, 155, 0.55); }

.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(46, 61, 87, 0.5);
}
.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--lime) 0%, var(--orange) 100%);
  transition: transform 0.15s linear;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 32px);
  padding-block: 14px 12px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ice);
}
.brand:hover { color: var(--ice); }
.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
}
.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--lime);
}
.brand-mark i:nth-child(1) { height: 8px; opacity: 0.55; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 11px; background: var(--orange); }
.brand-text { display: block; }
.brand-name {
  display: block;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.brand-line {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* 上层工具区 */
.masthead-tools {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}
.micro-nav { display: flex; align-items: center; gap: 18px; }
.micro-nav a {
  padding-block: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.micro-nav a:hover { color: var(--ice); border-bottom-color: var(--line); }
.masthead-cta { white-space: nowrap; }

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--panel-2);
  color: var(--ice);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.site-header[data-open] .nav-toggle { border-color: var(--lime); color: var(--lime); }
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars i {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header[data-open] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 主栏目条 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 5px 10px;
  border-top: 1px solid rgba(46, 61, 87, 0.6);
}
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav-link {
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--pill);
  color: var(--mist);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link:hover { color: var(--ice); background: rgba(27, 42, 68, 0.85); }
.nav-link[aria-current="page"] {
  background: var(--lime);
  color: #04150D;
  font-weight: 700;
}
.nav-link[aria-current="page"]:hover { color: #04150D; }

.nav-aside { display: none; }

@media (max-width: 960px) {
  .micro-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 12px 18px;
  }
  .site-header[data-open] .site-nav { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    display: block;
    padding: 13px 14px;
    border-radius: var(--r-sm);
    font-size: 16px;
  }

  .nav-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(46, 61, 87, 0.6);
  }
  .nav-aside-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mist);
  }
  .nav-aside-link {
    display: block;
    width: 100%;
    padding: 9px 14px;
    border-radius: var(--r-sm);
    font-size: 14.5px;
    color: #B9C8DD;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
  }
  .nav-aside-link:hover { color: var(--lime); background: rgba(27, 42, 68, 0.6); }
}

@media (max-width: 560px) {
  .masthead-cta { display: none; }
  .brand-name { font-size: 17px; }
  .brand-line { font-size: 11.5px; }
}

/* ==========================================================================
   15. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 10vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.92) 0%, rgba(5, 7, 14, 1) 72%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(76, 243, 155, 0.6) 30%,
    rgba(255, 122, 47, 0.5) 68%,
    transparent 100%
  );
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 40px);
}
.footer-brand { max-width: 46ch; }
.footer-note {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 44px);
  padding-bottom: clamp(28px, 5vw, 48px);
}
.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-list { display: grid; gap: 9px; }
.footer-list a {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(234, 242, 255, 0.82);
  transition: color 0.25s var(--ease);
}
.footer-list a:hover { color: var(--lime); }
.footer-list--plain li {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
}
.footer-list--plain .num { color: var(--ice); }

.mail-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--panel-2);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  word-break: break-all;
  text-align: left;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.mail-copy:hover { border-color: var(--lime); color: var(--lime); }
.mail-copy[data-copied="true"] {
  border-color: var(--lime);
  background: rgba(76, 243, 155, 0.14);
  color: var(--lime);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(46, 61, 87, 0.7);
}
.footer-legal-line {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--mist);
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { align-items: flex-start; }
}

/* ==========================================================================
   16. 滚动动效与章节协议
   ========================================================================== */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-ready [data-reveal].is-visible { opacity: 1; transform: none; }

[data-section-link][aria-current] {
  color: var(--lime);
  border-color: rgba(76, 243, 155, 0.6);
}

/* ---------- 17. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .progress-bar { transition: none; }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}
