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

/* ---------- 1. 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, dd, table, th, td { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --flesh: #6FBF3F;
  --peel: #5A3A1E;
  --neon: #C8FF4D;
  --orange: #FF8A2B;
  --paper: #F6F5EE;
  --mint: #DCEEBF;
  --ink: #0E2A20;
  --line: #1B1F1C;
  --muted: #5F6B5C;
  --teal: #2FB6A0;
  --panel: #FFFFFF;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --border: 3px solid var(--line);
  --border-thin: 2px solid var(--line);
  --shadow-hard: 8px 8px 0 var(--line);
  --shadow-soft: 5px 5px 0 var(--line);
  --shadow-tight: 3px 3px 0 var(--line);

  --gut: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --header-offset: 98px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (max-width: 900px) { :root { --header-offset: 88px; } }
@media (max-width: 560px) { :root { --header-offset: 80px; --r-lg: 22px; } }

/* ---------- 3. 中文排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--peel);
  background: var(--paper);
  padding-top: var(--header-offset);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 17px; } }

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--peel);
}
h1 { font-size: clamp(30px, 5.4vw, 44px); }
h2 { font-size: clamp(24px, 3.6vw, 32px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
p { letter-spacing: 0.01em; }

.num,
.badge-num,
.footer-copy { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.85; color: var(--muted); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 4. 焦点与跳转 ---------- */
:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--line);
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  left: var(--gut);
  top: -140px;
  z-index: 200;
  padding: 10px 20px;
  background: var(--neon);
  color: var(--ink);
  font-weight: 900;
  border: var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-tight);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 14px; }

/* ---------- 5. 页头 · 悬浮胶囊导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 12px var(--gut) 0;
}
.header-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  background: rgba(246, 245, 238, 0.94);
  border: var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  transition: padding 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-radius 0.22s ease;
}
.site-header[data-scrolled] .header-inner {
  padding: 5px 8px 5px 10px;
  background: rgba(246, 245, 238, 0.98);
  box-shadow: var(--shadow-tight);
  border-radius: 24px;
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border: var(--border);
  border-radius: 62% 38% 55% 45% / 50% 55% 45% 50%;
  box-shadow: var(--shadow-tight);
  background:
    radial-gradient(circle at 50% 50%, var(--paper) 0 11%, transparent 12%),
    conic-gradient(from 8deg,
      var(--neon) 0 6%, var(--flesh) 6% 12%,
      var(--neon) 12% 18%, var(--flesh) 18% 24%,
      var(--neon) 24% 30%, var(--flesh) 30% 36%,
      var(--neon) 36% 42%, var(--flesh) 42% 48%,
      var(--neon) 48% 54%, var(--flesh) 54% 60%,
      var(--neon) 60% 66%, var(--flesh) 66% 72%,
      var(--neon) 72% 78%, var(--flesh) 78% 84%,
      var(--neon) 84% 90%, var(--flesh) 90% 96%,
      var(--neon) 96% 100%);
  transition: transform 0.22s ease;
}
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 900; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand-line { font-size: 12px; letter-spacing: 0.02em; color: var(--muted); margin-top: 2px; }

/* 导航 */
.nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-block;
  padding: 9px 14px;
  border: var(--border-thin) solid transparent;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  color: var(--peel);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav-link:hover { background: var(--mint); border-color: var(--line); color: var(--ink); }
.nav-link[aria-current="page"] {
  background: var(--neon);
  border-color: var(--line);
  color: var(--ink);
  font-weight: 900;
}

