/* ==========================================================================
   顺发赛场 · 共享样式 /assets/site.css
   深夜赛场数据台：深墨蓝底、荧光青绿数据、暖橙实时状态、锐利直角与细线
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 140px;
}

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

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

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

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

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

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

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

/* ---------- 2. tokens ---------- */
:root {
  --ink: #0B1220;
  --ink-deep: #0E1728;
  --panel: #151F33;
  --line: #22304A;
  --line-soft: #1B2740;
  --mint: #22E0B4;
  --warm: #FF8A3D;
  --gold: #F2C94C;
  --paper: #F4F7FA;
  --mist: #8A97AB;
  --wine: #7A2438;
  --indigo: #2B2B6B;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Arial Narrow", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --dur: 180ms;
  --dur-fast: 140ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --shell-max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 120px;
}

/* ---------- 3. base ---------- */
body {
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 520px at 12% -10%, rgba(43, 43, 107, .42), transparent 65%),
    radial-gradient(760px 420px at 92% 2%, rgba(34, 224, 180, .09), transparent 62%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(34, 224, 180, .28);
  color: var(--paper);
}

/* ---------- 4. focus & motion ---------- */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.sf-card:focus-visible,
.sf-btn:focus-visible,
.sf-cta:focus-visible,
.sf-navtoggle:focus-visible {
  border-color: var(--mint);
}

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

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

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

.sf-section {
  padding-block: clamp(48px, 7vw, 96px);
}

.sf-section + .sf-section {
  border-top: 1px solid var(--line-soft);
}

.sf-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.sf-span-4 { grid-column: span 4; }
.sf-span-5 { grid-column: span 5; }
.sf-span-6 { grid-column: span 6; }
.sf-span-7 { grid-column: span 7; }
.sf-span-8 { grid-column: span 8; }
.sf-span-12 { grid-column: span 12; }

.sf-prose {
  max-width: 680px;
  line-height: 1.75;
}

.sf-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- 6. type helpers ---------- */
.sf-h1 {
  font-family: var(--font-cond);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--paper);
}

.sf-h2 {
  font-family: var(--font-cond);
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--paper);
}

.sf-h3 {
  font-family: var(--font-cond);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper);
}

.sf-lead {
  max-width: 620px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: #C9D3E0;
}

.sf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
}

.sf-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--mint);
}

.sf-annot {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--mist);
  text-transform: uppercase;
}

.sf-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
}

.sf-muted { color: var(--mist); }

/* ---------- 7. tags / buttons / cards ---------- */
.sf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(244, 247, 250, .1);
  background: var(--indigo);
  color: var(--paper);
  font-size: 11.5px;
  letter-spacing: .08em;
  line-height: 1.5;
}

.sf-tag--live {
  background: rgba(255, 138, 61, .14);
  border-color: rgba(255, 138, 61, .45);
  color: var(--warm);
}

.sf-tag--wine {
  background: var(--wine);
  border-color: rgba(244, 247, 250, .1);
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--mint);
  background: var(--mint);
  color: #05201A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.sf-btn:hover,
.sf-btn:focus-visible {
  background: transparent;
  color: var(--mint);
}

.sf-btn:active { transform: translateY(1px); }

.sf-btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.sf-btn--ghost:hover,
.sf-btn--ghost:focus-visible {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(34, 224, 180, .07);
}

.sf-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(16px, 2vw, 24px);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.sf-card:hover { border-color: rgba(34, 224, 180, .5); }

.sf-card:focus-within { border-color: var(--mint); }

/* ---------- 8. breadcrumb ---------- */
.sf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--mist);
}

.sf-breadcrumb a {
  transition: color var(--dur) var(--ease);
}

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

.sf-breadcrumb__sep { opacity: .5; }

/* ---------- 9. figure ---------- */
.sf-figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(34, 224, 180, .12), transparent 62%),
    radial-gradient(90% 80% at 88% 100%, rgba(255, 138, 61, .1), transparent 60%),
    linear-gradient(160deg, #101A2C, #0B1220 68%);
  aspect-ratio: 16 / 9;
}

.sf-figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06) brightness(.92);
}

.sf-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 247, 250, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 250, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

.sf-figure__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 8px 12px;
  background: rgba(11, 18, 32, .86);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}

