/* ============================================================
   天博赛场 · 共享样式 /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, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* --- 2. Tokens --- */
:root {
  --deep-night-blue: #0B1226;
  --dugout-navy: #141C36;
  --border-navy: #22304F;
  --arena-orange: #FF6B2C;
  --ember-orange-soft: #FFB48A;
  --signal-green: #3DDC97;
  --ice-text: #EAF0FF;
  --mist-text: #A8B6D4;
  --score-gold: #FFD166;

  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1200px;
  --gutter: 20px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --sp-section: clamp(64px, 9vw, 112px);
  --sp-block: clamp(20px, 3vw, 32px);
}

/* --- 3. 基础排版 --- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ice-text);
  background-color: var(--deep-night-blue);
  background-image:
    radial-gradient(900px 620px at 6% -8%, rgba(255, 107, 44, 0.16), transparent 62%),
    radial-gradient(760px 540px at 102% 4%, rgba(61, 220, 151, 0.09), transparent 66%),
    radial-gradient(1100px 800px at 50% 118%, rgba(255, 107, 44, 0.07), transparent 72%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ice-text);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

a { color: var(--ember-orange-soft); text-underline-offset: 3px; }
a:hover { color: var(--arena-orange); }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ice-text);
}

.num, .score-digit {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.score-digit {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  color: var(--score-gold);
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arena-orange);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
  flex: 0 0 auto;
}

.prose { color: var(--ice-text); }
.prose p { max-width: 38em; margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.15em 1.2em; color: var(--mist-text); max-width: 36em; }

/* --- 4. 布局容器 --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sp-section); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-block);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p { color: var(--mist-text); max-width: 36em; }

/* --- 5. 面板 / 标签 / 状态 --- */
.panel {
  position: relative;
  background: var(--dugout-navy);
  border: 1px solid var(--border-navy);
  border-radius: var(--r-lg);
  padding: var(--sp-block);
}
.panel--accent { border-color: rgba(255, 107, 44, 0.45); }
.panel--flat { background: rgba(20, 28, 54, 0.55); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-navy);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist-text);
  white-space: nowrap;
}
.tag--live { color: var(--signal-green); border-color: rgba(61, 220, 151, 0.4); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  background: var(--mist-text);
}
.dot--green { background: var(--signal-green); box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16); }
.dot--orange { background: var(--arena-orange); box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.18); }

/* --- 6. 按钮与链接按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--arena-orange); color: var(--deep-night-blue); }
.btn--primary:hover { background: var(--ember-orange-soft); color: var(--deep-night-blue); }
.btn--outline {
  border-color: var(--border-navy);
  color: var(--ice-text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--outline:hover { border-color: var(--arena-orange); color: var(--arena-orange); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pill--primary { background: var(--arena-orange); color: var(--deep-night-blue); }
.pill--primary:hover { background: var(--ember-orange-soft); color: var(--deep-night-blue); }
.pill--ghost {
  border-color: var(--border-navy);
  color: var(--ice-text);
  background: rgba(255, 255, 255, 0.03);
}
.pill--ghost:hover { border-color: var(--arena-orange); color: var(--arena-orange); }

/* --- 7. 面包屑 --- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist-text);
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; padding-right: 8px; color: var(--border-navy); }
.crumbs a { color: var(--mist-text); text-decoration: none; }
.crumbs a:hover { color: var(--arena-orange); }

/* --- 8. 分段标签 --- */
.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--border-navy);
  border-radius: var(--r-pill);
  background: rgba(20, 28, 54, 0.6);
  width: fit-content;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mist-text);
  background: transparent;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.tab:hover { color: var(--ice-text); }
.tab[aria-selected="true"] {
  background: var(--arena-orange);
  color: var(--deep-night-blue);
  font-weight: 600;
}
.tabpanel { padding-top: clamp(24px, 3vw, 40px); }
.tabpanel[hidden] { display: none; }

