/* ==========================================================================
   火博体育看台 — /assets/site.css
   1. Reset 与设计变量
   2. 中文排版与基础元素
   3. Header：悬浮胶囊浮岛
   4. Footer：看台灯箱
   5. 通用组件
   6. 动效与可访问性
   ========================================================================== */

/* 1. Reset 与设计变量 --------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }

:root {
  /* 色彩 */
  --hb-ink: #0B0D0E;
  --hb-ink-2: #1A1410;
  --hb-ink-3: #0E0B09;
  --hb-paper: #F3E7D3;
  --hb-paper-dim: #CFC2AC;
  --hb-lava: #FF5A1F;
  --hb-lava-warm: #FF8A3D;
  --hb-cyan: #35F2C6;
  --hb-amber: #FFC857;
  --hb-fog: #8D8A83;
  --hb-teal: #0F3B36;
  --hb-brick: #C53A1B;

  --hb-line: rgba(243, 231, 211, 0.12);
  --hb-line-strong: rgba(243, 231, 211, 0.24);

  /* 形状 */
  --hb-radius: 28px;
  --hb-radius-lg: 40px;
  --hb-radius-sm: 14px;
  --hb-pill: 999px;

  /* 字体 */
  --hb-font-head: "Barlow Condensed", "Oswald", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --hb-font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --hb-font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* 尺寸 */
  --hb-max: 1240px;
  --hb-gutter: 20px;
  --hb-header-h: 76px;
}

@media (min-width: 640px) {
  :root { --hb-gutter: 32px; }
}
@media (min-width: 1080px) {
  :root { --hb-gutter: 44px; }
}

/* 2. 中文排版与基础元素 ------------------------------------------------- */
body {
  min-height: 100vh;
  background-color: var(--hb-ink);
  background-image:
    radial-gradient(1100px 560px at 84% -12%, rgba(255, 90, 31, 0.22), transparent 66%),
    radial-gradient(900px 520px at 4% 12%, rgba(15, 59, 54, 0.55), transparent 70%),
    linear-gradient(rgba(243, 231, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 231, 211, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  background-attachment: scroll, scroll, scroll, scroll;
  color: var(--hb-paper);
  font-family: var(--hb-font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#main-content { scroll-margin-top: 120px; }

h1, h2, h3, h4 {
  font-family: var(--hb-font-head);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

p { max-width: 68ch; }

::selection {
  background: var(--hb-lava);
  color: #120A06;
}

/* 3. Header：悬浮胶囊浮岛 ----------------------------------------------- */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px var(--hb-gutter) 0;
}

.hb-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--hb-max);
  margin: 0 auto;
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-pill);
  background-image:
    linear-gradient(102deg, transparent 16%, rgba(255, 138, 61, 0.16) 44%, transparent 62%),
    linear-gradient(180deg, rgba(26, 20, 16, 0.95), rgba(11, 13, 14, 0.92));
  box-shadow:
    0 20px 44px -26px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(243, 231, 211, 0.07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hb-skip {
  position: absolute;
  left: 50%;
  top: 6px;
  z-index: 120;
  transform: translate(-50%, -180%);
  padding: 12px 22px;
  border-radius: var(--hb-pill);
  background: var(--hb-cyan);
  color: #05231B;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.hb-skip:focus,
.hb-skip:focus-visible {
  transform: translate(-50%, 0);
  outline: 3px solid var(--hb-paper);
  outline-offset: 3px;
}

.hb-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  border-radius: var(--hb-pill);
}

.hb-brand__mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(158deg, var(--hb-lava-warm), var(--hb-lava) 54%, #A82C0D);
  box-shadow:
    inset 0 0 0 1px rgba(243, 231, 211, 0.2),
    0 10px 22px -12px rgba(255, 90, 31, 0.95);
}
.hb-brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(116deg, rgba(11, 13, 14, 0.52) 0 2px, transparent 2px 7px);
}
.hb-brand__mark::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hb-cyan);
  box-shadow: 0 0 12px rgba(53, 242, 198, 0.95);
}

.hb-brand__text {
  font-family: var(--hb-font-head);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--hb-paper);
  white-space: nowrap;
}

.hb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
}

