/* ==========================================================================
   冠竞体育 · 共享站点样式 /assets/site.css
   夜间赛场指挥台：深墨绿底 + 荧光青数据层 + 赛道橙行动点
   ========================================================================== */

/* ── 变量 ─────────────────────────────────────────────── */
:root {
  --ink-950: #05130F;
  --green-950: #0A2620;
  --green-900: #123A32;
  --slate-900: #1A2433;
  --slate-800: #2C3849;
  --cyan: #35F0C6;
  --orange: #FF6A2B;
  --paper: #EDF4F1;
  --muted: #8FA6AC;
  --amber: #FFC24D;
  --glass: rgba(237, 244, 241, 0.08);
  --line: rgba(53, 240, 198, 0.18);
  --hairline: rgba(237, 244, 241, 0.12);

  --rail-w: 76px;
  --bar-h: 64px;
  --shell-max: 1220px;

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

  --step-1: 12px;
  --step-2: 14px;
  --step-3: 17px;
  --step-4: 22px;
  --step-5: 28px;
  --step-6: 40px;
  --step-7: 56px;
}

/* ── 复位 ─────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--green-950);
  background-image:
    linear-gradient(rgba(237, 244, 241, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 244, 241, 0.022) 1px, transparent 1px),
    radial-gradient(900px 520px at 88% -10%, rgba(53, 240, 198, 0.13), transparent 62%),
    radial-gradient(720px 460px at -8% 34%, rgba(255, 106, 43, 0.09), transparent 66%),
    linear-gradient(165deg, #0A2620 0%, #0B2430 38%, #182231 74%, #2C3849 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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 { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.16s ease; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

::selection {
  background: var(--cyan);
  color: var(--ink-950);
}

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

/* ── 版式基座 ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
}
h1 { font-size: clamp(2rem, 4.2vw, var(--step-7)); }
h2 { font-size: clamp(1.5rem, 2.8vw, var(--step-6)); }
h3 { font-size: clamp(1.2rem, 1.8vw, var(--step-5)); line-height: 1.25; font-weight: 800; }
h4 { font-size: var(--step-4); line-height: 1.35; font-weight: 800; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 240, 198, 0.1));
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(53, 240, 198, 0.34);
  background: rgba(53, 240, 198, 0.1);
  color: var(--cyan);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── 版心 / 网格 ──────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .shell { padding-inline: 32px; }
}

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

/* ── 按钮 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}
.btn-primary {
  color: var(--ink-950);
  background: linear-gradient(115deg, #FF6A2B, #FF9152);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 88% 100%, 0 100%);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost {
  color: var(--cyan);
  background: rgba(53, 240, 198, 0.08);
  border-color: rgba(53, 240, 198, 0.34);
}
.btn-ghost:hover {
  background: rgba(53, 240, 198, 0.16);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ── 面包屑 ───────────────────────────────────────────── */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.crumb-link { color: var(--muted); }
.crumb-link:hover { color: var(--cyan); }
.crumb-sep { color: rgba(143, 166, 172, 0.45); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* ── 正文容器 ─────────────────────────────────────────── */
.prose {
  max-width: 70ch;
  font-size: var(--step-3);
  line-height: 1.75;
  color: rgba(237, 244, 241, 0.86);
}
.prose p + p { margin-top: 1.2em; }
.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: 0.6em; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose strong { color: var(--paper); font-weight: 700; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.2em; }
.prose li { list-style: disc; margin-bottom: 0.5em; }

/* ── 面板 ─────────────────────────────────────────────── */
.panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(18, 58, 50, 0.66), rgba(26, 36, 51, 0.5)),
    var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.panel-solid {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(237, 244, 241, 0.1);
  border-radius: 14px;
  background: rgba(18, 58, 50, 0.86);
}

/* ── 筛选条 ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(237, 244, 241, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.filter-btn {
  appearance: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: rgba(237, 244, 241, 0.78);
  background: transparent;
  border: 1px solid rgba(237, 244, 241, 0.16);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.filter-btn:hover {
  color: var(--cyan);
  border-color: rgba(53, 240, 198, 0.6);
}
.filter-btn[aria-pressed="true"] {
  color: var(--ink-950);
  background: var(--cyan);
  border-color: var(--cyan);
}
.is-hidden { display: none !important; }

/* ── 图片容器基础规则 ─────────────────────────────────── */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(53, 240, 198, 0.2);
  border-radius: 12px;
  background-color: var(--slate-900);
  background-image:
    linear-gradient(135deg, rgba(53, 240, 198, 0.14), rgba(26, 36, 51, 0.7) 55%, rgba(255, 106, 43, 0.12)),
    repeating-linear-gradient(135deg, rgba(237, 244, 241, 0.05) 0 2px, transparent 2px 10px);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--square { aspect-ratio: 1 / 1; }

