/* ==========================================================================
   华体会体育 · site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- 1. 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: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

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

/* ---------- 2. Design tokens ---------- */
:root {
  /* 色彩体系 */
  --ink-900: #07130F;
  --ink-800: #0B1F1A;
  --ink-700: #12332A;
  --line: #24423A;
  --line-soft: rgba(36, 66, 58, 0.62);
  --lime: #C8FF4D;
  --lime-soft: #E4FF9E;
  --orange: #FF6A2A;
  --amber: #FFC94A;
  --paper: #F2F5F0;
  --rock: #8C9A92;

  /* 结构 */
  --wrap: 1180px;
  --rail: 220px;
  --gutter: clamp(16px, 4vw, 40px);

  /* 形状 */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;

  /* 动效 */
  --t-fast: 140ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --skew: -4deg;

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono",
    Menlo, Consolas, monospace;
}

/* ---------- 3. 中文排版基础 ---------- */
body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.55vw + 0.72rem, 17px);
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(92% 62% at 50% -8%, rgba(200, 255, 77, 0.07), transparent 62%),
    radial-gradient(72% 52% at 92% 112%, rgba(255, 106, 42, 0.06), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(28px, 4.4vw, 52px); }
h2 { font-size: clamp(23px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: clamp(16px, 1.5vw, 18px); font-weight: 700; }

p { line-height: 1.78; }

strong, b { font-weight: 700; }

/* ---------- 4. 通用工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(42px, 6vw, 84px); }
.section--tight { padding-block: clamp(26px, 3.6vw, 50px); }

.stack > * + * { margin-top: clamp(12px, 1.6vw, 20px); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.skew {
  display: inline-block;
  transform: skewX(var(--skew));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--lime);
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.85;
  color: #D6E0D8;
}

.muted {
  color: var(--rock);
  font-size: 13px;
  line-height: 1.7;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(20px, 3vw, 32px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  transition:
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.btn--primary {
  background: var(--lime);
  color: #0A1A0E;
}
.btn--primary:hover {
  background: var(--lime-soft);
  transform: translateY(-2px);
}
.btn--ghost {
  background: var(--ink-700);
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime-soft);
  transform: translateY(-2px);
}
.btn--accent {
  background: var(--orange);
  color: #1A0A02;
}
.btn--accent:hover {
  background: #FF8347;
  transform: translateY(-2px);
}
.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- 6. 标签 / 胶囊 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-700);
  color: var(--rock);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill--lime {
  border-color: rgba(200, 255, 77, 0.45);
  background: rgba(200, 255, 77, 0.08);
  color: var(--lime);
}
.pill--orange {
  border-color: rgba(255, 106, 42, 0.5);
  background: rgba(255, 106, 42, 0.08);
  color: var(--orange);
}
.pill--amber {
  border-color: rgba(255, 201, 74, 0.45);
  background: rgba(255, 201, 74, 0.07);
  color: var(--amber);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--ink-700);
  color: var(--rock);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- 7. 网格与面 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.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)); }
.grid--sidebar { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); }

.surface {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2.2vw, 26px);
}

/* ---------- 8. 图片容器（供页面阶段放置占位/实图） ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-700);
  isolation: isolate;
}
.media > img,
.media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }

.media--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(36, 66, 58, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 66, 58, 0.6) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.55;
}

.media__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  color: var(--rock);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-align: center;
  padding: 12px;
}

/* ---------- 9. 面包屑 / 章节目录 ---------- */
.breadcrumb {
  font-size: 12px;
  color: var(--rock);
}
.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: "／";
  color: var(--line);
}
.breadcrumb a { transition: color var(--t-fast) var(--ease); }
.breadcrumb a:hover { color: var(--lime); }

.outline ol {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.outline a {
  display: block;
  margin-left: -2px;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.6;
  color: var(--rock);
  transition:
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.outline a:hover { color: var(--lime-soft); }
.outline a[aria-current] {
  color: var(--lime);
  border-left-color: var(--lime);
  background: rgba(200, 255, 77, 0.07);
}

/* ---------- 10. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--ink-900);
}

.skip-link {
  position: absolute;
  left: clamp(8px, 2vw, 20px);
  top: 0;
  z-index: 90;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--lime);
  color: #0A1A0E;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* 状态带 */
.status-strip {
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
}
.status-strip__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 7px var(--gutter);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px clamp(10px, 2vw, 26px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--rock);
}
.status-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.status-cell--live {
  color: var(--lime);
  letter-spacing: 0.16em;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: status-pulse 2.4s infinite;
}
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(200, 255, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); }
}
.status-key { color: var(--rock); }
.status-val {
  color: var(--paper);
  font-weight: 700;
}
.status-val--amber { color: var(--amber); }

