/* ==========================================================================
   火博体育 · 共享外壳样式 /assets/site.css
   炭黑底 + 火焰橙强调的赛事数据阅读站
   ========================================================================== */

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

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

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

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

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

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

a {
  color: inherit;
}

/* ---------- 变量 ---------- */
:root {
  --ink: #0B0C0E;
  --panel: #14171C;
  --panel-lift: #191D24;
  --line: #232830;
  --orange: #FF6A1A;
  --orange-soft: #FF9A5C;
  --red: #E23A2E;
  --blue: #2367E8;
  --fog: #F5F1E8;
  --fog-soft: #D9D4CA;
  --stone: #A6ADB8;

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-pill: 999px;
  --r-card: 22px;
  --r-card-sm: 16px;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --glass: rgba(20, 23, 28, .82);
}

@media (max-width: 1079px) {
  :root { --header-h: 76px; }
}

/* ---------- 基础中文排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--header-h);
  background:
    radial-gradient(110% 55% at 88% -8%, rgba(255, 106, 26, .10), transparent 62%),
    radial-gradient(80% 46% at -6% 4%, rgba(35, 103, 232, .09), transparent 58%),
    var(--ink);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--fog);
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

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

#main-content {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---------- 容器与通用布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 30px);
}

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

.grid--12 > * { min-width: 0; }

.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-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }
.col-offset-1 { grid-column-start: 2; }

@media (max-width: 1024px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4 { grid-column: span 3; }
  .col-5, .col-6 { grid-column: span 6; }
  .col-7, .col-8, .col-9, .col-12 { grid-column: span 6; }
  .col-offset-1 { grid-column-start: auto; }
}

@media (max-width: 640px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-12 { grid-column: 1 / -1; }
}

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

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(28px, 4vw, 54px);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -220%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ---------- 页头 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding-block: 14px;
  transition: padding-block .2s var(--ease);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 12, 14, .96) 12%, rgba(11, 12, 14, 0) 100%);
  opacity: 0;
  transition: opacity .2s var(--ease);
}

.topbar[data-scrolled="true"] {
  padding-block: 8px;
}

.topbar[data-scrolled="true"]::before {
  opacity: 1;
}

.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}

/* 阅读进度线 */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(35, 40, 48, .7);
  pointer-events: none;
  z-index: 95;
}

.scroll-meter__fill {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  transition: transform .12s linear;
}

/* 品牌浮岛 */
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 7px 18px 7px 7px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--fog);
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(245, 241, 232, .05);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.brandmark:hover,
.brandmark:focus-visible {
  border-color: rgba(255, 106, 26, .55);
}

.brandmark__chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--orange) 10%, var(--red) 100%);
  color: #0B0C0E;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
}

.brandmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  gap: 1px;
}

.brandmark__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .05em;
}

.brandmark__note {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--stone);
}

/* 导航胶囊 */
.dock {
  position: static;
  margin-inline: auto;
  padding: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(245, 241, 232, .05);
}

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

.dock__item {
  display: flex;
}

.dock__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: var(--stone);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.dock__link:hover {
  color: var(--fog);
  background: var(--line);
}

.dock__link[aria-current="page"] {
  color: var(--ink);
  background: var(--orange);
  font-weight: 700;
}

.dock__link[aria-current="page"]:hover {
  background: var(--orange-soft);
  color: var(--ink);
}

/* 右侧入口 */
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.btn--solid {
  background: var(--orange);
  color: var(--ink);
}

.btn--solid:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(20, 23, 28, .6);
  border-color: var(--line);
  color: var(--fog);
}

.btn--ghost:hover {
  border-color: rgba(255, 106, 26, .6);
  color: var(--orange-soft);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--fog);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(255, 106, 26, .6);
  color: var(--orange-soft);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}

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

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

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

/* ---------- 头部响应式 ---------- */
@media (max-width: 1079px) {
  .topbar__actions .btn {
    display: none;
  }

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

  .dock {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    margin-inline: 0;
    padding: 10px;
    border-radius: 24px;
    background: rgba(16, 19, 24, .97);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(245, 241, 232, .06);
    display: none;
  }

  .dock[data-open="true"] {
    display: block;
  }

  .dock__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .dock__link {
    padding: 13px 16px;
    border-radius: var(--r-card-sm);
    font-size: 15px;
    background: rgba(35, 40, 48, .45);
  }

  .dock__link[aria-current="page"] {
    background: var(--orange);
  }
}

