/* ============================================================
   雷竞技体育 · 中文站 共享样式 /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, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0A0D1B;
  --deep: #102A5C;
  --violet: #7B4DFF;
  --violet-deep: #3A1E7A;
  --lime: #C8FF3D;
  --paper: #F4EEE2;
  --print: #14100C;
  --gold: #C7A25A;
  --mist: #9BA8C6;
  --goal: #2FD79B;
  --miss: #FF5F7E;

  --line: rgba(123, 77, 255, .48);
  --line-soft: rgba(123, 77, 255, .22);
  --line-gold: rgba(199, 162, 90, .38);
  --glass: rgba(16, 42, 92, .46);
  --glass-ink: rgba(10, 13, 27, .88);

  --rail-top: 2px;
  --rail-left: 3px;
  --header-h: 70px;
  --shell: 1400px;

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

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

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-left);
  background-color: var(--ink);
  background-image:
    radial-gradient(1180px 600px at 90% -10%, rgba(123, 77, 255, .22), transparent 62%),
    radial-gradient(720px 420px at 2% 6%, rgba(16, 42, 92, .68), transparent 70%),
    repeating-linear-gradient(0deg, rgba(155, 168, 198, .035) 0 1px, transparent 1px 5px);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(34px, 6vw, 62px); }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 2.2vw, 25px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--lime); color: var(--print); }

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

/* ---------- 4. Frame rails + progress ---------- */
.frame-rail--top {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--rail-top);
  background: linear-gradient(90deg, var(--violet-deep), var(--violet) 28%, var(--violet-deep) 68%, var(--violet));
  z-index: 70;
  pointer-events: none;
}
.frame-rail--left {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--rail-left);
  background: linear-gradient(180deg, var(--violet), var(--violet-deep) 48%, rgba(123, 77, 255, .18));
  z-index: 70;
  pointer-events: none;
}
.scroll-pulse {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--rail-top);
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(200, 255, 61, .85);
  z-index: 71;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 120;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--print);
  font-size: 14px;
  font-weight: 800;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: var(--rail-top);
  z-index: 60;
  background: var(--glass-ink);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}
.brand-lockup__mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 900;
  color: var(--lime);
  border: 1px solid var(--line);
  background: linear-gradient(148deg, rgba(58, 30, 122, .95), rgba(10, 13, 27, .4));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand-lockup__text { display: flex; flex-direction: column; line-height: 1.24; min-width: 0; }
.brand-lockup__name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-lockup__tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--mist);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.site-nav__list { display: flex; align-items: center; }
.site-nav__list a {
  position: relative;
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(244, 238, 226, .82);
  border: 1px solid transparent;
  border-left: 1px solid var(--line-soft);
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.site-nav__list li:last-child a { border-right: 1px solid var(--line-soft); }
.site-nav__list a:hover {
  color: var(--paper);
  background: rgba(123, 77, 255, .16);
  border-color: var(--line);
}
.site-nav__list a[aria-current="page"] {
  color: var(--print);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 800;
}
.site-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--lime);
  transform: rotate(45deg);
}

