/* =========================================================
   华体会体育赛 — 共享站点样式 /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, figure, blockquote, dl, dd, ul, ol, fieldset {
  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;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; border-spacing: 0; }
input, textarea, select { font: inherit; }
hr { border: 0; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #07130F;
  --forest: #0E241C;
  --pine: #16382C;
  --moss: #24503D;
  --orange: #FF6A2B;
  --ember: #FF9A5C;
  --cyan: #33E0C2;
  --sand: #D9C7A3;
  --paper: #F2EAD8;
  --mist: #8FA89A;
  --line: #2E5547;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shell: 1280px;
  --radius: 2px;
  --ease: 180ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  min-height: 100vh;
  background-color: var(--forest);
  background-image:
    radial-gradient(900px 560px at 92% -6%, rgba(51, 224, 194, .08), transparent 62%),
    radial-gradient(760px 480px at -8% 4%, rgba(255, 106, 43, .07), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
}

h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 18px; letter-spacing: 0; line-height: 1.35; }
p { max-width: 68ch; }
strong { color: var(--paper); font-weight: 700; }

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

[id] { scroll-margin-top: 130px; }
#main-content { display: block; }

/* ---------- 4. 焦点与跳转 ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  display: inline-block;
  padding: 11px 20px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: var(--radius);
  transition: top var(--ease);
}

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

/* ---------- 5. 布局容器 ---------- */
.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--pine { background: var(--pine); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--ember);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.grid {
  display: grid;
  gap: var(--gutter);
}

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

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

.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition:
    background-color var(--ease),
    color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}

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

.btn--primary:hover {
  background: var(--ember);
  box-shadow: 0 0 0 1px rgba(255, 154, 92, .55), 0 10px 24px -16px rgba(255, 106, 43, .9);
}

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

.btn--ghost:hover {
  color: var(--paper);
  border-color: var(--moss);
  background: rgba(36, 80, 61, .55);
}

.btn--quiet {
  padding-inline: 0;
  background: transparent;
  color: var(--cyan);
  border-color: transparent;
}

.btn--quiet:hover { color: var(--ember); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mist);
}

.breadcrumb__item { display: inline-flex; align-items: center; }
.breadcrumb__item a { padding: 2px 0; }
.breadcrumb__item a:hover { color: var(--ember); }

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--moss);
}

.breadcrumb__item[aria-current="page"] { color: var(--cyan); }

/* ---------- 8. 正文与记录排版 ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; margin-bottom: .55em; }
.prose h3 { margin-top: 1.5em; margin-bottom: .5em; }
.prose p { max-width: 68ch; }

.prose a {
  color: var(--ember);
  border-bottom: 1px solid rgba(255, 154, 92, .42);
  transition: color var(--ease), border-color var(--ease);
}

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

.prose ul, .prose ol { display: flex; flex-direction: column; gap: 9px; }

.prose li {
  position: relative;
  padding-left: 22px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 11px;
  height: 1px;
  background: var(--cyan);
}

.data-table {
  width: 100%;
  font-size: 15.5px;
  color: var(--sand);
}

.data-table caption {
  padding-bottom: 12px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--mist);
}

.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--cyan);
  background: var(--pine);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(46, 85, 71, .6);
  line-height: 1.55;
  vertical-align: top;
}

.data-table tbody tr { transition: background-color var(--ease); }
.data-table tbody tr:hover { background: rgba(36, 80, 61, .45); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 36, 28, .55);
}

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

.record-no {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--cyan);
  background: rgba(51, 224, 194, .07);
  border: 1px solid rgba(51, 224, 194, .35);
  border-radius: var(--radius);
  white-space: nowrap;
}

.stamp {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--sand);
  background: rgba(36, 80, 61, .45);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- 9. 媒体容器（供页面阶段放图） ---------- */
.figure { margin: 0; }

.media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--pine);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

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

.media--plot {
  background-color: var(--forest);
  background-image:
    repeating-linear-gradient(90deg, rgba(46, 85, 71, .7) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(46, 85, 71, .7) 0 1px, transparent 1px 26px);
}

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--mist);
}

