/* ============================================================
   雷竞技赛事 · /assets/site.css
   共享外壳：reset、变量、中文排版、头部、页脚、通用组件
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #05070D;
  --ink-2: #0B1120;
  --line: #1E2A44;
  --blue: #2D6BFF;
  --ice: #8FB4FF;
  --orange: #FF6A2A;
  --green: #5CFF9D;
  --amber: #FFC857;
  --text: #F4F7FF;
  --muted: #9AA8C7;
  --panel: #101A2E;
  --focus: #FFD166;

  --font-title: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", ui-monospace, monospace;

  --fs-display: clamp(2.8rem, 6vw, 5.5rem);
  --fs-h1: clamp(2.2rem, 4.5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.6rem);
  --fs-num: clamp(2rem, 5vw, 4.5rem);
  --fs-small: 13px;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --pill: 999px;
  --edge: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版与画布 ---------- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 78% -10%, rgba(45, 107, 255, .18) 0%, rgba(5, 7, 13, 0) 62%),
    linear-gradient(to right, rgba(30, 42, 68, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 42, 68, .55) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
  background-position: 0 0, center top, center top;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 900; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { text-wrap: pretty; }

a { text-decoration: none; }

::selection { background: var(--blue); color: #FFFFFF; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳转链接与阅读进度 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--focus);
  color: #1A1200;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--edge);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible,
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: rgba(30, 42, 68, .6);
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 55%, var(--green) 100%);
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: clamp(10px, 1.6vw, 18px) var(--gutter);
  background: rgba(5, 7, 13, .74);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background .24s var(--ease), border-bottom-color .24s var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(5, 7, 13, .94);
  border-bottom-color: var(--line);
}

.header-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.nav-dock {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  background: rgba(16, 26, 46, .92);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: 0 24px 48px -34px rgba(45, 107, 255, .95);
}

/* 品牌锁 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  border-radius: var(--edge);
}
.brand-mark {
  display: grid;
  gap: 3px;
  align-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(155deg, rgba(45, 107, 255, .32), rgba(5, 7, 13, 0) 78%);
}
.brand-mark-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue);
}
.brand-mark-line:nth-child(2) { background: var(--orange); width: 72%; }
.brand-mark-line:nth-child(3) { background: var(--green); width: 44%; }

.brand-text { display: grid; gap: 1px; min-width: 0; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}

/* 面板：桌面端为横向轨道 + CTA */
.dock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.nav-island { min-width: 0; }
.nav-track {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-bottom: 1px;
}
.nav-track::-webkit-scrollbar { height: 4px; }
.nav-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--pill); }
.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: block;
  padding: 8px 14px 9px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(45, 107, 255, .16);
  border-color: var(--line);
  transform: translateY(-1px);
}
.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(45, 107, 255, .22);
  border-color: rgba(45, 107, 255, .6);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--pill);
  background: var(--orange);
  color: #140600;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.header-cta:hover { background: #FF8347; transform: translateY(-1px); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(45, 107, 255, .7); background: rgba(45, 107, 255, .14); }
.nav-toggle-bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle-label { display: inline-block; }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(44px, 6vw, 84px) var(--gutter) 26px;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 48%, var(--green) 100%);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
}

.footer-brand .brand { display: inline-flex; }
.brand--footer .brand-mark { width: 36px; height: 36px; padding: 7px; }
.brand--footer .brand-name { font-size: 20px; }
.brand--footer .brand-tag { font-size: 11px; }

.footer-statement {
  margin-top: 16px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

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

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ice);
}
.footer-col-title::before {
  content: "//";
  color: var(--orange);
  letter-spacing: 0;
}

.footer-links { display: grid; gap: 10px; }
.footer-link {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-link:hover {
  color: var(--text);
  border-bottom-color: var(--blue);
  transform: translateX(2px);
}

.contact-list { display: grid; gap: 12px; }
.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 13px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--ice);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 1px 8px;
}
.contact-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--text);
  word-break: break-all;
}
.copy-btn {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(45, 107, 255, .1);
  color: var(--ice);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.copy-btn:hover {
  color: var(--text);
  border-color: rgba(92, 255, 157, .6);
  background: rgba(92, 255, 157, .14);
}

.footer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  max-width: 32ch;
}

