/* ============================================================
   华体会体育入口 · 共享样式表 /assets/site.css
   深夜赛场转播屏 × 战术手册
   ============================================================ */

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

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

html,
body,
h1, h2, h3, h4, h5,
p, ul, ol, li, figure, figcaption,
blockquote, dl, dt, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink:       #0B2B26;
  --night:     #0A1A2F;
  --charcoal:  #12171A;
  --indigo:    #2A2350;
  --wine:      #6B1E2E;
  --cyan:      #48F0D0;
  --orange:    #FF8A3D;
  --cream:     #F2F4EF;
  --sage:      #7E9A92;
  --silver:    #C9D6D2;

  --line:      rgba(201, 214, 210, 0.16);
  --line-soft: rgba(201, 214, 210, 0.08);

  --text:      var(--cream);
  --text-dim:  var(--sage);

  --font-display: "Archivo Narrow", "Barlow Condensed", "Oswald", "PingFang SC",
                  "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body:    "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei",
                  system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo,
                  Consolas, "Courier New", monospace;

  --shell: min(1440px, 100% - 48px);
  --ease:  cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-transform: uppercase;
}

h1 { font-size: clamp(34px, 5.2vw, 72px); }
h2 { font-size: clamp(24px, 3.2vw, 42px); }
h3 { font-size: clamp(19px, 2.1vw, 26px); }
h4 { font-size: 17px; letter-spacing: 0.01em; }

strong { color: var(--cream); font-weight: 700; }

::selection { background: var(--cyan); color: #04241f; }

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

/* ---------- 4. 布局容器 ---------- */
.wrap,
.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(56px, 8vw, 112px) 0;
}

.prose {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--silver);
}

.prose p + p { margin-top: 1.1em; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

.split-62-38 {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04241f;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 3px 14px 3px 14px;
  transition: transform 220ms var(--ease),
              background-color 220ms var(--ease),
              color 220ms var(--ease),
              border-color 220ms var(--ease),
              box-shadow 220ms var(--ease);
}

.btn-cta {
  background: var(--orange);
  color: #2a1000;
  box-shadow: 0 8px 22px -12px rgba(255, 138, 61, 0.95);
}
.btn-cta:hover {
  background: #ffa063;
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--silver);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

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

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 26, 47, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-top { position: relative; }

.header-top-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 6px 0;
  transition: min-height 240ms var(--ease), padding 240ms var(--ease);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  gap: 3px;
  width: 22px;
  flex: 0 0 22px;
}
.brand-mark span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--cyan);
}
.brand-mark span:nth-child(1) { width: 100%; }
.brand-mark span:nth-child(2) { width: 62%; background: var(--orange); }
.brand-mark span:nth-child(3) { width: 84%; }

.brand-words { display: flex; flex-direction: column; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--cream);
}

.brand-edition {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  transition: opacity 200ms var(--ease);
}

/* 主导航 */
.site-nav { margin-left: auto; }

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

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  font-size: 13.5px;
  color: var(--silver);
  border-radius: 3px;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--ease);
}

.nav-list a:hover { color: var(--cream); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] { color: var(--cyan); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--sage);
  transition: color 200ms var(--ease);
}
.nav-list a[aria-current="page"] .nav-idx { color: var(--orange); }

.nav-label { white-space: nowrap; }

/* 右侧工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 18px;
  flex: 0 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--sage);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(72, 240, 208, 0.16);
}

/* 状态带 */
.header-status {
  background: rgba(11, 43, 38, 0.55);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
  transition: max-height 240ms var(--ease), opacity 200ms var(--ease);
  max-height: 40px;
}

.status-line {
  padding: 5px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--sage);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 收拢态 */
.site-header.is-condensed .header-status {
  max-height: 0;
  opacity: 0;
  border-top-color: transparent;
}
.site-header.is-condensed .header-top-inner {
  min-height: 44px;
  padding: 2px 0;
}
.site-header.is-condensed .brand-edition { opacity: 0; }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width 90ms linear;
  pointer-events: none;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 11px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle-lines { display: grid; gap: 3px; width: 16px; }
