/* ==========================================================================
   FitModel 健身 — 设计系统 v2「能量橙」
   暖白纸感底 / 墨黑大字 / 活力橙主色 / 真实摄影
   零外部依赖（CSP: default-src 'self'）
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --bg: #faf8f4;            /* 暖白纸感 */
  --bg-deep: #f1ece2;       /* 交替区块 */
  --surface: #ffffff;
  --ink: #191610;           /* 墨黑 */
  --ink-2: #55503f;         /* 次级文字 */
  --ink-3: #8a8371;         /* 弱文字 */
  --line: #e8e2d6;
  --line-strong: #d8d0bf;

  --accent: #ff4d26;        /* 活力橙 */
  --accent-deep: #e13a14;
  --accent-soft: #ffe9e2;
  --amber: #f5a623;

  --ok: #1a7f4b;
  --err: #d2321e;

  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(25, 22, 16, .06);
  --shadow-md: 0 14px 34px -16px rgba(25, 22, 16, .22);
  --shadow-lg: 0 30px 60px -24px rgba(25, 22, 16, .32);

  --ease: cubic-bezier(.22, .8, .32, 1);
}

/* ---------- 2. 重置与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent); color: #fff; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
}
.skip-link:focus { left: 8px; }

/* ---------- 3. 区块骨架 ---------- */
.section { padding: clamp(72px, 9vw, 118px) 0; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: var(--bg-deep); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .eyebrow { display: inline-flex; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-head .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 800; letter-spacing: .16em;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); }

.lead { font-size: 1.06rem; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-3); }
.text-center { text-align: center; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 77, 38, .55); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255, 77, 38, .6); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-row--center { justify-content: center; }

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 244, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(25, 22, 16, .3); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.18rem; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: var(--ink); color: #fff;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text em { font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .34em; color: var(--accent); }

