/* ============================================================
   华体会赛场 · 共享样式表 /assets/site.css
   夜场记分牌：深墨绿为底，亮橙与电光蓝做赛事数据高亮
   ============================================================ */

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

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

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

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

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

a { color: inherit; }

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-900: #06231C;
  --ink-700: #0C3A2E;
  --ink-500: #175C49;
  --orange: #FF7A29;
  --blue: #3FC1FF;
  --warm: #F7F2E7;
  --sand: #E4DCC9;
  --stone: #9FB3AA;
  --coral: #FF5C4D;

  --grad-moss: linear-gradient(180deg, #0C3A2E 0%, #06231C 100%);
  --grad-turf: linear-gradient(135deg, #0C3A2E 0%, #175C49 55%, #06231C 100%);
  --hair: 1px solid rgba(23, 92, 73, 0.72);
  --line: 1px solid var(--ink-500);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 44px -32px rgba(0, 0, 0, 0.92);
  --shadow-soft: 0 2px 0 rgba(0, 0, 0, 0.28);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-top: 124px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 10% -12%, rgba(23, 92, 73, 0.55), transparent 62%),
    radial-gradient(880px 460px at 108% 6%, rgba(63, 193, 255, 0.10), transparent 68%);
  background-repeat: no-repeat;
  color: rgba(247, 242, 231, 0.92);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--warm);
  text-wrap: pretty;
}

a { text-decoration: none; }

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

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

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--ink-900); }
body::-webkit-scrollbar-thumb { background: var(--ink-500); border-radius: 999px; }
body::-webkit-scrollbar-thumb:hover { background: var(--blue); }

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

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

.stack > * + * { margin-top: var(--stack-gap, 20px); }

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

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.layout-rail {
  display: grid;
  grid-template-columns: minmax(240px, 25%) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}

.rail {
  position: sticky;
  top: var(--rail-top);
}

/* ---------- 5. 章节 ---------- */
.section {
  position: relative;
  padding-block: clamp(40px, 9vh, 110px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
  border-bottom: var(--line);
}

.section__index {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--ink-500) 18%, var(--ink-500) 82%, transparent);
}

/* ---------- 6. 文字组件 ---------- */
.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.t-h1 { font-size: clamp(30px, 4.4vw, 44px); }
.t-h2 { font-size: clamp(24px, 3vw, 34px); }
.t-h3 { font-size: clamp(20px, 2.4vw, 26px); }

.lede {
  font-size: 20px;
  line-height: 1.7;
  color: var(--sand);
  max-width: 62ch;
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(247, 242, 231, 0.9);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose strong { color: var(--warm); }
.prose a {
  color: var(--blue);
  border-bottom: 1px solid rgba(63, 193, 255, 0.45);
  transition: border-color 180ms ease, color 180ms ease;
}
.prose a:hover { color: var(--warm); border-bottom-color: var(--orange); }

.note {
  padding-left: 14px;
  border-left: 1px solid var(--ink-500);
  font-size: 14px;
  line-height: 1.75;
  color: var(--stone);
  max-width: 46ch;
}

/* ---------- 7. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--ink-500);
  border-radius: 999px;
  background: rgba(12, 58, 46, 0.66);
  color: var(--warm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, border-color 180ms ease,
              background-color 180ms ease, color 180ms ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--blue); }
.btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--coral) 100%);
  border-color: transparent;
  color: var(--ink-900);
  font-weight: 700;
}
.btn--primary:hover { border-color: transparent; color: var(--ink-900); }
.btn--ghost { background: transparent; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--ink-500);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 41, 0.5); }
.tag--blue { color: var(--blue); border-color: rgba(63, 193, 255, 0.5); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--ink-500);
}
.breadcrumb a {
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.breadcrumb a:hover { color: var(--warm); border-color: var(--blue); }

/* ---------- 9. 卡片 / 面板 / 数据 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 24px);
  border: var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 58, 46, 0.78), rgba(6, 35, 28, 0.94));
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 193, 255, 0.55);
  box-shadow: var(--shadow);
}
.card__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--warm);
}
.card__body { font-size: 15px; color: rgba(247, 242, 231, 0.82); }
.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: var(--hair);
}

.panel {
  padding: clamp(18px, 2.4vw, 26px);
  border: var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 58, 46, 0.72), rgba(6, 35, 28, 0.92));
  box-shadow: var(--shadow);
}
.panel--rail {
  background: linear-gradient(180deg, rgba(12, 58, 46, 0.95), rgba(6, 35, 28, 0.98));
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  color: var(--blue);
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--stone);
}

/* ---------- 10. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--grad-turf);
  aspect-ratio: 16 / 9;
  width: 100%;
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--board { aspect-ratio: 4 / 3; }

.figure > img,
.figure__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg,
    rgba(63, 193, 255, 0.10) 0 1px, transparent 1px 46px);
  pointer-events: none;
}

.figure__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--sand);
  background: linear-gradient(0deg, rgba(6, 35, 28, 0.94), rgba(6, 35, 28, 0));
}

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--orange);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 180ms ease;
}
.skip-link:focus { top: 0; }

/* ---------- 12. 刊头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(12, 58, 46, 0.97), rgba(6, 35, 28, 0.99));
  border-bottom: var(--line);
  color: var(--warm);
  backdrop-filter: blur(6px);
}

.masthead__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(580px 190px at 50% -46%, rgba(63, 193, 255, 0.18), transparent 72%);
}

.masthead__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(18px, 3vh, 26px) clamp(12px, 2vh, 18px);
  transition: padding 220ms ease;
}

.masthead__brand { display: flex; justify-content: center; }

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.brand__mark {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--warm);
}
.brand__line {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--stone);
}
.brand__short {
  display: none;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--warm);
}
.brand:hover .brand__mark,
.brand:hover .brand__short { color: var(--orange); }

.masthead__utility {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(23, 92, 73, 0.85);
  border-radius: 999px;
  background: rgba(6, 35, 28, 0.6);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone);
  white-space: nowrap;
}
.status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(63, 193, 255, 0.14);
  animation: sp-pulse 2.6s ease-in-out infinite;
}
.status__time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--sand);
}

@keyframes sp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

/* ---------- 13. 导航 ---------- */
.nav {
  position: relative;
  z-index: 1;
  border-top: var(--line);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
}

.nav__item { display: flex; }

.nav__link {
  position: relative;
  display: block;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--stone);
  transition: color 180ms ease, padding 220ms ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}
