/* ============================================================
   乐鱼赛场 · 共享样式 /assets/site.css
   深海蓝场地 + 荧光青信号 + 活力橙排名
   ============================================================ */

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

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

address { font-style: normal; }

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

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

/* ---------- tokens ---------- */
:root {
  --ink-abyss: #05121F;
  --blue-deep: #0B2F52;
  --blue-mid: #164B78;
  --blue-glass: rgba(94, 196, 255, 0.14);
  --cyan-signal: #35F0D0;
  --orange-volt: #FF7A2F;
  --amber-tick: #FFC24B;
  --paper: #F4F7FA;
  --paper-alt: #E1E9F1;
  --text-strong: #0B1B2B;
  --text-muted: #5B6C7E;
  --text-on-dark: #F4F7FA;
  --text-on-dark-muted: rgba(244, 247, 250, 0.64);
  --line-dark: rgba(94, 196, 255, 0.22);
  --line-light: rgba(11, 27, 43, 0.12);

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

  --shell: 1380px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- base typography ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-on-dark);
  background-color: var(--ink-abyss);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -0.01em; }

p { max-width: 38em; }

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

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 920px; }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.band-quiet { padding-block: clamp(96px, 12vw, 160px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 60ch;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}

.grid { display: grid; gap: clamp(16px, 2.5vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--3-9 { grid-template-columns: 3fr 9fr; }

.prose { max-width: 34em; }

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

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

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan-signal);
  text-transform: uppercase;
}

.display {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 34em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--orange-volt);
  color: #1B0A01;
}

.btn--primary:hover { background: #FF9153; transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}

.btn--ghost:hover {
  border-color: var(--cyan-signal);
  color: var(--cyan-signal);
  transform: translateY(-2px);
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--live { color: var(--cyan-signal); }
.tag--rank { color: var(--orange-volt); }
.tag--pending { color: var(--amber-tick); }

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.crumbs li { display: flex; align-items: center; gap: 6px; }

.crumbs li + li::before {
  content: "/";
  color: rgba(244, 247, 250, 0.32);
}

.crumbs a {
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.crumbs a:hover {
  color: var(--cyan-signal);
  border-bottom-color: var(--cyan-signal);
}

.crumbs [aria-current="page"] { color: var(--text-on-dark); }

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.card-glass {
  background: var(--blue-glass);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card-dark {
  background: var(--blue-deep);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}

.card-solid {
  background: var(--paper);
  border: 1px solid var(--line-light);
  color: var(--text-strong);
}

.card-glass:hover,
.card-dark:hover,
.card-solid:hover { transform: translateY(-2px); }

.card-glass:hover,
.card-dark:hover { border-color: var(--cyan-signal); }

.card-solid:hover { border-color: var(--blue-mid); }

/* ---------- paper sheet for long reading ---------- */
.sheet {
  background: var(--paper);
  color: var(--text-strong);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 56px);
}

.sheet h1, .sheet h2, .sheet h3 { color: var(--text-strong); }
.sheet p { color: #23374A; }
.sheet .eyebrow { color: var(--blue-mid); }
.sheet .lead { color: var(--text-muted); }

.sheet a {
  color: var(--blue-mid);
  border-bottom: 1px solid rgba(22, 75, 120, 0.35);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.sheet a:hover {
  color: var(--orange-volt);
  border-bottom-color: var(--orange-volt);
}

/* ---------- media frames (page stage fills with img/svg) ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 130% at 15% 10%, #164B78 0%, #0B2F52 45%, #05121F 100%);
}

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

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(53, 240, 208, 0.07) 0 1px,
    transparent 1px 32px
  );
  pointer-events: none;
  z-index: 1;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(5, 18, 31, 0.78));
  pointer-events: none;
  z-index: 1;
}

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

/* ============================================================
   HEADER
   ============================================================ */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--cyan-signal);
  color: var(--ink-abyss);
  font-size: 14px;
  font-weight: 700;
  transition: top 0.16s var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--text-on-dark);
  background: linear-gradient(180deg, #0C3358 0%, var(--blue-deep) 100%);
  border-bottom: 1px solid var(--line-dark);
}

.header-rail {
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  min-height: 66px;
  margin-inline: auto;
  padding: 10px var(--gutter);
}

/* --- 左簇 --- */
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--cyan-signal);
  border-radius: 2px;
  background: var(--ink-abyss);
  color: var(--cyan-signal);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 14px rgba(53, 240, 208, 0.14);
  transition: background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.brand-lockup:hover .brand-mark {
  background: rgba(53, 240, 208, 0.12);
  box-shadow: inset 0 0 20px rgba(53, 240, 208, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-on-dark-muted);
}

.watch-list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--line-dark);
}