/* ---------- 10. header ---------- */
.sf-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.sf-skip {
  position: absolute;
  top: -60px;
  left: 8px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--mint);
  color: #05201A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: top var(--dur) var(--ease);
}

.sf-skip:focus {
  top: 8px;
}

.sf-rail {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  background-image: linear-gradient(90deg, #0B1220, #101A2C 55%, #0B1220);
}

.sf-rail__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 7px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

.sf-rail__tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.sf-rail__tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: currentColor;
  opacity: .7;
}

.sf-rail__tag--live { color: var(--warm); }

.sf-rail__tag--live::before {
  opacity: 1;
  animation: sf-pulse 1.6s steps(2, end) infinite;
}

.sf-rail__note {
  margin-left: auto;
  white-space: nowrap;
}

@keyframes sf-pulse {
  0% { opacity: 1; }
  50% { opacity: .25; }
  100% { opacity: 1; }
}

.sf-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint), var(--warm));
  transition: transform 80ms linear;
}

.sf-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 36px);
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 13px var(--gutter);
}

.sf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.sf-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mint);
  background-image: linear-gradient(135deg, rgba(34, 224, 180, .16), transparent 70%);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.sf-brand__text { display: block; }

.sf-brand__name {
  display: block;
  font-family: var(--font-cond);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--paper);
}

.sf-brand__line {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--mist);
}

.sf-nav { margin-left: auto; }

.sf-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.sf-nav__link {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}

.sf-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease);
}

.sf-nav__link:hover,
.sf-nav__link:focus-visible { color: var(--paper); }

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

.sf-nav__link[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
}

.sf-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.sf-bar__side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.sf-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--warm);
  background: rgba(255, 138, 61, .07);
  color: var(--warm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.sf-cta::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
}

.sf-cta:hover,
.sf-cta:focus-visible {
  background: var(--warm);
  color: #20100A;
}

.sf-cta:active { transform: translateY(1px); }

.sf-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .12em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.sf-navtoggle:hover { border-color: var(--mint); color: var(--mint); }

.sf-navtoggle__bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

/* ---------- 11. footer ---------- */
.sf-footer {
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
  background-image: linear-gradient(180deg, #0E1728, #0B1220 72%);
  color: var(--mist);
}

.sf-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(32px, 4vw, 48px);
}

.sf-footer__mark {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--paper);
}

.sf-footer__tagline {
  margin-top: 10px;
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--mint);
}

.sf-footer__note {
  max-width: 36ch;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.75;
}

.sf-footer__title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--paper);
}

.sf-footer__title::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 11px;
  background: var(--wine);
}

.sf-footer__links li + li { margin-top: 10px; }

.sf-footer__links a {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.sf-footer__links a:hover,
.sf-footer__links a:focus-visible {
  padding-left: 6px;
  color: var(--mint);
}

.sf-footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 32px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.sf-contact__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sf-contact__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
}

.sf-contact__val { color: var(--paper); }

.sf-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px var(--gutter) 44px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mist);
}

/* ---------- 12. responsive ---------- */
@media (max-width: 960px) {
  .sf-navtoggle { display: inline-flex; }

  .sf-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: 72vh;
    overflow-y: auto;
    margin-left: 0;
    padding: 6px var(--gutter) 20px;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(0, 0, 0, .45);
  }

  .sf-header[data-open] .sf-nav { display: block; }

  .sf-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .sf-nav__item + .sf-nav__item { border-top: 1px dashed var(--line-soft); }

  .sf-nav__link {
    padding: 15px 2px;
    font-size: 16px;
  }

  .sf-nav__link::after {
    left: 0;
    right: auto;
    width: 22px;
    bottom: 8px;
  }

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

@media (max-width: 720px) {
  .sf-rail__inner {
    gap: 8px 14px;
    font-size: 10px;
    letter-spacing: .1em;
  }

  .sf-rail__note { display: none; }

  .sf-span-4,
  .sf-span-5,
  .sf-span-6,
  .sf-span-7,
  .sf-span-8 { grid-column: span 12; }
}

@media (max-width: 560px) {
  .sf-brand__line { display: none; }

  .sf-cta {
    padding: 9px 11px;
    font-size: 12px;
  }

  .sf-navtoggle__label { display: none; }

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

  .sf-contact__item { flex-direction: column; gap: 2px; }
}
