/* ==========================================================================
   四季体育中文官方站 · 共享样式 /assets/site.css
   结构：变量 → 重置 → 中文排版 → 通用容器与组件 → 页头 → 页脚 → 响应式
   ========================================================================== */

:root {
  --ink: #0A2A22;
  --ink-2: #121816;
  --paper: #F5F8F4;
  --spring: #82D98B;
  --summer: #2D7DFF;
  --autumn: #FFAA2B;
  --winter: #C9D3D0;
  --cyan: #38F2D0;
  --signal: #FF5A36;
  --mist: #DDE8E2;

  --ink-soft: rgba(10, 42, 34, 0.7);
  --line-dark: rgba(245, 248, 244, 0.16);
  --line-light: rgba(10, 42, 34, 0.14);

  --font-display: "Barlow Condensed", "Archivo Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --wrap-wide: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 132px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line-light); }

/* ---------- 基础排版（中文优先） ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.55rem); }

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--cyan); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 容器 ---------- */
.u-wrap-wide {
  width: min(100% - 2 * var(--gutter), var(--wrap-wide));
  margin-inline: auto;
}
.page-wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--signal); color: #210A04; }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(255, 90, 54, 0.34); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { box-shadow: 0 10px 26px rgba(10, 42, 34, 0.3); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-light); }
.btn--ghost:hover { background: var(--mist); border-color: transparent; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  padding-block: 20px 0;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before { content: "/"; color: rgba(10, 42, 34, 0.3); }
.breadcrumb-link { transition: color 0.16s ease; }
.breadcrumb-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb-current { color: var(--ink); font-weight: 600; }

/* ---------- 章节 ---------- */
.section { padding-block: clamp(40px, 7vw, 96px); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--mist { background: var(--mist); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  font-size: clamp(1.6rem, 3.8vw, 2.9rem);
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.62;
}
.section-kicker::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--signal);
  flex: none;
}

/* ---------- 卡片与网格 ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 28px);
}
.card--ink { background: var(--ink); color: var(--paper); border-color: transparent; }
.card--mist { background: var(--mist); border-color: transparent; }

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.grid--auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 2vw, 24px); }

/* ---------- 数字与标签 ---------- */
.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.num--xl { font-size: clamp(2.4rem, 6vw, 4.6rem); }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.7;
  white-space: nowrap;
}
.tag--spring { background: rgba(130, 217, 139, 0.22); color: #1E4A25; }
.tag--summer { background: rgba(45, 125, 255, 0.16); color: #12489E; }
.tag--autumn { background: rgba(255, 170, 43, 0.22); color: #74470A; }
.tag--winter { background: rgba(201, 211, 208, 0.46); color: #2E3C38; }
.tag--cyan   { background: rgba(56, 242, 208, 0.24); color: #0A5A4B; }
.tag--signal { background: var(--signal); color: #210A04; }

/* ---------- 图片容器（页面阶段复用） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(56, 242, 208, 0.18) 0%, rgba(56, 242, 208, 0) 58%),
    linear-gradient(150deg, #0A2A22 0%, #123A2F 58%, #0C2A23 100%);
}
.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 42, 34, 0) 46%, rgba(10, 42, 34, 0.6) 100%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(245, 248, 244, 0.88);
}

/* ---------- 长文窄栏 ---------- */
.prose {
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.85;
}
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.prose ul, .prose ol { padding-left: 1.2em; list-style: revert; }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.scroll-meter {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 5;
  pointer-events: none;
}
.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--spring) 55%, var(--autumn) 100%);
}

.header-main {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 78px;
  padding-block: 12px;
}

/* 品牌 */
.brand { flex: 0 0 auto; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  filter: drop-shadow(0 0 12px rgba(56, 242, 208, 0.2));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.brand-tagline {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(245, 248, 244, 0.62);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover { border-color: rgba(56, 242, 208, 0.55); background: rgba(56, 242, 208, 0.08); }
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, top 0.22s ease, bottom 0.22s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { bottom: 5px; transform: rotate(-45deg); }

/* 导航 */
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(245, 248, 244, 0.78);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav-link:hover { color: var(--paper); background: rgba(245, 248, 244, 0.07); }
.nav-link:hover::after { transform: scaleX(0.5); }
.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(56, 242, 208, 0.1);
  border-color: rgba(56, 242, 208, 0.32);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 行动按钮 */
.header-actions { display: flex; align-items: center; flex: none; }
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--signal);
  color: #210A04;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 90, 54, 0.34); }

/* 状态带 */
.status-band {
  border-top: 1px solid var(--line-dark);
  background:
    linear-gradient(90deg, rgba(56, 242, 208, 0.12) 0%, rgba(10, 42, 34, 0) 46%),
    var(--ink);
}
.status-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 40px;
  padding-block: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 248, 244, 0.62);
}
.status-item { display: inline-flex; align-items: center; gap: 9px; }
.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
}
.status-label { text-transform: uppercase; }
.status-current { color: var(--cyan); font-weight: 600; }
.status-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.status-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 248, 244, 0.18);
  color: rgba(245, 248, 244, 0.82);
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.status-link:hover { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }

@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: status-pulse 3.4s ease-in-out infinite; }
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(56, 242, 208, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(56, 242, 208, 0.02); }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(36px, 6vw, 72px);
}

.footer-seasons { display: flex; gap: 6px; margin-bottom: clamp(24px, 4vw, 42px); }
.season-chip { height: 4px; flex: 1 1 0; border-radius: 999px; opacity: 0.9; }
.season-chip--spring { background: var(--spring); }
.season-chip--summer { background: var(--summer); }
.season-chip--autumn { background: var(--autumn); }
.season-chip--winter { background: var(--winter); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  gap: clamp(24px, 4vw, 52px);
}

.footer-brand-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--paper);
}
.footer-blurb {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(245, 248, 244, 0.64);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 248, 244, 0.5);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-list { display: grid; gap: 2px; }
.footer-link {
  display: inline-block;
  padding-block: 4px;
  font-size: 14px;
  color: rgba(245, 248, 244, 0.8);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.footer-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(245, 248, 244, 0.42);
}
.footer-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: rgba(245, 248, 244, 0.92);
  overflow-wrap: anywhere;
}
.footer-contact .footer-list { gap: 12px; }
.footer-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(245, 248, 244, 0.46);
}

.footer-base {
  margin-top: clamp(28px, 4vw, 52px);
  padding-block: 22px 28px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(245, 248, 244, 0.55);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 110;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cyan);
  border: 1px solid rgba(56, 242, 208, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background-color 0.2s ease;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink-2); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; }
  .footer-legal { grid-column: 2 / 4; }
}

@media (max-width: 960px) {
  :root { --header-h: 128px; }

  .header-main { flex-wrap: wrap; row-gap: 10px; }

  .brand { order: 1; }
  .nav-toggle { order: 2; display: inline-flex; margin-left: auto; }
  .header-actions { order: 3; }
  .primary-nav { order: 4; flex: 1 0 100%; margin-left: 0; }

  .primary-nav { padding-bottom: 12px; }

  /* JS 可用时默认收起；无 JS 时导航保持展开，不至于失能 */
  html.js .primary-nav { display: none; }
  html.js .primary-nav[data-open="true"] { display: block; }

  .nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 242, 208, 0.5) transparent;
  }
  .nav-list::-webkit-scrollbar { height: 4px; }
  .nav-list::-webkit-scrollbar-track { background: rgba(245, 248, 244, 0.08); border-radius: 4px; }
  .nav-list::-webkit-scrollbar-thumb { background: rgba(56, 242, 208, 0.5); border-radius: 4px; }
  .nav-list > li { flex: 0 0 auto; scroll-snap-align: start; }

  .nav-link {
    padding: 10px 16px;
    border-color: var(--line-dark);
    background: rgba(245, 248, 244, 0.04);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: rgba(56, 242, 208, 0.16);
    border-color: rgba(56, 242, 208, 0.58);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: auto; }
}

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

  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.08rem; }
  .brand-tagline { letter-spacing: 0.16em; font-size: 10px; }
  .header-cta { padding: 9px 15px; font-size: 13px; }

  .status-inner { font-size: 10px; gap: 8px 12px; padding-block: 8px; }
  .status-meta { margin-left: 0; flex-basis: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-seasons { gap: 4px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .brand-tagline { display: none; }
}

@media (max-width: 380px) {
  .header-cta { padding: 8px 12px; font-size: 12px; }
}

@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;
  }
  .to-top { transition: none; }
}
