/* ==========================================================================
   火博体育指南 · 共享样式 /assets/site.css
   夜场炭黑底 · 熔岩橙与琥珀金炽热主轴 · 冷青数据对照轴
   ========================================================================== */

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

html, body { margin: 0; padding: 0; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3, h4, h5, p, figure { margin: 0; }

/* ---------- Design tokens ---------- */
:root {
  --c-night:      #0B0E12;
  --c-deep:       #161B21;
  --c-line:       #262E38;
  --c-lava:       #FF5A1F;
  --c-amber:      #FFB020;
  --c-cold:       #2FD4C6;
  --c-cold-deep:  #0E3A38;
  --c-mist:       #F2F5F8;
  --c-graphite:   #98A2AE;
  --c-alert:      #E5484D;
  --c-amber-soft: #FFD9A8;

  --rail-w: 0px;
  --gutter: 20px;
  --maxw: 1320px;

  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;

  --f-display: "Noto Sans SC", "Source Han Sans SC", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --sh-warm: 0 14px 32px -16px rgba(255, 90, 31, .85);
  --sh-deep: 0 30px 70px -40px rgba(0, 0, 0, .95);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --rail-w: 88px; } }

/* ---------- Base ---------- */
body {
  background-color: var(--c-night);
  color: var(--c-mist);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  padding-left: var(--rail-w);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) { body { font-size: 17px; } }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-stretch: 92%;
  color: var(--c-mist);
}

p { max-width: 72ch; }

strong, b { font-weight: 700; color: var(--c-amber-soft); }

::selection { background: var(--c-lava); color: var(--c-night); }

:focus-visible {
  outline: 2px solid var(--c-amber);
  outline-offset: 3px;
}

/* ---------- Layout container ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 10px);
  z-index: 220;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-amber);
  color: #14100A;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 14, 18, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--c-lava) 0%, var(--c-amber) 46%, var(--c-cold) 100%);
  opacity: .92;
}

.masthead__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  padding-block: 16px 12px;
}

@media (min-width: 768px) {
  .masthead__grid {
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    padding-block: 22px 14px;
  }
}

/* 竖排内容主线标签 */
.brand-kicker {
  display: none;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  line-height: 1.6;
  color: var(--c-graphite);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-left: 2px solid var(--c-lava);
  padding-left: 10px;
  align-self: center;
}

@media (min-width: 768px) { .brand-kicker { display: block; } }

/* 品牌锁定区 */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.brand-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 92%;
  font-size: clamp(26px, 5.2vw, 44px);
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--c-mist);
  transition: color .18s var(--ease);
}

.brand-name:hover { color: var(--c-amber); }

.brand-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--c-graphite);
}

/* 刊头右侧工具区 */
.masthead-utility {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (min-width: 768px) { .masthead-utility { justify-content: flex-end; } }

.masthead-status {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--c-cold);
}

.masthead-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cold);
  box-shadow: 0 0 0 4px rgba(47, 212, 198, .16);
}

@media (min-width: 900px) { .masthead-status { display: inline-flex; } }

/* ---------- Buttons ---------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-deep);
  color: var(--c-mist);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.pill-btn:hover { transform: translateY(-1px); }

.pill-btn--warm {
  background: var(--c-lava);
  border-color: var(--c-lava);
  color: #12100D;
  font-weight: 800;
  box-shadow: var(--sh-warm);
}

.pill-btn--warm:hover {
  background: var(--c-amber);
  border-color: var(--c-amber);
}

.pill-btn--ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-mist);
}

.pill-btn--ghost:hover {
  border-color: var(--c-amber);
  color: var(--c-amber-soft);
}

/* ---------- Nav bar ---------- */
.nav-bar { border-top: 1px solid var(--c-line); }

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.nav-row { width: 100%; }

.nav-list {
  display: grid;
  grid-template-columns: 1fr;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}

.nav-row[data-open] .nav-list {
  max-height: 560px;
  padding-block: 6px 14px;
}

/* 移动端链接 */
.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--c-line);
  font-size: 16px;
  font-weight: 600;
  color: rgba(242, 245, 248, .86);
  transition: color .18s var(--ease);
}

