/* ==========================================================================
   华体育 HTH · 共享外壳样式 /assets/site.css
   深夜战术室 × 印刷索引：墨蓝底、等宽数字、对角切角、纸灰细线
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, dt,
fieldset, legend, hr {
  margin: 0;
  padding: 0;
}

ul, ol { margin: 0; padding: 0; }

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

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

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --c-ink:        #0B1B2B;  /* 夜场墨蓝 · 页面主背景 */
  --c-ink-2:      #142A3E;  /* 战术室深蓝 · 卡片 / 分区底 */
  --c-paper:      #F2F6FA;  /* 冷白 · 反相阅读区 */
  --c-lime:       #3DF58A;  /* 荧光绿 · 比分 / 领先 / 实时脉冲 */
  --c-orange:     #FF5B2E;  /* 橙红 · 主行动 / 时效提醒 */
  --c-cyan:       #39C6E6;  /* 电光青 · 链接 / 次级状态 */
  --c-line:       #C3D0DB;  /* 纸灰 · 分隔线 / 描边 */
  --c-sand:       #EFE3CD;  /* 暖沙纸 · 标签叠层材质 */
  --c-deep:       #07111C;  /* 深墨底 · 命令栏 / 页脚 */
  --c-warn:       #FFC53D;  /* 警示黄 · 待确认 / 数据延迟 */

  /* 半透明派生 */
  --line-08: rgba(195, 208, 219, 0.08);
  --line-14: rgba(195, 208, 219, 0.14);
  --line-20: rgba(195, 208, 219, 0.20);
  --line-34: rgba(195, 208, 219, 0.34);
  --paper-52: rgba(242, 246, 250, 0.52);
  --paper-72: rgba(242, 246, 250, 0.72);
  --ink-12: rgba(11, 27, 43, 0.12);
  --ink-58: rgba(11, 27, 43, 0.58);

  /* 字体 */
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
             system-ui, -apple-system, "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-narrow: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular",
               Menlo, Consolas, "Liberation Mono", monospace;

  /* 骨架尺寸 */
  --h-header: 64px;
  --h-strip: 34px;
  --w-max: 1240px;
  --pad-x: 20px;

  /* 节奏 */
  --r-sm: 2px;
  --r-md: 3px;
  --ease: cubic-bezier(0.32, 0.72, 0.28, 1);
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  background: var(--c-ink);
  color: var(--c-paper);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-narrow);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-stretch: condensed;
}

h1 { font-size: 44px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

p { line-height: 1.75; }

::selection {
  background: var(--c-lime);
  color: var(--c-deep);
}

:focus-visible {
  outline: 2px solid var(--c-lime);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* 固定命令栏为每个页面预留顶部空间；页面可用 #main-content{padding-top:0} 自行抵消 */
#main-content {
  padding-top: calc(var(--h-header) + var(--h-strip));
  scroll-margin-top: calc(var(--h-header) + 12px);
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -140px;
  z-index: 300;
  display: inline-block;
  padding: 10px 16px;
  background: var(--c-lime);
  color: var(--c-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: top 0.16s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 5. 命令栏头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-deep);
  border-bottom: 1px solid var(--line-20);
  transition: box-shadow 0.24s var(--ease);
}

.site-header[data-scrolled] {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.cmdbar {
  border-bottom: 1px solid var(--line-08);
}

.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: var(--h-header);
}

/* 品牌索引 */
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-paper);
  min-width: 0;
}

.brand__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--c-lime);
  background: var(--c-ink-2);
  border: 1px solid var(--line-34);
  border-radius: var(--r-sm);
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-narrow);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand__note {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--paper-52);
  white-space: nowrap;
}

/* 滚动后浮出的当前栏目名 */
.cmdbar__now {
  display: none;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
  white-space: nowrap;
}

.cmdbar__now::before {
  content: "/ ";
  color: var(--line-34);
}

.site-header[data-scrolled] .cmdbar__now { display: inline-block; }
.site-header[data-scrolled] .cmdbar__now:empty { display: none; }

/* 中部栏目索引 */
.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-72);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.nav__link:hover { color: var(--c-paper); }

.nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--line-34);
  transition: color 0.16s var(--ease);
}

.nav__link:hover .nav__index { color: var(--c-cyan); }

.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--c-lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.nav__link[aria-current="page"] {
  color: var(--c-paper);
  font-weight: 700;
}

.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] .nav__index { color: var(--c-lime); }

.nav__text { display: inline-block; }

/* 右侧行动区 */
.cmdbar__acts {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--c-paper);
  background: var(--c-ink-2);
  border: 1px solid var(--line-34);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background 0.16s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label { display: inline-block; }

/* 状态带 */
.status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 6px var(--pad-x) 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--paper-52);
  max-height: 48px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.24s var(--ease), opacity 0.16s var(--ease),
              padding 0.24s var(--ease);
}

.site-header[data-scrolled] .status-strip {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.status-strip__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 0 0 rgba(61, 245, 138, 0.55);
  animation: hth-pulse 2s infinite;
}

@keyframes hth-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 245, 138, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(61, 245, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 245, 138, 0); }
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-narrow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
              border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-orange);
  color: var(--c-deep);
  border-color: var(--c-orange);
}

.btn--primary:hover {
  background: #FF7148;
  border-color: #FF7148;
}

.btn--ghost {
  background: transparent;
  color: var(--c-paper);
  border-color: var(--line-34);
}

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

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

