/* ==========================================================================
   云体育主站 · 共享样式表 /assets/site.css
   深空蓝数据指挥中心：玻璃导航 + 实色内容层 + 等宽索引
   ========================================================================== */

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

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

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

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色 */
  --c-ink: #0A1128;
  --c-ink-2: #141E3C;
  --c-ink-3: #2A3A5C;
  --c-cyan: #00E5FF;
  --c-orange: #FF5A1F;
  --c-warm: #F5F0E8;
  --c-cream: #EAE0D0;
  --c-brown: #1A1410;
  --c-charcoal: #3D4455;
  --c-amber: #FFB347;

  /* 语义色 */
  --text: #F5F0E8;
  --text-dim: #9AA6BF;
  --text-mute: #7E89A3;
  --line: rgba(245, 240, 232, 0.13);
  --line-strong: rgba(245, 240, 232, 0.24);
  --line-cyan: rgba(0, 229, 255, 0.42);
  --glass: rgba(20, 30, 60, 0.62);

  /* 尺度 */
  --shell: min(1280px, 92vw);
  --radius: 3px;
  --gap: clamp(16px, 2vw, 24px);
  --block: clamp(48px, 7vw, 96px);

  /* 字体 */
  --font-head: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 660px at 84% -12%, rgba(0, 229, 255, 0.13), transparent 62%),
    radial-gradient(920px 560px at -6% 12%, rgba(255, 90, 31, 0.10), transparent 60%),
    radial-gradient(760px 520px at 52% 118%, rgba(42, 58, 92, 0.6), transparent 72%);
}

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

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 700; }

p { text-wrap: pretty; }

strong { color: var(--c-warm); font-weight: 700; }

small { font-size: 0.8125rem; }

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

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

#main-content { scroll-margin-top: 132px; }

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.bento > * { grid-column: span 12; min-width: 0; }

/* ---------- 5. 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  background: var(--c-orange);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.62rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--radius);
}

.tag--amber {
  color: var(--c-amber);
  background: rgba(255, 179, 71, 0.09);
  border-color: rgba(255, 179, 71, 0.32);
}

.card {
  position: relative;
  display: block;
  padding: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(158deg, rgba(20, 30, 60, 0.96), rgba(10, 17, 40, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.card:focus-within {
  border-color: var(--line-cyan);
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -30px rgba(0, 229, 255, 0.85);
}

.card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 26px;
  height: 2px;
  background: var(--c-cyan);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card:hover::after { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(20, 30, 60, 0.7);
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.btn:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: #12060a;
}

.btn--primary:hover {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: #1A1410;
  box-shadow: 0 14px 30px -18px rgba(255, 90, 31, 0.95);
}

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

.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--c-warm);
  border-color: var(--c-cyan);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--c-charcoal);
}

.breadcrumb a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.breadcrumb [aria-current="page"] { color: var(--c-warm); }

.prose {
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

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

.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.7em; }

.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

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

.prose a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--c-amber); }

.prose blockquote {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--c-orange);
  background: rgba(234, 224, 208, 0.06);
  color: var(--c-cream);
}

.prose code {
  padding: 0.12em 0.42em;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--c-amber);
  background: rgba(255, 179, 71, 0.1);
  border-radius: 2px;
}

/* ---------- 6. 图片容器（页面阶段放置 <img>） ---------- */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--c-ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease;
}

.figure:hover { border-color: var(--line-cyan); }

.figure__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.10), rgba(255, 90, 31, 0.08)),
    repeating-linear-gradient(115deg, rgba(245, 240, 232, 0.05) 0 1px, transparent 1px 16px),
    var(--c-ink-2);
}

.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.figure:hover .figure__media img { transform: scale(1.03); }