/* 页头动作区 */
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.ghost-link {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.ghost-link:hover { color: var(--peel); border-color: var(--flesh); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--neon);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  box-shadow: var(--shadow-tight);
  margin-left: auto;
}
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 14px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}
.nav-toggle-bars::before { top: 3px; }
.nav-toggle-bars::after { bottom: 3px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { bottom: 6px; transform: rotate(-45deg); }

/* ---------- 6. 页脚 · 深墨绿面板 ---------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 110px);
  background: var(--ink);
  color: var(--paper);
  border-top: var(--border);
}
.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gut) clamp(28px, 4vw, 44px);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}
.footer-slogan {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--paper);
}
.footer-brandline { margin-top: 10px; font-size: 14px; color: rgba(246, 245, 238, 0.7); }
.footer-cta { margin-top: 18px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-col-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--neon);
  margin-bottom: 14px;
}
.footer-list li + li { margin-top: 8px; }
.footer-link {
  display: inline-block;
  font-size: 15px;
  color: rgba(246, 245, 238, 0.86);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-link:hover { color: var(--neon); border-color: var(--neon); }

.footer-contact-list { margin-top: 2px; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  padding-block: 5px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 245, 238, 0.84);
}
.footer-contact-key { flex: 0 0 3.6em; color: var(--neon); font-weight: 900; }
.footer-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(246, 245, 238, 0.6);
  border-left: 3px solid var(--orange);
  padding-left: 12px;
}

.footer-base { border-top: 1px solid rgba(246, 245, 238, 0.18); }
.footer-base-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gut) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: rgba(246, 245, 238, 0.62);
}
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(246, 245, 238, 0.3);
  border-radius: var(--r-pill);
}
.footer-copy { color: rgba(246, 245, 238, 0.62); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.btn--primary { background: var(--flesh); color: var(--ink); }
.btn--neon { background: var(--neon); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; box-shadow: none; border-style: dashed; }
.btn--ghost:hover { transform: none; box-shadow: none; background: var(--mint); }
.btn--sm { padding: 9px 16px; font-size: 14px; box-shadow: var(--shadow-tight); }
.btn--sm:hover { box-shadow: 4px 4px 0 var(--line); }

/* ---------- 8. 面包屑 ---------- */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li:not(:last-child)::after { content: "›"; color: var(--muted); }
.crumbs a { border-bottom: 2px solid var(--mint); padding-bottom: 1px; transition: border-color 0.16s ease, color 0.16s ease; }
.crumbs a:hover { border-color: var(--flesh); color: var(--peel); }

/* ---------- 9. 容器与画板 ---------- */
.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.shell--narrow { max-width: 820px; }
.section { padding-block: clamp(44px, 7vw, 84px); }
.section--tight { padding-block: clamp(26px, 4vw, 48px); }

.panel {
  position: relative;
  background: var(--panel);
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hard);
  padding: clamp(20px, 3vw, 36px);
}
.panel--mint { background: var(--mint); }
.panel--flesh { background: var(--flesh); color: var(--ink); }
.panel--ink { background: var(--ink); color: var(--paper); }
.panel--ink h1, .panel--ink h2, .panel--ink h3, .panel--ink h4 { color: var(--paper); }
.panel--ink .lede, .panel--ink p { color: rgba(246, 245, 238, 0.82); }
.panel--ink a { color: var(--neon); }
.panel--flat { box-shadow: none; }

.stack { display: grid; gap: clamp(18px, 3vw, 32px); }
.stack--overlap { display: block; }
.stack--overlap > * + * { margin-top: clamp(-30px, -2.4vw, -12px); }

/* ---------- 10. 网格 / 横向滚动带 ---------- */
.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--7-5 { grid-template-columns: 7fr 5fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }

.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 20px;
  scroll-padding-left: 4px;
  scrollbar-width: thin;
}
.rail > * { flex: 0 0 min(320px, 82vw); scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-track { background: var(--mint); border-radius: var(--r-pill); }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-pill); }

/* ---------- 11. 卡片 / 徽章 / 标签 ---------- */
.card {
  background: var(--panel);
  border: var(--border);
  border-radius: var(--r-md);
  padding: clamp(16px, 2vw, 24px);
  box-shadow: var(--shadow-soft);
}
.card--mint { background: var(--mint); }
.card--ink { background: var(--ink); color: var(--paper); }
.card--ink h3, .card--ink h4 { color: var(--paper); }