/* ---------- 7. 布局容器与骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.shell--narrow {
  max-width: 860px;
}

.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section--tight {
  padding-top: 32px;
  padding-bottom: 32px;
}

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

.cols-7-5 {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
}

/* ---------- 8. 文字元素 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.lede {
  font-size: 20px;
  line-height: 1.65;
  color: var(--paper-72);
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
}

.prose p + p { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; margin-bottom: 0.5em; font-size: 28px; }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.4em; font-size: 20px; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--c-cyan); text-decoration: underline; text-underline-offset: 3px; }

.section--paper .prose { color: var(--c-ink); }
.section--paper .lede { color: var(--ink-58); }

.rule {
  height: 1px;
  width: 100%;
  background: var(--line-14);
  border: 0;
}

.rule--accent {
  background: linear-gradient(90deg, var(--c-lime) 0%, var(--c-cyan) 34%, var(--line-14) 100%);
}

/* ---------- 9. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.tag--live { color: var(--c-lime); background: rgba(61, 245, 138, 0.08); }
.tag--soon { color: var(--c-warn); background: rgba(255, 197, 61, 0.08); }
.tag--done { color: var(--c-line); background: rgba(195, 208, 219, 0.06); }
.tag--snap { color: var(--c-cyan); background: rgba(57, 198, 230, 0.08); }

/* ---------- 10. 卡片 ---------- */
.card {
  position: relative;
  padding: 20px;
  background: var(--c-ink-2);
  border: 1px solid var(--line-14);
  border-radius: var(--r-sm);
}

.card--paper {
  background: var(--c-paper);
  color: var(--c-ink);
  border-color: var(--ink-12);
}

/* ---------- 11. 媒体容器（页面阶段放图用） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-ink-2);
  border: 1px solid var(--line-14);
  border-radius: var(--r-sm);
}

.media::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.media--16x9::before { padding-top: 56.25%; }
.media--4x3::before  { padding-top: 75%; }
.media--1x1::before  { padding-top: 100%; }
.media--3x4::before  { padding-top: 133.333%; }

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

.media__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line-34);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.media__inner img,
.media__inner svg,
.media__inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  border-radius: 0 var(--r-sm) 0 0;
}

/* ---------- 12. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper-52);
}

.crumbs a {
  color: var(--c-cyan);
  text-decoration: none;
}

.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.crumbs__sep { color: var(--line-34); }

/* ---------- 13. 滚动进度轨（由 JS 注入） ---------- */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}

.scroll-rail__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--c-cyan) 0%, var(--c-lime) 100%);
}

/* ---------- 14. 入场显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

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

/* ---------- 15. 页脚 ---------- */
.site-footer {
  background: var(--c-deep);
  border-top: 1px solid var(--line-20);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: 48px 56px;
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 64px var(--pad-x) 40px;
}

.footer__brand { min-width: 0; }

.footer__brand-name {
  margin-top: 14px;
  font-family: var(--font-narrow);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-paper);
}

.footer__tagline {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-52);
}

.footer__contact {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-14);
  list-style: none;
}

.footer__contact-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.6;
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--line-34);
}

.footer__contact-value {
  color: var(--paper-72);
  word-break: break-word;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  min-width: 0;
}

.footer__col { min-width: 0; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lime);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-14);
}

.footer__list {
  list-style: none;
  margin-top: 14px;
}

.footer__list li + li { margin-top: 8px; }

.footer__link {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper-72);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer__link:hover {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 18px var(--pad-x) 28px;
  border-top: 1px solid var(--line-14);
  font-size: 12px;
  line-height: 1.6;
  color: var(--paper-52);
}

.footer__legal-line { min-width: 0; }

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--line-34);
  white-space: nowrap;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1180px) {
  .brand__note { display: none; }
  .nav__index { display: none; }
}

@media (max-width: 1024px) {
  .cols-7-5 {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --h-header: 56px;
    --pad-x: 16px;
  }

  #main-content {
    padding-top: calc(var(--h-header) + var(--h-strip) + 4px);
  }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }

  .cmdbar__inner { gap: 12px; }

  .brand__mark { font-size: 11px; padding: 3px 6px; }
  .brand__name { font-size: 15px; }

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex: none;
    background: var(--c-deep);
    border-bottom: 1px solid var(--line-20);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - var(--h-header) - var(--h-strip));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header[data-open] .nav { display: block; }

  .nav__list {
    display: block;
    padding: 6px var(--pad-x) 16px;
  }

  .nav__item { display: block; }

  .nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-08);
  }

  .nav__index {
    display: inline-block;
    font-size: 11px;
    color: var(--line-34);
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] { color: var(--c-lime); }
  .nav__link[aria-current="page"] .nav__index { color: var(--c-lime); }

  .cmdbar__now { display: none !important; }

  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

@media (max-width: 620px) {
  body { font-size: 15px; line-height: 1.72; }

  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  h3 { font-size: 18px; }

  .lede { font-size: 17px; }

  .section { padding-top: 40px; padding-bottom: 40px; }

  .btn--sm { padding: 7px 10px; font-size: 12px; }

  .cmdbar__acts .btn--primary { display: none; }

  .footer__contact-row { grid-template-columns: 72px minmax(0, 1fr); }

  .footer__legal { flex-direction: column; align-items: flex-start; }
}

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

/* ---------- 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;
  }

  .pulse { animation: none; box-shadow: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scroll-rail { display: none; }
}