/* --- 9. 图片容器基础规则 --- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-navy);
  background: linear-gradient(135deg, var(--dugout-navy), #0E1730);
  aspect-ratio: 16 / 10;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }
.media--diagonal { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.media__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(11, 18, 38, 0.82);
  border: 1px solid var(--border-navy);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ice-text);
}
.media__caption {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist-text);
}

/* --- 10. 无障碍与动效 --- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--arena-orange);
  color: var(--deep-night-blue);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--arena-orange);
  outline-offset: 2px;
  border-radius: 6px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --- 11. 页头 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 18, 38, 0.94);
  border-bottom: 1px solid rgba(34, 48, 79, 0.7);
}

.ticker {
  background:
    linear-gradient(90deg, rgba(255, 107, 44, 0.16), rgba(20, 28, 54, 0) 58%),
    var(--dugout-navy);
  border-bottom: 1px solid var(--border-navy);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 9px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist-text);
}
.ticker__track::-webkit-scrollbar { display: none; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.ticker__num { color: var(--ice-text); font-weight: 700; padding-left: 4px; }
.ticker__num--gold { color: var(--score-gold); }

.header-bar {
  position: relative;
  padding: 10px 0 12px;
}
.capsule {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(var(--wrap) - var(--gutter) * 2);
  margin-inline: auto;
  padding: 8px 8px 8px 18px;
  background: rgba(20, 28, 54, 0.94);
  border: 1px solid var(--border-navy);
  border-radius: var(--r-pill);
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, 0.95);
  transition: padding 0.25s ease;
}
html[data-scrolled="true"] .capsule { padding-block: 4px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}
.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--arena-orange), #FF8A4C);
  color: var(--deep-night-blue);
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-size: 16px; font-weight: 600; color: var(--ice-text); letter-spacing: 0.04em; }
.brand__line { font-size: 11px; letter-spacing: 0.1em; color: var(--mist-text); white-space: nowrap; }

.site-nav { margin-inline: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--mist-text);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-nav__list a:hover { color: var(--ice-text); background: rgba(255, 255, 255, 0.05); }
.site-nav__list a[aria-current="page"] {
  background: var(--arena-orange);
  color: var(--deep-night-blue);
  font-weight: 700;
}

.capsule__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-navy);
  border-radius: var(--r-pill);
  color: var(--ice-text);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--arena-orange), var(--score-gold));
  transition: width 0.1s linear;
}

/* --- 12. 桌面左侧快捷栏 / 移动底部横滑条 --- */
.quickrail {
  display: none;
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  flex-direction: column;
  gap: 8px;
}
.quickrail__link {
  width: 58px;
  padding: 10px 0 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist-text);
  text-decoration: none;
  background: rgba(20, 28, 54, 0.85);
  border: 1px solid var(--border-navy);
  border-radius: var(--r-md);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.quickrail__link:hover { color: var(--ice-text); border-color: var(--arena-orange); }
.quickrail__link[aria-current="page"] { color: var(--ice-text); border-color: var(--arena-orange); }
.quickrail__idx {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--arena-orange);
}

.quickbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(11, 18, 38, 0.96);
  border-top: 1px solid var(--border-navy);
}
.quickbar::-webkit-scrollbar { display: none; }
.quickbar__link {
  flex: 1 0 auto;
  min-width: 76px;
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist-text);
  text-decoration: none;
  border: 1px solid var(--border-navy);
  border-radius: var(--r-md);
}
.quickbar__link[aria-current="page"] { color: var(--ice-text); border-color: var(--arena-orange); }

/* --- 13. 页脚 --- */
.site-footer {
  margin-top: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--border-navy);
  background: linear-gradient(180deg, rgba(20, 28, 54, 0.85), rgba(8, 13, 28, 0.98));
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--arena-orange), var(--score-gold) 42%, rgba(255, 107, 44, 0) 94%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px 32px;
  padding: clamp(48px, 6vw, 76px) 0 clamp(32px, 4vw, 48px);
}
.brand--footer { margin-bottom: 18px; }
.footer-brand__note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist-text);
  max-width: 32ch;
  margin-bottom: 22px;
}
.footer-col__title {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-text);
  margin-bottom: 18px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-list a {
  font-size: 15px;
  color: var(--mist-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-list a:hover { color: var(--arena-orange); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding: 28px 0;
  border-top: 1px solid rgba(34, 48, 79, 0.7);
}
.footer-contact__line {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--mist-text);
}
.footer-contact__label {
  flex: 0 0 auto;
  min-width: 62px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arena-orange);
}
.footer-contact__hours {
  flex: 1 0 100%;
  font-size: 13px;
  color: var(--mist-text);
  opacity: 0.9;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 34px;
  border-top: 1px solid rgba(34, 48, 79, 0.7);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist-text);
}
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-legal__links a { color: var(--mist-text); text-decoration: none; }
.footer-legal__links a:hover { color: var(--arena-orange); }

/* --- 14. 响应式 --- */
@media (max-width: 1024px) {
  .site-nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 8px);
    display: none;
    margin: 0;
    padding: 14px;
    background: rgba(17, 24, 46, 0.98);
    border: 1px solid var(--border-navy);
    border-radius: var(--r-lg);
    box-shadow: 0 34px 66px -34px rgba(0, 0, 0, 0.95);
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__list a {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    border-radius: var(--r-md);
    font-size: 14px;
  }
  .nav-toggle { display: inline-flex; }
  .capsule { padding: 8px 10px 8px 14px; gap: 10px; }
  .brand__line { display: none; }
}

@media (max-width: 960px) {
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .quickbar { display: flex; }
  body { padding-bottom: 78px; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .col-4 { grid-column: span 6; }
  .col-6 { grid-column: span 6; }
  .col-5, .col-7, .col-8 { grid-column: span 12; }
}

@media (min-width: 1360px) {
  .quickrail { display: flex; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .capsule__actions .pill--ghost { display: none; }
  .ticker__track { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-progress { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