.watch-link {
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.watch-link:hover {
  color: var(--cyan-signal);
  border-color: var(--line-dark);
}

.rail-divider {
  width: 1px;
  height: 42px;
  background: repeating-linear-gradient(
    180deg,
    var(--cyan-signal) 0 3px,
    transparent 3px 8px
  );
  opacity: 0.5;
}

/* --- 右簇 --- */
.nav-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 12px 12px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  background: var(--cyan-signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.nav-link:hover { color: var(--text-on-dark); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: #FFFFFF; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.utility-cluster {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line-dark);
}

.util-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
              background-color 0.16s var(--ease);
}

.util-btn:hover {
  color: var(--cyan-signal);
  border-color: var(--cyan-signal);
}

.util-btn[aria-expanded="true"] {
  color: var(--cyan-signal);
  border-color: var(--cyan-signal);
  background: rgba(53, 240, 208, 0.14);
}

.util-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-volt);
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.16s var(--ease);
}

.util-link:hover { border-bottom-color: var(--orange-volt); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-on-dark);
  transition: border-color 0.16s var(--ease);
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan-signal);
  transition: background-color 0.16s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--cyan-signal);
  transition: transform 0.16s var(--ease);
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* --- 分区快跳条 --- */
.index-strip {
  display: none;
  background: var(--ink-abyss);
  border-top: 1px solid var(--line-dark);
}

.index-strip[data-open] { display: block; }

.index-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 14px var(--gutter);
}

.index-label {
  flex: 0 0 auto;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-on-dark-muted);
}

.index-link {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
              transform 0.16s var(--ease);
}

.index-link:hover {
  color: var(--cyan-signal);
  border-color: var(--cyan-signal);
  transform: translateY(-1px);
}

/* --- 滚动进度 --- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-signal), var(--orange-volt));
  transition: width 0.1s linear;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  color: var(--text-on-dark);
  background: linear-gradient(180deg, #093154 0%, var(--blue-deep) 55%, var(--ink-abyss) 100%);
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--cyan-signal) 0%,
    rgba(53, 240, 208, 0) 46%,
    var(--orange-volt) 100%
  );
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(28px, 3vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 40ch;
}

.footer-lockup {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan-signal);
}

.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  max-width: 38ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-on-dark-muted);
}

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

.footer-links a {
  position: relative;
  width: fit-content;
  padding-bottom: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 247, 250, 0.84);
  transition: color 0.16s var(--ease);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan-signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.footer-links a:hover { color: var(--cyan-signal); }
.footer-links a:hover::after { transform: scaleX(1); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
}

.footer-legal {
  border-top: 1px solid var(--line-dark);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter) 30px;
}

.footer-legal-line {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  max-width: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .watch-list { display: none; }
  .brand-cluster { gap: 0; }
}

@media (max-width: 980px) {
  .grid--5-7,
  .grid--3-9 { grid-template-columns: minmax(0, 1fr); }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

@media (max-width: 900px) {
  .header-rail {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 60px;
  }

  .rail-divider { display: none; }

  .utility-cluster { display: none; }

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    gap: 4px;
    padding: 8px var(--gutter);
    background: var(--ink-abyss);
    border-top: 1px solid rgba(53, 240, 208, 0.3);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
  }

  .site-header[data-open] .main-nav { display: flex; }

  .nav-link { padding: 10px 12px 13px; }

  .index-strip-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .index-strip-inner::-webkit-scrollbar { display: none; }

  .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .brand-sub { display: none; }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-legal-inner { justify-content: flex-start; }

  .media-frame--wide { aspect-ratio: 16 / 9; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .card-glass:hover,
  .card-dark:hover,
  .card-solid:hover,
  .btn:hover,
  .index-link:hover { transform: none; }
}
