/* =========================================================
   爱游戏赛事 · 共享样式 /assets/site.css
   深夜数据指挥室：墨绿底板 + 荧光青数据线 + 琥珀橙状态
   ========================================================= */

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

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

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

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

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

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

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

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

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

[hidden] { display: none !important; }

::selection { background: rgba(53, 240, 196, .28); color: #04150F; }

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #04150F;
  --panel: #0A231A;
  --panel-2: #123026;
  --line: #1D4A3A;
  --cyan: #35F0C4;
  --cyan-soft: #8BF6DC;
  --amber: #FFB24D;
  --amber-dim: #C97A18;
  --text: #E9F6F0;
  --muted: #93AFA5;

  --bar-h: 56px;
  --rail-w: 280px;
  --content-max: 1180px;

  --r-xl: 28px;
  --r-card: 22px;
  --r-sm: 12px;
  --pill: 999px;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;

  --font-head: "Oswald", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. 基础排版 ---------- */
body {
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 84% -8%, rgba(53, 240, 196, .10), transparent 68%),
    radial-gradient(760px 460px at -6% 14%, rgba(255, 178, 77, .055), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.4vw, 28px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

strong { color: var(--cyan-soft); font-weight: 700; }

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

.mono {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 等宽大数字：比分 / 排名 */
.data-figure {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--text);
}

.data-figure--xl { font-size: clamp(48px, 10vw, 96px); font-weight: 700; }
.data-figure--lg { font-size: clamp(30px, 5vw, 56px); font-weight: 700; }
.data-figure--md { font-size: 24px; font-weight: 600; }
.data-figure--cyan { color: var(--cyan); }
.data-figure--amber { color: var(--amber); }

/* ---------- 3. 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--s3);
}

.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  align-items: start;
  gap: var(--s5);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--s4) var(--s3) 0;
}

.shell__main { min-width: 0; max-width: var(--content-max); }

.rail {
  position: sticky;
  top: calc(var(--bar-h) + var(--s3));
  align-self: start;
}

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

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
    padding-top: var(--s3);
  }
  .rail { position: static; top: auto; }
}

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

.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--s2); }
.prose h2, .prose h3 { margin-top: var(--s4); }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--cyan);
  color: #04150F;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip-link:focus { transform: none; }

/* ---------- 5. 命令栏页头 ---------- */
.cmd-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(4, 21, 15, .9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.cmd-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--s2);
  height: var(--bar-h);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

.cmd-bar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
  pointer-events: none;
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.cmd-bar .brand {
  flex: 0 0 var(--rail-w);
  max-width: var(--rail-w);
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(140deg, #35F0C4, #0E7F63 72%);
  box-shadow: 0 0 0 1px rgba(53, 240, 196, .3), 0 8px 20px -10px rgba(53, 240, 196, .85);
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.brand__text { display: flex; flex-direction: column; min-width: 0; }

.brand__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--text);
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand:hover .brand__name { color: var(--cyan-soft); }

/* 导航 */
.cmd-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.cmd-nav__list { display: flex; align-items: center; gap: 2px; }
.cmd-nav__item { display: block; }

.cmd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--pill);
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.cmd-nav__num {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(53, 240, 196, .5);
}

.cmd-nav__link:hover { color: var(--text); background: rgba(233, 246, 240, .06); }

.cmd-nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(53, 240, 196, .12);
  box-shadow: inset 0 0 0 1px rgba(53, 240, 196, .3);
}

.cmd-nav__link[aria-current="page"] .cmd-nav__num { color: var(--amber); }

.cmd-nav__foot { display: none; }
.cmd-nav__foot-title {
  margin-bottom: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

.cmd-nav__foot-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.cmd-nav__foot-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13px;
  color: var(--cyan-soft);
}

.cmd-nav__cta { width: 100%; }

/* 右侧动作区 */
.cmd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.cmd-actions__cta { flex: 0 0 auto; }

.cmd-utils { display: flex; align-items: center; gap: 14px; }

.cmd-utils__link {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .18s var(--ease);
}

.cmd-utils__link:hover { color: var(--cyan-soft); }

/* 快捷跳转 */
.cmd-jump { position: relative; }

.cmd-jump__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}

.cmd-jump__trigger:hover,
.cmd-jump__trigger[aria-expanded="true"] {
  border-color: rgba(53, 240, 196, .55);
  background: var(--panel-2);
  color: var(--text);
}

.cmd-jump__hint { font-size: 13px; }

.cmd-jump__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(53, 240, 196, .14);
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1;
}

.cmd-jump__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}

.cmd-jump__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.cmd-jump__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  font-size: 14px;
}

.cmd-jump__input::placeholder { color: rgba(147, 175, 165, .72); }

.cmd-jump__input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(53, 240, 196, .25);
}

.cmd-jump__list {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  max-height: 264px;
  overflow-y: auto;
}

.cmd-jump__list a {
  display: block;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}

