/* ==========================================================================
   华体育赛事 · pulse-huatiyu.com.cn
   共享样式表 /assets/site.css
   00 变量与重置 / 01 排版 / 02 布局 / 03 通用组件 / 04 头部 / 05 页脚 / 06 动效与响应
   ========================================================================== */

/* ---------- 00 变量与重置 ---------- */
:root {
  --ink: #050A18;
  --ink-1: #0B1428;
  --ink-2: #101E3C;
  --line: #1C2B47;
  --fog: #E9F1FF;
  --mist: #8FA3C4;
  --cyan: #2BF5D0;
  --orange: #FF7A2F;
  --violet: #8B5CF6;
  --violet-deep: #4C1D95;
  --amber: #FFC24B;
  --green: #3DDC97;

  --grad-accent: linear-gradient(120deg, #8B5CF6 0%, #4C1D95 100%);
  --grad-pulse: linear-gradient(90deg, #2BF5D0 0%, #8B5CF6 100%);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-panel: 0 1px 0 rgba(233, 241, 255, .03), 0 26px 50px -36px rgba(0, 0, 0, .95);

  --max-w: 1280px;
  --pad-x: clamp(16px, 4vw, 44px);
  --header-h: 168px;

  --font-display: 'Archivo Narrow', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', 'Noto Sans SC', monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(90% 60% at 12% -8%, rgba(43, 245, 208, .07), transparent 62%),
    radial-gradient(80% 70% at 96% 4%, rgba(139, 92, 246, .12), transparent 60%);
  background-repeat: no-repeat;
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; line-height: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

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

::selection { background: rgba(43, 245, 208, .28); color: var(--fog); }

/* ---------- 01 排版 ---------- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -.015em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  letter-spacing: -.005em;
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
}

p { max-width: 40em; }

.eyebrow {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--cyan);
  text-transform: uppercase;
}

.lede {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--mist);
  max-width: 38em;
}

.data {
  font-family: var(--font-data);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .02em;
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 48px) 0;
  background: var(--line);
}

/* ---------- 02 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(38px, 6vw, 84px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-title {
  position: relative;
  padding-left: 18px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  bottom: .16em;
  width: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: width .28s ease, box-shadow .28s ease;
}
.section-title.is-active::before {
  width: 6px;
  box-shadow: 0 0 18px rgba(43, 245, 208, .45);
}

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 03 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: #180A02;
  box-shadow: 0 18px 36px -24px rgba(255, 122, 47, .9);
}
.btn--primary:hover { background: #FF9254; }

.btn--ghost {
  background: var(--ink-1);
  border-color: var(--line);
  color: var(--fog);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--quiet {
  padding-inline: 0;
  color: var(--cyan);
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .08em;
  border-radius: 0;
}
.btn--quiet:hover { color: var(--fog); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-1);
  color: var(--mist);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.chip:hover { border-color: var(--cyan); color: var(--fog); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04241E;
  box-shadow: 0 0 0 4px rgba(43, 245, 208, .12);
}

.panel {
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-panel);
}
.panel--raise { background: var(--ink-2); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.bento__cell { grid-column: span 12; min-width: 0; }
@media (min-width: 760px) {
  .bento__cell--4 { grid-column: span 4; }
  .bento__cell--5 { grid-column: span 5; }
  .bento__cell--6 { grid-column: span 6; }
  .bento__cell--7 { grid-column: span 7; }
  .bento__cell--8 { grid-column: span 8; }
  .bento__cell--12 { grid-column: span 12; }
}

.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--ink-2);
  background-image:
    radial-gradient(120% 120% at 12% 6%, rgba(43, 245, 208, .18), transparent 55%),
    radial-gradient(120% 140% at 88% 94%, rgba(139, 92, 246, .30), transparent 62%),
    linear-gradient(160deg, #0B1428, #101E3C 70%);
  aspect-ratio: 16 / 9;
}
.media-frame > img,
.media-frame > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 24, 0) 42%, rgba(5, 10, 24, .62) 100%);
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.track {
  display: flex;
  gap: clamp(12px, 1.6vw, 18px);
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.track > * {
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: start;
  min-width: 0;
}
.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-track { background: var(--ink-1); border-radius: 999px; }
.track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.track::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-data);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--fog);
}
.stat__value--accent {
  background-image: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  padding-block: 16px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}
.breadcrumb__item { display: inline-flex; align-items: center; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}
.breadcrumb__item a:hover { color: var(--cyan); }

.toc { display: flex; flex-direction: column; }
.toc-link {
  position: relative;
  display: block;
  padding: 9px 0 9px 15px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  color: var(--mist);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.toc-link:hover { color: var(--fog); border-left-color: rgba(43, 245, 208, .5); }
.toc-link.is-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(43, 245, 208, .10), transparent 80%);
}
@media (min-width: 1000px) {
  .toc { position: sticky; top: 150px; }
}

/* ---------- 04 站点头部 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 140;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--cyan);
  color: #04241E;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(5, 10, 24, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background-image: var(--grad-pulse);
  transition: width .1s linear;
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.header-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(28, 43, 71, .7);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
  transition: padding .24s ease;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(43, 245, 208, .14);
  animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: .42; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.header-action {
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--mist);
  transition: color .18s ease, border-color .18s ease;
}
.header-action:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 0 12px;
  text-align: center;
  transition: padding .24s ease;
}

.masthead__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1;
  letter-spacing: .12em;
  text-indent: .12em;
  color: var(--fog);
  transition: font-size .24s ease, color .18s ease;
}
.masthead__brand:hover { color: var(--cyan); }

.masthead__tagline {
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--mist);
  max-width: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(28, 43, 71, .7);
}

.primary-nav { width: 100%; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 24px);
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 13px 6px 11px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  color: var(--mist);
  transition: color .18s ease, border-color .18s ease;
}
.nav-link:hover { color: var(--fog); border-bottom-color: rgba(43, 245, 208, .5); }
.nav-link:hover .nav-link__idx { color: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--fog);
  border-bottom-color: var(--cyan);
}
.nav-link[aria-current="page"] .nav-link__idx { color: var(--cyan); }

.nav-link__idx {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(143, 163, 196, .5);
  transition: color .18s ease;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 10px auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-1);
  color: var(--fog);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .14em;
}
.nav-toggle:hover { border-color: var(--cyan); }

.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: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .24s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }

.nav-toggle__text { line-height: 1; }

/* 收拢态 */
.site-header.is-condensed .header-utility { padding: 6px 0; }
.site-header.is-condensed .masthead { padding: 10px 0 8px; }
.site-header.is-condensed .masthead__brand { font-size: clamp(22px, 2.6vw, 30px); }
.site-header.is-condensed .masthead__tagline { display: none; }

/* ---------- 05 站点页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background-color: #03060F;
  background-image: linear-gradient(180deg, var(--ink) 0%, #03060F 100%);
}

.footer-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 66px) var(--pad-x) 26px;
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.footer-top {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 780px) {
  .footer-top { grid-template-columns: minmax(220px, 1fr) minmax(0, 2.1fr); }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand__mark {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: .12em;
  color: var(--fog);
  transition: color .18s ease;
}
.footer-brand__mark:hover { color: var(--cyan); }
.footer-brand__tag {
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}
@media (min-width: 780px) {
  .footer-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.footer-group { display: flex; flex-direction: column; gap: 12px; }

.footer-group__title {
  max-width: none;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--mist);
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }

.footer-link {
  display: inline-block;
  font-size: 13.5px;
  color: rgba(233, 241, 255, .78);
  padding-left: 0;
  transition: color .18s ease, padding-left .18s ease, opacity .18s ease;
}
.footer-link:hover {
  color: var(--cyan);
  padding-left: 5px;
}

.footer-contact {
  display: grid;
  gap: 12px;
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line);
}
@media (min-width: 780px) {
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.footer-contact__row {
  display: flex;
  gap: 12px;
  max-width: none;
  font-size: 13px;
  line-height: 1.65;
  color: var(--fog);
}
.footer-contact__row--wide { grid-column: 1 / -1; }

.footer-contact__label {
  flex: 0 0 auto;
  min-width: 48px;
  padding-top: 1px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.footer-contact__value {
  min-width: 0;
  color: rgba(233, 241, 255, .82);
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: .02em;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mist);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.footer-icp { color: var(--mist); }

.footer-closing {
  max-width: none;
  color: rgba(143, 163, 196, .86);
}

/* ---------- 06 动效与响应 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .7, .3, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  html { scroll-padding-top: 108px; }

  .nav-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .32s ease, opacity .24s ease;
  }
  .primary-nav[data-open] {
    max-height: min(72vh, 520px);
    opacity: 1;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 12px;
  }
  .nav-item { border-top: 1px solid rgba(28, 43, 71, .7); }
  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 14px 4px 14px 12px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }
  .nav-link:hover { border-bottom-color: transparent; border-left-color: rgba(43, 245, 208, .5); }
  .nav-link[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--cyan);
    background: linear-gradient(90deg, rgba(43, 245, 208, .10), transparent 78%);
  }

  .site-header.is-condensed .masthead__tagline { display: none; }
}

@media (max-width: 620px) {
  .header-utility { gap: 10px; }
  .header-status { letter-spacing: .04em; }
  .header-actions { gap: 12px; }
  .site-header.is-condensed .header-utility { display: none; }
  .masthead { padding: 14px 0 10px; }
  .masthead__brand { letter-spacing: .08em; text-indent: .08em; }
  .masthead__tagline { letter-spacing: .1em; font-size: 10.5px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .status-dot { animation: none; opacity: 1; }
  .scroll-progress__bar { transition: none; }
}
