/* =========================================================
   K体育看台 — 共享样式 /assets/site.css
   1 重置  2 变量  3 排版  4 工具与容器  5 按钮与数据组件
   6 页头  7 页脚  8 动效协议  9 响应式  10 减弱动效
   ========================================================= */

/* ---------- 1 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: #071426;
  color: #F3EFE6;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid rgba(140, 154, 168, 0.22); margin: 0; }

:focus-visible {
  outline: 2px solid #A6FF5F;
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background-color: #FF6B2C;
  color: #071426;
}

/* ---------- 2 变量 ---------- */
:root {
  --ink: #071426;
  --ink-2: #0D2036;
  --pitch: #153B5C;
  --rock: #8C9AA8;
  --paper: #F3EFE6;
  --orange: #FF6B2C;
  --lime: #A6FF5F;
  --clay: #C87555;
  --moss: #5E7A5A;
  --steel: #C2CCD6;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "Archivo Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad-x: clamp(16px, 4vw, 56px);
  --shell: 1320px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --hairline: 1px solid rgba(140, 154, 168, 0.2);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--paper);
}

h1 { font-size: clamp(3.2rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: 0; }

p, li { color: var(--steel); }

strong, b { color: var(--paper); font-weight: 800; }

code, kbd, samp {
  font-family: var(--font-data);
  font-size: 0.9em;
}

/* ---------- 4 工具与容器 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 12px 24px;
  border-radius: 0 0 16px 16px;
  background-color: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: top 0.25s var(--ease);
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.shell--narrow {
  max-width: 860px;
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background-color: var(--orange);
  border-radius: 2px;
}

.prose {
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--steel);
}

.prose p { margin-bottom: 1.1em; }
.prose > p:last-child { margin-bottom: 0; }
.prose h2,
.prose h3 {
  color: var(--paper);
  margin-block: 1.7em 0.55em;
}
.prose ul,
.prose ol {
  margin-block: 0 1.2em;
  padding-left: 1.3em;
}
.prose li { margin-bottom: 0.45em; }

/* ---------- 5 按钮与数据组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--orange);
  color: var(--ink);
  box-shadow: 0 10px 26px -18px rgba(255, 107, 44, 0.9);
}

.btn--primary:hover { box-shadow: 0 16px 34px -14px rgba(255, 107, 44, 0.85); }

.btn--ghost {
  background-color: transparent;
  color: var(--paper);
  border-color: rgba(140, 154, 168, 0.42);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn--lime {
  background-color: var(--lime);
  color: var(--ink);
}

.btn--lime:hover { box-shadow: 0 16px 34px -16px rgba(166, 255, 95, 0.75); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: var(--hairline);
  border-radius: var(--radius-md);
  background-color: var(--ink-2);
}

.card--pitch {
  background-image: linear-gradient(158deg, rgba(21, 59, 92, 0.9), rgba(7, 20, 38, 0.94));
  border-color: rgba(21, 59, 92, 0.95);
}

.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(140, 154, 168, 0.3);
  background-color: rgba(21, 59, 92, 0.5);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(166, 255, 95, 0.14);
  flex: 0 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--rock);
}

.breadcrumb li { display: inline-flex; align-items: center; color: inherit; }

.breadcrumb li + li::before {
  content: "";
  width: 12px;
  height: 1px;
  margin-right: 10px;
  background-color: rgba(140, 154, 168, 0.5);
}

.breadcrumb a { color: var(--steel); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* 图片容器基础规则（页面阶段放置占位图） */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(140, 154, 168, 0.18);
  background-image: linear-gradient(152deg, #153B5C 0%, #0D2036 58%, #071426 100%);
  isolation: isolate;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--banner { aspect-ratio: 21 / 9; }

.media--slanted::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 44%, rgba(166, 255, 95, 0.14) 44% 47%, transparent 47%),
    linear-gradient(200deg, rgba(255, 107, 44, 0.16), transparent 58%);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-data);
  font-size: 0.74rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--rock);
}

