/* =====================================================================
   云体育主站 · /assets/site.css
   共享层：reset / tokens / 中文排版 / 页头 / 页脚 / 通用组件
   ===================================================================== */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --deep: #070E22;
  --layer: #101C3E;
  --ridge: #1C2C57;
  --cyan: #2BE7D6;
  --teal: #0F7C82;
  --red: #FF4457;
  --gold: #FFC247;
  --mist: #8FA3C8;
  --paper: #F4F8FF;
  --panel: #E9EFF9;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", "Courier New", monospace;

  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --section-y: clamp(52px, 8vw, 118px);
  --cut: 22px;
  --cut-sm: 12px;

  --hair: 1px solid rgba(143, 163, 200, 0.2);
  --hair-strong: 1px solid rgba(43, 231, 214, 0.34);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-cyan: 0 0 26px rgba(43, 231, 214, 0.26);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.85;
  color: var(--paper);
  background-color: var(--deep);
  background-image:
    radial-gradient(70% 46% at 88% -6%, rgba(43, 231, 214, 0.12), transparent 68%),
    radial-gradient(56% 42% at 4% 26%, rgba(255, 68, 87, 0.07), transparent 72%),
    linear-gradient(180deg, #070E22 0%, #0B1429 40%, #070E22 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

p { text-wrap: pretty; }

::selection { background: rgba(43, 231, 214, 0.32); color: var(--paper); }

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

/* ---------- 4. 布局基础 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }

.section-head { margin-bottom: clamp(24px, 3.4vw, 48px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  flex: none;
}

.display {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--paper);
}

.chapter-mark {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.34em;
  font-size: 11.5px;
  color: rgba(143, 163, 200, 0.72);
  font-family: var(--font-mono);
}

.hairline { border: 0; border-top: var(--hair); }

.veil { position: relative; isolation: isolate; }

.veil::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 52% at 86% 8%, rgba(43, 231, 214, 0.13), transparent 66%),
    radial-gradient(48% 44% at 6% 76%, rgba(255, 68, 87, 0.1), transparent 72%),
    linear-gradient(162deg, #070E22 0%, #101C3E 54%, #070E22 100%);
}

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

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, 0 100%);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: #04121A;
  font-weight: 700;
  box-shadow: var(--shadow-cyan);
}

.btn--primary:hover { background: #5FF3E6; box-shadow: 0 0 36px rgba(43, 231, 214, 0.46); }

.btn--ghost {
  background: rgba(43, 231, 214, 0.07);
  border-color: rgba(43, 231, 214, 0.36);
  color: var(--cyan);
}

.btn--ghost:hover { background: rgba(43, 231, 214, 0.17); border-color: var(--cyan); }

.btn--outline {
  background: rgba(28, 44, 87, 0.42);
  border-color: rgba(143, 163, 200, 0.34);
  color: var(--paper);
}

.btn--outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 6. 切角面板与数据组件 ---------- */
.cut-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(158deg, rgba(28, 44, 87, 0.78), rgba(16, 28, 62, 0.9));
  border: 1px solid rgba(143, 163, 200, 0.18);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(43, 231, 214, 0.05);
}

.cut-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.panel-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cyan);
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mist);
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  border: 1px solid currentColor;
  color: var(--mist);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

.tag--live { color: var(--red); background: rgba(255, 68, 87, 0.1); }

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.tag--out { color: var(--red); background: rgba(255, 68, 87, 0.08); }

.tag--gold { color: var(--gold); background: rgba(255, 194, 71, 0.1); }

.data-list { display: grid; gap: 2px; }

.data-list__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(143, 163, 200, 0.14);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.data-list__row:hover { background: rgba(43, 231, 214, 0.06); border-color: rgba(43, 231, 214, 0.32); }

.data-list__row.is-suppressed { display: none; }

