/* ===== 斗鱼体育看台 · 共享站点样式 /assets/site.css ===== */

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

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(69, 224, 208, .10), transparent 62%),
    radial-gradient(860px 520px at -6% 18%, rgba(255, 106, 43, .07), transparent 58%),
    var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--edge); margin: 0; }

/* ---------- tokens ---------- */
:root {
  --night: #062A2E;
  --night-2: #0B3C42;
  --night-3: #03181B;
  --night-4: #04262B;
  --paper: #F4F0E6;
  --soft: #E8E2D4;
  --mist: #B9B3A6;
  --sand: #C9A227;
  --flame: #FF6A2B;
  --cyan: #45E0D0;
  --edge: #1E5A5E;
  --ink: #0A2B2F;

  --font-display: "Oswald", "Bebas Neue", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --maxw: 1280px;
  --shadow-lift: 0 20px 46px -26px rgba(0, 0, 0, .9);
}

/* ---------- base type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .03em;
  color: var(--paper);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

::selection {
  background: rgba(255, 106, 43, .85);
  color: #1B0C03;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

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

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 999;
  transform: translate(-50%, -140%);
  padding: 10px 24px;
  border-radius: 0 0 16px 16px;
  background: var(--flame);
  color: #1B0C03;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- header : ticker ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

.ticker {
  background: var(--night-3);
  color: var(--mist);
  font-size: .78rem;
  letter-spacing: .05em;
  border-bottom: 1px solid rgba(30, 90, 94, .7);
}

.ticker__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 28px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 9px 24px;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 224, 208, .18);
}

.ticker__item--link a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(69, 224, 208, .5);
  padding-bottom: 1px;
  transition: color .18s ease, border-color .18s ease;
}

.ticker__item--link a:hover {
  color: var(--paper);
  border-bottom-color: var(--flame);
}

/* ---------- header : masthead ---------- */
.masthead {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #07333A 0%, var(--night) 82%);
  border-bottom: 1px solid var(--edge);
}

.masthead::before {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 68px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 100%, rgba(69, 224, 208, .16), transparent 64%);
}

.masthead__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 22px 24px 20px;
  text-align: center;
}

.masthead__eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--sand);
}

.masthead__brand {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  color: var(--paper);
}

.masthead__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .07em;
  transition: color .2s ease;
}

.masthead__tagline {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: .9rem;
  letter-spacing: .18em;
  color: var(--mist);
}

.masthead__brand:hover .masthead__name { color: var(--cyan); }
.masthead__brand:focus-visible { outline-offset: 8px; }

/* ---------- header : nav toggle ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: rgba(11, 60, 66, .85);
  color: var(--paper);
  font-size: .82rem;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle__bars span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .22s ease, opacity .22s ease, background .22s ease;
}

.nav-toggle__label { line-height: 1; }

.site-header[data-open] .nav-toggle {
  background: var(--flame);
  border-color: var(--flame);
  color: #1B0C03;
}

.site-header[data-open] .nav-toggle__bars span { background: #1B0C03; }
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- header : nav ---------- */
.site-nav {
  background: var(--night-4);
  border-bottom: 1px solid var(--edge);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .32s ease, visibility .32s ease;
}

.site-header[data-open] .site-nav {
  max-height: 620px;
  visibility: visible;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px 18px 18px;
}

.site-nav__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--mist);
  font-size: .92rem;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.site-nav__list a:hover {
  color: var(--paper);
  background: rgba(69, 224, 208, .10);
  border-color: rgba(69, 224, 208, .35);
}

.site-nav__list a[aria-current="page"] {
  background: var(--flame);
  border-color: var(--flame);
  color: #1B0C03;
  font-weight: 700;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--flame));
  box-shadow: 0 0 14px rgba(69, 224, 208, .55);
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 0;
  background: var(--night-3);
  color: var(--mist);
  border-top: 1px solid var(--edge);
}

.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 52px 24px 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px 32px;
}

.footer-block { min-width: 0; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .09em;
  color: var(--paper);
}

.footer-line {
  margin-top: 10px;
  max-width: 34ch;
  font-size: .9rem;
  line-height: 1.75;
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(201, 162, 39, .5);
  border-radius: var(--radius-pill);
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--sand);
}

.footer-title {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--sand);
  margin-bottom: 14px;
}

.footer-list {
  display: grid;
  gap: 9px;
  font-size: .9rem;
  line-height: 1.7;
}

.footer-list a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-list--plain { gap: 7px; font-size: .86rem; color: var(--mist); word-break: break-word; }

.footer-note {
  margin-top: 16px;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--mist);
}

