/* ==========================================================================
   火博体育 · 官方简体中文站  /assets/site.css
   共享外壳：reset / 设计令牌 / 命令栏头部 / 长卷页脚 / 通用组件
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #0A0A0A;
  --graphite: #161616;
  --steel: #2C2C2C;
  --lava: #FF5E1A;
  --ember: #FF8A4C;
  --paper: #F5F3EF;
  --ink-text: #101010;
  --electric: #1E90FF;
  --amber: #FFB300;
  --fog: #A8A8A8;
  --fog-dim: #7C7C7C;

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

  --rail: 5vw;
  --bar: 56px;
  --hairline: 1px solid var(--steel);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(44, 44, 44, .45) 0,
    rgba(44, 44, 44, .45) 1px,
    transparent 1px,
    transparent 80px
  );
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol { list-style: none; }

address { font-style: normal; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table { border-collapse: collapse; }

:focus-visible {
  outline: 2px solid var(--lava);
  outline-offset: 2px;
}

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.num,
.status-val,
.legal-copy,
.legal-icp {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lava);
}

/* ---------- 4. 容器与章节 ---------- */
.wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--rail);
}

.section {
  padding-block: clamp(56px, 8vw, 120px);
  padding-inline: var(--rail);
}

.section--graphite { background-color: var(--graphite); }

.section--paper {
  background-color: var(--paper);
  color: var(--ink-text);
}

.section--paper .eyebrow { color: #C1400E; }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: var(--rail);
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--lava);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  border-radius: 1px;
  transition: top .18s var(--ease);
}

.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* ---------- 6. 头部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(10, 10, 10, .95);
  border-bottom: 1px solid var(--steel);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background-color: rgba(10, 10, 10, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.header-rail {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 2vw, 36px);
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: var(--rail);
  min-height: var(--bar);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding-block: 9px;
}

.brand-rule {
  display: block;
  width: 8px;
  align-self: stretch;
  min-height: 26px;
  background-color: var(--lava);
  border-radius: 1px;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .18em;
  color: var(--fog);
}

.brand:focus-visible { outline-offset: 4px; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  align-self: center;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--steel);
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--paper);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--lava);
  color: var(--lava);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
}

.nav-toggle-bars i {
  display: block;
  width: 16px;
  height: 2px;
  background-color: var(--lava);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 导航 */
.cmd-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  flex: 1 1 auto;
  min-width: 0;
}

.cmd-list {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.cmd-item {
  display: flex;
  min-width: 0;
}

.cmd-item + .cmd-item {
  box-shadow: inset 1px 0 0 var(--steel);
}

.cmd-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding-inline: clamp(8px, 1vw, 15px);
  color: var(--paper);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.cmd-idx {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .16em;
  color: var(--fog-dim);
  transition: color .18s var(--ease);
}

.cmd-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .03em;
  white-space: nowrap;
}

.cmd-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: transparent;
  transition: background-color .18s var(--ease);
}

.cmd-link:hover {
  background-color: rgba(255, 94, 26, .1);
}

.cmd-link:hover .cmd-idx { color: var(--ember); }
.cmd-link:hover::after { background-color: rgba(255, 94, 26, .45); }

.cmd-link[aria-current="page"] {
  color: var(--lava);
}

.cmd-link[aria-current="page"] .cmd-idx { color: var(--lava); }

.cmd-link[aria-current="page"]::after {
  background-color: var(--lava);
}

.cmd-link:focus-visible {
  outline: 2px solid var(--lava);
  outline-offset: -2px;
}

/* 状态位与 CTA */
.cmd-meta {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  flex: 0 0 auto;
}

.status-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.status-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--fog);
}

.status-val {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--paper);
}

.status-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fog-dim);
}

.pulse {
  display: block;
  width: 6px;
  height: 6px;
  align-self: center;
  background-color: var(--electric);
  border-radius: 1px;
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(30, 144, 255, .6); }
  70%  { box-shadow: 0 0 0 7px rgba(30, 144, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 144, 255, 0); }
}

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 1px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
  text-align: center;
  transition: background-color .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease);
}

.btn-lava {
  background-color: var(--lava);
  color: var(--ink);
  padding-right: 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.btn-lava:hover { background-color: var(--ember); }

.btn-ghost {
  border-color: var(--steel);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--lava);
  color: var(--lava);
}

.btn-paper {
  background-color: var(--paper);
  color: var(--ink-text);
}

.btn-paper:hover { background-color: #FFFFFF; }

.btn:focus-visible {
  outline: 2px solid var(--lava);
  outline-offset: 3px;
}

.section--paper .btn:focus-visible {
  outline-color: var(--ink-text);
}

.cmd-cta { flex: 0 0 auto; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--ink);
  border-top: 1px solid var(--steel);
  padding-block: clamp(44px, 6vw, 84px) 26px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(80px, 18vw, 240px);
  height: 2px;
  background-color: var(--lava);
}

.footer-main {
  display: grid;
  grid-template-columns:
    minmax(210px, 1.5fr)
    minmax(110px, .72fr)
    minmax(110px, .72fr)
    minmax(120px, .8fr)
    minmax(210px, 1.15fr);
  gap: clamp(28px, 3.4vw, 60px) clamp(18px, 2.4vw, 44px);
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--rail);
}

.footer-brand { min-width: 0; }

.footer-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: .03em;
  color: var(--paper);
}

.footer-wordmark .brand-rule {
  width: 6px;
  min-height: 20px;
  align-self: center;
  height: 20px;
}

