/* ============================================================
   云体育 / 共享站点样式 site.css
   奶油纸底 + 深棕黑墨 + 草原青绿 + 赛事橙红 + 深空蓝
   ============================================================ */

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

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

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

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

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

a { color: inherit; }

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

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

/* ---------- tokens ---------- */
:root {
  --paper: #F5EFE3;
  --paper-2: #E8E0D2;
  --ink: #1B1613;
  --green: #0E7C5A;
  --green-hi: #16A97B;
  --orange: #E1471C;
  --orange-deep: #C53A13;
  --navy: #101C33;
  --silver: #C7C9CE;
  --gold: #C99A3F;
  --ash: #6E665C;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar: 56px;
  --shadow-lift: 0 2px 8px rgba(27, 22, 19, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --line: 1px solid var(--silver);
  --line-ink: 1px solid var(--ink);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { max-width: 64ch; }

::selection {
  background: var(--green);
  color: var(--paper);
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--green-hi);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.nav-link:focus-visible {
  outline-offset: 3px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 80px); }
.section--tight { padding-block: clamp(24px, 3.4vw, 44px); }

.rule {
  height: 1px;
  border: 0;
  background: var(--silver);
  margin-block: clamp(24px, 4vw, 48px);
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.layout-split--wide {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.c-4 { grid-column: span 4; }
.c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; }
.c-7 { grid-column: span 7; }
.c-8 { grid-column: span 8; }
.c-12 { grid-column: span 12; }

/* ---------- typography ---------- */
.display {
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-title {
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.sub-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: #3A322C;
  max-width: 34em;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.prose p { max-width: 34em; }
.prose p + p { margin-top: 1em; }
.prose h2 {
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  font-weight: 900;
}
.prose h3 {
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  font-size: 18px;
  font-weight: 800;
}
.prose ul {
  display: grid;
  gap: 0.4em;
  margin-block: 0.6em;
}
.prose ul li {
  position: relative;
  padding-left: 1.2em;
  max-width: 34em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 7px;
  height: 2px;
  background: var(--green);
}

.sr-only {
  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 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  display: inline-block;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--green-hi);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease),
    border-color 160ms var(--ease), transform 160ms var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.btn-solid:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: #FFFFFF;
}

.btn-ghost { background: transparent; }
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-line {
  border-color: var(--green);
  color: var(--green);
}
.btn-line:hover {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 12.5px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
}

.header-rail {
  background: var(--navy);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 30px;
  padding-block: 4px;
}

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 70ch;
  color: var(--silver);
  line-height: 1.4;
}

.rail-label {
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.rail-meta {
  color: rgba(199, 201, 206, 0.7);
  white-space: nowrap;
}

.lamp {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-hi);
  box-shadow: 0 0 0 3px rgba(22, 169, 123, 0.18);
  animation: lamp-breathe 2s ease-in-out infinite;
}

@keyframes lamp-breathe {
  50% {
    opacity: 0.4;
    box-shadow: 0 0 0 6px rgba(22, 169, 123, 0.06);
  }
}

.header-bar {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  min-height: var(--bar);
  transition: min-height 200ms var(--ease);
}

/* 滚动收拢 */
.site-header[data-scrolled] .header-rail { display: none; }
.site-header[data-scrolled] .bar-inner { min-height: 44px; }
.site-header[data-scrolled] .brand-sub { display: none; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
  transition: background 180ms var(--ease);
}

.brand:hover .brand-mark { background: var(--green); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

/* 导航 */
.primary-nav {
  margin-inline: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(2px, 0.9vw, 10px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 180ms var(--ease);
}

.nav-link:hover { color: var(--green); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ash);
  letter-spacing: 0.04em;
  transition: color 180ms var(--ease);
}

.nav-link[aria-current="page"] { color: var(--green); }
.nav-link[aria-current="page"]::after {
  background: var(--orange);
  transform: scaleX(1);
}
.nav-link[aria-current="page"] .nav-num { color: var(--orange); }

/* 头部动作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.footer-cta { margin-top: 4px; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 120ms linear;
}

.site-header[data-open] .nav-toggle {
  background: var(--ink);
  color: var(--paper);
}

.site-header[data-open] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.site-header[data-open] .nav-toggle-bars i:nth-child(2) {
  opacity: 0;
}
.site-header[data-open] .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-hi) 62%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 80ms linear;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  background: var(--navy);
  color: var(--silver);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--green) 0 24%,
    var(--gold) 24% 36%,
    var(--orange) 36% 54%,
    rgba(199, 201, 206, 0.45) 54% 100%
  );
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px);
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-tagline {
  max-width: 14em;
  font-size: clamp(23px, 3.1vw, 34px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--paper);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.footer-col-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(199, 201, 206, 0.22);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a {
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
  font-size: 14px;
  font-weight: 600;
  color: var(--silver);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--green-hi);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 180ms var(--ease);
}

.footer-list a:hover { color: #FFFFFF; }
.footer-list a:hover::after { transform: scaleX(1); }

.footer-contact {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.contact-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.contact-val {
  color: var(--silver);
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
  border-top: 1px solid rgba(199, 201, 206, 0.22);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(199, 201, 206, 0.75);
}

.legal-copy { max-width: none; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-links a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.legal-links a:hover {
  color: var(--green-hi);
  border-bottom-color: var(--green-hi);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  padding-block: 16px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: var(--silver);
}

.breadcrumbs a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}

.breadcrumbs a:hover { border-bottom-color: var(--green); }

.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 通用组件 ---------- */
.panel {
  background: var(--paper-2);
  border: 1px solid var(--silver);
  padding: clamp(16px, 2.4vw, 28px);
}

.panel--lift {
  background: var(--paper-2);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--silver);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #3A322C;
  line-height: 1.5;
}

.chip[data-state="live"] {
  border-color: var(--orange);
  color: var(--orange);
}

.chip[data-state="ok"] {
  border-color: var(--green);
  color: var(--green);
}

.stat {
  display: grid;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- 图片容器（页面阶段放置占位） ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--silver);
}

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

.media--16x9 { aspect-ratio: 16 / 9; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1 / 1; }

.media-clip {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.media-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 39px,
      rgba(27, 22, 19, 0.09) 39px 40px
    );
}

.media-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 10px;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

/* ---------- 滚动显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 280ms var(--ease), transform 280ms var(--ease);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .brand-sub { display: none; }
  .nav-link { font-size: 13px; padding-inline: 6px; }
  .nav-link::after { left: 6px; right: 6px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 95;
    display: none;
    margin: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    box-shadow: var(--shadow-lift);
    padding: 6px var(--gutter) 20px;
  }

  .site-header[data-open] .primary-nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--silver);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    padding-left: 12px;
    box-shadow: inset 3px 0 0 var(--orange);
  }

  .nav-num { font-size: 11px; }

  .header-actions .btn-ghost { display: none; }

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

  .c-4, .c-5, .c-6, .c-7, .c-8 { grid-column: span 12; }

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

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

  .footer-col-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .rail-meta { display: none; }
  .rail-status { font-size: 10px; }
  .rail-label { display: none; }

  .header-actions .btn-solid {
    padding: 9px 10px;
    font-size: 12px;
  }

  .brand-name { font-size: 16px; }

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

@media (max-width: 400px) {
  .brand-mark { width: 26px; height: 26px; font-size: 14px; }
  .nav-toggle-text { display: none; }
}

/* ---------- 降低动态 ---------- */
@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] {
    opacity: 1 !important;
    transform: none !important;
  }

  .lamp { animation: none; }
  .btn:hover { transform: none; }
}