.footer-legal {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--mist);
}

.footer-copy {
  margin-top: 4px;
  font-size: .78rem;
  color: rgba(185, 179, 166, .78);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: none;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn--primary {
  background: var(--flame);
  color: #1B0C03;
}

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

.btn--ghost {
  border-color: var(--edge);
  color: var(--paper);
}

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

.btn--cyan {
  background: var(--cyan);
  color: #04262B;
}

.btn--cyan:hover {
  background: #6CEADE;
  transform: translateY(-2px);
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 1px solid rgba(69, 224, 208, .42);
  border-radius: var(--radius-pill);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--cyan);
  line-height: 1.7;
}

.tag--sand { border-color: rgba(201, 162, 39, .5); color: var(--sand); }
.tag--flame { border-color: rgba(255, 106, 43, .55); color: var(--flame); }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  padding-top: 20px;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--mist);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb__item a {
  color: var(--mist);
  text-decoration: none;
  transition: color .18s ease;
}

.breadcrumb__item a:hover { color: var(--cyan); }
.breadcrumb__item[aria-current="page"] { color: var(--paper); }
.breadcrumb__sep { color: var(--edge); }

/* ---------- section head ---------- */
.section-head {
  display: grid;
  gap: 8px;
}

.section-head__kicker {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--flame);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: .04em;
  line-height: 1.2;
}

.section-head__note {
  max-width: 48ch;
  font-size: .92rem;
  color: var(--mist);
}

/* ---------- grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* ---------- card ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
  border: 1px solid rgba(30, 90, 94, .85);
  border-radius: var(--radius-lg);
  background: var(--night-2);
  transition: border-color .2s ease, transform .2s ease;
}

.card:hover {
  border-color: rgba(69, 224, 208, .55);
  transform: translateY(-3px);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .04em;
  color: var(--paper);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--mist);
}

/* ---------- stat ---------- */
.stat {
  display: grid;
  gap: 2px;
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--cyan);
}

.stat__label {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--mist);
}

/* ---------- media ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 90, 94, .8);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(69, 224, 208, .18), transparent 60%),
    linear-gradient(145deg, #0D4147, #06282C);
}

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

.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--rail { aspect-ratio: 3 / 2; }

.media__caption {
  margin-top: 8px;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--mist);
}

/* ---------- prose / paper ---------- */
.prose {
  max-width: 38em;
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--paper);
}

.prose p + p { margin-top: 1.05em; }

.prose h2 {
  margin-top: 1.9em;
  margin-bottom: .5em;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
}

.prose h3 {
  margin-top: 1.5em;
  margin-bottom: .4em;
  font-size: 1.15rem;
}

.prose ul,
.prose ol {
  margin: 1em 0;
  padding-left: 1.3em;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: .9em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 6px;
  height: 1px;
  background: var(--flame);
}

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(69, 224, 208, .45);
}

.prose a:hover { border-bottom-color: var(--flame); }

.prose blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--sand);
  background: rgba(11, 60, 66, .55);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--soft);
}

.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(69, 224, 208, .12);
  color: var(--cyan);
}

.paper-card {
  padding: clamp(20px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--soft);
  color: var(--ink);
}

.paper-card h2,
.paper-card h3 { color: #06282C; }
.paper-card a { color: #0E5B60; }

/* ---------- filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--mist);
  font-size: .84rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.filter-chip:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.filter-chip[aria-pressed="true"] {
  background: rgba(69, 224, 208, .14);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 700;
}

[data-filter-item] {
  transition: opacity .24s ease, transform .24s ease;
}

[data-filter-item][hidden] { display: none; }

/* ---------- reveal ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
}

.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(69, 224, 208, .5);
  border-radius: var(--radius-pill);
  background: rgba(3, 24, 27, .94);
  color: var(--cyan);
  font-size: .84rem;
  letter-spacing: .1em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, border-color .22s ease, color .22s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--flame);
  color: var(--paper);
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr; }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (min-width: 880px) {
  .masthead__inner { padding: 30px 24px 24px; }
  .nav-toggle { display: none; }

  .site-nav {
    max-height: none;
    visibility: visible;
    overflow: visible;
  }

  .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
  }
}

@media (min-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.4fr .8fr 1.1fr 1.15fr; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .ticker { font-size: .72rem; }
  .ticker__inner { gap: 4px 16px; padding: 8px 18px; }
  .container { padding-inline: 18px; }
  .site-footer__inner { padding: 40px 18px 24px; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .btn--primary:hover,
  .btn--cyan:hover,
  .to-top { transform: none; }
}