.site-nav__actions { display: flex; align-items: center; gap: 10px; }
.search-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--mist);
  padding: 6px 2px;
  border-bottom: 1px dashed var(--line);
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.search-hint:hover { color: var(--lime); border-color: var(--lime); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(123, 77, 255, .12);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--primary {
  background: var(--violet);
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(123, 77, 255, .34);
}
.btn--primary:hover { background: #8c63ff; transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--line);
  background: rgba(123, 77, 255, .08);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

/* ---------- 8. Layout ---------- */
.container {
  width: min(100% - 44px, var(--shell));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 44px, 900px); }
.container--wide { width: min(100% - 44px, 1600px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.section { padding: 58px 0; }
.section--tight { padding: 34px 0; }
.section--roomy { padding: 92px 0; }

.band { position: relative; }
.band--ink { background: var(--ink); color: var(--paper); }
.band--deep { background: linear-gradient(150deg, var(--deep), #0b1c3f 88%); color: var(--paper); }
.band--paper { background: var(--paper); color: var(--print); }
.band--paper h1, .band--paper h2, .band--paper h3 { color: var(--print); }
.band--paper .muted { color: rgba(20, 16, 12, .62); }
.band--paper .lead { color: rgba(20, 16, 12, .8); }
.band--paper .eyebrow { color: var(--violet); }

/* 斜切转场（仅用于首屏与章节交界） */
.cut-slant-r { clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
.cut-slant-l { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }

/* 层材质：玻璃层永远叠在实色层之上 */
.glass-panel {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.solid-panel {
  background: var(--deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
.paper-panel {
  background: var(--paper);
  color: var(--print);
  border-radius: var(--r-lg);
  border: 1px solid rgba(20, 16, 12, .1);
}

/* ---------- 9. Typography helpers ---------- */
.lead { font-size: 19px; line-height: 1.75; color: rgba(244, 238, 226, .88); }
.muted { color: var(--mist); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--lime);
  text-transform: uppercase;
}
.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--mist);
}
.rotated-note {
  display: inline-block;
  transform: rotate(-90deg);
  transform-origin: left bottom;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--mist);
  white-space: nowrap;
}
.data-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
}
.key-term {
  color: var(--lime);
  font-weight: 800;
  box-shadow: inset 0 -8px 0 rgba(200, 255, 61, .16);
}
.is-goal { color: var(--goal); }
.is-miss { color: var(--miss); }
.is-gold { color: var(--gold); }

/* ---------- 10. Chips & filters ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(123, 77, 255, .1);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.chip:hover { border-color: var(--lime); color: var(--lime); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--print);
}

/* ---------- 11. Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(152deg, rgba(58, 30, 122, .85), rgba(10, 13, 27, .95)),
    var(--deep);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(123, 77, 255, .42), transparent 62%);
  pointer-events: none;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(200, 255, 61, .06) 0 1px, transparent 1px 4px);
  pointer-events: none;
  z-index: 2;
}
.media-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__caption {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
  background: rgba(10, 13, 27, .68);
  border-left: 2px solid var(--lime);
  padding: 6px 10px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { grid-column: span 12; }

/* ---------- 12. Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--mist);
}
.breadcrumbs a { color: var(--mist); transition: color .18s var(--ease); }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs li + li::before {
  content: "/";
  color: var(--violet);
  margin-right: 8px;
}
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 13. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  background: linear-gradient(180deg, var(--ink) 0%, #0c1730 55%, var(--deep) 130%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}
.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 54px 22px 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 34px;
}
.footer-brand__name {
  position: relative;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
  padding-top: 18px;
}
.footer-brand__name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  background: var(--lime);
}
.footer-brand__tagline {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
}
.footer-brand__note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}
.footer-col__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--violet);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-list li + li { margin-top: 10px; }
.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 238, 226, .8);
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}
.footer-list a:hover { color: var(--lime); padding-left: 6px; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}
.footer-contact__key {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding-top: 2px;
}
.footer-contact__val { color: rgba(244, 238, 226, .84); word-break: break-word; }
.site-footer__legal {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 22px 36px;
  border-top: 1px solid var(--line-gold);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}
.footer-legal__meta { color: rgba(199, 162, 90, .9); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1240px) {
  .search-hint { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 60px; }
  .site-header__inner { padding: 10px 16px; gap: 12px; }
  .brand-lockup__mark { width: 34px; height: 34px; font-size: 16px; }
  .brand-lockup__name { font-size: 14px; }
  .brand-lockup__tagline { display: none; }

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

  .site-nav {
    position: fixed;
    left: var(--rail-left);
    right: 0;
    top: calc(var(--header-h) + var(--rail-top));
    bottom: 0;
    z-index: 59;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 18px 48px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(10, 13, 27, .99), rgba(16, 42, 92, .97));
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s linear;
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 8px; }
  .site-nav__list a {
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 14px 16px;
    font-size: 16px;
  }
  .site-nav__list li:last-child a { border-right: 1px solid var(--line-soft); }
  .site-nav__list a[aria-current="page"]::after { display: none; }
  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--line-soft);
  }
  .site-nav__actions .btn { width: 100%; }
  .search-hint { display: block; text-align: center; border-bottom: 0; padding-top: 6px; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .grid-12 { gap: 18px; }
  .col-3, .col-4, .col-5, .col-7, .col-8 { grid-column: span 6; }
  .col-6 { grid-column: span 12; }
  .section { padding: 44px 0; }
  .section--roomy { padding: 66px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .container--narrow, .container--wide { width: min(100% - 32px, 100%); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .site-footer__inner { grid-template-columns: 1fr; padding: 40px 18px 24px; }
  .site-footer__legal { padding: 16px 18px 32px; flex-direction: column; align-items: flex-start; }
  .media-frame--wide { grid-column: span 12; }
}

/* ---------- 16. Reduced motion ---------- */
@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; }
  .scroll-pulse { box-shadow: none; }
}
