/* =========================================================
   奇异果体育 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

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

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

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

ul, ol { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

/* ---------- Tokens ---------- */
:root {
  --ink: #1B1B1B;
  --ink-deep: #101A13;
  --fruit: #8BC34A;
  --fruit-deep: #5E8C2E;
  --lime: #D4FF3F;
  --orange: #FF7A3D;
  --paper: #F4F1E4;
  --grid: #2C3A2E;
  --text: #DDE6D8;
  --muted: #93A08F;

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

  --col: 1280px;
  --gutter: clamp(16px, 4.2vw, 56px);
  --hairline: 1px solid var(--grid);
  --shadow-deep: 0 16px 46px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.22, .7, .3, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(15px, .35vw + 13.5px, 16.5px);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 8% -6%, rgba(139, 195, 74, .18), transparent 52%),
    radial-gradient(circle at 92% 2%, rgba(212, 255, 63, .07), transparent 46%),
    repeating-linear-gradient(90deg, rgba(44, 58, 46, .5) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(44, 58, 46, .34) 0 1px, transparent 1px 96px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.18; font-weight: 900; letter-spacing: -.01em; color: var(--paper); }

strong { color: var(--paper); font-weight: 700; }

::selection { background: var(--fruit); color: var(--ink); }

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

#main-content { scroll-margin-top: 120px; }

/* ---------- 布局原子 ---------- */
.container {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.rule { height: 1px; border: 0; background: var(--grid); }

.section { position: relative; padding: clamp(48px, 7vw, 110px) 0; }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 56px);
}

.section__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--fruit);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(26px, 4.2vw, 50px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper);
}

.section__note { font-size: 14px; line-height: 1.9; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 110px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--paper);
}

.lede {
  font-size: clamp(15.5px, 1.2vw + 13px, 19px);
  line-height: 1.8;
  color: var(--text);
  max-width: 56ch;
}

.mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: clamp(15.5px, .4vw + 14px, 16.5px);
  line-height: 1.85;
  color: var(--text);
}
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(21px, 2.4vw, 30px); }
.prose h3 { margin: 1.8em 0 .5em; font-size: 19px; font-weight: 800; }
.prose p { margin-bottom: 1.1em; }
.prose ul { margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 20px; margin-bottom: .55em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 1px;
  background: var(--fruit);
}
.prose a { color: var(--lime); border-bottom: 1px solid rgba(212, 255, 63, .4); }
.prose a:hover { color: var(--paper); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--fruit); color: var(--ink); }
.btn--solid:hover { background: var(--lime); color: var(--ink); }
.btn--solid:active { background: var(--fruit-deep); color: var(--paper); }

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

.btn--outline { border-color: var(--grid); color: var(--text); }
.btn--outline:hover { border-color: var(--fruit); color: var(--lime); }

.btn--ghost { border-color: var(--fruit); color: var(--fruit); }
.btn--ghost:hover { background: rgba(139, 195, 74, .14); border-color: var(--lime); color: var(--lime); }

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fffdf4; color: var(--ink); }

.btn--sm { padding: 8px 14px; font-size: 12.5px; }
.btn--block { width: 100%; }

/* ---------- 头部：悬浮胶囊浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 99;
  padding: 10px 20px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  transform: translate(-50%, -220%);
  transition: transform .22s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.nav-shell {
  position: relative;
  max-width: var(--col);
  margin-inline: auto;
  pointer-events: auto;
}

.nav-pill {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px);
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: rgba(16, 26, 19, .93);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(16px);
  transition: padding .3s var(--ease), background-color .3s ease, border-color .3s ease;
}

.site-header[data-scrolled="true"] .nav-pill {
  padding: 5px 8px 5px 14px;
  background: rgba(16, 26, 19, .98);
  border-color: rgba(139, 195, 74, .32);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: var(--fruit);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  background: var(--ink-deep);
}

.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand__name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--paper);
}
.brand__tagline {
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--muted);
  white-space: nowrap;
}
.site-header[data-scrolled="true"] .brand__tagline { display: none; }

/* 导航 */
.nav { display: flex; justify-content: center; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover { color: var(--lime); }
.nav__link[aria-current="page"] {
  background: var(--fruit);
  color: var(--ink);
  font-weight: 700;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--text);
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--fruit);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--fruit);
  transition: transform .25s var(--ease), top .25s var(--ease), background-color .25s ease;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.site-header[data-open="true"] .nav-toggle { border-color: var(--fruit); }
