/* ============================================================
   电竞世界中国站 · 共享样式 /assets/site.css
   深空黑 + 霓虹青 · 堆叠画板 · 等宽索引
   ============================================================ */

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(28, 37, 48, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 37, 48, 0.55) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  min-height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

p { margin: 0 0 1em; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7cffe6; }

img, svg, video { max-width: 100%; height: auto; }

ul, ol { margin: 0; padding: 0; }

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

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

::selection { background: var(--cyan); color: #04140f; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #05070C;
  --panel: #0D1119;
  --line: #1C2530;
  --white: #E8EEF4;
  --steel: #8792A2;
  --cyan: #35F2D0;
  --violet: #8A6BFF;
  --orange: #FF7A2F;
  --red: #FF4D6A;
  --mist: #0E2B2A;

  --shell: 1240px;
  --rail: 220px;
  --hard-shadow: 10px 10px 0 rgba(0, 0, 0, 0.55);

  --f-display: "Archivo Narrow", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --f-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 排版工具 ---------- */
.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.lead {
  font-size: 17px;
  line-height: 1.8;
  color: #C6D2DE;
  max-width: 62ch;
}

.kpi {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.aside-note {
  border-left: 2px solid var(--violet);
  padding: 8px 0 8px 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
}

.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. 布局 ---------- */
.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: 40px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 18px;
  font-size: 13.5px;
}

.grid { display: grid; 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)); }

.stack { display: grid; gap: 22px; }

/* ---------- 5. 面板 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--hard-shadow);
  padding: clamp(20px, 2.6vw, 34px);
}

.panel--accent { border-color: rgba(53, 242, 208, 0.4); }

.panel__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.panel__idx {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.panel__title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.08em;
}

/* ---------- 6. 面包屑 ---------- */
.crumbs {
  padding: 20px 0 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

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

.crumbs li::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}

.crumbs li:last-child::after { display: none; }

.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--cyan); }

/* ---------- 7. 按钮与状态胶囊 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 0;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--accent {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04140F;
  box-shadow: 4px 4px 0 rgba(53, 242, 208, 0.22);
}

.btn--accent:hover {
  background: #7cffe6;
  border-color: #7cffe6;
  color: #04140F;
  transform: translate(-2px, -2px);
}

.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.chip--ver {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0A00;
  font-weight: 700;
}

.chip--batch .mono { color: var(--cyan); }
.chip--season .mono { color: var(--violet); }

/* ---------- 8. 页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 7, 12, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04140F;
  font-weight: 700;
  font-size: 14px;
  transition: top 0.18s var(--ease);
}

.skip:focus { top: 12px; color: #04140F; }

.head-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand:hover { color: var(--white); }

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 2px solid var(--cyan);
  box-shadow: 5px 5px 0 rgba(53, 242, 208, 0.16);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--cyan);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1px;
  background: var(--violet);
  transform: translateY(-50%);
}

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

.brand__name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand__line {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.head-tagline {
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.head-band {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 17, 25, 0.92), rgba(5, 7, 12, 0.92));
}

.head-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav { flex: 1 1 auto; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  counter-reset: navidx;
}

.nav__link {
  position: relative;
  display: block;
  padding: 14px 16px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.nav__link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  margin-right: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--line);
  vertical-align: 1px;
}

.nav__link:hover { color: var(--white); background: rgba(28, 37, 48, 0.5); }

.nav__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav__link[aria-current="page"]::before { color: rgba(53, 242, 208, 0.5); }

.navswitch {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.navswitch__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -6px 0 var(--cyan), 0 6px 0 var(--cyan);
}

.bandtoggle {
  padding: 14px 0 14px 16px;
  border-left: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.bandtoggle:hover { color: var(--cyan); }

/* ---------- 9. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0B0F18 0%, var(--ink) 100%);
}

.site-foot::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 88px;
  height: 2px;
  background: var(--cyan);
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2.2fr;
  gap: 40px;
  padding: 52px 0 40px;
}

.brand--foot { margin-bottom: 4px; }

.foot-brand__line {
  margin: 14px 0 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.foot-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  font-size: 13px;
  color: var(--steel);
}

.fact {
  position: relative;
  padding-left: 12px;
}

.fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  background: var(--cyan);
}

.fact .mono { color: var(--white); }

.foot-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 40ch;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.foot-col__title {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--cyan);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

.foot-link {
  color: var(--steel);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

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

.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
}

.foot-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  font-size: 12.5px;
  color: var(--steel);
}

.foot-bottom__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0;
}

.foot-bottom__legal .mono { color: var(--white); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}

.foot-status {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.foot-status .mono { color: var(--cyan); }

/* ---------- 10. 数据表 ---------- */
.tbl {
  font-size: 13.5px;
  border: 1px solid var(--line);
}

.tbl th,
.tbl td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tbl thead th {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(28, 37, 48, 0.45);
}

.tbl tbody tr:last-child th,
.tbl tbody tr:last-child td { border-bottom: 0; }

.tbl--zebra tbody tr:nth-child(even) { background: var(--mist); }

.tbl__hi {
  color: var(--cyan);
  font-family: var(--f-mono);
  background: rgba(53, 242, 208, 0.08);
}

/* ---------- 11. 图片容器（页面阶段放 <img>） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--panel);
  background-image:
    linear-gradient(rgba(28, 37, 48, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 37, 48, 0.7) 1px, transparent 1px);
  background-size: 32px 32px;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(53, 242, 208, 0.07), transparent 55%);
}

.media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--chart { aspect-ratio: 21 / 9; }

.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  max-width: 100%;
  padding: 6px 12px;
  background: rgba(5, 7, 12, 0.88);
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- 12. 动效与进度线 ---------- */
.readline {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  pointer-events: none;
  transition: width 0.1s linear;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  transition-delay: var(--rv-delay, 0ms);
}

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1100px) {
  .head-tagline { display: none; }
  .head-top { grid-template-columns: auto 1fr; }
  .statusbar { grid-column: 1 / -1; justify-content: flex-start; }

  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; top: auto; }

  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .brand__name { font-size: 18px; letter-spacing: 0.12em; }

  .head-band__inner { flex-wrap: wrap; padding-bottom: 2px; }

  .navswitch { display: inline-flex; order: 2; margin-left: auto; }
  .bandtoggle { display: none; }

  .nav {
    order: 3;
    flex: 1 1 100%;
    display: none;
    border-top: 1px solid var(--line);
  }

  .nav[data-open] { display: block; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 4px 0 10px;
  }

  .nav__link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav__link:hover { background: transparent; color: var(--white); }

  .nav__link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--cyan);
    background: rgba(53, 242, 208, 0.06);
  }

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

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, var(--shell)); }

  .head-top { gap: 12px; padding: 12px 0; }
  .brand__mark { width: 28px; height: 28px; }
  .brand__name { font-size: 16px; }
  .brand__line { font-size: 10px; letter-spacing: 0.1em; }

  .statusbar { gap: 6px; }
  .chip--batch { display: none; }
  .btn--accent { padding: 9px 13px; font-size: 13px; }

  .panel { box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55); }
  .kpi { font-size: 32px; }

  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }

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

/* ---------- 14. 无障碍与减弱动效 ---------- */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition-delay: 0ms !important;
  }

  .readline { transition: none; }
}
