/* ==========================================================================
   LOL押注正规 — /assets/site.css
   共享外壳：reset、变量、中文排版、侧边轨道头部、页脚、通用组件
   ========================================================================== */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

ul, ol { list-style: none; }

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

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

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

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

/* ---------- 变量 ---------- */
:root {
  --ink: #05070E;
  --steel: #0B1220;
  --frost: #F2F5FA;
  --cyan: #2FF3E0;
  --magenta: #FF2E88;
  --gold: #FFC24B;
  --cool: #7C8AA3;
  --edge: #1B2A3D;
  --coral: #FF5C5C;
  --violet: #1A0F2E;

  --rail-w: 288px;
  --topbar-h: 72px;
  --content-max: 1220px;
  --edge-w: 2px;

  --shadow-hard: 6px 6px 0 rgba(27, 42, 61, 0.95);
  --shadow-cyan: 6px 6px 0 rgba(47, 243, 224, 0.24);
  --shadow-magenta: 6px 6px 0 rgba(255, 46, 136, 0.22);

  --font-display: "Archivo Narrow", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(72% 52% at 82% 0%, rgba(47, 243, 224, 0.10), transparent 62%),
    radial-gradient(58% 46% at 6% 94%, rgba(255, 46, 136, 0.09), transparent 64%),
    linear-gradient(165deg, #05070E 0%, #0B1220 56%, #1A0F2E 100%);
  background-attachment: fixed;
  color: var(--frost);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: var(--frost);
}

p { max-width: 68ch; }

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--cool); }

.data-figure {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gold);
}

/* ---------- 焦点与可达性 ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 400;
  padding: 11px 20px;
  background: var(--cyan);
  color: #04121A;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: var(--edge-w) solid #04121A;
  box-shadow: var(--shadow-hard);
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 12px; }

/* ==========================================================================
   头部 —— 移动端顶部条 / 桌面端侧边轨道
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #0B1220 0%, #080D18 100%);
  border-bottom: var(--edge-w) solid var(--edge);
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 8px 0 rgba(5, 7, 14, 0.55);
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.brand-lockup {
  display: block;
  min-width: 0;
}

.brand-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 22px;
  line-height: 1.1;
  color: var(--frost);
  white-space: nowrap;
}

.brand-mark-latin {
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.brand-tagline {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cool);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 12px;
  background: #0A1120;
  border: var(--edge-w) solid var(--edge);
  color: var(--frost);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] { border-color: var(--magenta); color: var(--magenta); }

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
}

/* 抽屉（移动端） */
.site-nav {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 119;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 18px 34px;
  background: linear-gradient(180deg, #0B1220 0%, #070C16 100%);
  border-top: var(--edge-w) solid var(--edge);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s linear;
}

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

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: navindex;
  border-top: var(--edge-w) solid var(--edge);
}

.nav-list li { border-bottom: var(--edge-w) solid var(--edge); }

.nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-left: 3px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frost);
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.nav-list a::before {
  counter-increment: navindex;
  content: counter(navindex, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cool);
  transition: color 0.18s var(--ease);
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--magenta);
  color: #FFFFFF;
  padding-left: 16px;
}

.nav-list a:hover::before { color: var(--magenta); }

.nav-list a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(47, 243, 224, 0.16) 0%, rgba(47, 243, 224, 0) 92%);
  border-left-color: var(--cyan);
  color: var(--cyan);
}

.nav-list a[aria-current="page"]::before { color: var(--gold); }

/* 快速通道 */
.rail-quick {
  margin-top: auto;
  padding-top: 16px;
  border-top: var(--edge-w) solid var(--edge);
}

.rail-quick-title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cool);
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quick-list a {
  display: block;
  padding: 9px 11px;
  background: #0E1727;
  border: var(--edge-w) solid var(--edge);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--frost);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.quick-list a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(47, 243, 224, 0.22);
}

/* 轨道底部 */
.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: var(--edge-w) solid var(--edge);
}

.rail-foot-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cool);
}

.rail-foot-link {
  align-self: flex-start;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--frost);
  border-bottom: 2px solid var(--magenta);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

/* ==========================================================================
   主体容器
   ========================================================================== */
#main-content { display: block; padding-top: var(--topbar-h); }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 54px 0;
  border-top: var(--edge-w) solid var(--edge);
}

.section:first-child { border-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  margin-bottom: 26px;
}

.section-eyebrow {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
}

.section-title {
  font-size: clamp(25px, 4.2vw, 42px);
  letter-spacing: 0.01em;
}

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