.nav-list { display: flex; gap: 6px; }
.nav-list a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav-list a:hover { color: var(--ink); background: rgba(25, 22, 16, .06); }
.nav-list a[aria-current="page"] { color: var(--ink); font-weight: 800; background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--surface);
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 100px);
  background:
    radial-gradient(52% 70% at 88% 6%, var(--accent-soft) 0%, rgba(255, 233, 226, 0) 62%),
    radial-gradient(40% 52% at 4% 90%, #f3ead9 0%, rgba(243, 234, 217, 0) 60%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(36px, 5vw, 72px); align-items: center; }

.hero h1 { font-size: clamp(2.35rem, 5vw, 3.9rem); font-weight: 900; line-height: 1.1; margin: 18px 0 20px; }
.grad-text { color: var(--accent); }
.hero-sub { font-size: 1.08rem; color: var(--ink-2); max-width: 44ch; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: var(--ink-2);
}
.hero-badges svg { width: 15px; height: 15px; color: var(--accent); }

/* 首屏照片 */
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 22px -18px -18px 22px;
  background: var(--accent); border-radius: 28px; opacity: .16;
  transform: rotate(2.5deg);
}
.hero-media img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 26px; box-shadow: var(--shadow-lg);
}
.hero-float {
  position: absolute; left: 22px; bottom: 26px;
  display: flex; flex-direction: column; gap: 1px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow-md);
}
.hero-float strong { font-size: 1.45rem; font-weight: 900; letter-spacing: -.01em; }
.hero-float span { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.hero-float::after {
  content: "▲ 本周 +12%"; position: absolute; right: -12px; top: -14px;
  background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800;
  padding: 6px 11px; border-radius: 999px;
}

/* ---------- 7. 数据条（墨黑） ---------- */
.stat-band { background: var(--ink); color: #fff; padding: clamp(44px, 6vw, 64px) 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat-num {
  font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(120deg, #ff7a4d, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 4px; font-size: .88rem; font-weight: 600; color: #b5ad9c; }

/* ---------- 8. 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.card-icon {
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 15px; background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--indigo { background: #e8e9fc; color: #4338ca; }
.card-icon--flame  { background: #fdeedd; color: #c2570f; }
.card-icon--lime   { background: #e9f3dc; color: #55731c; }

.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- 9. 课程卡 ---------- */
.program-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.program-visual {
  display: grid; place-items: center; height: 148px;
}
.program-visual svg { width: 54px; height: 54px; }
.v-cyan   { background: #e2f2f7; color: #0e7490; }
.v-flame  { background: #ffe8de; color: #e13a14; }
.v-violet { background: #efe9fb; color: #6d28d9; }
.v-rose   { background: #fde8ef; color: #be185d; }
.v-indigo { background: #e7e9fd; color: #4338ca; }
.v-lime   { background: #e9f4dc; color: #4d7c0f; }

.program-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.program-body h3 { font-size: 1.22rem; }
.program-meta {
  display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-size: .82rem; font-weight: 600; color: var(--ink-3);
}
.program-meta span { display: inline-flex; align-items: center; gap: 6px; }
.program-meta svg { width: 14px; height: 14px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg);
  font-size: .76rem; font-weight: 700; color: var(--ink-2);
}
.tag--brand { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }

/* ---------- 10. 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 6px; }
.step-num {
  font-size: 3.2rem; font-weight: 900; line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* ---------- 11. 分栏与清单 ---------- */
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.split .lead { margin-bottom: 26px; }

.check-list { display: grid; gap: 18px; }
.check-list li { display: flex; gap: 14px; }
.check-list svg {
  flex: none; width: 24px; height: 24px; padding: 5px; margin-top: 3px;
  background: var(--accent-soft); color: var(--accent-deep); border-radius: 50%;
}
.check-list strong { display: block; font-size: 1rem; }
.check-list span { color: var(--ink-2); font-size: .93rem; }

.split-media img {
  width: 100%; aspect-ratio: 7 / 5; object-fit: cover;
  border-radius: 24px; box-shadow: var(--shadow-lg);
}

/* ---------- 12. 教练卡 ---------- */
.coach-card { padding: 0; overflow: hidden; }
.coach-avatar { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.coach-card h3, .coach-card p { padding-inline: 24px; }
.coach-card h3, .coach-name { margin: 20px 0 2px; font-size: 1.15rem; }
.coach-role { color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.coach-bio { color: var(--ink-2); font-size: .92rem; }
.coach-creds { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 24px; margin-top: 14px; }

/* ---------- 13. 会员评价 ---------- */
.quote-card { position: relative; }
.quote-mark {
  position: absolute; top: 6px; right: 22px;
  font-size: 4.2rem; font-weight: 900; line-height: 1;
  color: var(--accent-soft);
}
.stars { display: flex; gap: 3px; color: var(--amber); margin-bottom: 14px; }
.stars svg { width: 17px; height: 17px; }
.quote-text { font-size: .97rem; color: var(--ink-2); }
.quote-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote-avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem;
}
.quote-name { font-weight: 800; font-size: .95rem; }
.quote-tag { font-size: .78rem; color: var(--ink-3); }

/* ---------- 14. 会员方案 ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card--featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.price-card--featured .price-desc { color: #b5ad9c; }
.price-flag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .76rem; font-weight: 800;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .05em; white-space: nowrap;
}
.price-name { font-size: 1.2rem; }
.price-desc { font-size: .9rem; color: var(--ink-2); min-height: 3.2em; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 2px; }
.price-cur { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.price-num { font-size: 2.7rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.price-unit { font-size: .88rem; color: var(--ink-3); font-weight: 600; }
.price-card--featured .price-unit { color: #b5ad9c; }
.price-note { min-height: 1.5em; font-size: .8rem; font-weight: 700; color: var(--accent-deep); margin-bottom: 8px; }
.price-card--featured .price-note { color: #ff8a66; }

.price-features { display: grid; gap: 11px; margin: 16px 0 26px; }
.price-features li { display: flex; align-items: flex-start; gap: 9px; font-size: .92rem; }
.price-features svg { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--ok); }
.price-features .is-off { color: var(--ink-3); text-decoration: line-through; }
.price-features .is-off svg { color: var(--ink-3); }
.price-card--featured .price-features li { color: #ece7db; }
.price-card--featured .price-features svg { color: #ff8a66; }
.price-card .btn { margin-top: auto; }
.price-card--featured .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.price-card--featured .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- 15. 手风琴 ---------- */
.accordion { max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 28px; box-shadow: var(--shadow-sm); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; background: none; border: 0; text-align: left;
  font-size: 1.02rem; font-weight: 800; color: var(--ink);
}
.acc-q::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 1.25rem; font-weight: 700; line-height: 1;
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.acc-item.is-open .acc-q::after { content: "−"; transform: rotate(180deg); background: var(--accent); color: #fff; }
.acc-a { overflow: hidden; max-height: 0; transition: max-height .3s var(--ease); }
.acc-a-inner { padding: 0 0 24px; color: var(--ink-2); font-size: .95rem; }

/* ---------- 16. 行动号召 ---------- */
.cta-band {
  background:
    radial-gradient(60% 120% at 90% 0%, rgba(255, 122, 77, .25) 0%, rgba(255, 122, 77, 0) 55%),
    var(--ink);
  color: #fff; border-radius: 30px; padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 80px);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.cta-band .lead { color: #b5ad9c; margin-inline: auto; }

/* ---------- 17. 页脚 ---------- */
.site-footer { background: var(--ink); color: #b5ad9c; padding: clamp(56px, 7vw, 84px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }

.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-about { font-size: .92rem; margin: 18px 0 22px; max-width: 34ch; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18); color: #b5ad9c;
  transition: background .2s, color .2s, border-color .2s;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social-row svg { width: 19px; height: 19px; }

.footer-title { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; font-size: .92rem; }
.footer-links a { transition: color .15s; }
.footer-links a:hover { color: var(--accent); }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--accent); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- 18. 内页页头 ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(50% 90% at 92% 8%, var(--accent-soft) 0%, rgba(255, 233, 226, 0) 60%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; margin: 10px 0 12px; }
.page-hero .lead { font-size: 1.05rem; }
.crumbs { display: flex; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }

.page-hero--courses {
  color: #fff;
  background: linear-gradient(100deg, rgba(25, 22, 16, .88) 22%, rgba(25, 22, 16, .45) 62%, rgba(25, 22, 16, .25)),
    url("/assets/img/group-class.jpg") center 38% / cover no-repeat;
}
.page-hero--about {
  color: #fff;
  background: linear-gradient(100deg, rgba(25, 22, 16, .88) 22%, rgba(25, 22, 16, .45) 62%, rgba(25, 22, 16, .25)),
    url("/assets/img/gym-interior.jpg") center 60% / cover no-repeat;
}
.page-hero--courses .crumbs, .page-hero--about .crumbs { color: rgba(255, 255, 255, .72); }
.page-hero--courses .crumbs a:hover, .page-hero--about .crumbs a:hover { color: #ff8a66; }
.page-hero--courses .crumbs [aria-current], .page-hero--about .crumbs [aria-current] { color: #fff; }

/* ---------- 19. 课程页：筛选与课表 ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 34px;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-size: .88rem; font-weight: 700; color: var(--ink-2);
  transition: all .18s var(--ease);
}
.filter-tab:hover { border-color: var(--ink); color: var(--ink); }
.filter-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--ink-3); }

.schedule { margin-top: 20px; }
.timetable { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.timetable th, .timetable td { padding: 13px 14px; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--line); }
.timetable thead th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; }
.timetable tbody tr:last-child td { border-bottom: 0; }
.timetable tbody tr:hover { background: #fbf6ef; }
.timetable .time { font-weight: 800; white-space: nowrap; color: var(--ink); }

.slot {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--bg-deep); font-size: .8rem; font-weight: 700; color: var(--ink-2);
}
.slot--flame  { background: #ffe8de; color: #c22c0b; }
.slot--indigo { background: #e7e9fd; color: #4338ca; }
.slot--lime   { background: #e9f4dc; color: #4d7c0f; }

/* ---------- 20. 方案页：周期切换与对比表 ---------- */
.segmented {
  display: inline-flex; background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: 999px; padding: 4px; gap: 4px;
}
.seg-btn {
  padding: 9px 22px; border-radius: 999px; border: 0; background: transparent;
  font-size: .9rem; font-weight: 700; color: var(--ink-2);
  transition: background .18s, color .18s;
}
.seg-btn.is-active { background: var(--ink); color: #fff; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; font-size: .9rem; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-deep); font-weight: 800; position: sticky; top: 0; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child, .compare th:first-child { text-align: left; font-weight: 600; color: var(--ink-2); }
.compare .yes { color: var(--ok); font-weight: 800; }
.compare .no { color: var(--line-strong); font-weight: 800; }
.compare tbody tr:hover { background: #fbf6ef; }

/* ---------- 21. 联系页：表单 ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 800; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: 12px 15px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--bg); transition: border-color .15s, box-shadow .15s;
  appearance: none; width: 100%;
}
.field select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2355503f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 77, 38, .14);
}
.field-error { display: none; font-size: .8rem; font-weight: 600; color: var(--err); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field.has-error .field-error { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-2); grid-column: 1 / -1; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form-note { font-size: .82rem; color: var(--ink-3); margin-top: 14px; }
.form-success {
  border: 1.5px solid var(--ok); background: #eef8f1; color: var(--ok);
  border-radius: 14px; padding: 16px 20px; font-weight: 700; font-size: .95rem;
}

/* ---------- 22. 关于页：门店 ---------- */
.store-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.store-info { padding: 24px 26px 26px; }
.store-name { font-size: 1.15rem; margin-bottom: 6px; }
.store-map { font-size: .9rem; color: var(--ink-2); }

/* ---------- 23. 404 ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 24px 80px; }
.error-code {
  font-size: clamp(5.5rem, 16vw, 9.5rem); font-weight: 900; line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 3px var(--accent);
}


/* ---------- 27. 工具类（CSP 禁止内联 style，间距统一用类） ---------- */
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-26 { margin-top: 26px; }
.mt-30 { margin-top: 30px; }
.mt-32 { margin-top: 32px; }
.mt-34 { margin-top: 34px; }
.mt-40 { margin-top: 40px; }
.mt-44 { margin-top: 44px; }
.mb-28 { margin-bottom: 28px; }
.mb-44 { margin-bottom: 44px; }
.fs-clamp-2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.h2-md { font-size: 1.6rem; }
.mw-32 { max-width: 32rem; margin: 0 auto 32px; }
.bt-0 { border-top: 0; padding-top: 0; }
.contact-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.h-260 { min-height: 260px; }
.py-60 { padding: 60px 0; }
.error-page--flow { min-height: auto; padding: 150px 0 100px; }

/* ---------- 24. 滚动显现（依赖 html.js，JS 不可用时内容始终可见） ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 25. 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .hero-media::before { inset: 16px -12px -12px 16px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px 5%;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .22s var(--ease), opacity .22s, visibility .22s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 13px 14px; border-radius: 12px; font-size: 1.02rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 14px; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-bottom: 56px; }
  .hero-float { left: 14px; bottom: 16px; padding: 11px 16px; }
  .accordion { padding-inline: 20px; }
  .filter-count { margin-left: 0; width: 100%; }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
