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

/* 01 · Reset */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
::selection { background: #E8FF3A; color: #1B1F24; }

/* 02 · 变量 */
:root {
  --red: #C8402A;
  --red-deep: #9E2E1B;
  --ink: #1B1F24;
  --volt: #E8FF3A;
  --bone: #F4EFE6;
  --sand: #D8CFBC;
  --copper: #0F5B4F;
  --copper-soft: #2F7D6B;
  --grey: #6B6F76;
  --cream: #FFF6E9;
  --slate: #3A4048;
  --muted-dark: #A8ADB4;

  --font-display: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", ui-monospace, "Courier New", monospace;

  --radius-pill: 999px;
  --radius-card: 18px;
  --shadow-soft: 0 2px 0 rgba(27, 31, 36, .04), 0 18px 40px -28px rgba(27, 31, 36, .45);
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 48px);
}

/* 03 · 基础排版与页面骨架 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 6px);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); }
p { overflow-wrap: break-word; }
strong { font-weight: 800; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.page-shell {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--gut);
}
.prose { max-width: 40em; }
.prose p + p { margin-top: 20px; }

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(28px, 5vw, 56px) 0; }
.section-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--red);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}
.section-lede {
  margin-top: 12px;
  max-width: 40em;
  font-size: 16px;
  color: var(--grey);
}

/* 04 · 可访问性与焦点 */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--volt); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px; left: 50%;
  z-index: 400;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--volt);
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -180%);
  transition: transform .25s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* 05 · 头部悬浮胶囊 */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 14px var(--gut) 0;
  pointer-events: none;
}
.header-shell {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px 12px 10px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, rgba(30, 35, 41, .97), rgba(20, 24, 29, .93));
  border: 1px solid rgba(244, 239, 230, .10);
  box-shadow: 0 24px 50px -34px rgba(27, 31, 36, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: max-width .4s var(--ease), padding .4s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header[data-scrolled] .header-shell {
  max-width: min(var(--wrap), 1120px);
  padding: 6px 10px 6px 14px;
  border-color: rgba(232, 255, 58, .16);
  box-shadow: 0 18px 40px -30px rgba(27, 31, 36, 1), inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--bone);
}
.brand-mark {
  position: relative;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--red) 0%, var(--red-deep) 82%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -12px rgba(200, 64, 42, .95);
  overflow: hidden;
}
.brand-mark::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 3px;
  border-radius: 2px;
  background: rgba(255, 246, 233, .92);
  transform: translate(-50%, -50%) rotate(-20deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px; bottom: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 10px rgba(232, 255, 58, .85);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .04em;
}
.brand-sub {
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: .28em;
  color: var(--muted-dark);
  transition: opacity .3s var(--ease);
}
.site-header[data-scrolled] .brand-sub { opacity: .38; }

/* 导航 */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  color: rgba(244, 239, 230, .70);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--bone); background: rgba(244, 239, 230, .08); }
.nav-link[aria-current="page"] {
  color: var(--cream);
  background: rgba(200, 64, 42, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.site-header[data-scrolled] .nav-link { padding: 7px 10px; font-size: 13.5px; }

/* 头部动作 */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fee-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--volt);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 10px 24px -16px rgba(232, 255, 58, .95);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.fee-chip:hover { transform: translateY(-1px); filter: brightness(1.06); }
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(47, 125, 107, .55);
  color: #BFD4CE;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.live-chip:hover {
  border-color: var(--copper-soft);
  color: var(--bone);
  background: rgba(15, 91, 79, .28);
}
.live-chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #35C79A;
  box-shadow: 0 0 0 0 rgba(53, 199, 154, .55);
  animation: live-pulse 2.6s var(--ease) infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 199, 154, .55); }
  70% { box-shadow: 0 0 0 8px rgba(53, 199, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 199, 154, 0); }
}

/* 移动按钮与滚动进度 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgba(244, 239, 230, .16);
  background: rgba(244, 239, 230, .06);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: rgba(244, 239, 230, .12); }
.nav-toggle span {
  display: block;
  width: 17px; height: 2px;
  border-radius: 2px;
  background: var(--bone);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 22px; right: 22px; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--volt));
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: .85;
  pointer-events: none;
}

/* 06 · 页脚赛道条 */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding-bottom: 44px;
  overflow: hidden;
  color: var(--bone);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(200, 64, 42, .20), transparent 58%),
    radial-gradient(90% 80% at 92% 4%, rgba(15, 91, 79, .30), transparent 56%),
    var(--ink);
}
.footer-track {
  height: 5px;
  background: linear-gradient(90deg,
    var(--red-deep) 0%,
    var(--red) 30%,
    var(--volt) 34%,
    var(--copper) 46%,
    var(--copper-soft) 52%,
    transparent 53%,
    transparent 100%);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 74px) var(--gut) clamp(30px, 4vw, 48px);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--muted-dark);
}
.footer-note {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(244, 239, 230, .62);
}
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--bone);
}
.footer-col-title::before {
  content: "";
  width: 14px; height: 3px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--red);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 239, 230, .68);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-links a:hover { color: var(--bone); transform: translateX(3px); }