.hb-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hb-nav__link {
  display: inline-block;
  padding: 9px 12px;
  border-radius: var(--hb-pill);
  color: var(--hb-paper-dim);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.hb-nav__link:hover {
  color: var(--hb-paper);
  background-color: rgba(255, 90, 31, 0.16);
}
.hb-nav__link[aria-current="page"] {
  color: #150903;
  background-image: linear-gradient(135deg, var(--hb-lava-warm), var(--hb-lava));
  box-shadow: 0 10px 20px -12px rgba(255, 90, 31, 0.95);
}

.hb-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(53, 242, 198, 0.45);
  border-radius: var(--hb-pill);
  background-color: rgba(53, 242, 198, 0.1);
  color: var(--hb-cyan);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.hb-nav__cta::after {
  content: "→";
  font-family: var(--hb-font-mono);
  font-size: 14px;
}
.hb-nav__cta:hover {
  background-color: rgba(53, 242, 198, 0.2);
  transform: translateY(-1px);
}

.hb-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 16px;
  border: 1px solid var(--hb-line-strong);
  border-radius: var(--hb-pill);
  background-color: rgba(243, 231, 211, 0.06);
  color: var(--hb-paper);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.hb-nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: background-color 0.2s ease;
}
.hb-nav-toggle__bars::before,
.hb-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.22s ease;
}
.hb-nav-toggle__bars::before { top: -6px; }
.hb-nav-toggle__bars::after { top: 6px; }

.hb-header[data-open] .hb-nav-toggle__bars { background-color: transparent; }
.hb-header[data-open] .hb-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.hb-header[data-open] .hb-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.hb-progress {
  position: absolute;
  left: var(--hb-gutter);
  right: var(--hb-gutter);
  bottom: 0;
  height: 2px;
  max-width: var(--hb-max);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}
.hb-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--hb-progress, 0%);
  border-radius: 2px;
  background-image: linear-gradient(90deg, var(--hb-lava), var(--hb-amber) 70%, var(--hb-cyan));
}

/* 移动端与平板：胶囊收起为面板 */
@media (max-width: 959px) {
  .hb-nav-toggle { display: inline-flex; }

  .hb-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    padding: 14px;
    border: 1px solid var(--hb-line-strong);
    border-radius: 26px;
    background-image: linear-gradient(180deg, rgba(26, 20, 16, 0.99), rgba(11, 13, 14, 0.99));
    box-shadow: 0 34px 64px -34px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .hb-header[data-open] .hb-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .hb-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  .hb-nav__link {
    display: block;
    padding: 13px 16px;
    border-radius: 18px;
    font-size: 16.5px;
    white-space: normal;
  }
  .hb-nav__cta {
    justify-content: center;
    margin-left: 0;
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .hb-brand__text { font-size: 18px; }
  .hb-brand { gap: 9px; }
  .hb-brand__mark { width: 34px; height: 34px; border-radius: 11px; }
}

/* 4. Footer：看台灯箱 --------------------------------------------------- */
.hb-footer {
  margin-top: clamp(56px, 9vw, 120px);
  padding-top: clamp(40px, 6vw, 76px);
  border-top: 1px solid var(--hb-line);
  background-image:
    radial-gradient(900px 320px at 10% 0%, rgba(255, 90, 31, 0.18), transparent 72%),
    radial-gradient(620px 260px at 92% 18%, rgba(15, 59, 54, 0.6), transparent 74%),
    linear-gradient(180deg, var(--hb-ink-2), var(--hb-ink-3) 72%);
  color: var(--hb-paper);
}

.hb-footer__top {
  display: block;
  padding-bottom: clamp(28px, 4vw, 48px);
}

.hb-footer__brand {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 540px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hb-brand--footer { gap: 12px; }
.hb-brand--footer .hb-brand__text { font-size: 23px; }

.hb-footer__line {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--hb-paper-dim);
}

.hb-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.hb-footer__col { min-width: 0; }

.hb-footer__title {
  margin-bottom: 12px;
  font-family: var(--hb-font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hb-lava-warm);
}

.hb-footer__links {
  display: grid;
  gap: 6px;
}
.hb-footer__links a {
  display: inline-block;
  padding: 3px 0;
  color: var(--hb-paper-dim);
  font-size: 15.5px;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.16s ease;
}
.hb-footer__links a:hover { color: var(--hb-lava-warm); }

.hb-footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 26px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--hb-line);
}

.hb-footer__item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hb-footer__key {
  font-family: var(--hb-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hb-fog);
}

.hb-footer__val {
  font-size: 15px;
  line-height: 1.6;
  color: var(--hb-paper);
  overflow-wrap: anywhere;
}
.hb-footer__val--mono {
  font-family: var(--hb-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--hb-cyan);
}

.hb-footer__legal {
  margin-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--hb-line);
  background-color: rgba(11, 13, 14, 0.72);
}

.hb-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 20px;
  padding-bottom: 22px;
}

.hb-footer__copy {
  max-width: none;
  font-family: var(--hb-font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--hb-fog);
}

.hb-footer__dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--hb-lava);
}