.nav-list a::after {
  content: "›";
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--c-graphite);
}

.nav-list a:hover { color: var(--c-amber-soft); }

.nav-list a[aria-current="page"] { color: var(--c-lava); }

/* 桌面端链接 */
@media (min-width: 900px) {
  .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 6px;
    max-height: none;
    overflow: visible;
    padding-block: 0;
  }

  .nav-list a {
    position: relative;
    display: inline-block;
    padding: 15px 14px 17px;
    border-bottom: 0;
    font-size: 15px;
    color: rgba(242, 245, 248, .8);
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-lava);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s var(--ease);
  }

  .nav-list a:hover { color: var(--c-mist); }
  .nav-list a:hover::after { transform: scaleX(1); }

  .nav-list a[aria-current="page"] { color: var(--c-amber-soft); }
  .nav-list a[aria-current="page"]::after {
    background: var(--c-lava);
    transform: scaleX(1);
  }
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-deep);
  color: var(--c-mist);
}

.nav-toggle__bars {
  display: inline-grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[data-open] { border-color: var(--c-lava); color: var(--c-amber-soft); }
.nav-toggle[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}

@media (min-width: 900px) { .nav-toggle { display: none; } }

/* ---------- Left brand rail ---------- */
.site-rail { display: none; }

@media (min-width: 1024px) {
  .site-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0 26px;
    background: var(--c-deep);
    border-right: 1px solid var(--c-line);
  }
}

.rail-mark {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .26em;
  color: var(--c-lava);
  padding-block: 4px;
}

.rail-index {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-amber);
  padding: 4px 7px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: rgba(255, 176, 32, .06);
}

.rail-current {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--c-graphite);
  max-height: 240px;
  overflow: hidden;
}

.rail-top {
  margin-top: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-night);
  color: var(--c-mist);
  font-size: 16px;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}

.rail-top[hidden] { display: none; }

.rail-top:hover {
  background: var(--c-lava);
  border-color: var(--c-lava);
  color: #12100D;
}

/* ---------- Media frames ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background-color: var(--c-deep);
  background-image:
    linear-gradient(135deg, rgba(255, 90, 31, .10) 0%, rgba(11, 14, 18, 0) 55%),
    linear-gradient(0deg, rgba(47, 212, 198, .08) 0%, rgba(11, 14, 18, 0) 60%);
}

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

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

.img-caption {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--c-graphite);
}

/* ---------- Numeric / data basics ---------- */
.stat-num {
  display: inline-block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-amber);
  font-variant-numeric: tabular-nums;
}

.stat-num--cold { color: var(--c-cold); }
.stat-num--hot { color: var(--c-lava); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(64px, 10vw, 140px);
  background: var(--c-deep);
  border-top: 1px solid var(--c-line);
  color: var(--c-mist);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: clamp(48px, 7vw, 80px) 32px;
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: minmax(240px, 1.05fr) 2.6fr;
    gap: 56px;
  }
}

.footer__logo {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 92%;
  font-size: clamp(24px, 3.4vw, 30px);
  letter-spacing: -.02em;
  color: var(--c-mist);
  transition: color .18s var(--ease);
}

.footer__logo:hover { color: var(--c-amber); }

.footer__signoff {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--c-amber-soft);
  max-width: 32ch;
}

.footer__meta {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-graphite);
  max-width: 34ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

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

@media (min-width: 1100px) {
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.footer__title {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

.footer__list {
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.footer__list a {
  display: inline-block;
  color: var(--c-graphite);
  transition: color .18s var(--ease);
}

.footer__list a:hover { color: var(--c-amber-soft); }

.footer__list a[aria-current="page"] {
  color: var(--c-amber);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__list--plain li {
  color: var(--c-graphite);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px 30px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  color: var(--c-graphite);
}

.footer__copy { max-width: none; }

.footer__icp {
  font-family: var(--f-mono);
  letter-spacing: .06em;
  color: var(--c-graphite);
  max-width: none;
}

/* ---------- Reveal protocol ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}

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

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

  html { scroll-behavior: auto !important; }

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