/* 页末双入口 */
.footer-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gut) clamp(28px, 4vw, 40px);
}
.footer-strip-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--slate);
  color: var(--bone);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .08);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.footer-strip-link:hover { background: #454C55; transform: translateY(-2px); }
.footer-strip-link--alt {
  background: linear-gradient(100deg, var(--red-deep), var(--red));
  box-shadow: inset 0 0 0 1px rgba(255, 246, 233, .14);
}
.footer-strip-link--alt:hover { background: linear-gradient(100deg, #B03421, #D24831); }
.footer-strip-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(244, 239, 230, .60);
}
.footer-strip-link--alt .footer-strip-kicker { color: rgba(255, 246, 233, .74); }
.footer-strip-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.footer-strip-arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  transition: transform .25s var(--ease);
}
.footer-strip-link:hover .footer-strip-arrow { transform: translateX(4px); }

/* 运营信息 */
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(22px, 3vw, 32px) var(--gut) 0;
  border-top: 1px solid rgba(244, 239, 230, .10);
  font-size: 12.5px;
  color: rgba(244, 239, 230, .52);
}
.footer-meta-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.footer-meta-main p { margin: 0; overflow-wrap: break-word; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer-legal a { color: rgba(244, 239, 230, .66); transition: color .2s var(--ease); }
.footer-legal a:hover { color: var(--volt); }

/* 07 · 通用组件 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 16px 32px -22px rgba(200, 64, 42, .95);
}
.btn--primary:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(27, 31, 36, .24);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(27, 31, 36, .04); }
.btn--on-dark {
  background: transparent;
  color: var(--bone);
  border-color: rgba(244, 239, 230, .32);
}
.btn--on-dark:hover { border-color: var(--bone); background: rgba(244, 239, 230, .08); }

.breadcrumb { padding-top: clamp(20px, 3vw, 32px); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--grey);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: var(--sand);
}
.breadcrumb-link { color: var(--copper); transition: color .2s var(--ease); }
.breadcrumb-link:hover { color: var(--red); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid rgba(15, 91, 79, .22);
  background: rgba(15, 91, 79, .10);
  color: var(--copper);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
}
.tag--red {
  border-color: rgba(200, 64, 42, .24);
  background: rgba(200, 64, 42, .09);
  color: var(--red-deep);
}
.tag--dark {
  border-color: rgba(244, 239, 230, .14);
  background: rgba(27, 31, 36, .82);
  color: var(--bone);
}

.card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-card);
  border: 1px solid rgba(27, 31, 36, .10);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.card--paper { background: #FFFDF8; }
.card--dark {
  background: var(--ink);
  color: var(--bone);
  border-color: rgba(244, 239, 230, .10);
}
.card--dark .stat-label { color: var(--muted-dark); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-value--volt { color: var(--volt); }
.stat-label {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--grey);
}

/* 图片容器基础规则：页面阶段直接放入 <img> 即可 */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(27, 31, 36, .08);
  background: linear-gradient(150deg, var(--sand), #EDE6D8 60%, var(--bone));
}
.media-frame--clip { border-radius: 16px 16px 52px 16px; }
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.media-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(27, 31, 36, .82);
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
}

/* 08 · 滚动显现协议 */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* 09 · 响应式 */
@media (max-width: 1060px) {
  .live-chip { display: none; }
}
@media (max-width: 980px) {
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  body { padding-top: calc(var(--header-h) + 4px); }
  .site-header { padding: 10px var(--gut) 0; }
  .header-shell {
    padding: 8px 10px 8px 14px;
    gap: 10px;
    border-radius: 26px;
  }
  .site-header[data-scrolled] .header-shell {
    max-width: var(--wrap);
    padding: 6px 8px 6px 12px;
    border-radius: 22px;
  }
  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    display: block;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(244, 239, 230, .12);
    background: linear-gradient(160deg, #232831, #16191E);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 13px;
    font-size: 15px;
  }
  .site-header[data-scrolled] .nav-link { padding: 12px 16px; font-size: 15px; }
  .nav-toggle { display: flex; }
  .brand-sub { display: none; }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-strip { grid-template-columns: 1fr; }
  .fee-chip { padding: 8px 13px; font-size: 13px; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .header-shell { padding: 7px 8px 7px 12px; }
  .nav-toggle { width: 38px; height: 38px; }
  .footer-meta { flex-direction: column; }
}

/* 10 · 动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