/* ---------- 6 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px var(--pad-x) 0;
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px 10px 8px 14px;
  border: var(--hairline);
  border-radius: var(--radius-pill);
  background-image: linear-gradient(118deg, rgba(13, 32, 54, 0.95), rgba(7, 20, 38, 0.86));
  box-shadow: 0 18px 42px -26px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header[data-scrolled] .header-rail {
  border-color: rgba(255, 107, 44, 0.28);
  box-shadow: 0 24px 52px -26px rgba(0, 0, 0, 1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding-right: clamp(6px, 1.2vw, 16px);
  border-right: 1px solid rgba(140, 154, 168, 0.2);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  transform: rotate(-6deg);
  background-image:
    linear-gradient(150deg, var(--orange) 0 48%, transparent 48%),
    linear-gradient(330deg, var(--lime) 0 34%, transparent 34%);
  background-color: var(--pitch);
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark { transform: rotate(6deg) scale(1.08); }

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--paper);
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-data);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: var(--rock);
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--steel);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.nav-link:hover {
  color: var(--paper);
  background-color: rgba(21, 59, 92, 0.6);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background-color: rgba(255, 107, 44, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 44, 0.46);
}

.nav-link[aria-current="page"]::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.18);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: 4px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background-color: var(--orange);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -12px rgba(255, 107, 44, 0.92);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(140, 154, 168, 0.34);
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--steel);
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  color: var(--paper);
  border-color: var(--lime);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 14px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.28s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  pointer-events: none;
  background-color: rgba(21, 59, 92, 0.35);
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--lime), var(--orange));
}

/* ---------- 7 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(140, 154, 168, 0.16);
  background-color: var(--ink-2);
  background-image:
    radial-gradient(120% 80% at 12% 0%, rgba(94, 122, 90, 0.24), transparent 62%),
    radial-gradient(90% 70% at 94% 6%, rgba(200, 117, 85, 0.18), transparent 62%),
    linear-gradient(180deg, #0D2036 0%, #071426 100%);
}

.footer-inner {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) var(--pad-x) clamp(26px, 3.4vw, 40px);
}

.footer-lead {
  display: grid;
  gap: 14px;
  max-width: 660px;
}

.footer-kicker {
  margin: 0;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-brandline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.footer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 4px;
  list-style: none;
  font-size: 0.84rem;
  color: var(--steel);
}

.footer-status li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
}

.dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.dot-lime { background-color: var(--lime); box-shadow: 0 0 0 4px rgba(166, 255, 95, 0.12); }
.dot-orange { background-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.14); }
.dot-clay { background-color: var(--clay); box-shadow: 0 0 0 4px rgba(200, 117, 85, 0.16); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 42px);
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid rgba(140, 154, 168, 0.16);
}

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

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-data);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rock);
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 0.94rem;
  color: var(--paper);
  transition: color 0.2s, transform 0.2s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-color: var(--orange);
  transition: transform 0.25s var(--ease);
}

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

.footer-items {
  display: grid;
  gap: 10px;
  list-style: none;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--steel);
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: clamp(32px, 4.4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid rgba(140, 154, 168, 0.16);
  font-family: var(--font-data);
  font-size: 0.77rem;
  letter-spacing: 0.04em;
  color: var(--rock);
}

.footer-legal { margin: 0; color: var(--rock); }

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal-nav a {
  color: var(--steel);
  transition: color 0.2s;
}

.footer-legal-nav a:hover { color: var(--orange); }

.footer-copy { margin: 0 0 0 auto; color: var(--rock); }

.footer-wordmark {
  position: absolute;
  right: calc(var(--pad-x) * -0.35);
  bottom: -0.2em;
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: rgba(140, 154, 168, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------- 8 动效协议 ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js-motion [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- 9 响应式 ---------- */
@media (max-width: 1160px) {
  .nav-link { padding: 9px 11px; font-size: 0.9rem; }
  .brand-tag { display: none; }
}

@media (max-width: 980px) {
  .site-header { padding: 10px clamp(12px, 3vw, 22px) 0; }

  .header-rail {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 8px 8px 12px;
    border-radius: 22px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    border-right: 0;
  }

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

  .site-nav {
    order: 10;
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(140, 154, 168, 0.16);
    display: none;
  }

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

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

  .nav-link {
    display: flex;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .header-cta { padding: 9px 16px; font-size: 0.88rem; }

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

  .footer-copy { margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .site-header { padding: 8px 10px 0; }

  .header-rail { gap: 6px; border-radius: 20px; }

  .brand-name { font-size: 0.96rem; }

  .nav-toggle { padding: 7px 11px; font-size: 0.66rem; }

  .header-cta { padding: 8px 13px; font-size: 0.82rem; }

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

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-wordmark { font-size: clamp(4rem, 26vw, 7rem); }

  .media--banner { aspect-ratio: 16 / 9; }
}

/* ---------- 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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  html.js-motion [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }

  .brand:hover .brand-mark,
  .btn:hover,
  .header-cta:hover,
  .media img {
    transform: none;
  }
}