.badge-num {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  padding: 0 10px;
  background: var(--neon);
  color: var(--ink);
  border: var(--border);
  border-radius: 16px;
  font-weight: 900;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  box-shadow: 4px 4px 0 var(--line);
  transform: rotate(-3deg);
}
.badge-num--sm { min-width: 38px; height: 38px; font-size: 16px; border-radius: 12px; box-shadow: var(--shadow-tight); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: var(--border-thin) solid var(--line);
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}
.pill--neon { background: var(--neon); }
.pill--orange { background: var(--orange); }
.pill--paper { background: var(--paper); }

/* ---------- 12. 手风琴 ---------- */
.acc {
  background: var(--panel);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: 4px 4px 0 var(--line);
  overflow: hidden;
}
.acc + .acc { margin-top: 14px; }
.acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--peel);
  transition: background 0.16s ease;
}
.acc__trigger:hover { background: var(--mint); }
.acc__icon {
  flex: none;
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: var(--border-thin) solid var(--line);
  border-radius: var(--r-pill);
  background: var(--neon);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.acc__trigger[aria-expanded="true"] .acc__icon { transform: rotate(45deg); }
.acc__panel { height: 0; overflow: hidden; transition: height 0.22s ease; }
.acc__panel-inner { padding: 0 18px 18px; color: var(--muted); font-size: 15px; }

/* ---------- 13. 标签页 / 筛选 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 10px 18px;
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--peel);
  font-weight: 900;
  font-size: 15px;
  box-shadow: var(--shadow-tight);
  transition: background 0.16s ease, transform 0.16s ease;
}
.tab:hover { transform: translate(-1px, -1px); }
.tab[aria-selected="true"] { background: var(--neon); color: var(--ink); }
.tabpanel { padding-top: clamp(16px, 2.4vw, 26px); }

.filterbar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  border: var(--border-thin) solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--peel);
  font-weight: 900;
  font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease;
}
.chip:hover { background: var(--mint); }
.chip[aria-pressed="true"] { background: var(--flesh); color: var(--ink); }

/* ---------- 14. 正文长文 ---------- */
.prose { max-width: 36em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose li { position: relative; padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  background: var(--neon);
  border: var(--border-thin) solid var(--line);
  border-radius: 3px;
}
.prose blockquote {
  border-left: 6px solid var(--flesh);
  padding: 8px 0 8px 18px;
  color: var(--muted);
}

/* ---------- 15. 图片容器 ---------- */
.figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(150deg, var(--mint) 0%, var(--flesh) 58%, var(--teal) 100%);
  aspect-ratio: 4 / 3;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure > figcaption {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 6px 12px;
  background: rgba(14, 42, 32, 0.86);
  color: var(--paper);
  font-size: 13px;
  border-radius: var(--r-pill);
}
.figure[data-label]::after {
  content: attr(data-label);
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: var(--neon);
  color: var(--ink);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.figure--wide { aspect-ratio: 16 / 9; }
.figure--banner { aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
.figure--square { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 4 / 5; }

/* ---------- 16. 显现动效 ---------- */
html.js-reveal .reveal { opacity: 0; transform: translateY(12px); }
html.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 1020px) {
  .header-actions .ghost-link { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .nav {
    position: absolute;
    left: var(--gut);
    right: var(--gut);
    top: calc(100% + 8px);
    z-index: 95;
    display: block;
    padding: 10px;
    background: var(--paper);
    border: var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    max-height: calc(100vh - var(--header-offset) - 24px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .nav[data-open] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { display: block; padding: 12px 14px; font-size: 16px; border-radius: 16px; }
  .grid--2, .grid--3, .grid--7-5, .grid--5-7, .grid--8-4 { grid-template-columns: 1fr; }
  .stack--overlap > * + * { margin-top: 14px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-line { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base-inner { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1.1fr 1.6fr 1.1fr; align-items: start; }
}

/* ---------- 18. 减少动效 ---------- */
@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;
  }
  html.js-reveal .reveal { opacity: 1; transform: none; }
  .btn:hover, .btn:active, .tab:hover, .brand:hover .brand-mark { transform: none; }
}
