/* ============================================================
   云开体育看台 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 变量 ---------- */
:root {
  --ink-900: #08122B;
  --ink-800: #0E1E42;
  --ink-700: #16355F;
  --cyan: #21E6C1;
  --cyan-soft: #8AF5E6;
  --orange: #FF7A33;
  --sand: #FFC08A;
  --mist: #EEF4FF;
  --steel: #9FB2D4;
  --green: #3ED598;
  --deep: #04211C;
  --line: rgba(33, 230, 193, 0.20);
  --line-soft: rgba(159, 178, 212, 0.18);
  --shell: 1240px;
  --r-lg: 32px;
  --r-md: 20px;
  --r-sm: 12px;
  --pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--mist);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(33, 230, 193, 0.16), transparent 62%),
    radial-gradient(760px 520px at 6% 4%, rgba(255, 122, 51, 0.12), transparent 60%),
    linear-gradient(180deg, #08122B 0%, #0A1734 44%, #08122B 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
::selection { background: var(--cyan); color: var(--deep); }

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 11px 22px;
  border-radius: var(--pill);
  background: var(--cyan);
  color: var(--deep);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

/* ---------- 文字工具 ---------- */
.index-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.data-figure {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--mist);
}
.lede {
  max-width: 68ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--steel);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 70ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 600; line-height: 1.15; }
.section-head p { font-size: 16.5px; color: var(--steel); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), border-color 0.3s var(--ease),
              padding 0.3s var(--ease), font-size 0.3s var(--ease);
}
.btn-accent {
  background: linear-gradient(135deg, var(--orange) 0%, #FF9A5C 100%);
  color: #1A0A02;
  box-shadow: 0 16px 36px -20px rgba(255, 122, 51, 0.95);
}
.btn-accent:hover {
  box-shadow: 0 20px 42px -18px rgba(255, 122, 51, 1), 0 0 0 1px rgba(255, 192, 138, 0.65);
}
.btn-solid { background: var(--cyan); color: var(--deep); box-shadow: 0 16px 36px -22px rgba(33, 230, 193, 0.95); }
.btn-solid:hover { background: var(--cyan-soft); }
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(33, 230, 193, 0.05);
  color: var(--cyan-soft);
}
.btn-ghost:hover { background: rgba(33, 230, 193, 0.14); border-color: rgba(33, 230, 193, 0.5); }

/* ---------- 胶囊与标签 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--pill);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--cyan-soft);
  background: rgba(33, 230, 193, 0.10);
  box-shadow: inset 0 0 0 1px rgba(33, 230, 193, 0.28);
}
.pill[data-state="live"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(62, 213, 152, 0.16);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--pill);
  background: var(--sand);
  color: #3A1A05;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(22, 53, 95, 0.72) 0%, rgba(14, 30, 66, 0.70) 100%);
  box-shadow: inset 0 0 0 1px rgba(33, 230, 193, 0.16), 0 34px 74px -52px rgba(0, 0, 0, 0.95);
  transition: box-shadow 0.32s var(--ease);
}
.card:hover {
  box-shadow: inset 0 0 0 1px rgba(33, 230, 193, 0.40), 0 34px 74px -48px rgba(33, 230, 193, 0.30);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  isolation: isolate;
  background-image:
    radial-gradient(120% 90% at 20% 0%, rgba(33, 230, 193, 0.22), transparent 62%),
    radial-gradient(90% 80% at 90% 100%, rgba(255, 122, 51, 0.16), transparent 60%),
    linear-gradient(160deg, #16355F 0%, #0E1E42 56%, #08122B 100%);
  box-shadow: inset 0 0 0 1px rgba(33, 230, 193, 0.18);
}
.media-frame > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(238, 244, 255, 0.06) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(238, 244, 255, 0.05) 0 1px, transparent 1px 84px);
}
.media-frame[data-ratio="21x9"] { aspect-ratio: 21 / 9; }
.media-frame[data-ratio="4x3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="1x1"] { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="3x4"] { aspect-ratio: 3 / 4; }
.media-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
  background: linear-gradient(0deg, rgba(8, 18, 43, 0.92), transparent);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-top: 24px; font-size: 12.5px; letter-spacing: 0.12em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.breadcrumb li { color: var(--steel); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #4C5F85; }
.breadcrumb a:hover { color: var(--cyan-soft); }
.breadcrumb li[aria-current="page"] { color: var(--cyan); }

/* ---------- 长文 ---------- */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(24px, 2.6vw, 34px); }
.prose h3 { margin-top: 1.8em; font-size: 20px; }
.prose h2 + p, .prose h3 + p { margin-top: 0.8em; }
.prose ul, .prose ol { margin: 1.2em 0; }
.prose li { position: relative; padding-left: 22px; margin-top: 0.6em; color: var(--steel); }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.prose strong { color: var(--mist); font-weight: 600; }
.prose a { color: var(--cyan-soft); box-shadow: inset 0 -1px 0 rgba(138, 245, 230, 0.5); }
.prose a:hover { box-shadow: inset 0 -2px 0 var(--cyan); }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 1; transform: none; }
[data-motion="on"] .reveal { opacity: 0; transform: translateY(12px); }
[data-motion="on"] .reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 18, 43, 0.94) 0%, rgba(10, 22, 50, 0.86) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: linear-gradient(180deg, rgba(8, 18, 43, 0.98) 0%, rgba(9, 19, 44, 0.95) 100%);
  box-shadow: 0 22px 50px -38px rgba(0, 0, 0, 0.95);
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(159, 178, 212, 0.16);
  pointer-events: none;
}
.read-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-soft) 45%, var(--orange) 100%);
}

