/* ==========================================================================
   redblue-gaming.com.cn — 共享外壳样式表 /assets/site.css
   深空蓝 · 午夜墨 · 电光红 · 冷青 · 战术紫
   ========================================================================== */

:root {
  --ink: #0A1F44;
  --ink-deep: #050B18;
  --ink-panel: #071733;
  --red: #FF2E4D;
  --cyan: #00E5FF;
  --violet: #7A5CFF;
  --lime: #B6FF3B;
  --orange: #FF8A3D;
  --paper: #F4F7FB;
  --print: #101826;
  --grid: #2A3B5C;
  --text-dim: #9FB0CE;
  --text-soft: #C6D2E6;

  --rail-w: 96px;
  --bar-h: 60px;
  --content-w: 1320px;
  --gap: 24px;

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bevel: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--bar-h);
  background: var(--ink-deep);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(180deg, rgba(42, 59, 92, 0.16) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(42, 59, 92, 0.16) 0 1px, transparent 1px 24px);
  opacity: 0.55;
}
body[data-nav-open="true"] { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; }
h1, h2 { font-style: italic; }
p { margin: 0; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

#main-content { display: block; position: relative; z-index: 1; }
#main-content:focus { outline: none; }

/* ---------- 通用容器与排版 ---------- */
.wrap { width: 100%; max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 880px; }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

.prose { max-width: 38em; font-size: 17px; line-height: 1.75; color: var(--text-soft); }
.prose p + p { margin-top: 1em; }
.prose strong { color: #fff; }

.rule { border: 0; height: 1px; margin: 32px 0; background: var(--grid); }

.stack { display: flex; flex-direction: column; gap: 16px; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--grid);
}
.section-head__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-head__t { font-size: clamp(24px, 3.2vw, 40px); color: #fff; }
.section-head__d { max-width: 62ch; font-size: 16px; color: var(--text-dim); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #7C8DAE;
}
.breadcrumb a { color: var(--text-dim); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--grid); }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  background: #16264a;
  color: #E6EDF9;
  border: 1px solid transparent;
  clip-path: var(--bevel);
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { transform: translateX(-2px); }
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; box-shadow: inset 0 0 0 2px #fff; }
.btn--primary { background: var(--red); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn--primary:hover { background: #FF4560; }
.btn--ghost { background: transparent; border-color: var(--grid); color: #CBD8EC; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--cyan { background: var(--cyan); color: #04121F; }
.btn--cyan:hover { background: #4DEEFF; }

/* ---------- 标签 · 时间码 · 指标 ---------- */
.tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--grid);
}
.tag--red { color: #fff; background: rgba(255, 46, 77, 0.18); border-color: var(--red); }
.tag--cyan { color: var(--cyan); border-color: rgba(0, 229, 255, 0.5); }

.timecode {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 1px var(--ink-deep), 0 0 10px rgba(0, 229, 255, 0.45);
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 2px var(--ink-deep), 0 0 14px rgba(0, 229, 255, 0.35);
}
.stat__label { font-size: 13px; color: #8CA0C4; }

/* ---------- 图片容器（页面阶段放占位图） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0D1B36;
  border: 1px solid var(--grid);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.media img, .media > svg { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.85) contrast(1.08) brightness(0.95); }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 4px),
    linear-gradient(115deg, rgba(255, 46, 77, 0.18) 0%, rgba(10, 31, 68, 0.3) 52%, rgba(0, 229, 255, 0.18) 100%);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #EAF3FF;
  background: rgba(5, 11, 24, 0.78);
  border-left: 2px solid var(--red);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--print);
  background: var(--paper);
  clip-path: var(--bevel);
  transform: translateY(-190%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   头部：侧边轨道（桌面） / 顶部条 + 抽屉（移动）
   ========================================================================== */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red) 0%, var(--violet) 48%, var(--cyan) 100%);
}

.site-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  width: 100%;
  height: var(--bar-h);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-panel) 58%, var(--ink-deep) 100%);
  background-image:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-panel) 58%, var(--ink-deep) 100%);
  border-right: 0;
  border-bottom: 1px solid var(--grid);
}
.rail__top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* 品牌 */
.brand { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--red);
  clip-path: polygon(10% 0, 100% 0, 100% 78%, 84% 100%, 0 100%, 0 16%);
}
.brand__text { display: block; }
.brand__name { display: block; font-size: 14px; font-weight: 900; letter-spacing: 0.02em; color: var(--paper); }
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #CBD8EC;
  border: 1px solid var(--grid);
  clip-path: var(--bevel);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars span { display: block; height: 2px; width: 100%; background: currentColor; }