.cmd-jump__list a:hover,
.cmd-jump__list a:focus-visible {
  background: rgba(53, 240, 196, .14);
  color: var(--cyan-soft);
}

.cmd-jump__empty { padding: 10px 11px; font-size: 13px; color: var(--muted); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}

.nav-toggle__label { font-size: 13px; }

.cmd-bar[data-open] .nav-toggle { border-color: rgba(53, 240, 196, .55); color: var(--cyan); }
.cmd-bar[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cmd-bar[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.cmd-bar[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 命令栏断点 */
@media (max-width: 1400px) {
  .cmd-nav__num { display: none; }
}

@media (max-width: 1360px) {
  .cmd-utils { display: none; }
}

@media (max-width: 1300px) {
  .cmd-bar .brand { flex: 0 1 auto; max-width: 220px; }
  .cmd-nav__link { padding: 0 9px; font-size: 13.5px; }
}

@media (max-width: 1080px) {
  .cmd-bar .brand { flex: 1 1 auto; max-width: none; }
  .nav-toggle { display: inline-flex; }

  .cmd-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    padding: 14px var(--s2) 22px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s linear;
  }

  .cmd-bar[data-open] .cmd-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .cmd-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }

  .cmd-nav__link {
    justify-content: flex-start;
    height: 46px;
    padding: 0 14px;
    border-radius: var(--r-sm);
    font-size: 15px;
    background: rgba(233, 246, 240, .03);
  }

  .cmd-nav__num { display: inline; font-size: 11px; }

  .cmd-nav__foot {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
  }

  .cmd-jump__panel {
    position: fixed;
    top: calc(var(--bar-h) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 720px) {
  .cmd-actions__cta { display: none; }
  .cmd-bar__inner { gap: 10px; padding: 0 var(--s2); }
  .brand__sub { display: none; }
}

@media (max-width: 420px) {
  .cmd-jump__hint { display: none; }
  .nav-toggle__label { display: none; }
}

/* ---------- 6. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 9vw, var(--s7));
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 240, 196, .5), rgba(255, 178, 77, .45), transparent);
}

.site-foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s5);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--s6) var(--s3) var(--s4);
}

.site-foot__brand { max-width: 420px; }

.brand--foot .brand__name { font-size: 19px; }

.site-foot__tagline {
  margin-top: 14px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--cyan-soft);
}

.site-foot__note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.site-foot__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, auto));
  gap: var(--s4) var(--s5);
}

.foot-col__title {
  margin-bottom: 12px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--muted);
}

.foot-col__list { display: grid; gap: 8px; }

.foot-col__link {
  font-size: 14px;
  color: var(--text);
  transition: color .18s var(--ease);
}

.foot-col__link:hover { color: var(--cyan-soft); }

.site-foot__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px var(--s3) var(--s4);
  border-top: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.site-foot__contact { max-width: 760px; }
.site-foot__legal { white-space: nowrap; }

@media (max-width: 900px) {
  .site-foot__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
    padding-top: var(--s5);
  }
  .site-foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
}

@media (max-width: 520px) {
  .site-foot__links { grid-template-columns: minmax(0, 1fr); }
  .site-foot__legal { white-space: normal; }
}

/* ---------- 7. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}

.btn--primary { background: var(--cyan); color: #04150F; }
.btn--primary:hover { background: var(--cyan-soft); transform: translateY(-1px); }

.btn--ghost {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-soft); }

.btn--amber { background: var(--amber); color: #2A1400; }
.btn--amber:hover { background: #FFC775; transform: translateY(-1px); }

.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

.pill--cyan {
  color: var(--cyan);
  border-color: rgba(53, 240, 196, .4);
  background: rgba(53, 240, 196, .08);
}

.pill--amber {
  color: var(--amber);
  border-color: rgba(255, 178, 77, .4);
  background: rgba(255, 178, 77, .08);
}

.panel {
  padding: var(--s3);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel--raised { background: var(--panel-2); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.breadcrumbs li { display: flex; align-items: center; gap: 8px; }

.breadcrumbs li + li::before { content: "/"; color: var(--line); }

.breadcrumbs a:hover { color: var(--cyan-soft); }

.breadcrumbs [aria-current="page"] { color: var(--text); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: var(--s3);
  text-align: left;
}

.section-head__num {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.section-head__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}

.section-head__meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--amber);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: status-pulse 2.4s var(--ease) infinite;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 178, 77, .55); opacity: 1; }
  70%  { box-shadow: 0 0 0 10px rgba(255, 178, 77, 0); opacity: .7; }
  100% { box-shadow: 0 0 0 0 rgba(255, 178, 77, 0); opacity: 1; }
}

/* ---------- 8. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--panel);
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 21, 15, .15), rgba(4, 21, 15, .8));
  pointer-events: none;
}

.media__caption {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--cyan-soft);
}

/* ---------- 9. 动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}

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

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

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .status__dot { animation: none; }
  .cmd-bar__progress { transition: none; }
}