/* ── 显现动效 ─────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   跳过链接
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink-950);
  background: var(--cyan);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(5, 19, 15, 0.6);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   页头 / 侧边轨道导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--bar-h);
  padding: 10px 16px;
  background: rgba(6, 20, 16, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(5, 19, 15, 0.45);
}

.header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink-950);
  background: linear-gradient(140deg, var(--cyan), #1FB79A);
  border-radius: 10px 14px 10px 14px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
  box-shadow: 0 10px 26px rgba(53, 240, 198, 0.22);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-text {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--paper);
}
.brand-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.4;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0 11px;
  background: rgba(53, 240, 198, 0.08);
  border: 1px solid rgba(53, 240, 198, 0.28);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.nav-toggle:hover { background: rgba(53, 240, 198, 0.16); }
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.site-header[data-open] .nav-toggle {
  background: rgba(53, 240, 198, 0.2);
  border-color: var(--cyan);
}
.site-header[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端抽屉 */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--bar-h));
  overflow-y: auto;
  padding: 14px 18px 24px;
  background: rgba(8, 28, 23, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(5, 19, 15, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.site-header[data-open] .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: navidx;
}
.nav-item { counter-increment: navidx; }
.nav-link {
  display: flex;
  align-items: center;
  padding: 13px 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(237, 244, 241, 0.86);
  border-bottom: 1px solid rgba(237, 244, 241, 0.08);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav-link::before {
  content: counter(navidx, decimal-leading-zero);
  flex: 0 0 auto;
  margin-right: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(53, 240, 198, 0.72);
}
.nav-link:hover { color: var(--cyan); }
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(53, 240, 198, 0.12);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--ink-950);
  background: linear-gradient(115deg, #FF6A2B, #FF9152);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 90% 100%, 0 100%);
  transition: filter 0.18s ease, transform 0.18s ease;
}
.rail-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* 桌面端：竖向轨道 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 14px 0 16px;
    border-bottom: 0;
    border-right: 1px solid rgba(53, 240, 198, 0.22);
    background: linear-gradient(180deg, rgba(10, 38, 32, 0.98), rgba(5, 19, 15, 0.99));
    box-shadow: 8px 0 30px rgba(5, 19, 15, 0.45);
  }

  .header-brand {
    width: 100%;
    justify-content: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(237, 244, 241, 0.08);
  }
  .brand-copy { display: none; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: none;
    overflow-y: auto;
    padding: 16px 0 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    align-items: center;
    gap: 8px;
  }
  .nav-link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 11px 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(237, 244, 241, 0.72);
    border-bottom: 0;
    border-radius: 8px;
    box-shadow: none;
  }
  .nav-link::before { display: none; }
  .nav-link:hover {
    color: var(--cyan);
    background: rgba(53, 240, 198, 0.1);
  }
  .nav-link[aria-current="page"] {
    color: var(--ink-950);
    background: var(--cyan);
    box-shadow: 0 8px 22px rgba(53, 240, 198, 0.3);
  }

  .rail-cta {
    width: auto;
    max-width: 100%;
    margin-top: auto;
    margin-bottom: 4px;
    padding: 16px 9px;
    font-size: 13px;
    letter-spacing: 0.22em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 78% 100%, 0 100%);
  }
}

@media (min-width: 1024px) and (max-height: 740px) {
  .nav-link { font-size: 11.5px; padding: 9px 5px; letter-spacing: 0.1em; }
  .nav-list { gap: 5px; }
  .rail-cta { padding: 12px 8px; font-size: 12px; letter-spacing: 0.16em; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 72px;
  overflow: hidden;
  color: var(--paper);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(700px 320px at 8% 0%, rgba(53, 240, 198, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(10, 38, 32, 0.9), rgba(5, 19, 15, 0.98) 42%),
    linear-gradient(140deg, #0A2620, #0D2427 52%, #1A2433);
  border-top: 1px solid rgba(53, 240, 198, 0.24);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 240, 198, 0.12) 52%, var(--orange));
}
.footer-glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 43, 0.16), transparent 68%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  display: grid;
  gap: 40px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 56px 20px 8px;
}
@media (min-width: 768px) {
  .footer-shell { padding: 64px 32px 12px; }
}
@media (min-width: 900px) {
  .footer-shell {
    grid-template-columns: 1.05fr 1.65fr;
    gap: 56px;
    padding-bottom: 24px;
  }
}

.footer-lead {
  display: grid;
  align-content: start;
  gap: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.footer-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink-950);
  background: linear-gradient(140deg, var(--cyan), #1FB79A);
  border-radius: 9px 13px 9px 13px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}
.footer-brand-text { color: var(--paper); }
.footer-tagline {
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(237, 244, 241, 0.76);
}
.footer-address {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-lead .btn { justify-self: start; margin-top: 4px; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 240, 198, 0.18);
}
.footer-list { display: grid; gap: 2px; }
.footer-link {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(237, 244, 241, 0.76);
  transition: color 0.16s ease, transform 0.16s ease;
}
.footer-link:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 22px 20px 30px;
  border-top: 1px solid rgba(237, 244, 241, 0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--muted);
}
@media (min-width: 768px) {
  .footer-base { padding: 22px 32px 34px; }
}
.footer-legal { margin: 0; }
.footer-legal a { color: var(--cyan); }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   响应式与无障碍
   ========================================================================== */
@media (max-width: 1023px) {
  body { background-attachment: scroll; }
}

@media (max-width: 420px) {
  .brand-note { display: none; }
  .footer-base { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