.nav-toggle__bars span:nth-child(2) { width: 68%; }
.site-rail[data-open="true"] .nav-toggle { color: var(--cyan); border-color: var(--cyan); }
.site-rail[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-rail[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-rail[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 抽屉面板（移动默认态） */
.rail__panel {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  z-index: 69;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - var(--bar-h));
  overflow-y: auto;
  padding: 18px 16px 26px;
  background: rgba(7, 23, 51, 0.98);
  border-bottom: 1px solid var(--grid);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.22s var(--ease), visibility 0.2s;
}
.site-rail[data-open="true"] .rail__panel {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 赛区切换器 */
.rail__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7C8DAE;
}
.region-switch { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.region-chip {
  padding: 8px 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: rgba(42, 59, 92, 0.3);
  border: 1px solid var(--grid);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.region-chip:hover { color: #fff; border-color: var(--cyan); }
.region-chip[aria-pressed="true"] {
  color: #04121F;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

/* 栏目轨道 */
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  padding: 11px 12px 11px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #B9C6DE;
  border: 1px solid transparent;
  transition: color 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: transparent;
}
.nav-link:hover { color: #fff; background: rgba(0, 229, 255, 0.07); border-color: rgba(0, 229, 255, 0.22); }
.nav-link[aria-current="page"] { color: #fff; background: linear-gradient(90deg, rgba(255, 46, 77, 0.2), rgba(255, 46, 77, 0)); }
.nav-link[aria-current="page"]::before { background: linear-gradient(180deg, var(--red) 0 50%, var(--cyan) 50% 100%); }
.nav-link__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #5F7291;
  flex: 0 0 auto;
}
.nav-link[aria-current="page"] .nav-link__num { color: var(--cyan); }
.nav-link__text { display: inline; }

/* 底部动作 */
.rail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--grid);
}
.rail__actions .btn { width: 100%; }
.rail__ticker {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #7C8DAE;
  text-align: center;
}
.tick-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--lime);
  text-shadow: 0 0 10px rgba(182, 255, 59, 0.5);
}

/* ==========================================================================
   页脚：印刷栏
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink-deep);
  color: var(--text-dim);
  border-top: 1px solid var(--grid);
}
.footer__rule {
  height: 3px;
  background: linear-gradient(90deg,
    var(--red) 0 26%, transparent 26% 28%,
    var(--cyan) 28% 58%, transparent 58% 60%,
    var(--grid) 60% 100%);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr 1fr;
  gap: 32px;
  padding: 48px 24px 32px;
}
.footer__col { min-width: 0; }
.footer__col--brand { padding-right: 12px; }
.footer__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0 52%, var(--ink) 52% 100%);
  clip-path: polygon(10% 0, 100% 0, 100% 78%, 84% 100%, 0 100%, 0 16%);
}
.footer__name { font-size: 18px; font-weight: 900; font-style: italic; color: #fff; letter-spacing: -0.01em; }
.footer__desc { margin-top: 8px; font-size: 14px; line-height: 1.75; color: #8CA0C4; max-width: 34ch; }
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__link {
  font-size: 14px;
  color: #B9C6DE;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-line { display: flex; flex-direction: column; gap: 2px; }
.contact-line__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B7C9C;
}
.contact-line__v { font-size: 14px; color: #D5DFEF; word-break: break-word; }
.footer__note { margin-top: 14px; font-size: 13px; line-height: 1.7; color: #7C8DAE; }
.footer__meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8CA0C4;
}
.footer__bar { border-top: 1px solid var(--grid); background: rgba(10, 31, 68, 0.35); }
.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.footer__copy { font-size: 13px; color: #8CA0C4; }
.footer__copy [data-year] { font-family: var(--font-mono); color: var(--cyan); }
.footer__copy--mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: #5F7291; }

/* ==========================================================================
   滚动显现协议
   ========================================================================== */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.36s ease, transform 0.42s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 992px) {
  body { padding-top: 0; padding-left: var(--rail-w); }
  body[data-nav-open="true"] { overflow: auto; }

  .read-progress { left: var(--rail-w); }

  .site-rail {
    bottom: 0;
    left: 0;
    right: auto;
    width: var(--rail-w);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 10px 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    border-bottom: 0;
    border-right: 1px solid var(--grid);
  }
  .site-rail::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
      var(--red) 0 38%, transparent 38% 52%, var(--cyan) 52% 100%);
    opacity: 0.75;
    pointer-events: none;
  }
  .rail__top { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
  .brand { flex-direction: column; gap: 8px; width: 100%; padding: 2px 0 4px; }
  .brand__text { text-align: center; }
  .brand__name { font-size: 13px; }
  .brand__sub { margin-top: 2px; font-size: 8.5px; letter-spacing: 0.12em; }
  .nav-toggle { display: none; }

  .rail__panel {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    width: 100%;
    gap: 16px;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .region-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-chip { padding: 6px 2px; font-size: 10px; }

  .nav-list { gap: 2px; }
  .nav-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 9px 6px 9px 11px;
    font-size: 12px;
    line-height: 1.35;
  }
  .nav-link::before { top: 4px; bottom: 4px; }
  .nav-link__num { font-size: 9px; letter-spacing: 0.1em; }

  .rail__actions { padding-top: 12px; }
  .rail__actions .btn { padding: 10px 6px; font-size: 12px; }
  .rail__ticker { font-size: 9.5px; }
  .tick-num { font-size: 13px; }
}

@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }
  .span-3, .span-4, .span-6, .span-8 { grid-column: span 6; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 40px 24px 28px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .span-3, .span-4, .span-6, .span-8 { grid-column: span 12; }
  .region-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); padding: 36px 16px 24px; }
  .footer__desc { max-width: none; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; }
  .nav-toggle__text { display: none; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .skip-link { transition: none; }
}