@media (max-width: 520px) {
  .brandmark {
    padding: 6px 14px 6px 6px;
  }

  .brandmark__note {
    display: none;
  }

  .brandmark__chip {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .nav-toggle {
    padding: 8px 13px;
  }

  .nav-toggle__label {
    display: none;
  }
}

/* ---------- 页脚 ---------- */
.sitefoot {
  position: relative;
  margin-top: clamp(64px, 9vw, 130px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #101318 0%, #0B0C0E 78%);
}

.sitefoot__ruler {
  height: 11px;
  border-bottom: 1px solid rgba(35, 40, 48, .8);
  background-image: repeating-linear-gradient(
    90deg,
    var(--line) 0 1px,
    transparent 1px 24px
  );
  opacity: .9;
}

.sitefoot__body {
  padding-block: clamp(38px, 6vw, 72px) 0;
}

.sitefoot__mast {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.sitefoot__brand {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.38;
  letter-spacing: -.01em;
  color: var(--fog);
}

.sitefoot__desc {
  max-width: 58ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--stone);
}

.sitefoot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.55fr);
  gap: clamp(24px, 3.4vw, 52px);
  margin-top: clamp(28px, 4.4vw, 52px);
  padding-top: clamp(26px, 3.6vw, 42px);
  border-top: 1px solid var(--line);
}

.sitefoot__col {
  min-width: 0;
}

.sitefoot__coltitle {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--orange);
  text-transform: uppercase;
}

.sitefoot__list {
  display: grid;
  gap: 9px;
}

.sitefoot__link {
  display: inline-block;
  color: var(--stone);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.sitefoot__link:hover,
.sitefoot__link:focus-visible {
  color: var(--fog);
  border-bottom-color: var(--orange);
}

.sitefoot__value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--fog-soft);
  word-break: break-word;
}

.sitefoot__value--muted {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--stone);
}

.sitefoot__note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--stone);
}

.sitefoot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(30px, 4.6vw, 56px);
  padding-block: 22px 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--stone);
}

.sitefoot__legal {
  white-space: nowrap;
}

.sitefoot__mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
}

.sitefoot__mini a {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 173, 184, .3);
  padding-bottom: 1px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.sitefoot__mini a:hover,
.sitefoot__mini a:focus-visible {
  color: var(--orange-soft);
  border-bottom-color: var(--orange-soft);
}

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

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

  .sitefoot__mini {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .sitefoot__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sitefoot__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ---------- 通用文字与标签组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(35, 40, 48, .5);
  color: var(--stone);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
}

.tag--hot {
  color: var(--orange-soft);
  border-color: rgba(255, 106, 26, .45);
  background: rgba(255, 106, 26, .1);
}

.tag--alert {
  color: #FF7A6E;
  border-color: rgba(226, 58, 46, .5);
  background: rgba(226, 58, 46, .12);
}

.tag--info {
  color: #7BA6F5;
  border-color: rgba(35, 103, 232, .5);
  background: rgba(35, 103, 232, .14);
}

.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--fog);
  font-variant-numeric: tabular-nums;
}

/* ---------- 面包屑 ---------- */
.crumbs {
  padding-block: 4px 0;
  font-size: 13px;
  color: var(--stone);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.crumbs__list > li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.crumbs__link {
  color: var(--stone);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.crumbs__link:hover,
.crumbs__link:focus-visible {
  color: var(--orange-soft);
}

.crumbs__current {
  color: var(--fog);
}

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--fog-soft);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--fog);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--fog);
}

.prose a {
  color: var(--orange-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 154, 92, .45);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.prose a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.prose strong {
  color: var(--fog);
  font-weight: 700;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: .4em;
}

.prose blockquote {
  padding-left: 18px;
  border-left: 2px solid var(--orange);
  color: var(--stone);
}

@media (max-width: 640px) {
  .prose {
    font-size: 15px;
    line-height: 1.78;
  }
}

/* ---------- 深炭面板 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 32px);
}

/* ---------- 图片容器基础规则（供页面阶段放置占位图） ---------- */
.frame-img {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 106, 26, .20), transparent 62%),
    radial-gradient(95% 95% at 100% 100%, rgba(35, 103, 232, .18), transparent 62%),
    linear-gradient(160deg, #171B21 0%, #101318 100%);
}

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

.frame-img::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, rgba(255, 106, 26, .1) 60%, transparent 100%);
  pointer-events: none;
}

.frame-img--wide { aspect-ratio: 21 / 9; }
.frame-img--square { aspect-ratio: 1 / 1; }
.frame-img--tall { aspect-ratio: 3 / 4; }
.frame-img--inset { border-radius: var(--r-card-sm); }

@media (max-width: 640px) {
  .frame-img--wide { aspect-ratio: 16 / 9; }
  .frame-img--tall { aspect-ratio: 4 / 5; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
