/* ==========================================================================
   酷体育电竞 · 共享外壳样式  /assets/site.css
   深空黑 + 电竞紫，蓝图网格框架式导航
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rail-top) + 20px);
}

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

ul, ol { list-style: none; }

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

button { font: inherit; color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink:            #07070F;
  --deck:           #1A1233;
  --panel:          #322460;
  --line:           #2B2C46;
  --blue:           #3B7BFF;
  --cyan:           #35E6D6;
  --amber:          #FF8A2B;
  --paper:          #F1E9DA;
  --text:           #ECECF4;
  --muted:          #9A9AB8;
  --live:           #FF3B5C;

  --rail-top:  62px;
  --rail-side: 0px;

  --font-head: "Arial Narrow", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", Impact, sans-serif;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .72, .2, 1);
  --shadow-soft: 0 18px 48px -32px rgba(0, 0, 0, .95);
}

@media (min-width: 1080px) {
  :root { --rail-side: 56px; }
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  padding-top: var(--rail-top);
  padding-right: var(--rail-side);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { text-wrap: pretty; }

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

::selection { background: var(--cyan); color: #04121a; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px rgba(53, 230, 214, .38);
  border-radius: 2px;
}

/* ---------- 4. Utilities ---------- */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
}

.section { padding: clamp(48px, 7vw, 110px) 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .65;
  flex: 0 0 auto;
}

.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 26px);
}
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--paper);
  color: #141126;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .18s var(--ease);
}
.btn--primary {
  background: var(--blue);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--cyan);
  color: #04121A;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn:active { transform: translateY(1px); }

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

/* ---------- 8. Figures ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(140deg, var(--panel) 0%, var(--ink) 74%);
  border: 1px solid var(--line);
}
.figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(43, 44, 70, .95) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 44, 70, .95) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .3;
  mix-blend-mode: screen;
}
.figure > img,
.figure > picture > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s var(--ease);
}
.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3  { aspect-ratio: 4 / 3; }
.figure--3x4  { aspect-ratio: 3 / 4; }
.figure--1x1  { aspect-ratio: 1 / 1; }
.figure--21x9 { aspect-ratio: 21 / 9; }
.figure__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text);
  background: linear-gradient(to top, rgba(7, 7, 15, .94), transparent);
}
@media (hover: hover) {
  .figure:hover > img,
  a:hover > .figure > img { transform: scale(1.02); }
}

/* ---------- 9. Panels ---------- */
.panel {
  background: var(--deck);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 30px);
}
.panel--paper {
  background: var(--paper);
  color: #191430;
  border-color: #CDC1AD;
  box-shadow: var(--shadow-soft);
}
.panel--paper a { color: #1E3FBF; }

/* ==========================================================================
   10. 框架外壳 Header
   ========================================================================== */
.arena-frame { position: relative; }

/* --- 顶部导轨 --- */
.rail--top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--rail-top);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 40px);
  padding: 0 clamp(14px, 2vw, 26px);
  background: rgba(7, 7, 15, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* --- 品牌 --- */
.rail__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand-glyph {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--cyan);
  background: rgba(53, 230, 214, .06);
}
.brand-glyph i {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(53, 230, 214, .85);
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.brand-lockup__cn {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-lockup__en {
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .24em;
  color: var(--muted);
}

/* --- 开赛日刻度 --- */
.rail__ticker {
  display: none;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}
.ticker__label {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--cyan);
}
.ticker__track {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  min-width: 0;
}
.ticker__track i {
  display: block;
  width: 2px;
  height: 5px;
  background: var(--line);
  flex: 0 0 auto;
}
.ticker__track i:nth-child(2),
.ticker__track i:nth-child(7) { height: 10px; background: var(--panel); }
.ticker__track i:nth-child(4),
.ticker__track i:nth-child(10) { height: 14px; background: var(--blue); }
.ticker__track i:nth-child(6) {
  height: 16px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(53, 230, 214, .7);
}
.ticker__track i:nth-child(12) { height: 9px; background: var(--panel); }
.ticker__coord {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
}

/* --- 主导航 --- */
.rail__nav { min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 24px);
  justify-content: flex-end;
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.nav-list a:hover { color: var(--text); }
.nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--blue);
}