/* ==========================================================================
   通用组件
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--cyan);
  border: var(--edge-w) solid var(--cyan);
  color: #04121A;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 rgba(47, 243, 224, 0.26);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
              background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(47, 243, 224, 0.34);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(47, 243, 224, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--frost);
  border-color: var(--edge);
  box-shadow: 5px 5px 0 rgba(11, 18, 32, 0.95);
}

.btn--ghost:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: 8px 8px 0 rgba(255, 46, 136, 0.24);
}

.btn--ghost:active { box-shadow: 2px 2px 0 rgba(255, 46, 136, 0.28); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A1200;
  box-shadow: 5px 5px 0 rgba(255, 194, 75, 0.24);
}

.btn--gold:hover { box-shadow: 8px 8px 0 rgba(255, 194, 75, 0.32); }

.btn--gold:active { box-shadow: 2px 2px 0 rgba(255, 194, 75, 0.3); }

.card {
  position: relative;
  padding: 22px;
  background: var(--steel);
  border: var(--edge-w) solid var(--edge);
  box-shadow: var(--shadow-hard);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: #0A1120;
  border: var(--edge-w) solid var(--edge);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cool);
}

.tag--cyan { border-color: rgba(47, 243, 224, 0.5); color: var(--cyan); }
.tag--magenta { border-color: rgba(255, 46, 136, 0.5); color: var(--magenta); }
.tag--gold { border-color: rgba(255, 194, 75, 0.5); color: var(--gold); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cool);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--edge);
}

.breadcrumb a { transition: color 0.16s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, #0B1220 0%, #1A0F2E 100%);
  border: var(--edge-w) solid var(--edge);
  box-shadow: var(--shadow-hard);
}

.media-frame > img,
.media-frame > svg,
.media-frame > video,
.media-frame > .media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* 网格 */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* 显现动效 */
[data-reveal] { transition: opacity 0.34s var(--ease), transform 0.34s var(--ease); }

body[data-js="ready"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

body[data-js="ready"] [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 滚动进度条（由 JS 注入） */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  height: 3px;
  width: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 62%, var(--gold) 100%);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: 76px;
  padding: 48px 20px 30px;
  background: linear-gradient(180deg, #0B1220 0%, #05070E 100%);
  border-top: var(--edge-w) solid var(--edge);
}

.footer-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.footer-brand { max-width: 42ch; }

.footer-mark {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 26px;
  line-height: 1.1;
  color: var(--frost);
}

.footer-tagline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.footer-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--cool);
  max-width: 40ch;
}

.footer-col-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: var(--edge-w) solid var(--edge);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 500;
  color: #C9D3E2;
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer-links a::before {
  content: "▸";
  margin-right: 8px;
  color: var(--edge);
  transition: color 0.16s var(--ease);
}

.footer-links a:hover {
  color: var(--frost);
  transform: translateX(3px);
}

.footer-links a:hover::before { color: var(--magenta); }

.footer-contact {
  margin-top: 38px;
  padding: 18px 20px;
  background: #0A1120;
  border: var(--edge-w) solid var(--edge);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-hard);
}

.footer-contact-label {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-contact-line {
  font-size: 14.5px;
  color: #DDE4EF;
  max-width: none;
}

.footer-hours {
  margin-top: 6px;
  font-size: 13px;
  color: var(--cool);
  max-width: none;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: var(--edge-w) solid var(--edge);
}

.footer-legal,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cool);
  max-width: none;
}

/* ==========================================================================
   断点：平板
   ========================================================================== */
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .container { padding: 0 28px; }
  .site-footer { padding: 56px 28px 34px; }
}

/* ==========================================================================
   断点：桌面 —— 侧边轨道
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --topbar-h: 0px; }

  body { padding-left: var(--rail-w); }

  .site-header {
    inset: 0 auto 0 0;
    width: var(--rail-w);
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 26px 22px 22px;
    border-bottom: 0;
    border-right: var(--edge-w) solid var(--edge);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--cyan) 0%, var(--magenta) 55%, var(--gold) 100%);
    opacity: 0.9;
  }

  .site-header[data-scrolled="true"] { box-shadow: 8px 0 0 rgba(5, 7, 14, 0.5); }

  .rail-top { display: block; }

  .brand-lockup {
    display: block;
    padding-bottom: 18px;
    border-bottom: var(--edge-w) solid var(--edge);
  }

  .brand-mark { font-size: 23px; }

  .brand-tagline { white-space: normal; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    flex: 1 1 auto;
    margin-top: 22px;
    padding: 0;
    background: none;
    border-top: 0;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-list { border-top: 0; }
  .nav-list a { padding: 12px 10px; font-size: 15px; }

  #main-content { padding-top: 0; }

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

  .section { padding: 68px 0; }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer-brand { grid-column: auto; }
}

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

/* ---------- 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .site-nav {
    transform: none !important;
  }

  body[data-js="ready"] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