/* ---------- 7. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(142deg, #101C3E 0%, #070E22 62%, #0F7C82 150%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.media img { width: 100%; height: 100%; object-fit: cover; }

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 22px 16px 12px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
  background: linear-gradient(180deg, transparent, rgba(7, 14, 34, 0.88));
}

.media-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ---------- 8. 正文与面包屑 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(244, 248, 255, 0.86);
}

.prose p + p { margin-top: 1.1em; }

.prose h2 { margin-top: 1.6em; font-size: clamp(22px, 2.6vw, 30px); }

.prose h3 { margin-top: 1.4em; font-size: 19px; }

.prose ul, .prose ol { margin-top: 1em; padding-left: 1.2em; list-style: disc; }

.prose li + li { margin-top: 0.5em; }

.prose a { color: var(--cyan); border-bottom: 1px solid rgba(43, 231, 214, 0.4); }

.prose--panel {
  max-width: none;
  padding: clamp(22px, 3vw, 44px);
  background: var(--panel);
  color: #101C3E;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.prose--panel a { color: #0F7C82; border-bottom-color: rgba(15, 124, 130, 0.4); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumbs li { display: inline-flex; align-items: center; }

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(143, 163, 200, 0.42);
}

.breadcrumbs a:hover { color: var(--cyan); }

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121A;
  font-size: 13px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: top 0.2s var(--ease);
}

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

/* ---------- 10. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(7, 14, 34, 0.97), rgba(9, 17, 38, 0.88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(143, 163, 200, 0.18);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--teal), var(--cyan) 46%, var(--gold));
  box-shadow: 0 0 14px rgba(43, 231, 214, 0.5);
  pointer-events: none;
}

.header-upper {
  max-height: 120px;
  overflow: hidden;
  border-bottom: 1px solid rgba(143, 163, 200, 0.12);
  transition: max-height 0.5s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header-upper__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px clamp(14px, 2.6vw, 36px);
  padding-block: 9px;
}

.brandline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.brandline__dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transform: rotate(45deg);
}

.locator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

.locator__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mist);
  white-space: nowrap;
}

.locator__field {
  width: clamp(150px, 20vw, 240px);
  min-width: 0;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--paper);
  background: rgba(28, 44, 87, 0.6);
  border: 1px solid rgba(43, 231, 214, 0.3);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.locator__field::placeholder { color: rgba(143, 163, 200, 0.72); }

.locator__field:focus {
  background: rgba(28, 44, 87, 0.86);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43, 231, 214, 0.16);
}

.locator__status {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  white-space: nowrap;
}

.locator__status:empty { display: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-lower { position: relative; }

.header-lower__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: 9px;
  transition: padding 0.4s var(--ease);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brandmark__glyph {
  width: 22px;
  height: 22px;
  flex: none;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 18px rgba(43, 231, 214, 0.5);
}

.brandmark__text {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brandmark__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--mist);
}

.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.3vw, 18px);
  flex-wrap: wrap;
}

.site-nav__list a {
  position: relative;
  display: block;
  padding: 9px 6px;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
  transition: color 0.25s var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.36s var(--ease);
}

.site-nav__list a:hover { color: var(--paper); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-nav__list a[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 13px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  background: rgba(28, 44, 87, 0.62);
  border: 1px solid rgba(43, 231, 214, 0.32);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 11px;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), bottom 0.3s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4.6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: 4.8px; transform: rotate(-45deg); }

@media (min-width: 901px) {
  .site-header.is-condensed .header-upper {
    max-height: 0;
    opacity: 0;
    border-color: transparent;
  }
  .site-header.is-condensed .header-lower__inner { padding-block: 6px; }
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 9vw, 140px);
  overflow: hidden;
  border-top: 1px solid rgba(43, 231, 214, 0.24);
  background: linear-gradient(180deg, #070E22 0%, #101C3E 48%, #070E22 100%);
}

.footer-glow {
  position: absolute;
  top: -180px;
  left: -8%;
  width: 70%;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(52% 58% at 34% 40%, rgba(43, 231, 214, 0.17), transparent 70%);
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 2.1fr);
  gap: clamp(26px, 4.6vw, 74px);
  padding-block: clamp(44px, 7vw, 86px) 26px;
}

.footer-brand { min-width: 0; }

.brandmark--footer { margin-bottom: 18px; }

.footer-intro {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 248, 255, 0.82);
}

.footer-contact {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--mist);
  overflow-wrap: break-word;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.footer-list li + li { margin-top: 2px; }

.footer-list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14.5px;
  color: var(--mist);
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}

.footer-list a:hover { color: var(--paper); transform: translateX(4px); }

.footer-meta {
  grid-column: 1 / -1;
  margin-top: clamp(20px, 3vw, 40px);
  padding-top: 20px;
  border-top: 1px solid rgba(143, 163, 200, 0.16);
}

.footer-note {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(143, 163, 200, 0.86);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(14px, 3vw, 36px);
  margin-top: 16px;
}

.footer-legal,
.footer-copy {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.footer-copy { font-family: var(--font-mono); margin-right: auto; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: rgba(43, 231, 214, 0.08);
  border: 1px solid rgba(43, 231, 214, 0.34);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), background 0.25s var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; }

.to-top:hover { background: rgba(43, 231, 214, 0.2); }

/* ---------- 12. 显现动效 ---------- */
[data-reveal] {
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: 1fr; }
  .brandline { display: none; }
}

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

  .header-upper { max-height: none; }

  .header-upper__inner { padding-block: 8px; gap: 10px; }

  .locator { margin-left: 0; flex: 1 1 100%; }

  .locator__field { flex: 1 1 auto; width: auto; }

  .header-cta { flex: none; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    display: none;
    padding: 10px var(--gutter) 20px;
    background: linear-gradient(180deg, #0B1530 0%, #070E22 100%);
    border-top: 1px solid rgba(143, 163, 200, 0.18);
    border-bottom: 1px solid rgba(43, 231, 214, 0.28);
    box-shadow: 0 26px 44px rgba(4, 8, 20, 0.62);
  }

  .site-nav[data-open] {
    display: block;
    animation: nav-drop 0.28s var(--ease) both;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li + li { border-top: 1px solid rgba(143, 163, 200, 0.14); }

  .site-nav__list a {
    padding: 14px 4px;
    font-size: 16px;
  }

  .site-nav__list a::after { left: 4px; right: auto; width: 26px; bottom: 9px; }

  .panel-grid { grid-template-columns: 1fr; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .header-cta .btn--ghost { display: none; }

  .locator__label { display: none; }

  .footer-nav { grid-template-columns: repeat(2, minmax(120px, 1fr)); }

  .footer-bottom { align-items: flex-start; }

  .footer-copy { margin-right: 0; flex: 1 1 100%; order: 3; }
}

@media (max-width: 420px) {
  .footer-nav { grid-template-columns: 1fr; }
  .btn { padding: 9px 13px; font-size: 13px; }
}

/* ---------- 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;
  }

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

  .scroll-progress { transition: none; }
}