.site-header[data-open="true"] .nav-toggle__bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle__bars::before { top: 0; background: var(--lime); transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { top: 0; background: var(--lime); transform: rotate(-45deg); }

/* 数据条与 CTA */
.nav-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-meta__strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}
.nav-meta__strip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--lime);
  animation: stripPulse 3.2s ease-in-out infinite;
}
@keyframes stripPulse {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

/* 滚动进度线 */
.nav-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -7px;
  height: 2px;
  background: rgba(44, 58, 46, .85);
  opacity: 0;
  overflow: hidden;
  transition: opacity .3s ease;
}
.site-header[data-scrolled="true"] .nav-progress { opacity: 1; }
.nav-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--fruit), var(--lime));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 150px);
  padding: clamp(52px, 7vw, 104px) 0 26px;
  background: var(--ink-deep);
  border-top: 1px solid var(--grid);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(560px, 54%);
  height: 3px;
  background: linear-gradient(90deg, var(--fruit) 0 46%, var(--lime) 46% 76%, var(--orange) 76% 100%);
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -42%;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(139, 195, 74, .15), transparent 68%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.55fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}

.footer-brand__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper);
}
.footer-brand__name .brand__mark { width: 20px; height: 20px; }

.footer-brand__note {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.footer-brand__rhythm {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--lime);
}

.footer-brand__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.footer-col__heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--fruit);
}

.footer-col__link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  font-size: 14.5px;
  color: var(--text);
  transition: color .2s ease, border-color .2s ease;
}
.footer-col__link:hover { color: var(--lime); border-bottom-color: var(--grid); }

.footer-base {
  position: relative;
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: 22px;
  border-top: 1px solid var(--grid);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 32px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-base__item { display: flex; gap: 10px; align-items: baseline; }
.footer-base__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--fruit-deep);
}

.footer-copy {
  position: relative;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 30px);
  bottom: clamp(14px, 2.5vw, 30px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--fruit);
  border-radius: 0;
  background: var(--ink-deep);
  color: var(--lime);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease, color .2s ease;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--fruit); color: var(--ink); }
.to-top__arrow {
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg);
}

/* ---------- 通用内容组件 ---------- */
.data-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--grid);
  background: rgba(16, 26, 19, .6);
}
.data-card__head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}
.data-card__value {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--lime);
}
.data-card__hint { font-size: 13px; color: var(--muted); }

.index-list { border-top: var(--hairline); }
.index-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 18px 6px;
  border-bottom: var(--hairline);
  transition: background-color .2s ease;
}
.index-list__item:hover { background: rgba(139, 195, 74, .07); }
.index-list__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--fruit);
}
.index-list__body { font-size: 15.5px; color: var(--text); }
.index-list__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: right;
}

.media-frame {
  position: relative;
  display: block;
  border: 1px solid var(--grid);
  background-color: #0d140f;
  background-image:
    repeating-linear-gradient(90deg, rgba(44, 58, 46, .55) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(44, 58, 46, .4) 0 1px, transparent 1px 32px);
  overflow: hidden;
}
.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.95) contrast(1.06);
}
.media-frame--wide img { aspect-ratio: 21 / 9; }
.media-frame--tall img { aspect-ratio: 3 / 4; }
.media-frame--empty { aspect-ratio: 16 / 10; }
.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.tag--fruit { border-color: rgba(139, 195, 74, .55); color: var(--fruit); }
.tag--lime { border-color: rgba(212, 255, 63, .5); color: var(--lime); }
.tag--orange { border-color: rgba(255, 122, 61, .55); color: var(--orange); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb__sep { color: var(--fruit-deep); }

/* ---------- 显现动效 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s var(--ease);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-meta__strip { display: none; }
}

@media (max-width: 1080px) {
  .brand__tagline { display: none; }
  .nav__link { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 960px) {
  .section__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

  .site-header {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  .skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    right: 12px;
    text-align: center;
    transform: translateY(-200%);
  }
  .skip-link:focus { transform: translateY(0); }

  .nav-shell { max-width: none; }

  .nav-pill {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 10px 8px 14px;
    background: rgba(16, 26, 19, .97);
  }
  .site-header[data-scrolled="true"] .nav-pill { padding: 8px 10px 8px 14px; }

  .brand__tagline { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-meta { display: none; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    display: block;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--grid);
    background: rgba(16, 26, 19, .99);
    box-shadow: var(--shadow-deep);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s var(--ease), visibility .25s ease;
  }
  .site-header[data-open="true"] .nav { opacity: 1; visibility: visible; transform: none; }

  .nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .nav__link {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--grid);
    border-radius: 0;
    font-size: 14px;
  }
  .nav__link[aria-current="page"] { border-color: var(--fruit); }

  .nav-progress { left: 12px; right: 12px; bottom: -6px; }

  .to-top { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

  .index-list__item { grid-template-columns: auto minmax(0, 1fr); }
  .index-list__meta { grid-column: 2; text-align: left; }
}

@media (max-width: 620px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-col__heading { margin-top: 14px; }
  .footer-brand__actions .btn { flex: 1 1 auto; }
  .nav__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .nav-meta__strip::before { animation: none; opacity: 1; }
}