.hb-footer__legal-inner a {
  font-size: 13.5px;
  color: var(--hb-paper-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 231, 211, 0.26);
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.hb-footer__legal-inner a:hover {
  color: var(--hb-lava-warm);
  border-color: var(--hb-lava-warm);
}

@media (max-width: 560px) {
  .hb-footer__dot { display: none; }
  .hb-footer__legal-inner { gap: 6px 14px; }
}

/* 5. 通用组件 ----------------------------------------------------------- */
.hb-container {
  width: 100%;
  max-width: var(--hb-max);
  margin: 0 auto;
  padding-inline: var(--hb-gutter);
}

.hb-section {
  padding-block: clamp(44px, 6.5vw, 92px);
}

.hb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--hb-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hb-cyan);
}
.hb-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--hb-cyan);
}

.hb-title {
  margin: 0;
  font-family: var(--hb-font-head);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--hb-paper);
  text-wrap: balance;
}
.hb-title--xl { font-size: clamp(36px, 6vw, 72px); }
.hb-title--lg { font-size: clamp(30px, 4.2vw, 44px); }
.hb-title--md { font-size: clamp(22px, 2.6vw, 30px); }

.hb-lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--hb-paper-dim);
}

.hb-mono {
  font-family: var(--hb-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--hb-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.hb-btn--sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}
.hb-btn--primary {
  background-image: linear-gradient(135deg, var(--hb-lava-warm), var(--hb-lava));
  color: #160A04;
  box-shadow: 0 18px 34px -22px rgba(255, 90, 31, 0.98);
}
.hb-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px -22px rgba(255, 90, 31, 1);
}
.hb-btn--ghost {
  border-color: var(--hb-line-strong);
  background-color: rgba(243, 231, 211, 0.05);
  color: var(--hb-paper);
}
.hb-btn--ghost:hover {
  border-color: rgba(53, 242, 198, 0.5);
  color: var(--hb-cyan);
  transform: translateY(-1px);
}

.hb-crumbs {
  font-family: var(--hb-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--hb-fog);
}
.hb-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hb-crumbs li {
  display: inline-flex;
  align-items: center;
}
.hb-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(243, 231, 211, 0.28);
}
.hb-crumbs a {
  color: var(--hb-paper-dim);
  text-decoration: none;
  border-radius: 6px;
}
.hb-crumbs a:hover { color: var(--hb-lava-warm); }
.hb-crumbs [aria-current="page"] { color: var(--hb-cyan); }

.hb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
@media (min-width: 900px) {
  .hb-grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.hb-card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background-color: rgba(26, 20, 16, 0.72);
}
.hb-card--paper {
  background-color: var(--hb-paper);
  border-color: rgba(42, 29, 20, 0.14);
  color: #2A1D14;
}
.hb-card--paper .hb-title,
.hb-card--paper .hb-lede { color: #2A1D14; }
.hb-card--data {
  border-color: rgba(53, 242, 198, 0.24);
  background-image: linear-gradient(165deg, rgba(15, 59, 54, 0.78), rgba(11, 13, 14, 0.88));
}

.hb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--hb-line-strong);
  border-radius: var(--hb-pill);
  background-color: rgba(243, 231, 211, 0.06);
  color: var(--hb-paper-dim);
  font-family: var(--hb-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}
.hb-tag--cyan {
  border-color: rgba(53, 242, 198, 0.42);
  background-color: rgba(53, 242, 198, 0.1);
  color: var(--hb-cyan);
}
.hb-tag--lava {
  border-color: rgba(255, 90, 31, 0.44);
  background-color: rgba(255, 90, 31, 0.13);
  color: var(--hb-lava-warm);
}
.hb-tag--amber {
  border-color: rgba(255, 200, 87, 0.42);
  background-color: rgba(255, 200, 87, 0.11);
  color: var(--hb-amber);
}

/* 图片容器基础规则：页面阶段放置图片占位使用 */
.hb-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background-image:
    radial-gradient(340px 200px at 78% 6%, rgba(255, 138, 61, 0.42), transparent 68%),
    linear-gradient(150deg, #241A14, #0B0D0E 58%, #0F3B36);
}
.hb-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg, transparent 42%, rgba(11, 13, 14, 0.56));
}
.hb-media img,
.hb-media picture,
.hb-media svg,
.hb-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hb-media--wide { aspect-ratio: 16 / 9; }
.hb-media--tall { aspect-ratio: 4 / 5; }
.hb-media--square { aspect-ratio: 1 / 1; }
.hb-media--panel { aspect-ratio: 21 / 9; }

/* 6. 动效与可访问性 ----------------------------------------------------- */
.hb-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.hb-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--hb-cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

@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;
  }
  .hb-js [data-reveal],
  .hb-js [data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
  .hb-progress::before { transition: none !important; }
}
