/* =========================================================
   云体育赛事 · /assets/site.css
   云纸白 / 深墨蓝 / 深空蓝 / 电光青 / 暖橙
   ========================================================= */

:root {
  --paper: #F7F5F0;
  --ink: #0B1B33;
  --deep: #112A4A;
  --cyan: #19E3D1;
  --orange: #FF7A1A;
  --grey: #C9D1D9;
  --green: #2EE6A8;
  --red: #FF4D4F;
  --night: #05101F;
  --mint: #E6FBF8;

  --ink-70: rgba(11, 27, 51, .74);
  --ink-55: rgba(11, 27, 51, .55);
  --line: rgba(11, 27, 51, .14);
  --line-soft: rgba(11, 27, 51, .07);
  --on-deep: rgba(247, 245, 240, .8);
  --on-deep-dim: rgba(247, 245, 240, .52);

  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --header-h: 74px;
  --pill: 999px;
  --ease: cubic-bezier(.22, .68, .24, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 44px);
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(11, 27, 51, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 27, 51, .035) 1px, transparent 1px);
  background-size: 96px 96px;
  padding-top: calc(var(--header-h) + 34px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  font-style: italic;
  font-stretch: 105%;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.02rem; letter-spacing: 0; }

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

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

.num, .metric__num, code, kbd, .foot-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

#main-content { display: block; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- 布局容器 ---------- */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(46px, 6.5vw, 96px) 0; }
.section--dark {
  background: var(--deep);
  color: var(--on-deep);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .metric__num { color: var(--cyan); }
.section--dark .metric__label { color: var(--on-deep-dim); }
.section--dark .muted { color: var(--on-deep-dim); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.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)); }

.stack > * + * { margin-top: var(--stack, 18px); }

/* ---------- 文本 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--deep);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
  flex: 0 0 auto;
}
.eyebrow--dark { color: var(--cyan); }
.eyebrow--dark::before { background: var(--orange); }

.lede {
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.5vw, 1.26rem);
  line-height: 1.65;
  color: var(--ink-70);
}
.muted { color: var(--ink-55); }

.prose {
  max-width: 66ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-70);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.5rem, 2.6vw, 2.05rem); color: var(--ink); }
.prose h3 { margin-top: 1.8em; font-size: 1.22rem; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-top: .45em; list-style: disc; }
.prose ol li { list-style: decimal; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--signal {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 26, .28);
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--cyan { background: var(--cyan); color: var(--night); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost { border-color: rgba(247, 245, 240, .3); color: var(--paper); }

/* ---------- 卡片 / 数据 / 标签 ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(18px, 2vw, 26px);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 227, 209, .75);
  box-shadow: 0 18px 42px rgba(5, 16, 31, .09);
}
.card--dark {
  background: var(--deep);
  border-color: rgba(247, 245, 240, .14);
  color: var(--on-deep);
}

.panel {
  background: var(--mint);
  border: 1px solid rgba(25, 227, 209, .42);
  border-radius: 2px;
  padding: clamp(18px, 2.2vw, 28px);
}

.metric { display: flex; flex-direction: column; gap: 6px; }
.metric__num {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--deep);
}
.metric__label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--deep);
}
.tag--live { background: var(--orange); border-color: transparent; color: #fff; }
.tag--mint { background: var(--mint); border-color: rgba(25, 227, 209, .55); color: var(--ink); }

/* ---------- 图片容器（供页面阶段放置素材） ---------- */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  border-radius: 2px;
  isolation: isolate;
}
.figure__img, .figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure[data-ratio="21x9"] { aspect-ratio: 21 / 9; }
.figure[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.figure[data-ratio="3x2"]  { aspect-ratio: 3 / 2; }
.figure[data-ratio="4x3"]  { aspect-ratio: 4 / 3; }
.figure[data-ratio="4x5"]  { aspect-ratio: 4 / 5; }
.figure[data-ratio="1x1"]  { aspect-ratio: 1 / 1; }
.figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(5, 16, 31, 0), rgba(5, 16, 31, .58));
  pointer-events: none;
  z-index: 1;
}
.figure--flat::after { display: none; }
.figure--empty {
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(25, 227, 209, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 227, 209, .16) 1px, transparent 1px);
  background-size: 30px 30px;
}

.speedline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .65;
}

/* ---------- 面包屑 ---------- */
.crumbs {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-55);
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before {
  content: "/";
  color: var(--grey);
  font-family: var(--font-mono);
}
.crumbs a { color: var(--ink-55); }
.crumbs a:hover { color: var(--deep); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 入场显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 86;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(25, 227, 209, .45);
  background: var(--ink);
  color: var(--cyan);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              visibility .25s linear, background-color .25s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--deep); }