.nav__link:hover { color: var(--warm); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--warm); }
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--blue);
  height: 2px;
}

.nav__toggle { display: none; }

.nav__toggle-bars {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
}
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  top: 50%;
  margin-top: -1px;
  background: var(--warm);
  transition: transform 200ms ease;
}
.nav__toggle-bars::before { transform: translateY(-4px); }
.nav__toggle-bars::after { transform: translateY(4px); }
.nav[data-open] .nav__toggle-bars::before { transform: rotate(45deg); }
.nav[data-open] .nav__toggle-bars::after { transform: rotate(-45deg); }

/* ---------- 14. 阅读进度线 ---------- */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: rgba(23, 92, 73, 0.4);
  z-index: 2;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
  transition: width 120ms linear;
}

/* ---------- 15. 刊头收缩态 ---------- */
.masthead[data-condensed] .masthead__inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
}
.masthead[data-condensed] .masthead__brand { justify-content: flex-start; }
.masthead[data-condensed] .brand {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.masthead[data-condensed] .brand__mark { display: none; }
.masthead[data-condensed] .brand__short { display: inline; }
.masthead[data-condensed] .brand__line { display: none; }
.masthead[data-condensed] .masthead__utility {
  position: static;
  transform: none;
}
.masthead[data-condensed] .nav__link { padding-block: 9px; }
.masthead[data-condensed] .status { padding: 4px 10px; }

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 10vh, 120px);
  border-top: var(--line);
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-700) 100%);
  color: var(--warm);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.1fr);
  gap: clamp(26px, 4vw, 56px);
  padding-block: clamp(34px, 6vh, 64px) clamp(22px, 4vh, 38px);
}

.footer__brand { display: flex; flex-direction: column; gap: 6px; }

.footer__mark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--warm);
}

.footer__line {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--stone);
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 24px;
}

.footer__col { min-width: 0; }

.footer__title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: var(--hair);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  align-self: flex-start;
  font-size: 14px;
  color: var(--sand);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.footer__link:hover { color: var(--warm); border-bottom-color: var(--orange); }

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 18px 26px;
  border-top: var(--hair);
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
}

.footer__contact { max-width: 76ch; }

.footer__legal {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--sand);
}

.footer__ribbon {
  height: 3px;
  background: linear-gradient(90deg,
    var(--ink-500) 0%, var(--blue) 32%, var(--orange) 68%, var(--coral) 100%);
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1000px) {
  .layout-rail { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; top: auto; }
}

@media (max-width: 860px) {
  .masthead__utility { position: static; transform: none; margin-top: 10px; }
  .masthead__inner { padding-block: 16px 14px; }

  .masthead[data-condensed] .masthead__inner { padding-block: 8px; }

  .nav__inner { justify-content: stretch; }

  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px var(--gutter);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--warm);
    text-align: left;
  }
  .nav__toggle-text { color: var(--stone); }

  .nav__list {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    gap: 0;
    padding: 6px var(--gutter) 16px;
    background: linear-gradient(180deg, rgba(12, 58, 46, 0.99), rgba(6, 35, 28, 0.99));
    border-bottom: var(--line);
    box-shadow: var(--shadow);
  }
  .nav[data-open] .nav__list { display: flex; }

  .nav__item { width: 100%; }
  .nav__link {
    padding: 14px 2px;
    border-bottom: var(--hair);
    font-size: 15px;
  }
  .nav__link::after { left: 2px; right: auto; width: 34px; bottom: 8px; }

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

@media (max-width: 560px) {
  .brand__line { letter-spacing: 0.16em; }
  .status__text { display: none; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__meta { flex-direction: column; }
  .btn { padding: 10px 16px; }
}

/* ---------- 18. 降低动态效果 ---------- */
@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;
  }
  .card:hover,
  .btn:hover { transform: none; }
  .status__dot { animation: none; }
}