.nav-toggle-lines span {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 220ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav-toggle-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(48px, 7vw, 88px);
  background: var(--night);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--wine), var(--orange), var(--cyan));
  opacity: 0.75;
}

.footer-wrap { display: block; }

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 60px);
}

.footer-brand-block { max-width: 38ch; }

.footer-brand {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--cream);
}
.footer-brand:hover { color: var(--cyan); }

.footer-edition {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-lead {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--silver);
}

.footer-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--sage);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.footer-list li + li { margin-top: 9px; }

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--silver);
  transition: color 180ms var(--ease), padding-left 180ms var(--ease);
}
.footer-list a:hover { color: var(--cyan); padding-left: 6px; }

.footer-contact-list li {
  margin-bottom: 13px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--silver);
  word-break: break-word;
}

.footer-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-email-note {
  padding: 16px 0 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--sage);
  max-width: 96ch;
}

.footer-base {
  border-top: 1px solid var(--line);
  background: rgba(11, 43, 38, 0.4);
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 22px;
}

.footer-copy,
.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sage);
}

.footer-legal { color: var(--silver); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sage);
}

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

.breadcrumb li { display: flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "▸";
  font-size: 9px;
  color: var(--cyan);
  opacity: 0.6;
}

.breadcrumb a { color: var(--silver); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cream); }

/* ---------- 10. 面板 / 标签 ---------- */
.panel {
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 4px 20px 4px 20px;
}
.panel--night  { background: var(--night); }
.panel--indigo { background: var(--indigo); }
.panel--wine   { background: var(--wine); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tag--cyan {
  color: var(--cyan);
  border-color: rgba(72, 240, 208, 0.4);
  background: rgba(72, 240, 208, 0.07);
}
.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 138, 61, 0.4);
  background: rgba(255, 138, 61, 0.08);
}
.tag--wine {
  color: #f0a3b3;
  border-color: rgba(107, 30, 46, 0.8);
  background: rgba(107, 30, 46, 0.28);
}

/* ---------- 11. 数据行 / 时间轴 ---------- */
.data-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.data-line::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 1px;
  align-self: center;
  background: var(--cyan);
}

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.timeline-node {
  position: relative;
  padding-bottom: 26px;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--cyan);
}

/* ---------- 12. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 4px 22px 4px 22px;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.media:hover img { transform: scale(1.03); }

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

.media-placeholder {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(140deg, rgba(42, 35, 80, 0.7), rgba(18, 23, 26, 0.95) 62%),
    repeating-linear-gradient(45deg, rgba(201, 214, 210, 0.055) 0 1px, transparent 1px 13px);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--sage);
}

/* ---------- 13. 章节索引轨道 ---------- */
.toc-rail a {
  display: block;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sage);
  transition: color 180ms var(--ease);
}
.toc-rail a:hover { color: var(--silver); }
.toc-rail a.is-active { color: var(--cyan); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col-contact { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .status-pill { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 10px 0 16px;
    background: var(--night);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px -28px rgba(0, 0, 0, 0.9);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    justify-content: flex-start;
    padding: 13px 22px;
    font-size: 15px;
    border-radius: 0;
    border-left: 2px solid transparent;
  }

  .nav-list a::after { display: none; }

  .nav-list a:hover { background: rgba(72, 240, 208, 0.06); }

  .nav-list a[aria-current="page"] {
    background: rgba(72, 240, 208, 0.09);
    border-left-color: var(--cyan);
  }

  .nav-idx { flex: 0 0 26px; }

  .header-tools { margin-left: auto; }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand-block,
  .footer-col-contact { grid-column: 1 / -1; }

  .split-62-38 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --shell: min(1440px, 100% - 32px); }
  body { font-size: 14.5px; }
  .footer-base-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  :root { --shell: min(1440px, 100% - 28px); }

  .brand-edition { display: none; }
  .header-tools .btn { display: none; }
  .status-line { font-size: 9.5px; letter-spacing: 0.04em; }

  .footer-top { grid-template-columns: 1fr; gap: 26px; }

  .timeline { padding-left: 20px; }
}

/* ---------- 15. 降低动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .nav-list a::after { transition: none; }
  .media:hover img { transform: none; }
}
