/* =========================================================
   博鱼赛场 · 共享样式 /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, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

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

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

/* ---------- 2. tokens ---------- */
:root {
  /* brand */
  --deep-sea: #0A1F33;
  --night-deck: #12314D;
  --neon-cyan: #35E0D0;
  --coral: #FF6B4A;
  --charcoal: #14171C;
  --cool-white: #F5F9FC;
  --mist: #C2D2DF;
  --cyan-mist: #A9F2EC;
  --warm-glow: #FFB37A;
  --slate-ink: #1B2A38;

  /* semantic */
  --ink: var(--cool-white);
  --ink-dim: var(--mist);
  --line: rgba(53, 224, 208, 0.14);
  --line-strong: rgba(53, 224, 208, 0.34);
  --line-soft: rgba(194, 210, 223, 0.12);

  /* layout */
  --rail-w: 88px;
  --bar-h: 66px;
  --shell-max: 1320px;
  --gutter: clamp(18px, 3vw, 40px);
  --radius: 4px;

  /* type */
  --font-display: "Archivo Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. base ---------- */
body {
  margin: 0;
  padding: var(--bar-h) 0 0 var(--rail-w);
  min-height: 100vh;
  background:
    radial-gradient(120% 70% at 78% -12%, rgba(53, 224, 208, 0.16), transparent 62%),
    radial-gradient(90% 60% at 8% -6%, rgba(255, 179, 122, 0.10), transparent 58%),
    var(--deep-sea);
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.9vw + 12px, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  max-width: 34em;
}

::selection {
  background: var(--neon-cyan);
  color: #04202b;
}

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

#main-content {
  scroll-margin-top: calc(var(--bar-h) + 20px);
}

/* ---------- 4. skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 999;
  padding: 11px 22px;
  transform: translate(-50%, -180%);
  background: var(--neon-cyan);
  color: #04202b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 5. header : brand rail ---------- */
.site-header {
  position: relative;
  z-index: 80;
}

.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #0c2741 0%, #0A1F33 48%, #091a2b 100%);
  border-right: 1px solid var(--line);
}

.brand-rail::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  width: 300px;
  height: 440px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(53, 224, 208, 0.32), rgba(53, 224, 208, 0) 70%);
  pointer-events: none;
}

.brand-rail__home {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  padding: 4px 0;
}

.brand-rail__mark {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.26em;
  color: var(--cool-white);
  text-shadow: 0 0 20px rgba(53, 224, 208, 0.55);
}

.brand-rail__home:hover .brand-rail__mark,
.brand-rail__home:focus-visible .brand-rail__mark {
  color: var(--cyan-mist);
  text-shadow: 0 0 24px rgba(53, 224, 208, 0.9);
}

.brand-rail__thread {
  position: relative;
  flex: 1 1 auto;
  width: 1px;
  margin: 18px 0;
  background: linear-gradient(180deg, rgba(53, 224, 208, 0.6), rgba(53, 224, 208, 0.08) 62%, transparent 100%);
}

.brand-rail__thread::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 26%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 107, 74, 0.95);
}

.brand-rail__tag {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.3em;
  color: rgba(194, 210, 223, 0.6);
}

/* ---------- 6. header : top bar ---------- */
.site-bar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 85;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(9, 26, 43, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand-mini {
  display: none;
  align-items: baseline;
  gap: 0;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--cool-white);
  white-space: nowrap;
}

.brand-mini span {
  color: var(--neon-cyan);
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav__list::-webkit-scrollbar {
  display: none;
}

.site-nav__item {
  flex: 0 0 auto;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgba(194, 210, 223, 0.72);
  white-space: nowrap;
  border-radius: 2px;
  transition: color 0.12s linear;
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(53, 224, 208, 0.45);
  transition: color 0.12s linear;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 1px;
  height: 1px;
  background: var(--neon-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--cool-white);
}

.site-nav__link:hover .site-nav__index,
.site-nav__link:focus-visible .site-nav__index {
  color: var(--neon-cyan);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--cool-white);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--coral);
}

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--neon-cyan);
}

