/* ============================================================
  江南体育 · /assets/site.css
   共享外壳：reset、变量、排版、页头、页脚、通用组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

#main-content { display: block; }
#main-content:focus { outline: none; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1F2A;
  --teal: #0E7C86;
  --teal-deep: #084F57;
  --teal-pale: #D8ECEA;
  --mist: #F5F8F7;
  --orange: #F26A3D;
  --neon: #B9F45C;
  --graphite: #26343B;
  --slate: #6B7F88;
  --line: #C7D6D4;
  --white: #FFFFFF;

  --font-display: 'HarmonyOS Sans SC', 'Noto Sans SC', 'Source Han Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', system-ui, sans-serif;
  --font-num: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --pill: 999px;

  --shell: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 中文排版基座 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--graphite);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.14;
}

h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
}

h4 { font-size: 17px; font-weight: 700; }

p { overflow-wrap: break-word; }

.num,
[data-year] {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

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

/* ---------- 4. 布局基座 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--ink {
  background: var(--ink);
  color: #DCEBEA;
}
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: #FFFFFF; }

.prose { max-width: 700px; }
.prose p + p { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin-top: 0.8em; padding-left: 1.2em; }
.prose li { list-style: disc; margin-top: 0.4em; }

.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--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); align-items: start; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--neon);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--neon);
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.24s var(--ease);
}

.site-header[data-scrolled] {
  box-shadow: 0 14px 34px -26px rgba(11, 31, 42, 0.75);
}

/* 6.1 深蓝品牌说明条 */
.header-rail {
  background: var(--ink);
  color: #CFE3E1;
}

.header-rail__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.header-rail__note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #DCEBEA;
  letter-spacing: 0.01em;
}

.header-rail__hours {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #9DB8BE;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--neon);
}

.dot--live {
  box-shadow: 0 0 0 4px rgba(185, 244, 92, 0.18);
  animation: dotPulse 2.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(185, 244, 92, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(185, 244, 92, 0.06); }
}

/* 6.2 品牌栏 */
.header-main {
  background: rgba(245, 248, 247, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-main__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--neon);
}

.brand__mark svg { width: 24px; height: 24px; }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__tagline {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--slate);
  white-space: nowrap;
}

/* 6.3 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--teal); color: var(--teal-deep); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 6.4 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-list__item { display: flex; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--graphite);
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-link:hover {
  background: var(--teal-pale);
  color: var(--teal-deep);
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.nav-cta { margin-left: 8px; }

/* 6.5 阅读进度条 */
.scroll-meter {
  height: 3px;
  overflow: hidden;
  background: rgba(199, 214, 212, 0.4);
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--neon));
}

/* 6.6 移动端导航状态 */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex-basis: 100%;
  }

  .site-header[data-open] .primary-nav {
    display: flex;
    margin-top: 4px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--ink);
    box-shadow: 0 22px 40px -28px rgba(11, 31, 42, 0.9);
  }

  .site-header[data-open] .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .site-header[data-open] .nav-list__item { width: 100%; }

  .site-header[data-open] .nav-link {
    display: block;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: #D9E9E8;
  }

  .site-header[data-open] .nav-link:hover {
    background: rgba(216, 236, 234, 0.1);
    color: #FFFFFF;
  }

  .site-header[data-open] .nav-link[aria-current="page"] {
    background: rgba(185, 244, 92, 0.14);
    color: var(--neon);
  }

  .site-header[data-open] .nav-link[aria-current="page"]::after { display: none; }

  .site-header[data-open] .nav-cta {
    margin: 10px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(216, 236, 234, 0.16);
  }

  .site-header[data-open] .nav-cta .btn { width: 100%; }

  html { scroll-padding-top: 108px; }
}

@media (max-width: 420px) {
  .brand__tagline { display: none; }
  .nav-toggle__label { display: none; }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--ink);
  color: #C6D9DC;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(185, 244, 92, 0.16);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 64px) clamp(28px, 4vw, 44px);
}

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

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

.footer-brand { max-width: 360px; }

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(216, 236, 234, 0.2);
  background: rgba(216, 236, 234, 0.08);
  color: var(--neon);
  margin-bottom: 14px;
}

.footer-brand__mark svg { width: 24px; height: 24px; }

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #FFFFFF;
}

.footer-brand__line {
  margin-top: 4px;
  font-size: 14px;
  color: #9FB8BE;
  letter-spacing: 0.02em;
}

.footer-brand__trust {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.72;
  color: #A9C2C6;
  max-width: 36ch;
}

.footer-brand__phone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 18px;
}

.footer-brand__phone-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--neon);
}

.footer-brand__phone-label {
  font-size: 12.5px;
  color: #8FA9AF;
}

.footer-brand__mail {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8FA9AF;
  overflow-wrap: anywhere;
}

.footer-brand__mail-sep { padding-inline: 6px; color: #4C6A72; }

.footer-col__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-pale);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.5;
  color: #C6D9DC;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--neon);
  transform: translateX(3px);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(216, 236, 234, 0.14);
  font-size: 12.5px;
  line-height: 1.6;
  color: #8FA9AF;
}

.footer-base__legal {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.footer-base__address { color: #8FA9AF; }

.footer-base__meta { color: #7A959C; }

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.16s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--teal);
  color: #FFFFFF;
  box-shadow: 0 12px 24px -16px rgba(14, 124, 134, 0.95);
}

.btn--primary:hover { background: var(--teal-deep); }

.btn--sun {
  background: var(--orange);
  color: #FFFFFF;
}

.btn--sun:hover { background: #D8552B; }

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--teal-pale);
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
}

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

.crumbs__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs__list li:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.crumbs__link {
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.16s var(--ease), text-decoration-color 0.16s var(--ease);
}

.crumbs__link:hover {
  color: var(--teal-deep);
  text-decoration-color: var(--teal);
}

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

/* ---------- 10. 卡片 / 标签 / 数据块 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 30px);
}

.card--folder {
  position: relative;
  border-radius: var(--radius-lg);
  padding-top: calc(clamp(20px, 3vw, 30px) + 16px);
}

.card__tab {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 5px 15px;
  border-radius: var(--pill);
  background: var(--teal);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}

.tag--live {
  background: var(--ink);
  color: var(--neon);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--graphite);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.chip:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #FFFFFF;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.stat__num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(27px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat--accent .stat__num { color: var(--orange); }

.stat__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.delta--up { color: var(--orange); }
.delta--down { color: var(--slate); }

.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #DCEBEA;
}

.data-strip .stat__num { color: #FFFFFF; }
.data-strip .stat__label { color: rgba(216, 236, 234, 0.66); }
.data-strip .delta--up { color: var(--neon); }
.data-strip .delta--down { color: rgba(216, 236, 234, 0.6); }

.notice {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--teal-deep);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 11. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--teal-pale);
  isolation: isolate;
}

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

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

.media__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 13px;
  border-radius: var(--pill);
  background: rgba(11, 31, 42, 0.84);
  color: #DCEBEA;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- 12. 显现动效 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

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

/* ---------- 13. 减少动效 ---------- */
@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;
  }

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

  .dot--live { animation: none; }
  .footer-link:hover { transform: none; }
  .link-arrow:hover::after { transform: none; }
}