.header-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px clamp(18px, 4vw, 40px) 12px;
  transition: padding 0.32s var(--ease);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.masthead-coord {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--steel);
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.masthead-coord .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(33, 230, 193, 0.16);
  animation: coord-pulse 2.6s var(--ease) infinite;
}
@keyframes coord-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(33, 230, 193, 0.16); }
  50% { box-shadow: 0 0 0 9px rgba(33, 230, 193, 0.04); }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.brand-name {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mist);
  transition: font-size 0.32s var(--ease), letter-spacing 0.32s var(--ease), color 0.25s var(--ease);
}
.brand:hover .brand-name { color: var(--cyan-soft); }
.brand-subline {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--steel);
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 9px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(33, 230, 193, 0.06);
  color: var(--cyan-soft);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { margin-top: 16px; transition: margin-top 0.32s var(--ease); }
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.nav-list a {
  display: block;
  padding: 9px 18px;
  border-radius: var(--pill);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--steel);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-list a:hover { color: var(--mist); background: rgba(33, 230, 193, 0.10); }
.nav-list a[aria-current="page"] {
  color: var(--deep);
  background: var(--cyan);
  box-shadow: 0 14px 30px -18px rgba(33, 230, 193, 0.95);
}

/* 收缩态 */
.site-header[data-scrolled="true"] .header-inner { padding-top: 10px; padding-bottom: 8px; }
.site-header[data-scrolled="true"] .brand-subline { display: none; }
.site-header[data-scrolled="true"] .brand-name { font-size: 17px; letter-spacing: 0.24em; }
.site-header[data-scrolled="true"] .masthead-coord { opacity: 0; visibility: hidden; }
.site-header[data-scrolled="true"] .site-nav { margin-top: 8px; }
.site-header[data-scrolled="true"] .btn { padding: 7px 15px; font-size: 12.5px; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 14.5px;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 420px at 82% 0%, rgba(33, 230, 193, 0.12), transparent 62%),
    radial-gradient(620px 380px at 4% 100%, rgba(255, 122, 51, 0.10), transparent 60%),
    linear-gradient(180deg, #0B1836 0%, #08122B 100%);
}
.footer-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 72px) clamp(18px, 4vw, 40px) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding-bottom: clamp(26px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line-soft);
}
.footer-brandline {
  max-width: 26ch;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--mist);
}
.footer-coord {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.footer-contact-line { font-size: 13.5px; line-height: 2; color: var(--steel); }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 44px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.footer-col-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--mist);
}
.footer-col-title .index-label { font-size: 11px; color: var(--orange); }
.footer-links li + li { margin-top: 9px; }
.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  color: var(--steel);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 1px;
  background: var(--cyan);
  transition: width 0.25s var(--ease);
}
.footer-links a:hover { color: var(--cyan-soft); padding-left: 22px; }
.footer-links a:hover::before { width: 12px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #7C8FB4;
}
.footer-legal-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal-nav a { color: var(--steel); transition: color 0.25s var(--ease); }
.footer-legal-nav a:hover { color: var(--cyan-soft); }
.footer-icp { font-family: var(--font-mono); letter-spacing: 0.08em; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  html { scroll-padding-top: 120px; }
  .masthead { grid-template-columns: 1fr auto; gap: 12px; }
  .masthead-coord { display: none; }
  .brand { align-items: flex-start; text-align: left; }
  .masthead-actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: min(340px, 86vw);
    margin-top: 0;
    padding: 96px clamp(20px, 6vw, 32px) 40px;
    overflow-y: auto;
    border-left: 1px solid rgba(33, 230, 193, 0.28);
    border-radius: 30px 0 0 30px;
    background: linear-gradient(180deg, #0E1E42 0%, #08122B 100%);
    box-shadow: -44px 0 90px -56px rgba(0, 0, 0, 0.95);
    transform: translateX(105%);
    transition: transform 0.34s var(--ease);
  }
  .site-nav::before {
    content: "栏目索引 INDEX";
    display: block;
    margin-bottom: 18px;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--cyan);
  }
  .site-nav[data-open="true"] { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-list a {
    padding: 15px 20px;
    border-radius: 18px;
    font-size: 16px;
    letter-spacing: 0.06em;
  }
  .nav-list a[aria-current="page"] { box-shadow: none; }

  .site-header[data-scrolled="true"] .site-nav { margin-top: 0; }
}

@media (max-width: 860px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; font-size: 16.5px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .grid-12 { grid-template-columns: 1fr; }
  .media-frame { aspect-ratio: 16 / 10; }
  .brand-subline { display: none; }
  .footer-columns { grid-template-columns: 1fr; }
  .header-inner { padding-top: 14px; padding-bottom: 10px; }
}

/* ============================================================
   动效偏好
   ============================================================ */
@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;
  }
  .reveal,
  [data-motion="on"] .reveal { opacity: 1 !important; transform: none !important; }
  .site-nav { transition: none !important; }
}