/* ---------- 10. 滚动显现 ---------- */
[data-reveal] {
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- 11. 页头：双层信息导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 19, 15, .96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-top__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 68px;
  padding: 12px 0;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: linear-gradient(140deg, var(--orange), var(--ember));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  transition: color var(--ease);
}

.brand:hover .brand__name { color: var(--ember); }

.brand__line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 记录状态 */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  max-width: 100%;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--mist);
  background: rgba(22, 56, 44, .5);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-status__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(51, 224, 194, .18); }
  50% { box-shadow: 0 0 0 7px rgba(51, 224, 194, .04); }
}

.header-status__label { color: var(--sand); }
.header-status__value { color: var(--cyan); white-space: nowrap; }

/* 联系按钮 */
.header-cta {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--orange);
  border-radius: var(--radius);
  transition: background-color var(--ease), box-shadow var(--ease);
}

.header-cta:hover {
  background: var(--ember);
  box-shadow: 0 8px 22px -16px rgba(255, 106, 43, .95);
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--ease), color var(--ease);
}

.nav-toggle:hover {
  color: var(--paper);
  border-color: var(--moss);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 200ms ease, top 200ms ease;
}

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

.site-header[data-open] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* 栏目索引层 */
.header-bottom {
  border-top: 1px solid rgba(46, 85, 71, .55);
  background: linear-gradient(180deg, rgba(22, 56, 44, .35), rgba(14, 36, 28, 0));
}

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.primary-nav__list li { display: flex; }

.primary-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sand);
  transition: color var(--ease), background-color var(--ease);
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease, opacity 200ms ease;
}

.primary-nav__list a:hover {
  color: var(--paper);
  background: rgba(36, 80, 61, .42);
}

.primary-nav__list a:hover::after {
  opacity: .45;
  transform: scaleX(1);
}

.primary-nav__list a[aria-current="page"] {
  color: var(--paper);
  background: rgba(36, 80, 61, .55);
}

.primary-nav__list a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

/* 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(46, 85, 71, .55);
}

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

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 46px;
  background: var(--ink);
  color: var(--sand);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, rgba(46, 85, 71, .95) 0 1px, transparent 1px 32px);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.footer-brand__tagline {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .1em;
  color: var(--ember);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.footer-contact__key {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .16em;
  color: var(--mist);
}

.footer-contact__val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--sand);
  word-break: break-word;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-col__title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  color: var(--cyan);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col__list a {
  display: inline-block;
  width: fit-content;
  padding: 5px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--sand);
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.footer-col__list a:hover {
  color: var(--orange);
  border-bottom-color: rgba(255, 106, 43, .55);
}

.footer-col__plain {
  display: inline-block;
  padding: 5px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--mist);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding: 22px 0 44px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--mist);
}

.footer-bottom__meta { max-width: none; color: var(--sand); }
.footer-bottom__icp { max-width: none; color: var(--cyan); }
.footer-bottom__note { max-width: none; color: var(--mist); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body { background-attachment: scroll; }

  .header-top__inner {
    min-height: 62px;
    padding: 10px 0;
  }

  .header-status { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }

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

  .primary-nav { padding-bottom: 10px; }
  .primary-nav__list { flex-direction: column; }
  .primary-nav__list li { width: 100%; }

  .primary-nav__list a {
    width: 100%;
    padding: 15px 6px;
    font-size: 16px;
    border-bottom: 1px solid rgba(46, 85, 71, .45);
  }

  .primary-nav__list a::after {
    left: 6px;
    right: auto;
    width: 32px;
    bottom: -1px;
  }

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

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
    padding: 26px 0 34px;
  }
  .footer-bottom {
    justify-content: flex-start;
    padding: 18px 0 36px;
  }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }

  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }

  .brand__mark { width: 34px; height: 34px; font-size: 17px; }
  .brand__name { font-size: 17px; }

  .data-table { font-size: 14.5px; }
  .data-table th,
  .data-table td { padding: 11px 12px; }
}

@media (max-width: 430px) {
  .brand__line { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .header-status__dot { animation: none; }

  [data-reveal],
  [data-reveal].is-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-meter__fill { transition: none; }
}
