/* ============================================================
   雷竞技赛场 · 共享样式表 /assets/site.css
   视觉语言：夜战数据面板 —— 深炭黑底 / 1px 极细边界 / 克制微阴影
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --c-bg: #0A0C14;
  --c-panel: #141826;
  --c-row: #1D2233;
  --c-purple: #7C3CFF;
  --c-cyan: #23D3EE;
  --c-lime: #A6FF3C;
  --c-amber: #FFB224;
  --c-text: #F3F6FF;
  --c-muted: #98A2BE;
  --c-line: rgba(152, 162, 190, 0.16);
  --c-line-soft: rgba(152, 162, 190, 0.08);
  --grad-brand: linear-gradient(90deg, #7C3CFF, #23D3EE);

  --f-display: 'Oswald', 'Barlow Condensed', 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-body: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --f-mono: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: 96px;
  --shell-max: 1320px;
  --shell-pad: clamp(16px, 3.4vw, 48px);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 34px -20px rgba(0, 0, 0, 0.92);
}

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

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(900px 480px at 88% -6%, rgba(124, 60, 255, 0.18), transparent 62%),
    radial-gradient(760px 460px at 2% 104%, rgba(35, 211, 238, 0.12), transparent 64%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--c-text);
}

p { margin: 0; }

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

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

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

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

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

hr { border: 0; border-top: 1px solid var(--c-line); margin: 0; }

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

::selection { background: var(--c-purple); color: #fff; }

/* ---------- 3. 排版工具 ---------- */
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.idx {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  color: var(--c-lime);
}
.lead {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(243, 246, 255, 0.78);
  max-width: 40em;
}
.muted { color: var(--c-muted); }
.section-title {
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: -0.02em;
}

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

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: 7fr 5fr; }

.panel {
  position: relative;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 2.4vw, 28px);
  min-width: 0;
}

/* ---------- 5. 按钮 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px 12px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--primary { background: var(--c-purple); color: #FFFFFF; }
.btn--primary:hover { background: var(--c-cyan); color: var(--c-bg); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-line);
  clip-path: none;
}
.btn--ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--c-cyan);
  border: 1px solid rgba(35, 211, 238, 0.4);
  white-space: nowrap;
}
.tag--lime { color: var(--c-lime); border-color: rgba(166, 255, 60, 0.45); }
.tag--amber { color: var(--c-amber); border-color: rgba(255, 178, 36, 0.45); }

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  list-style: none;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  color: rgba(152, 162, 190, 0.4);
}
.breadcrumb a:hover { color: var(--c-cyan); }
.breadcrumb [aria-current="page"] { color: var(--c-text); }

/* ---------- 7. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #171C2C, #0A0C14);
  border: 1px solid var(--c-line);
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--banner { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(152, 162, 190, 0.55);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(124, 60, 255, 0.07) 0 12px,
    transparent 12px 24px
  );
}

/* ---------- 8. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: calc(var(--rail-w) + 16px);
  top: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--c-lime);
  color: var(--c-bg);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 9. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

/* 左侧固定品牌轨道 */
.site-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 24px;
  background:
    linear-gradient(180deg, rgba(124, 60, 255, 0.18), transparent 24%, transparent 76%, rgba(35, 211, 238, 0.14)),
    #0B0E18;
  border-right: 1px solid var(--c-line);
}
.site-rail::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 14%;
  height: 30%;
  width: 2px;
  background: var(--grad-brand);
}
.rail-word {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--c-text);
}
.rail-season {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-cyan);
}
.rail-meta {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--c-muted);
}

/* 上层品牌轨道行 */
.header-top {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  position: relative;
  padding: 12px var(--shell-pad);
  background: rgba(10, 12, 20, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.brand-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-purple);
  padding-left: 10px;
  border-left: 1px solid rgba(124, 60, 255, 0.5);
}

.status-line {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 0 4px rgba(166, 255, 60, 0.14);
  animation: statusPulse 2.6s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 20px 9px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-bg);
  background: var(--c-lime);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.header-cta:hover {
  background: var(--c-cyan);
  transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-text);
  border: 1px solid var(--c-line);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s ease;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 下层斜切栏目导航 */
