/* ============================================================
   完美体育最新版 — /assets/site.css
   共享外壳：reset / tokens / 中文排版 / header / footer /
   按钮 / 面包屑 / 正文容器 / 栅格 / 基础组件 / 响应式
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --ink-900: #071A14;
  --ink-800: #04120D;
  --panel: #0D2B22;
  --line: #174A3A;
  --lime: #C8FF3D;
  --lime-soft: #E4FFA3;
  --orange: #FF6B2C;
  --white: #F4F7F2;
  --muted: #9DB5AA;
  --shadow: #020B08;
  --cyan: #5EEAD4;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 76px;
  --border: 2px solid var(--line);
  --cut: 22px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { 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%; height: auto; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1000px 620px at 84% -12%, rgba(94, 234, 212, 0.10), transparent 62%),
    radial-gradient(720px 460px at 4% 2%, rgba(200, 255, 61, 0.08), transparent 68%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p, li { text-wrap: pretty; }
p, .prose, .card__text, .footer-blurb { word-break: normal; overflow-wrap: anywhere; }
::selection { background: var(--lime); color: var(--ink-800); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* ---------- layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-main { display: block; min-height: 60vh; }
.page-shell { padding-top: calc(var(--header-h) + clamp(16px, 3vw, 34px)); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-line: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}
.btn:hover {
  filter: drop-shadow(3px 3px 0 rgba(2, 11, 8, 0.85));
}
.btn--primary {
  --btn-bg: var(--lime);
  --btn-fg: #06210F;
  --btn-line: var(--lime);
  font-weight: 700;
}
.btn--primary:hover { --btn-bg: var(--lime-soft); --btn-line: var(--lime-soft); }
.btn--ghost {
  --btn-fg: var(--lime-soft);
  --btn-line: var(--line);
}
.btn--ghost:hover { --btn-line: var(--lime); --btn-fg: var(--lime); background: rgba(200, 255, 61, 0.07); }
.btn--block { width: 100%; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: var(--gutter);
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: #06210F;
  border: 2px solid var(--ink-800);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s ease, border-color 0.28s ease;
}
.site-header[data-scrolled="true"],
.site-header[data-open="true"] {
  background: rgba(7, 26, 20, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  background: var(--lime);
  color: #06210F;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  transition: background-color 0.18s ease;
}
.brand:hover .brand-mark { background: var(--lime-soft); }
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* nav */
.primary-nav { justify-self: center; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: clamp(2px, 1.2vw, 16px); }
.nav-item { display: block; }
.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--muted);
  transition: color 0.18s ease;
}
.nav-index {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 107, 44, 0.75);
  transition: color 0.18s ease;
}
.nav-label { white-space: nowrap; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 3px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.22s ease;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--lime-soft); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--lime); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] .nav-index { color: var(--lime); }

/* header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.header-cta { padding: 10px 16px; font-size: 11px; letter-spacing: 0.1em; }

/* mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 2px solid var(--line);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transition: transform 0.22s ease;
}
.site-header[data-open="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.nav-toggle-text { white-space: nowrap; }

/* scroll progress */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 132px);
  background: linear-gradient(180deg, rgba(13, 43, 34, 0.98) 0%, var(--ink-800) 58%, #030D09 100%);
  border-top: 2px solid var(--lime);
  color: var(--muted);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 76px) clamp(26px, 4vw, 44px);
}
.footer-brand { min-width: 0; }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--white);
}
.footer-blurb {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.footer-cta { margin-top: 22px; }

.footer-label {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}
.footer-nav-list { counter-reset: fnav; display: grid; gap: 0; }
.footer-nav-item { counter-increment: fnav; }
.footer-nav-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(23, 74, 58, 0.85);
  font-size: 14px;
  color: var(--white);
  transition: color 0.18s ease, padding-left 0.18s ease, border-color 0.18s ease;
}
.footer-nav-link::before {
  content: counter(fnav, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 107, 44, 0.85);
}
.footer-nav-link:hover,
.footer-nav-link:focus-visible {
  color: var(--lime);
  padding-left: 6px;
  border-bottom-color: var(--lime);
}

.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; gap: 2px; }
.contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(94, 234, 212, 0.85);
}
.contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
  overflow-wrap: anywhere;
}
.contact-note {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 20px 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.footer-copy { margin-right: auto; }
.legal-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-link {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.legal-link:hover,
.legal-link:focus-visible { color: var(--lime); border-bottom-color: var(--lime); }
.footer-icp { color: rgba(157, 181, 170, 0.8); }

/* ============================================================
   SHARED CONTENT COMPONENTS
   ============================================================ */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }
.section-head {
  display: grid;
  gap: 14px;
  max-width: 66ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lime); }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.9rem); }
.section-note { max-width: 56ch; font-size: 15px; line-height: 1.8; color: var(--muted); }

.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
  color: #DCE6E1;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  margin-top: 1.8em;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--lime); border-bottom: 1px solid rgba(200, 255, 61, 0.4); }
.prose a:hover { border-bottom-color: var(--lime); }
.prose strong { color: var(--white); font-weight: 700; }
.prose ul, .prose ol { display: grid; gap: 0.55em; padding-left: 1.1em; }
.prose ul > li { position: relative; padding-left: 0.9em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--lime);
}
.prose ol { list-style: decimal; font-family: var(--font-body); }
.prose blockquote {
  padding: 14px 18px;
  border-left: 3px solid var(--orange);
  background: rgba(13, 43, 34, 0.7);
  color: var(--white);
}

.breadcrumbs {
  padding-block: 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 107, 44, 0.7); }
.breadcrumbs a { color: var(--muted); transition: color 0.18s ease; }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs [aria-current="page"] { color: var(--white); }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--panel);
  border: var(--border);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(200, 255, 61, 0.55); background: #103126; }
.card__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange);
}
.card__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--white);
}
.card__text { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-soft);
}
.tag--live { color: var(--orange); border-color: rgba(255, 107, 44, 0.55); }
.tag--live::before { content: ""; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }

.stat { display: grid; gap: 4px; }
.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(200, 255, 61, 0.10), transparent 55%),
    var(--panel);
  border: var(--border);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(200, 255, 61, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 61, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.rule {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--lime) 0%, var(--line) 42%, transparent 100%);
}

/* reveal protocol */
[data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}
[data-reveal].is-revealed { opacity: 1; translate: 0 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .brand-tagline { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 16px var(--gutter) 30px;
    background: #081E17;
    border-top: 1px solid var(--line);
    border-bottom: 2px solid var(--lime);
    box-shadow: 0 30px 60px -30px rgba(2, 11, 8, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s linear;
  }
  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item + .nav-item { border-top: 1px solid var(--line); }
  .nav-link {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 15px 4px;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--white);
  }
  .nav-index { font-size: 11px; min-width: 24px; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--lime); }
  .grid--2, .grid--3, .grid--asym { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; font-size: 13px; }
  .brand-name { font-size: 15px; }
  .header-cta { padding: 9px 12px; font-size: 10px; letter-spacing: 0.06em; }
  .nav-toggle { padding: 8px 10px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-copy { margin-right: 0; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 380px) {
  .header-cta { 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; translate: 0 0; }
  .card:hover { transform: none; }
  .nav-link:hover::after { transform: scaleX(1); }
}
