/* =========================================================
   九博体育会馆 / 共享站点样式  /assets/site.css
   色彩：深墨绿 · 深蓝绿 · 鎏金 · 珊瑚橙 · 电光蓝 · 浅米 · 纸白 · 酒红
   ========================================================= */

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

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; }

button { font: inherit; color: inherit; }

:target, [id] { scroll-margin-top: 120px; }

/* ---------- 2. Design tokens ---------- */
:root {
  --ink-green: #0E3B32;
  --deep-teal: #072A24;
  --gold: #C9A227;
  --gold-soft: #E3C765;
  --coral: #FF6B4A;
  --electric: #2F6BFF;
  --sand: #F5F1E6;
  --paper: #FFFFFF;
  --charcoal: #101614;
  --wine: #7A2233;
  --mist: #D8D4C8;
  --muted: #5B6A63;

  --shell: 1220px;
  --measure: 740px;
  --gutter: clamp(18px, 4vw, 48px);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 30px;
  --radius-pill: 999px;

  --shadow-island: 0 20px 44px -24px rgba(4, 20, 17, 0.8);
  --shadow-card: 0 26px 54px -34px rgba(7, 42, 36, 0.55);

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

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 3. Base typography ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. Utilities ---------- */
.mono { font-family: var(--font-mono); }

.data {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-gold { color: var(--gold); }
.text-coral { color: var(--coral); }

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

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

.site-header > .header-island,
.site-header > .skip-link { pointer-events: auto; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 140;
  background: rgba(14, 59, 50, 0.16);
  pointer-events: none;
}

.scroll-progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--coral) 52%, var(--electric) 100%);
  transition: transform 0.18s linear;
}

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 12px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--deep-teal);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

.header-island {
  position: relative;
  width: min(100%, var(--shell));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  padding: 9px 12px 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 162, 39, 0.46);
  color: var(--sand);
  box-shadow: var(--shadow-island);
  background:
    linear-gradient(115deg, rgba(201, 162, 39, 0.24) 0 11%, rgba(201, 162, 39, 0) 11.5%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 62%),
    var(--ink-green);
}

.header-island::before {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -1px;
  width: 58px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 3px 6px 3px 3px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-teal);
  background: linear-gradient(140deg, var(--gold) 0 58%, var(--coral) 58% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { list-style: none; }

.nav-link {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: rgba(245, 241, 230, 0.82);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(245, 241, 230, 0.12);
}

.nav-link[aria-current="page"] {
  color: var(--deep-teal);
  background: var(--gold);
  font-weight: 700;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- 6. 按钮体系 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: var(--deep-teal);
  box-shadow: 0 12px 26px -16px rgba(201, 162, 39, 0.95);
}

.btn--gold:hover {
  background: var(--coral);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(201, 162, 39, 0.6);
  color: var(--gold-soft);
}

.btn--outline:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-2px);
}

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

.btn--ink:hover {
  background: var(--wine);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: rgba(245, 241, 230, 0.12);
  border-color: rgba(245, 241, 230, 0.3);
  color: var(--sand);
}

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

.cta-pill { white-space: nowrap; }

