/* ============================================================
   极速电竞 · 共享站级样式 /assets/site.css
   深空黑网格 · 青橙信号 · 锐利直角 · 精密索引
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #05070C;
  --panel: #0B111C;
  --panel-2: #111A2B;
  --cyan: #00E5FF;
  --cyan-dim: #00A3B8;
  --orange: #FF6A00;
  --magenta: #FF2E8A;
  --text: #E8F6FF;
  --text-soft: #A9BDD0;
  --muted: #6C7A8F;
  --line: #2A3547;
  --gain: #7CFFB2;
  --header-h: 84px;
  --gutter: clamp(18px, 4.6vw, 64px);
  --max: 1360px;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1000px 620px at 88% -8%, rgba(0, 229, 255, .10), transparent 62%),
    radial-gradient(760px 520px at 4% 4%, rgba(255, 106, 0, .07), transparent 66%),
    linear-gradient(to right, rgba(42, 53, 71, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 53, 71, .16) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed, fixed, scroll, scroll;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 5.2vw, 72px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(18px, 1.8vw, 23px); }

p { text-wrap: pretty; }

a { text-decoration: none; }

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

#main-content { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- 4. 通用工具 ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(20px, 3vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.lead {
  max-width: 64ch;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.75;
  color: var(--text-soft);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(20px, 3vw, 36px);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--orange);
  color: #10060A;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.btn:hover { background: #FF8124; }
.btn:active { background: var(--magenta); color: #0A0410; }

.btn--entry {
  padding: 11px 18px;
  font-size: 13px;
  letter-spacing: .1em;
}

.btn--entry::after {
  content: "→";
  font-family: var(--mono);
  font-weight: 400;
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0, 229, 255, .45);
}

.btn--ghost:hover {
  background: rgba(0, 229, 255, .1);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(0, 229, 255, .42);
  background: rgba(0, 229, 255, .07);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--orange {
  border-color: rgba(255, 106, 0, .5);
  background: rgba(255, 106, 0, .1);
  color: #FFA35C;
}

.tag--magenta {
  border-color: rgba(255, 46, 138, .5);
  background: rgba(255, 46, 138, .1);
  color: #FF7DB4;
}

.tag--gain {
  border-color: rgba(124, 255, 178, .45);
  background: rgba(124, 255, 178, .08);
  color: var(--gain);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__link {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

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

.breadcrumb__sep { color: #3B475C; }

.breadcrumb__current { color: var(--text); }

/* ---------- 8. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.data-table {
  width: 100%;
  min-width: 520px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(0, 229, 255, .35);
  white-space: nowrap;
}

.data-table tbody tr { transition: background-color .16s var(--ease); }
.data-table tbody tr:hover { background: rgba(0, 229, 255, .05); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* ---------- 9. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(0, 229, 255, .07) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.06);
}

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

/* ---------- 10. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .14s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 11. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background-color: rgba(11, 17, 28, 0);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 12, .93) 0%, rgba(5, 7, 12, .58) 62%, rgba(5, 7, 12, 0) 100%);
  transition: opacity .2s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(0, 229, 255, 0) 0%,
    rgba(0, 229, 255, .55) 18%,
    rgba(255, 106, 0, .45) 52%,
    rgba(255, 46, 138, .32) 76%,
    rgba(0, 229, 255, 0) 100%);
  opacity: .55;
  transition: opacity .2s var(--ease);
}

.site-header.is-scrolled {
  --header-h: 68px;
  background-color: rgba(11, 17, 28, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .48);
}

.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled::after { opacity: 1; }

.site-header__scrub {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(42, 53, 71, .55);
  opacity: .5;
  transition: opacity .2s var(--ease);
}

.site-header.is-scrolled .site-header__scrub { opacity: 1; }

.site-header__scrub-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 42%, var(--orange) 100%);
  will-change: transform;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  width: 100%;
  max-width: var(--max);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height .2s var(--ease);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: inline-grid;
  gap: 4px;
  width: 22px;
  transform: skewX(-20deg);
}

.brand__blade {
  display: block;
  height: 5px;
  background: var(--cyan);
  transition: background-color .16s var(--ease), width .16s var(--ease);
}

.brand__blade:nth-child(2) {
  width: 74%;
  margin-left: auto;
  background: var(--orange);
}

.brand:hover .brand__blade { background: var(--magenta); }

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.1;
  color: #FFFFFF;
}

.brand__latin {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .3em;
  line-height: 1.2;
  color: var(--muted);
}

.brand__tag {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--muted);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 26px);
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 2px 9px;
  font-size: 14px;
  color: var(--text);
  transition: color .16s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .16s var(--ease), background-color .16s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"]::after { background: var(--orange); }

.site-nav__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .16s var(--ease);
}

.site-nav__link:hover { color: #FFFFFF; }
.site-nav__link:hover .site-nav__num { color: var(--cyan); }

.site-nav__link[aria-current="page"] { color: #FFFFFF; }
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--orange); }

.site-nav__label { white-space: nowrap; }

.site-nav__cta { margin-left: clamp(8px, 1.6vw, 20px); }

/* 移动端切换按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(0, 229, 255, .35);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}

.nav-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .08);
}

.nav-toggle__bars {
  display: inline-grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .16s var(--ease);
}

.nav-toggle[data-open] .nav-toggle__bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[data-open] .nav-toggle__bars span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0 10%, var(--cyan) 10% 32%, transparent 32% 100%);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 78px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: clamp(24px, 3.4vw, 52px);
}

.footer-block { min-width: 0; }

.footer-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-block__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.footer-block--brand { display: grid; align-content: start; gap: 14px; }

.footer-brand {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.footer-brand__name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #FFFFFF;
}

.footer-brand__latin {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .28em;
  color: var(--muted);
}

.footer-note {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer-note--small {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.footer-record {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.footer-list { display: grid; gap: 2px; }

.footer-list__item { display: block; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}

.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line);
  transition: background-color .16s var(--ease), width .16s var(--ease);
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(0, 229, 255, .5);
}

.footer-link:hover::before {
  width: 18px;
  background: var(--cyan);
}

.footer-contact { display: grid; gap: 2px; }

.footer-contact__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding-block: 8px;
  border-bottom: 1px dashed rgba(42, 53, 71, .9);
}

.footer-contact__row--wide { grid-template-columns: 46px minmax(0, 1fr); }

.footer-contact__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted);
}

.footer-contact__value {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-contact__row--wide .footer-contact__value {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-soft);
}

.footer-copy {
  padding: 3px 8px;
  border: 1px solid rgba(0, 229, 255, .35);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}

.footer-copy:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .1);
}

.footer-copy[data-copy-state="done"] {
  color: #04120A;
  background: var(--gain);
  border-color: var(--gain);
}

.footer-copy[data-copy-state="fail"] {
  color: #2A0A16;
  background: var(--magenta);
  border-color: var(--magenta);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(30px, 5vw, 56px);
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.footer-bar__copy {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

.footer-bar__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: #3B475C;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .footer-block--brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .brand__tag { display: none; }

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    z-index: 90;
    display: grid;
    align-content: start;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    margin-left: 0;
    padding: 16px var(--gutter) 32px;
    background: var(--panel);
    border-top: 1px solid rgba(0, 229, 255, .28);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .62);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .site-nav__item { width: 100%; }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(42, 53, 71, .8);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    background: rgba(0, 229, 255, .07);
    color: var(--cyan);
  }

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

  .site-nav__cta {
    width: 100%;
    justify-content: center;
    margin: 18px 0 0;
  }

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

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

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-block--brand { grid-column: 1 / -1; }
  .footer-bar { padding-block: 16px; }
}

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand__name { font-size: 21px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .brand__name { font-size: 17px; }
  .brand__latin { font-size: 8.5px; letter-spacing: .24em; }
}

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

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