.header-nav {
  background: rgba(20, 24, 38, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  padding: 0 var(--shell-pad);
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 24px 11px 20px;
  font-size: 15px;
  color: var(--c-muted);
  white-space: nowrap;
  background-image: linear-gradient(90deg, rgba(124, 60, 255, 0.42), rgba(35, 211, 238, 0.24));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  transition: color 0.2s ease, background-size 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-link:hover { color: var(--c-text); background-size: 100% 100%; }
.nav-link[aria-current="page"] { color: var(--c-text); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: var(--c-lime);
  box-shadow: 0 0 10px rgba(166, 255, 60, 0.75);
}
.nav-idx {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(152, 162, 190, 0.72);
  transition: color 0.2s ease;
}
.nav-link:hover .nav-idx,
.nav-link[aria-current="page"] .nav-idx { color: var(--c-cyan); }

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(36px, 5vw, 64px) var(--shell-pad) 24px;
  background: #08090F;
  border-top: 1px solid var(--c-line);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--grad-brand);
}
.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
}
.footer-brand {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.footer-sub {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px clamp(18px, 3vw, 44px);
}
.footer-col { min-width: 0; }

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
}
.footer-idx {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-purple);
}

.footer-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-muted);
  border-bottom: 1px dashed var(--c-line-soft);
}
.footer-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 3px;
  background: var(--c-purple);
  transform: rotate(45deg);
}
.footer-list a {
  color: var(--c-muted);
  transition: color 0.18s ease;
}
.footer-list a:hover { color: var(--c-lime); }

.copy-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-muted);
  transition: color 0.18s ease;
}
.copy-line:hover { color: var(--c-cyan); }
.copy-text { word-break: break-all; min-width: 0; }
.copy-hint {
  flex: 0 0 auto;
  padding: 1px 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  border: 1px solid var(--c-line);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.copy-line[data-copied] { color: var(--c-lime); }
.copy-line[data-copied] .copy-hint {
  color: var(--c-lime);
  border-color: rgba(166, 255, 60, 0.5);
}

.footer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
.footer-note {
  font-size: 12.5px;
  color: var(--c-muted);
  max-width: 48ch;
}
.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}
.footer-dot { color: rgba(152, 162, 190, 0.4); }

/* ---------- 11. 显现动效 ---------- */
[data-reveal] {
  transition:
    opacity 0.3s ease,
    transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}
.has-js [data-reveal].is-inview {
  opacity: 1;
  transform: none;
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---------- 12. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--c-cyan);
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s linear,
    background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--c-purple);
  border-color: var(--c-purple);
  color: #FFFFFF;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; }
  body { padding-left: 0; }
  .site-rail { display: none; }

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

  .header-nav {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--shell-pad);
    border-bottom-width: 0;
    transition: max-height 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.34s ease,
      border-bottom-width 0.2s ease;
  }
  .header-nav[data-open] {
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px var(--shell-pad) 14px;
    border-bottom-width: 1px;
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link {
    width: 100%;
    padding: 14px 14px 14px 12px;
    clip-path: none;
    background-image: none;
    background-size: auto;
    border-bottom: 1px solid var(--c-line-soft);
  }
  .nav-link[aria-current="page"] {
    background-image: linear-gradient(90deg, rgba(124, 60, 255, 0.24), transparent);
  }
  .nav-link[aria-current="page"]::after {
    left: 12px;
    right: auto;
    width: 3px;
    top: 12px;
    bottom: 12px;
    height: auto;
  }

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

@media (max-width: 720px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .to-top { right: 14px; bottom: 14px; }
  .footer-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .status-line { display: none; }
  .brand-tag { display: none; }
  .header-cta { padding: 8px 16px 8px 14px; font-size: 13px; }
  .site-header { position: sticky; }
}

/* ---------- 14. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .to-top {
    transform: none;
  }
}