/* ---------- 7. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 241, 230, 0.3);
  background: rgba(245, 241, 230, 0.12);
  color: var(--sand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s 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); }

/* ---------- 8. 布局容器与章节 ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - var(--gutter) * 2, var(--measure));
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 112px); }
.section--tight { padding-block: clamp(30px, 4vw, 64px); }
.section--ink { background: var(--ink-green); color: var(--sand); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--wine { background: var(--wine); color: var(--sand); }

.section--ink .lede,
.section--wine .lede { color: rgba(245, 241, 230, 0.78); }

.section--ink .stat__label,
.section--wine .stat__label { color: rgba(245, 241, 230, 0.68); }

/* ---------- 9. 文本组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
}

.display {
  font-size: clamp(40px, 8vw, 112px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}

.display--md { font-size: clamp(32px, 5.2vw, 64px); }

.headline {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.75;
}

.prose p { margin-bottom: 1.1em; }

.prose ul, .prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li { margin-bottom: 0.5em; }

.prose a {
  color: var(--electric);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--ink .prose a,
.section--wine .prose a { color: var(--gold-soft); }

.stack > * + * { margin-top: 18px; }

.divider {
  height: 1px;
  width: 100%;
  background: var(--mist);
  border: 0;
}

.divider--gold { background: rgba(201, 162, 39, 0.5); }

.quote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.callout {
  padding: 18px 22px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(47, 107, 255, 0.28);
  background: rgba(47, 107, 255, 0.07);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- 10. 网格与卡片 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
}

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

.card {
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-l);
  border: 1px solid rgba(16, 22, 20, 0.08);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 62px -36px rgba(7, 42, 36, 0.62);
}

.card--ink {
  background: var(--ink-green);
  color: var(--sand);
  border-color: rgba(201, 162, 39, 0.32);
}

.card--sand {
  background: var(--sand);
  border-color: rgba(16, 22, 20, 0.06);
}

.card__title {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.card--ink .card__meta { color: rgba(245, 241, 230, 0.62); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 162, 39, 0.42);
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag--coral {
  border-color: rgba(255, 107, 74, 0.42);
  background: rgba(255, 107, 74, 0.14);
  color: var(--coral);
}

.tag--blue {
  border-color: rgba(47, 107, 255, 0.36);
  background: rgba(47, 107, 255, 0.1);
  color: var(--electric);
}

.tag--wine {
  border-color: rgba(122, 34, 51, 0.32);
  background: rgba(122, 34, 51, 0.12);
  color: var(--wine);
}

.stat { display: grid; gap: 4px; }

.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  color: var(--gold);
}

.stat__label {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 11. 图片容器基座 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--ink-green) 0%, var(--deep-teal) 100%);
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.media--soft {
  background: linear-gradient(150deg, rgba(201, 162, 39, 0.42) 0%, rgba(14, 59, 50, 0.92) 100%);
}

.media--placeholder::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -30%;
  height: 62%;
  transform: skewY(-6deg);
  background: linear-gradient(90deg, rgba(255, 107, 74, 0.22), rgba(255, 107, 74, 0) 62%);
  pointer-events: none;
}

.figure { margin: 0; display: grid; gap: 10px; }

.figure__caption {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--mist);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink-green);
  font-weight: 600;
}

/* ---------- 13. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  overflow: hidden;
  background: var(--deep-teal);
  color: rgba(245, 241, 230, 0.78);
  border-top: 1px solid rgba(201, 162, 39, 0.32);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 80% at 100% 0%, rgba(47, 107, 255, 0.16), transparent 56%),
    radial-gradient(85% 70% at 0% 100%, rgba(201, 162, 39, 0.15), transparent 60%);
}

.footer-rail {
  position: relative;
  height: 6px;
  background: linear-gradient(90deg,
    var(--gold) 0 22%,
    var(--coral) 22% 34%,
    var(--electric) 34% 44%,
    rgba(201, 162, 39, 0.18) 44% 100%);
}

.footer-top {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  padding: clamp(42px, 6vw, 84px) 0 clamp(28px, 4vw, 50px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
}

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

.footer-wordmark {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--sand);
}

.footer-tag {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-intro {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245, 241, 230, 0.74);
}

.footer-signal {
  margin-top: 16px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(201, 162, 39, 0.5);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

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

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links { display: grid; gap: 11px; }

.footer-link {
  display: inline-block;
  font-size: 15px;
  color: rgba(245, 241, 230, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link:hover {
  color: #FFFFFF;
  border-color: var(--coral);
  transform: translateX(3px);
}

.footer-link[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}

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

.contact-list { display: grid; gap: 14px; }

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 241, 230, 0.88);
  word-break: break-word;
}

.contact-note {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 107, 74, 0.62);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 241, 230, 0.6);
}

.footer-base {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  padding: 20px 0 34px;
  border-top: 1px solid rgba(245, 241, 230, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(245, 241, 230, 0.55);
}

.footer-copy { margin: 0; }
.footer-icp { margin: 0; color: var(--gold-soft); }

/* ---------- 15. 平板 ---------- */
@media (max-width: 1040px) {
  .header-island {
    gap: 10px;
    padding: 8px 10px 8px 12px;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    margin: 0;
    display: none;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(201, 162, 39, 0.44);
    background: var(--deep-teal);
    box-shadow: var(--shadow-island);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

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

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

  .nav-link {
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 16px;
  }

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

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }

  .footer-intro { max-width: none; }
}

/* ---------- 16. 手机 ---------- */
@media (max-width: 720px) {
  body { font-size: 16.5px; }

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

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

  .header-island::before { left: 16px; width: 44px; }

  .brand-tag { display: none; }
}

@media (max-width: 620px) {
  .cta-pill { display: none; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-base { justify-content: flex-start; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; font-size: 16px; }
}

/* ---------- 17. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress__fill { transition: none; }
}