/* =========================================================
   站点头部 · 悬浮胶囊浮岛
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 92;
  padding-top: 14px;
  pointer-events: none;
}

.yun-header {
  position: relative;
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  pointer-events: auto;
  background: rgba(247, 245, 240, .9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: 0 14px 40px rgba(5, 16, 31, .09);
}

.yun-header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px 9px 18px;
}

/* 品牌浮岛 */
.yun-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
}
.yun-brand__mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.yun-brand__mark::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -5px 0 rgba(25, 227, 209, .55), 0 5px 0 rgba(25, 227, 209, .3);
}
.yun-brand__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(25, 227, 209, .6);
  animation: yun-pulse 3.6s var(--ease) infinite;
}
@keyframes yun-pulse {
  0%   { transform: scale(.55); opacity: .95; }
  72%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}
.yun-brand__text { display: block; }
.yun-brand__name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  font-stretch: 105%;
  letter-spacing: .01em;
  line-height: 1.1;
}
.yun-brand__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* 栏目胶囊 */
.capnav { margin-inline: auto; }
.capnav__list { display: flex; align-items: center; gap: 2px; }
.capnav__link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-70);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.capnav__link:hover { color: var(--ink); background: rgba(11, 27, 51, .06); }
.capnav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(25, 227, 209, .6);
}

/* 右侧动作区 */
.yun-header__act {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.yun-header__cta { padding: 11px 20px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 15px 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: background-color .2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: transform .24s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 滚动进度轨 */
.scroll-rail {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-soft);
  overflow: hidden;
}
.scroll-rail__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* =========================================================
   移动端底部导航
   ========================================================= */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 88;
  display: none;
  background: rgba(17, 42, 74, .97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(25, 227, 209, .3);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dock__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dock__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 2px 11px;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--on-deep-dim);
  transition: color .2s var(--ease);
}
.dock__dot {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
}
.dock__link--key { color: var(--cyan); }
.dock__link--key .dock__dot { background: var(--cyan); opacity: 1; }
.dock__link[aria-current="page"] { color: #fff; }
.dock__link[aria-current="page"] .dock__dot { background: var(--orange); opacity: 1; }

/* =========================================================
   站点页脚
   ========================================================= */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(60px, 8vw, 118px);
  padding: clamp(48px, 6vw, 80px) 0 26px;
  background: var(--deep);
  color: var(--on-deep);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(112deg, rgba(25, 227, 209, .1) 0 1px, transparent 1px 30px);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange) 55%, rgba(255, 122, 26, 0));
}

.foot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.foot-brand__name {
  margin-top: 16px;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  font-style: italic;
  font-stretch: 105%;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
}
.foot-brand__line {
  margin-top: 14px;
  font-size: 14.5px;
  letter-spacing: .04em;
  color: var(--on-deep-dim);
}
.foot-brand__domain {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(18px, 3vw, 44px);
}
.foot-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  font-size: 15px;
  color: var(--on-deep);
  border-bottom: 1px solid rgba(247, 245, 240, .13);
  transition: color .2s var(--ease), border-color .2s var(--ease), padding-left .2s var(--ease);
}
.foot-link::after {
  content: "↗";
  font-family: var(--font-mono);
  font-size: 11px;
  color: transparent;
  transition: color .2s var(--ease);
}
.foot-link:hover {
  color: var(--cyan);
  border-color: rgba(25, 227, 209, .55);
  padding-left: 8px;
}
.foot-link:hover::after { color: var(--cyan); }

.foot-base {
  position: relative;
  z-index: 1;
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: 20px;
  border-top: 1px solid rgba(247, 245, 240, .13);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 44px;
  font-size: 13.5px;
  color: var(--on-deep-dim);
}
.foot-base__item { flex: 0 1 auto; }
.foot-base__item--wide { flex: 1 1 320px; }
.foot-mono {
  margin-right: 8px;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(25, 227, 209, .78);
}
.foot-legal {
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: .03em;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .capnav__link { padding: 9px 10px; font-size: 13px; }
  .yun-brand__sub { display: none; }
  .yun-header__cta { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { padding-top: calc(var(--header-h) + 24px); padding-bottom: 74px; }

  .site-header { padding-top: 10px; }
  .yun-header { width: min(100% - 24px, 1240px); }
  .yun-header__inner { padding: 8px 8px 8px 14px; gap: 10px; }
  .yun-brand__mark { width: 26px; height: 26px; }
  .yun-brand__name { font-size: 15px; }
  .yun-header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .scroll-rail { left: 18px; right: 18px; bottom: 4px; }

  .capnav {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    left: 12px;
    right: 12px;
    margin: 0;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 28px 64px rgba(5, 16, 31, .24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.985);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s linear;
    z-index: 6;
  }
  .site-header[data-open] .capnav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .capnav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .capnav__link {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
  }

  .dock { display: block; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .to-top { right: 16px; bottom: 84px; }

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

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 640px) {
  html { scroll-padding-top: calc(var(--header-h) + 30px); }
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .foot-links { grid-template-columns: minmax(0, 1fr); }
  .foot-legal { margin-left: 0; flex: 1 1 100%; }
  .foot-base__item--wide { flex: 1 1 100%; }
}

/* =========================================================
   动效降级
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .yun-brand__pulse { display: none; }
  .btn:hover, .card:hover, .to-top { transform: none; }
}