.status-link {
  position: relative;
  margin-left: auto;
  color: var(--lime);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.status-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-fast) var(--ease);
}
.status-link:hover::after { transform: scaleX(1); }

/* 刊头 */
.masthead {
  position: relative;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
}
.masthead::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 77, 0.45), transparent);
}
.masthead__inner {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(16px, 2.6vw, 28px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.masthead__inner::before,
.masthead__inner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(20vw, 170px);
  height: 1px;
  background: var(--line);
  pointer-events: none;
}
.masthead__inner::before { right: calc(50% + clamp(96px, 10vw, 142px)); }
.masthead__inner::after  { left:  calc(50% + clamp(96px, 10vw, 142px)); }

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  line-height: 1;
  text-align: center;
}
.brand__mark {
  display: inline-block;
  font-size: clamp(21px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
  transform: skewX(var(--skew));
}
.brand__mark em {
  font-style: normal;
  color: var(--lime);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--rock);
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-700);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  transition:
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}
.nav-toggle:hover {
  border-color: var(--lime);
  color: var(--lime-soft);
}
.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 15px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition:
    transform var(--t-fast) var(--ease),
    opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 主导航 */
.site-nav {
  position: relative;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
}
.nav-list {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.nav-list a {
  display: block;
  margin-bottom: -1px;
  padding: 13px clamp(9px, 1.5vw, 19px);
  border-bottom: 2px solid transparent;
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rock);
  transition:
    color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.nav-list a:hover {
  color: var(--lime-soft);
  background: rgba(200, 255, 77, 0.07);
}
.nav-list a[aria-current="page"] {
  background: var(--lime);
  color: #0A1A0E;
  border-bottom-color: var(--lime);
}

/* 滚动进度线（JS 注入） */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 95;
  background: linear-gradient(90deg, var(--lime), var(--amber), var(--orange));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  color: var(--rock);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(36, 66, 58, 0.55) 1px, transparent 1px);
  background-size: clamp(40px, 6vw, 72px) 100%;
  opacity: 0.22;
}

.foot__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 60px) var(--gutter) clamp(18px, 2.4vw, 28px);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3.6vw, 52px);
}

.foot-brand {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
  transform: skewX(var(--skew));
}
.foot-brand em {
  font-style: normal;
  color: var(--lime);
}

.foot-line {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--rock);
}

.foot-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--paper);
}
.foot-title::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 9px;
  background: var(--lime);
}

.foot-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.foot-links a {
  font-size: 13px;
  color: #B7C4BC;
  border-bottom: 1px solid transparent;
  transition:
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.foot-links a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.foot-links--legal { margin-top: 14px; }

.foot-contact {
  margin-top: 16px;
  display: grid;
  gap: 13px;
}
.foot-contact__row { display: grid; gap: 3px; }
.foot-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--rock);
}
.foot-email {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--lime-soft);
  word-break: break-all;
}
.foot-val {
  font-size: 13.5px;
  line-height: 1.65;
  color: #C9D5CD;
}

.foot-note {
  margin-top: clamp(26px, 3.4vw, 42px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 92ch;
  font-size: 12px;
  line-height: 1.8;
  color: var(--rock);
}

.foot-bottom {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}
.foot-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--rock);
}

/* ---------- 12. 返回顶部（JS 注入） ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: #0A1A0E;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    visibility var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--lime-soft); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 900px) {
  .masthead__inner {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .masthead__inner::before,
  .masthead__inner::after { display: none; }

  .brand {
    align-items: flex-start;
    text-align: left;
  }

  html[data-js="on"] .nav-toggle { display: inline-flex; }

  html[data-js="on"] .site-nav { display: none; }
  html[data-js="on"] .site-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 6px 14px;
  }
  .nav-list a {
    padding: 13px 10px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    letter-spacing: 0.05em;
  }
  .nav-list a:last-child { border-bottom: 0; }
  .nav-list a[aria-current="page"] {
    background: rgba(200, 255, 77, 0.1);
    color: var(--lime);
    border-left: 3px solid var(--lime);
    border-bottom-color: var(--line-soft);
    padding-left: 13px;
  }

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

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

@media (max-width: 620px) {
  .status-strip__inner {
    font-size: 11px;
    padding-block: 6px;
    gap: 6px 12px;
  }
  .status-cell--sm-hide { display: none; }

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

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

  .foot-bottom { justify-content: flex-start; }

  .to-top { font-size: 12px; padding: 10px 15px; }
}

/* ---------- 14. 减少动效 ---------- */
@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;
  }

  .status-dot { animation: none; }
  .btn:hover,
  .to-top { transform: none; }
}