.figure__caption {
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

/* ---------- 7. 头部 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%);
  padding: 0.72rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  background: var(--c-cyan);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 17, 40, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.header-utility {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 46%, rgba(255, 90, 31, 0.09));
}

.header-utility__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  transition: opacity 0.2s ease;
}

.brand:hover { opacity: 0.82; }

.brand__mark {
  width: 22px;
  height: 22px;
  flex: none;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-orange));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  color: var(--c-warm);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--c-cyan);
}

.header-readout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  color: var(--text-mute);
  white-space: nowrap;
}

.header-readout__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.18);
}

.header-readout__value { color: var(--c-amber); }

.header-nav { position: relative; }

.header-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  min-height: 58px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover { background: rgba(0, 229, 255, 0.14); }

.nav-toggle__bars {
  display: inline-block;
  width: 16px;
  height: 10px;
  flex: none;
  background:
    linear-gradient(var(--c-cyan), var(--c-cyan)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--c-cyan), var(--c-cyan)) 0 4.5px / 100% 1px no-repeat,
    linear-gradient(var(--c-cyan), var(--c-cyan)) 0 9px / 100% 1px no-repeat;
}

.primary-nav { flex: 1 1 auto; min-width: 0; }

.primary-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.6vw, 28px);
}

.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.24rem;
  height: 1px;
  background: var(--c-cyan);
  transition: right 0.26s ease;
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible { color: var(--c-cyan); }

.primary-nav__list a:hover::after,
.primary-nav__list a:focus-visible::after { right: 0; }

.primary-nav__list a[aria-current="page"] { color: var(--c-cyan); }

.primary-nav__list a[aria-current="page"]::after {
  right: 0;
  height: 2px;
  background: var(--c-orange);
}

.header-cta {
  flex: none;
  padding: 0.62rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #12060a;
  background: var(--c-orange);
  border: 1px solid var(--c-orange);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  background: var(--c-amber);
  border-color: var(--c-amber);
  box-shadow: 0 10px 26px -14px rgba(255, 90, 31, 0.95);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
  pointer-events: none;
  transition: transform 0.12s linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  color: var(--text-dim);
  background: linear-gradient(180deg, rgba(20, 30, 60, 0.96), rgba(10, 17, 40, 1));
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(340px, 42vw);
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 68px) clamp(26px, 3vw, 40px);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--c-warm);
}

.footer-brand__note {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--c-cyan);
}

.footer-brand__desc {
  margin-top: 1.05rem;
  max-width: 36ch;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.footer-col__title {
  margin-bottom: 1.05rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-amber);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--c-cyan);
  padding-left: 4px;
}

.footer-contact {
  display: grid;
  gap: 0.7rem;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.875rem;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

.footer-contact__val {
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.6rem;
  padding-block: 1.1rem 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.footer-legal__icp { color: var(--c-amber); }

/* ---------- 9. 响应式 ---------- */
@media (min-width: 760px) {
  .bento__sm-6 { grid-column: span 6; }
}

@media (min-width: 1024px) {
  .bento__md-4 { grid-column: span 4; }
  .bento__md-5 { grid-column: span 5; }
  .bento__md-7 { grid-column: span 7; }
  .bento__md-8 { grid-column: span 8; }
  .bento__md-12 { grid-column: span 12; }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; }
}

@media (max-width: 900px) {
  :root { --shell: 92vw; }

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

  .header-nav__inner { flex-wrap: nowrap; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 95;
    max-height: 0;
    overflow: hidden auto;
    background: rgba(16, 24, 50, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-cyan);
    transition: max-height 0.32s ease;
  }

  .site-header[data-open] .primary-nav { max-height: 70vh; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .primary-nav__list li + li { border-top: 1px solid var(--line); }

  .primary-nav__list a {
    display: block;
    padding: 0.95rem 0.2rem;
    font-size: 0.875rem;
  }

  .primary-nav__list a::after { display: none; }

  .primary-nav__list a[aria-current="page"] {
    padding-left: 0.9rem;
    box-shadow: inset 3px 0 0 var(--c-orange);
  }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 0.9375rem; }

  .header-readout { display: none; }

  .brand__name { font-size: 1rem; }
  .brand__sub { letter-spacing: 0.1em; }

  .header-cta {
    padding: 0.55rem 0.8rem;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
  }

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

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

  .footer-contact li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }

  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- 10. 动效偏好 ---------- */
@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;
  }

  .scroll-progress { transition: none; }

  .card:hover,
  .btn:hover { transform: none; }
}