.copy-status {
  min-height: 1.2em;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--green);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}
.legal-meta { color: var(--muted); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-link {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.legal-link:hover { color: var(--ice); border-bottom-color: var(--ice); }

/* ---------- 7. 布局容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

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

.split-7-5 { display: grid; gap: clamp(24px, 3vw, 48px); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-8-4 { display: grid; gap: clamp(24px, 3vw, 48px); grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

/* ---------- 8. 通用小组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--orange);
}

.index-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

.data-number {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-num);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--edge);
  padding: clamp(18px, 2.4vw, 28px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  background: rgba(16, 26, 46, .8);
}
.tag--live { color: var(--orange); border-color: rgba(255, 106, 42, .55); }
.tag--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.tag--ok { color: var(--green); border-color: rgba(92, 255, 157, .5); }
.tag--warn { color: var(--amber); border-color: rgba(255, 200, 87, .5); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--edge);
  background: var(--panel);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); border-color: rgba(45, 107, 255, .7); }
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #140600;
}
.btn--primary:hover { background: #FF8347; border-color: #FF8347; }
.btn--ghost {
  background: transparent;
  border-color: rgba(45, 107, 255, .65);
  color: var(--ice);
}
.btn--ghost:hover { background: rgba(45, 107, 255, .16); color: var(--text); }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.breadcrumb-link {
  color: var(--ice);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.breadcrumb-link:hover { border-bottom-color: var(--ice); }
.breadcrumb-list [aria-current="page"] { color: var(--text); }

/* 正文长文 */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--text); }
.prose h2 { font-size: var(--fs-h2); margin-top: 1.9em; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.6em; }
.prose ul { list-style: square; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li { margin-top: .45em; }
.prose li::marker { color: var(--orange); }
.prose a {
  color: var(--ice);
  border-bottom: 1px solid rgba(143, 180, 255, .45);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.prose a:hover { color: var(--text); border-bottom-color: var(--orange); }
.prose strong { color: #FFFFFF; font-weight: 700; }
.prose blockquote {
  border-left: 2px solid var(--orange);
  padding-left: 16px;
  color: var(--muted);
}
.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  padding: .1em .4em;
  border-radius: var(--edge);
  background: rgba(45, 107, 255, .16);
  color: var(--ice);
}

/* ---------- 9. 图片容器基础规则（供页面阶段使用） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--edge);
  background-color: var(--ink-2);
  background-image:
    linear-gradient(148deg, rgba(45, 107, 255, .22) 0%, rgba(5, 7, 13, 0) 60%),
    repeating-linear-gradient(0deg, rgba(30, 42, 68, .85) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(30, 42, 68, .85) 0 1px, transparent 1px 30px);
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.media-frame:hover > img { transform: scale(1.03); filter: saturate(1.08); }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(45, 107, 255, .16);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 10. 响应式 ---------- */
@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media (max-width: 899px) {
  .split-7-5,
  .split-8-4 { grid-template-columns: minmax(0, 1fr); }

  .nav-dock {
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 24px;
    padding: 8px 10px;
    gap: 8px;
  }
  .nav-toggle { display: inline-flex; }
  .dock-panel {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav-dock[data-open] .dock-panel {
    display: flex;
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px dashed var(--line);
  }
  .nav-track {
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }
  .header-tools { justify-content: stretch; }
  .header-cta { width: 100%; }

  .nav-dock[data-open] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-dock[data-open] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-dock[data-open] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

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

  .brand-tag { font-size: 9.5px; letter-spacing: .05em; }
  .brand-name { font-size: 15px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .brand-tag { display: none; }
  .nav-toggle-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .nav-link:hover,
  .footer-link:hover,
  .btn:hover,
  .header-cta:hover { transform: none; }
  .media-frame:hover > img { transform: none; }
}
