/* =============================================================
   火博体育 · 共享站点样式 /assets/site.css
   母题：夜场灯光下的赛场指挥台
   炭黑命令栏 + 纸白阅读区 + 炽焰橙红焦点 + 草绿/夜蓝分区识别
   ============================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ember-600: #D93A12;
  --ember-500: #F0561F;
  --ember-100: #FFE4D9;
  --carbon-950: #0E0F11;
  --carbon-800: #1C1F24;
  --carbon-600: #4A5058;
  --turf-600: #1E7A4D;
  --night-700: #16305C;
  --line-300: #D8DBDF;
  --paper-050: #F6F6F4;
  --white: #FFFFFF;

  --on-dark: rgba(255, 255, 255, 0.80);
  --on-dark-soft: rgba(255, 255, 255, 0.52);
  --on-dark-line: rgba(255, 255, 255, 0.12);

  --font-display: "Oswald", "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --fs-h1: clamp(34px, 5.2vw, 68px);
  --fs-h2: clamp(26px, 3.6vw, 40px);
  --fs-h3: 22px;
  --fs-body: 16px;
  --fs-micro: 12px;

  --header-h: 72px;
  --header-h-sm: 56px;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-sm) + 16px);
}

body {
  margin: 0;
  background-color: var(--paper-050);
  color: var(--carbon-950);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a { color: var(--night-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember-600); }

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

::selection { background-color: var(--ember-600); color: var(--white); }

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

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.45em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: inherit;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.4; }

p { margin: 0 0 1em; max-width: 38em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }

small { font-size: var(--fs-micro); }

.eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-600);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 220;
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--ember-600);
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- 5. 容器与分区 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(36px, 6vw, 72px); }
.section--dark { background-color: var(--carbon-950); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--tint { background-color: var(--ember-100); }

.hairline {
  height: 1px;
  margin: 0;
  border: 0;
  background-color: var(--line-300);
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--carbon-950);
  color: var(--white);
  border-bottom: 1px solid var(--on-dark-line);
  transition: box-shadow 0.18s var(--ease);
}
.site-header[data-scrolled="true"] {
  box-shadow: 0 14px 30px rgba(14, 15, 17, 0.38);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-height: var(--header-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  transition: min-height 0.18s var(--ease);
}
.site-header[data-scrolled="true"] .header-inner { min-height: var(--header-h-sm); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }

.brand-mark {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background-color: var(--ember-600);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.brand-mark::before {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px; left: 50%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 50%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%);
}

.brand-text { display: block; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  transition: font-size 0.18s var(--ease);
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.site-header[data-scrolled="true"] .brand-name { font-size: 16px; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  padding: 8px 12px;
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--ember-500); background-color: rgba(240, 86, 31, 0.12); }
.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.nav-toggle-bar {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background-color: currentColor;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background-color: currentColor;
  transition: transform 0.18s var(--ease);
}
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }
.site-header[data-open="true"] .nav-toggle-bar { background-color: transparent; }
.site-header[data-open="true"] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 18px);
  margin-inline: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 2px;
  color: #E9E9E5;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ember-500);
  transition: color 0.18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 4px;
  height: 1px;
  background-color: var(--ember-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover .nav-index { color: var(--ember-100); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  background-color: var(--ember-600);
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--ember-500);
}
.nav-link[aria-current="page"] .nav-index { color: var(--ember-100); }
.nav-link[aria-current="page"]::after { display: none; }

.nav-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* ---------- 7. 按钮与复制芯片 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--ember { background-color: var(--ember-600); color: var(--white); }
.btn--ember:hover { background-color: var(--ember-500); color: var(--white); }
.btn--ghost { background-color: transparent; border-color: var(--carbon-950); color: var(--carbon-950); }
.btn--ghost:hover { border-color: var(--ember-600); color: var(--ember-600); }
.btn--on-dark { background-color: transparent; border-color: rgba(255, 255, 255, 0.36); color: var(--white); }
.btn--on-dark:hover { border-color: var(--ember-500); color: var(--ember-100); }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--on-dark);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.copy-chip:hover { border-color: var(--ember-500); color: var(--white); }
.copy-chip[data-copied="true"] {
  background-color: var(--turf-600);
  border-color: var(--turf-600);
  color: var(--white);
}
.copy-chip-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--ember-500);
  transition: background-color 0.18s var(--ease);
}
.copy-chip[data-copied="true"] .copy-chip-dot { background-color: var(--white); }
.copy-chip-label { display: inline-block; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background-color: var(--carbon-950);
  color: var(--on-dark);
  border-top: 2px solid var(--ember-600);
}
.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) var(--pad) clamp(20px, 3vw, 28px);
}

.footer-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--on-dark-line);
}
.footer-brand-wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--white);
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-500);
}
.footer-signature {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.3;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  padding-block: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--on-dark-line);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-500);
}
.footer-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-list a:hover { color: var(--white); border-bottom-color: var(--ember-500); }

.footer-contact {
  display: grid;
  gap: 6px;
  padding-block: clamp(22px, 3vw, 30px);
  border-bottom: 1px solid var(--on-dark-line);
}
.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.7;
}
.footer-contact-key {
  flex: 0 0 auto;
  min-width: 68px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--on-dark-soft);
}
.footer-contact-link {
  color: var(--ember-100);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 228, 217, 0.35);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-contact-link:hover { color: var(--white); border-bottom-color: var(--ember-500); }
.footer-contact-value { color: var(--white); font-family: var(--font-mono); font-size: 13px; }
.footer-contact-note {
  margin: 6px 0 0;
  max-width: 52em;
  font-size: 12px;
  line-height: 1.8;
  color: var(--on-dark-soft);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: clamp(14px, 2vw, 20px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--on-dark-soft);
}

/* ---------- 9. 页面开篇 / 面包屑 ---------- */
.page-head {
  padding-block: clamp(28px, 5vw, 60px) clamp(16px, 2.4vw, 24px);
  border-bottom: 1px solid var(--line-300);
}
.page-title { margin-bottom: 0.3em; }
.page-lede {
  max-width: 44em;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--carbon-600);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--carbon-600);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-300); }
.breadcrumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { color: var(--ember-600); border-bottom-color: var(--ember-600); }
.breadcrumbs [aria-current="page"] { color: var(--carbon-950); }

/* ---------- 10. 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

/* ---------- 11. 面板 ---------- */
.panel {
  padding: clamp(18px, 2.4vw, 28px);
  background-color: var(--white);
  border: 1px solid var(--line-300);
  border-radius: var(--radius);
}
.panel--dark {
  background-color: var(--carbon-950);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
}
.panel--dark h2, .panel--dark h3, .panel--dark h4 { color: var(--white); }
.panel--dark .eyebrow { color: var(--ember-500); }

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-300);
  border-radius: 2px;
  background-color: var(--white);
  color: var(--carbon-600);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-decoration: none;
}
.tag--ember { background-color: var(--ember-100); border-color: transparent; color: var(--ember-600); }
.tag--turf { background-color: rgba(30, 122, 77, 0.10); border-color: transparent; color: var(--turf-600); }
.tag--night { background-color: rgba(22, 48, 92, 0.10); border-color: transparent; color: var(--night-700); }
.tag--solid { background-color: var(--ember-600); border-color: transparent; color: var(--white); }

/* ---------- 13. 图片容器（页面阶段放占位图） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--carbon-950);
  border: 1px solid var(--line-300);
  border-radius: var(--radius);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--carbon-600);
}

/* ---------- 14. 索引行 ---------- */
.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-300);
}
.index-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-300);
  font-size: 14px;
}
.index-row-key { color: var(--carbon-600); }
.index-row-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--carbon-950);
  white-space: nowrap;
}

/* ---------- 15. 标签组 ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line-300);
}
.tab {
  appearance: none;
  padding: 10px 14px;
  background-color: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--carbon-600);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.tab:hover { color: var(--carbon-950); }
.tab[aria-selected="true"] {
  color: var(--ember-600);
  border-bottom-color: var(--ember-600);
  background-color: var(--ember-100);
}
.tabpanel { padding-top: clamp(16px, 2.4vw, 24px); }
.tabpanel[hidden] { display: none; }

@keyframes huobo-tab-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tabpanel:not([hidden]) {
  animation: huobo-tab-in 0.12s var(--ease) both;
}

/* ---------- 16. 移动端头部 ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin-inline: 0;
    padding: 6px var(--pad) 22px;
    background-color: var(--carbon-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 40px rgba(14, 15, 17, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s linear;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }
  .site-header[data-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    justify-content: flex-start;
    padding: 14px 12px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--ember-500); }

  .nav-utility { margin-top: 16px; flex-wrap: wrap; }

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

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-contact-key { min-width: 60px; }
}

/* ---------- 17. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