/* ---------- 7. header : toggle + progress ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--mist);
  transition: border-color 0.12s linear, color 0.12s linear;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--neon-cyan);
  transition: transform 0.18s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4.25px) rotate(-45deg);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.site-bar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1.5px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--coral), var(--neon-cyan));
  pointer-events: none;
  will-change: transform;
}

/* ---------- 8. footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  overflow: hidden;
  background: linear-gradient(180deg, #101820 0%, var(--charcoal) 100%);
  border-top: 1px solid var(--line);
  color: rgba(194, 210, 223, 0.72);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 224, 208, 0.8), transparent);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(53, 224, 208, 0.14), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 78px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) repeat(3, minmax(110px, 0.8fr));
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--cool-white);
}

.footer-brand__mark:hover,
.footer-brand__mark:focus-visible {
  color: var(--cyan-mist);
}

.footer-brand__line {
  margin-top: 10px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(53, 224, 208, 0.78);
}

.footer-brand__rule {
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--coral), rgba(255, 107, 74, 0));
}

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: rgba(194, 210, 223, 0.48);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__link {
  position: relative;
  display: inline-block;
  padding-left: 15px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(194, 210, 223, 0.78);
  transition: color 0.12s linear;
}

.footer-col__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 7px;
  height: 1px;
  background: var(--neon-cyan);
  opacity: 0.4;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: transform 0.16s var(--ease), opacity 0.16s linear;
}

.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--neon-cyan);
}

.footer-col__link:hover::before,
.footer-col__link:focus-visible::before {
  transform: scaleX(1);
  opacity: 1;
}

.footer-base {
  position: relative;
  z-index: 1;
  max-width: var(--shell-max);
  margin: clamp(32px, 4vw, 54px) auto 0;
  padding: 24px var(--gutter) 34px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px 36px;
  border-top: 1px solid rgba(194, 210, 223, 0.1);
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(194, 210, 223, 0.54);
}

.footer-base__row {
  max-width: none;
  font-variant-numeric: tabular-nums;
}

.footer-base__note {
  max-width: 46em;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(194, 210, 223, 0.42);
}

.footer-base__legal {
  text-align: right;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ---------- 9. shared content components ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 6vw, 88px);
}

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: rgba(53, 224, 208, 0.88);
}

.index-tag::before {
  content: "";
  width: 18px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

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

.score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--coral);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--cyan-mist);
  background: rgba(53, 224, 208, 0.1);
  border: 1px solid rgba(53, 224, 208, 0.3);
  border-radius: 2px;
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 49, 77, 0.74), rgba(10, 31, 51, 0.94));
}

.panel--flat {
  background: rgba(18, 49, 77, 0.42);
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(18, 49, 77, 0.92), rgba(10, 31, 51, 1) 58%, rgba(53, 224, 208, 0.14));
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 31, 51, 0) 38%, rgba(10, 31, 51, 0.58) 100%);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--cool-white);
  background: rgba(53, 224, 208, 0.08);
  border: 1px solid rgba(53, 224, 208, 0.42);
  border-radius: 3px;
  transition: background 0.12s linear, border-color 0.12s linear, color 0.12s linear;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(53, 224, 208, 0.18);
  border-color: var(--neon-cyan);
}

.btn--score {
  color: #1b0d08;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--coral);
  border-color: var(--coral);
}

.btn--score:hover,
.btn--score:focus-visible {
  color: #1b0d08;
  background: #ff8265;
  border-color: #ff8265;
}

.btn--ghost {
  color: var(--mist);
  background: transparent;
  border-color: rgba(194, 210, 223, 0.28);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cool-white);
  background: rgba(53, 224, 208, 0.06);
  border-color: var(--neon-cyan);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(194, 210, 223, 0.54);
}

.breadcrumb a {
  color: rgba(194, 210, 223, 0.74);
  transition: color 0.12s linear;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--neon-cyan);
}

.breadcrumb__sep {
  color: rgba(53, 224, 208, 0.5);
}

.band {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 30px), transparent 100%);
}

.band::-webkit-scrollbar {
  display: none;
}

.band > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.sr-only {
  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;
}

/* ---------- 10. reveal ---------- */
[data-reveal] {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- 11. responsive ---------- */
@media (max-width: 1180px) {
  .site-nav__index {
    display: none;
  }
}

@media (max-width: 959px) {
  :root {
    --rail-w: 0px;
    --bar-h: 58px;
  }

  body {
    padding-left: 0;
  }

  .brand-rail {
    display: none;
  }

  .site-bar {
    left: 0;
  }

  .brand-mini {
    display: inline-flex;
  }

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

  .site-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    display: block;
    margin-left: 0;
    padding: 10px var(--gutter) 24px;
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    background: linear-gradient(180deg, #0e2a45 0%, #0A1F33 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.16s linear, transform 0.16s var(--ease), visibility 0.16s linear;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }

  .site-nav__link {
    display: flex;
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(194, 210, 223, 0.08);
    border-radius: 0;
  }

  .site-nav__link::after {
    left: 4px;
    right: 4px;
    bottom: 0;
  }

  .site-nav__index {
    display: inline;
    font-size: 11px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-base {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-base__legal {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-base {
    padding-bottom: 28px;
  }

  .brand-mini {
    font-size: 17px;
  }

  .nav-toggle {
    padding: 8px 10px;
  }

  .btn {
    padding: 11px 18px;
    font-size: 13.5px;
  }
}

/* ---------- 12. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal].is-pending {
    opacity: 1;
    transform: none;
  }
}