.footer-tagline {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--lava);
}

.footer-stamp {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .08em;
  color: var(--fog-dim);
}

.footer-col { min-width: 0; }

.footer-head {
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fog);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  text-underline-offset: 4px;
  transition: color .18s var(--ease);
}

.footer-list a:hover {
  color: var(--lava);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.footer-list a:focus-visible { outline-offset: 3px; }

.contact-list {
  display: grid;
  gap: 11px;
}

.contact-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.6;
  color: var(--fog-dim);
}

.contact-val {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-word;
}

.contact-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--fog-dim);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: 1680px;
  margin: clamp(34px, 4.6vw, 62px) auto 0;
  padding: 18px var(--rail) 0;
  border-top: 1px solid var(--steel);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .08em;
  color: var(--fog-dim);
}

.legal-copy { color: var(--fog-dim); }

.legal-icp { color: var(--fog-dim); }

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog-dim);
}

.crumbs a { color: var(--fog); }
.crumbs a:hover { color: var(--lava); }

.crumbs-sep {
  color: var(--steel);
  user-select: none;
}

.crumbs [aria-current="page"] { color: var(--lava); }

.section--paper .crumbs { color: #7A7A7A; }
.section--paper .crumbs a { color: #4A4A4A; }
.section--paper .crumbs-sep { color: #C9C4BC; }

/* ---------- 10. 格栅与面板 ---------- */
.grid {
  display: grid;
  gap: 1px;
  background-color: var(--steel);
  border: 1px solid var(--steel);
}

.grid > * {
  background-color: var(--ink);
  padding: clamp(16px, 2vw, 26px);
  min-width: 0;
}

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

.section--graphite .grid { background-color: var(--steel); }
.section--graphite .grid > * { background-color: var(--graphite); }

.section--paper .grid { background-color: #D6D1C8; border-color: #D6D1C8; }
.section--paper .grid > * { background-color: var(--paper); }

.panel {
  border: 1px solid var(--steel);
  border-radius: 1px;
  background-color: var(--graphite);
  padding: clamp(16px, 2vw, 28px);
}

.section--paper .panel {
  background-color: #FFFFFF;
  border-color: #D6D1C8;
}

.spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  font-size: 14px;
  line-height: 1.7;
}

.spec dt {
  color: var(--fog);
  min-width: 0;
}

.spec dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--paper);
}

.section--paper .spec dt { color: #6E6E6E; }
.section--paper .spec dd { color: var(--ink-text); }

.num {
  font-size: inherit;
  letter-spacing: .01em;
  color: var(--amber);
}

/* ---------- 11. 图片容器（页面阶段放置素材） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: 1px;
  background-color: var(--graphite);
}

.media-frame > img,
.media-ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-ph {
  min-height: 120px;
  background-color: var(--graphite);
  background-image:
    repeating-linear-gradient(45deg, rgba(44, 44, 44, .9) 0 1px, transparent 1px 12px);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(245, 243, 239, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 243, 239, .07) 1px, transparent 1px);
  background-size: 48px 48px;
}

.media-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  padding: 8px 14px;
  background-color: rgba(10, 10, 10, .82);
  border-top: 1px solid var(--steel);
  border-right: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--fog);
}

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

.media-slant {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

/* ---------- 12. 滚动进度尺（由 JS 注入） ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 150;
  pointer-events: none;
  background-color: transparent;
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--lava), var(--amber));
}

/* ---------- 13. 显现动效协议 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

html.js [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 平板 ---------- */
@media (max-width: 1180px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 24px;
  }
  .contact-note { max-width: 60ch; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .cmd-meta .status-item:nth-of-type(2) { display: none; }
  .cmd-text { font-size: 12.5px; }
}

/* ---------- 15. 移动导航 ---------- */
@media (max-width: 960px) {
  :root { --bar: 54px; }

  .header-rail {
    align-items: center;
    justify-content: space-between;
    min-height: var(--bar);
  }

  .nav-toggle { display: inline-flex; }

  .cmd-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--bar));
    overflow-y: auto;
    padding: 0 var(--rail) 20px;
    background-color: var(--ink);
    border-bottom: 1px solid var(--steel);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  }

  .cmd-nav[data-open="true"] { display: flex; }

  .cmd-list {
    flex-direction: column;
    border-top: 1px solid var(--steel);
  }

  .cmd-item {
    border-bottom: 1px solid var(--steel);
    box-shadow: none;
  }

  .cmd-item + .cmd-item { box-shadow: none; }

  .cmd-link {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 14px 0;
  }

  .cmd-idx { font-size: 11px; }

  .cmd-text {
    font-size: 16px;
    white-space: normal;
  }

  .cmd-link::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .cmd-link:hover { background-color: rgba(255, 94, 26, .08); }

  .cmd-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 20px;
  }

  .cmd-meta .status-item {
    display: flex;
    justify-content: space-between;
  }

  .cmd-meta .status-item:nth-of-type(2) { display: flex; }

  .cmd-cta { width: 100%; }

  .brand-name { font-size: 18px; }
}

/* ---------- 16. 手机 ---------- */
@media (max-width: 760px) {
  :root { --rail: 20px; }

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

  .footer-contact { grid-column: 1 / -1; }

  .contact-list { grid-template-columns: 1fr; }

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

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 460px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
  .brand-sub { letter-spacing: .12em; }
  .brand-name { font-size: 17px; }
  .footer-wordmark { font-size: 19px; }
}

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

  .pulse {
    animation: none;
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .35);
  }

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