/* --- 目录按钮 --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: .16em;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}
.nav-toggle__text { white-space: nowrap; }

/* --- 右侧竖向导轨 --- */
.rail--side {
  position: fixed;
  top: var(--rail-top);
  right: 0;
  bottom: 0;
  z-index: 80;
  width: var(--rail-side);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 26px;
  background: linear-gradient(180deg, rgba(26, 18, 51, .9), rgba(7, 7, 15, .92));
  border-left: 1px solid var(--line);
}
.rail__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rail__status-text {
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--muted);
}
.dot-live {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(255, 59, 92, .18);
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 59, 92, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 59, 92, .04); }
}
.rail__enter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 18px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  transition: border-color .22s var(--ease), color .22s var(--ease);
}
.rail__enter-text {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
}
.rail__enter-line {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  transition: background-color .22s var(--ease), box-shadow .22s var(--ease);
}
.rail__enter:hover { border-color: var(--cyan); color: var(--cyan); }
.rail__enter:hover .rail__enter-line {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

/* --- 阅读进度 --- */
.readout {
  position: fixed;
  top: calc(var(--rail-top) - 1px);
  left: 0;
  right: var(--rail-side);
  height: 2px;
  z-index: 91;
  pointer-events: none;
  background: rgba(43, 44, 70, .55);
}
.readout__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 64%, var(--amber) 100%);
  transition: transform .12s linear;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.arena-foot {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(44px, 6vw, 82px) 0 clamp(26px, 4vw, 44px);
  background: linear-gradient(180deg, var(--ink) 0%, #0A0817 100%);
  border-top: 1px solid var(--line);
}
.arena-foot::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue) 32%, var(--cyan) 68%, transparent);
  opacity: .55;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}
.foot__col { min-width: 0; }

.foot__id {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.foot__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.foot__note {
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}
.foot__icp,
.foot__copy {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.foot__icp { margin-bottom: 6px; }
.foot__addr {
  font-size: 12.5px;
  line-height: 1.7;
  color: #7E7E9C;
  margin-bottom: 16px;
  max-width: 34ch;
}
.foot__copy { color: #6C6C88; }

.foot__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.foot__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.foot__list--plain {
  gap: 13px;
  margin-bottom: 18px;
}
.foot__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.foot__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: width .22s var(--ease);
}
.foot__link:hover { color: var(--text); padding-left: 16px; }
.foot__link:hover::before { width: 10px; }
.foot__link[aria-current="page"] { color: var(--cyan); }

.foot__list--plain li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.foot__k {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6C6C88;
}
.foot__v {
  font-size: 13.5px;
  color: var(--text);
  word-break: break-all;
}
.foot__hint {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 18px;
}
.foot__cta { padding: 10px 18px; }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 62px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.foot__legal a { color: var(--muted); transition: color .2s var(--ease); }
.foot__legal a:hover { color: var(--cyan); }
.foot__legal span { color: var(--line); }
.foot__made {
  font-size: 11px;
  letter-spacing: .14em;
  color: #5C5C78;
}

/* ==========================================================================
   12. 响应式
   ========================================================================== */

/* 大桌面：显示右侧框架 */
@media (min-width: 1080px) {
  .rail--side { display: flex; }
}
@media (min-width: 1240px) {
  .rail__ticker { display: flex; }
}

/* 平板及以下：顶部导轨收窄，导航变底部轨道 */
@media (max-width: 959px) {
  :root { --rail-top: 58px; }

  .rail--top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 14px;
  }
  .rail__ticker { display: none; }
  .rail__nav { min-width: 0; }

  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 10px; }

  .rail__nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 96;
    padding: 18px clamp(16px, 4vw, 30px) calc(26px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(26, 18, 51, .98) 0%, rgba(7, 7, 15, .99) 100%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -22px 64px rgba(0, 0, 0, .7);
    max-height: 78vh;
    overflow-y: auto;
    transform: translateY(112%);
    transition: transform .34s var(--ease);
    will-change: transform;
  }
  .rail__nav[data-open] { transform: translateY(0); }
  .rail__nav::before {
    content: "栏目目录 · INDEX";
    display: block;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .26em;
    color: var(--muted);
  }
  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(10px, 3vw, 24px);
  }
  .nav-list a {
    display: block;
    padding: 15px 4px;
    font-size: 15.5px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--cyan); }
  .nav-list a[aria-current="page"]::before {
    content: "▚ ";
    font-size: 10px;
    vertical-align: 2px;
  }

  html[data-nav-locked],
  html[data-nav-locked] body { overflow: hidden; }

  .readout { right: 0; }

  .foot__grid { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* 手机微调 */
@media (max-width: 599px) {
  body { font-size: 15.5px; }
  .brand-lockup__en { display: none; }
  .brand-lockup__cn { font-size: 15px; }
  .foot__link { font-size: 15px; padding: 4px 0; }
  .nav-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. 减少动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rail__nav { transition: none !important; }
  .readout__bar { transition: none !important; }
  .figure > img { transition: none !important; }
  .figure:hover > img,
  a:hover > .figure > img { transform: none !important; }
}
