/* ==========================================================================
   百灵心语官网 · 设计系统
   移动端优先 | 适老友好（大字号大按钮）| 暖色信任感
   ========================================================================== */

:root {
  /* 品牌色 */
  --brand: #f5a623;
  --brand-dark: #e08c00;
  --brand-light: #fff5e0;
  --brand-soft: #fffaf0;
  --accent: #2f7fd1;
  --accent-light: #eaf3fc;
  --green: #2fa36b;
  --green-light: #e9f7f0;
  --purple: #7b5cd6;
  --purple-light: #f2eeff;

  /* 中性色 */
  --ink: #26303a;
  --ink-2: #4a5764;
  --ink-3: #7b8794;
  --line: #e8ecf0;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;

  /* 圆角与阴影 */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sh-sm: 0 2px 8px rgba(38, 48, 58, .06);
  --sh: 0 6px 24px rgba(38, 48, 58, .08);
  --sh-lg: 0 16px 48px rgba(38, 48, 58, .12);

  /* 尺寸 */
  --wrap: 1200px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Hiragino Sans GB", "Source Han Sans CN", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.sec { padding: 56px 0; }
.sec-soft { background: var(--bg-soft); }
.sec-brand { background: var(--brand-soft); }

/* ------------------------------------------------------------ 顶部栏 */
.topbar {
  background: var(--ink);
  color: #cfd8e0;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #ffd591; font-weight: 700; }
.topbar .tel { font-size: 15px; letter-spacing: .5px; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; height: var(--nav-h); }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
.logo b { font-size: 17px; color: var(--brand-dark); letter-spacing: .5px; }

.menu { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.menu a {
  padding: 8px 13px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: .18s;
}
.menu a:hover { background: var(--brand-light); color: var(--brand-dark); }
.menu a.on { color: var(--brand-dark); background: var(--brand-light); }
.menu .nav-cta {
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 9px 18px; box-shadow: 0 4px 12px rgba(245, 166, 35, .35);
}
.menu .nav-cta:hover { background: var(--brand-dark); color: #fff; }

.burger {
  margin-left: auto; display: none;
  width: 44px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--r-sm); cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 11px; width: 20px; height: 2.4px;
  background: var(--ink); border-radius: 2px; transition: .22s;
}
.burger span { top: 18px; }
.burger span::before { content: ""; top: -7px; left: 0; }
.burger span::after { content: ""; top: 7px; left: 0; }
.burger.on span { background: transparent; }
.burger.on span::before { top: 0; transform: rotate(45deg); }
.burger.on span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: 10px 18px 18px;
}
.mobile-menu.on { display: block; }
.mobile-menu a {
  display: block; padding: 12px 10px; font-weight: 600;
  border-bottom: 1px solid var(--line); font-size: 16px;
}
.mobile-menu a:last-child { border: 0; }
.mobile-menu .m-cta {
  margin-top: 12px; text-align: center; background: var(--brand);
  color: #fff; border-radius: var(--r-sm); border: 0; font-size: 17px;
}

/* ------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  transition: transform .16s, box-shadow .16s, background .16s;
  text-align: center; line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(245, 166, 35, .38); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(47, 127, 209, .32); }
.btn-accent:hover { background: #2668ab; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ------------------------------------------------------------ 通用块 */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.sec-head .kicker {
  display: inline-block; background: var(--brand-light); color: var(--brand-dark);
  font-size: 14px; font-weight: 800; padding: 5px 14px; border-radius: 999px;
  margin-bottom: 14px; letter-spacing: 1px;
}
.sec-head h2 { font-size: clamp(24px, 5vw, 34px); letter-spacing: -.5px; }
.sec-head p { color: var(--ink-2); font-size: 17px; margin: 0; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--sh-sm);
}
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr 1fr; }

/* ------------------------------------------------------------ Hero */
.hero {
  background: linear-gradient(168deg, #fff8e8 0%, #fff 46%, var(--accent-light) 100%);
  padding: 44px 0 54px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, .16), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(28px, 6.6vw, 46px); line-height: 1.28;
  letter-spacing: -1px; margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--brand-dark); }
.hero .lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--ink-2); max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero-badges { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.hero-badges span { display: flex; align-items: center; gap: 6px; }
.hero-badges i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero-img {
  margin-top: 30px; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); position: relative;
}
.hero-img img { width: 100%; }

/* 快捷入口条 */
.quickbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; }
.quickbar .wrap { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.quickbar .wrap::-webkit-scrollbar { display: none; }
.quickbar a {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: var(--bg-soft);
  font-weight: 700; font-size: 15px; border: 1px solid var(--line); white-space: nowrap;
}
.quickbar a:hover { border-color: var(--brand); color: var(--brand-dark); }
.quickbar a.qa { background: var(--brand); color: #fff; border-color: var(--brand); }
.quickbar a.qa:hover { background: var(--brand-dark); color: #fff; }
.quickbar .ic { font-size: 18px; }

/* ------------------------------------------------------------ 服务卡片 */
.svc {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.svc .tag {
  position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 800;
  padding: 4px 11px; border-radius: 999px; background: var(--brand-light); color: var(--brand-dark);
}
.svc .tag.hot { background: #ffe9e9; color: #d63b3b; }
.svc .tag.new { background: var(--green-light); color: var(--green); }
.svc .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 27px; background: var(--brand-light); margin-bottom: 16px;
}
.svc h3 { font-size: 20px; margin-bottom: 8px; }
.svc p { color: var(--ink-2); font-size: 15px; flex: 1; }
.svc ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; color: var(--ink-2); }
.svc ul li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.svc ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
.svc .price { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.svc .price b { color: var(--brand-dark); font-size: 19px; }

/* ------------------------------------------------------------ 步骤 */
.steps { counter-reset: s; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; }
.step::before {
  counter-increment: s; content: counter(s);
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
}
.step h4 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ------------------------------------------------------------ 数据条 */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: #fff; border-radius: var(--r); padding: 22px 14px; text-align: center; border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(26px, 5vw, 36px); color: var(--brand-dark); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------ 评估入口卡 */
.assess-card {
  background: linear-gradient(140deg, #2f7fd1, #4f9de0 55%, #6fb6ec);
  border-radius: var(--r-xl); padding: 34px 26px; color: #fff;
  box-shadow: 0 18px 44px rgba(47, 127, 209, .3);
}
.assess-card h2 { color: #fff; font-size: clamp(22px, 4.6vw, 30px); }
.assess-card p { color: rgba(255, 255, 255, .92); font-size: 16px; }
.assess-card .feat { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; margin: 16px 0 24px; }
.assess-card .feat span { display: flex; align-items: center; gap: 6px; }
.assess-card .btn-white { background: #fff; color: var(--accent); box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
.assess-card .btn-white:hover { background: #f0f6fc; }
.assess-card .disclaimer {
  font-size: 12.5px; color: rgba(255, 255, 255, .8); margin-top: 18px;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25);
}

/* ------------------------------------------------------------ 表单 */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 24px; box-shadow: var(--sh);
}
.field { margin-bottom: 18px; }
.field > label, .field-label {
  display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px;
}
.field .req { color: #d63b3b; margin-left: 3px; }
.field input[type=text], .field input[type=tel], .field input[type=number],
.field select, .field textarea {
  width: 100%; padding: 13px 15px; font-size: 16px; font-family: var(--font);
  border: 2px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); transition: .16s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light);
}
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 2px solid var(--line); font-size: 15px; cursor: pointer;
  transition: .16s; background: #fff; user-select: none;
}
.chip input:checked + span {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700;
}
.chip span:hover { border-color: var(--brand); }

.form-msg {
  padding: 13px 16px; border-radius: var(--r-sm); font-size: 15px;
  margin-top: 16px; display: none; font-weight: 600;
}
.form-msg.ok { display: block; background: var(--green-light); color: #1e7a4d; }
.form-msg.err { display: block; background: #fdecec; color: #c02b2b; }

/* ------------------------------------------------------------ 页面头 */
.pagehead {
  background: linear-gradient(160deg, var(--brand-light), #fff 70%);
  padding: 40px 0 44px; border-bottom: 1px solid var(--line);
}
.pagehead h1 { font-size: clamp(25px, 5.4vw, 38px); letter-spacing: -.6px; }
.pagehead .sub { color: var(--ink-2); font-size: 17px; max-width: 720px; margin: 0; }
.crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a:hover { color: var(--brand-dark); }

/* ------------------------------------------------------------ 富文本 */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: clamp(21px, 4vw, 27px); margin-top: 40px; padding-left: 14px; border-left: 5px solid var(--brand); }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 700; }

.callout {
  background: var(--brand-soft); border: 1px solid var(--brand-light);
  border-left: 5px solid var(--brand); border-radius: var(--r-sm);
  padding: 18px 20px; margin: 22px 0; font-size: 15.5px; color: var(--ink-2);
}
.callout.blue { background: var(--accent-light); border-color: #cfe3f7; border-left-color: var(--accent); }
.callout.green { background: var(--green-light); border-color: #c9ead9; border-left-color: var(--green); }
.callout b { color: var(--ink); }

/* 目录 */
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 32px; }
.toc b { display: block; margin-bottom: 10px; font-size: 15px; }
.toc a { display: inline-block; margin: 0 14px 8px 0; font-size: 15px; color: var(--accent); font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ 师资 */
.teacher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.teacher {
  display: flex; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 16px;
}
.teacher .ph {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light), var(--accent-light));
  display: grid; place-items: center; font-size: 24px; font-weight: 800; color: var(--brand-dark);
}
.teacher h4 { margin: 0 0 2px; font-size: 16.5px; }
.teacher .role { font-size: 13px; color: var(--brand-dark); font-weight: 700; margin-bottom: 6px; }
.teacher p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }

/* ------------------------------------------------------------ 评估 H5 */
.as-wrap { max-width: 760px; margin: 0 auto; padding: 22px 18px 80px; }
.as-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.as-top .bar { flex: 1; height: 9px; background: var(--line); border-radius: 999px; overflow: hidden; }
.as-top .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; transition: width .3s; }
.as-top .txt { font-size: 13.5px; color: var(--ink-3); font-weight: 700; white-space: nowrap; }

.as-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; box-shadow: var(--sh-sm); }
.as-q { font-size: 20px; font-weight: 800; line-height: 1.5; margin-bottom: 6px; }
.as-hint { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.as-opts { display: grid; gap: 11px; }
.as-opt {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border: 2px solid var(--line); border-radius: var(--r); cursor: pointer;
  font-size: 16.5px; font-weight: 600; transition: .15s; background: #fff;
}
.as-opt:active { transform: scale(.99); }
.as-opt .em { font-size: 24px; }
.as-opt.on { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.as-opt.on.opt2 { border-color: var(--accent); background: var(--accent-light); color: #22629e; }
.as-opt.on.opt0 { border-color: #d9dee4; background: var(--bg-soft); color: var(--ink-2); }

.as-dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 20px 0; }
.as-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.as-dots i.done { background: var(--green); }
.as-dots i.cur { background: var(--brand); transform: scale(1.5); }

.as-actions { display: flex; gap: 10px; margin-top: 20px; }
.as-actions .btn { flex: 1; }

.as-report { text-align: center; }
.as-report .ring { margin: 0 auto 18px; }
.as-verdict { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.as-verdict-sub { color: var(--ink-2); font-size: 15.5px; margin-bottom: 24px; }
.as-domains { display: grid; gap: 10px; margin: 24px 0; text-align: left; }
.as-dom {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.as-dom .nm { width: 78px; flex-shrink: 0; font-weight: 700; font-size: 15px; }
.as-dom .track { flex: 1; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.as-dom .track i { display: block; height: 100%; border-radius: 999px; }
.as-dom .val { font-size: 13.5px; color: var(--ink-3); width: 74px; text-align: right; font-weight: 700; }
.as-weak {
  background: #fff8f8; border: 1px solid #f5dcdc; border-left: 5px solid #e46a6a;
  border-radius: var(--r-sm); padding: 18px 20px; text-align: left; margin: 20px 0;
}
.as-weak h4 { margin: 0 0 8px; color: #c0392b; font-size: 17px; }
.as-weak p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ------------------------------------------------------------ 后台 */
.adm { max-width: 1240px; margin: 0 auto; padding: 22px 18px 70px; }
.adm-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.adm-top h1 { font-size: 24px; margin: 0; }
.adm-login { max-width: 400px; margin: 70px auto; }
.adm-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.adm-card b { display: block; font-size: 28px; color: var(--brand-dark); line-height: 1.3; }
.adm-card span { font-size: 14px; color: var(--ink-2); }
.adm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.adm-table th, .adm-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table .phone { font-weight: 700; color: var(--accent); }
.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.st-new { background: var(--accent-light); color: #22629e; }
.st-contacted { background: #fff5e0; color: #b8791a; }
.st-visited { background: var(--purple-light); color: #5b3fb0; }
.st-deal { background: var(--green-light); color: #1e7a4d; }
.st-lost { background: #f2f3f5; color: #7b8794; }
.adm-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-bar input, .adm-bar select { padding: 9px 13px; border: 2px solid var(--line); border-radius: var(--r-sm); font-family: var(--font); font-size: 15px; background: #fff; }
.adm-bar input { flex: 1; min-width: 180px; }
.adm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.adm-follow { width: 100%; min-width: 160px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: 14px; }

/* ------------------------------------------------------------ 文章 */
.art-list { display: grid; gap: 16px; }
.art {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 20px; transition: .2s;
}
.art:hover { box-shadow: var(--sh); transform: translateY(-2px); border-color: var(--brand-light); }
.art .cat { display: inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.art h3 { font-size: 18.5px; margin-bottom: 8px; }
.art p { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }
.art .meta { font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------ 加盟 */
.franchise { background: linear-gradient(150deg, #fff8e8, #fff); }
.fr-grid { display: grid; gap: 16px; }
.fr-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
.fr-item .n { font-size: 13px; font-weight: 800; color: var(--brand-dark); letter-spacing: 1px; }
.fr-item h4 { margin: 6px 0 10px; font-size: 19px; }
.fr-item p { font-size: 15px; color: var(--ink-2); margin: 0; }
.fr-item ul { margin: 12px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.fr-item li { margin-bottom: 6px; }

/* ------------------------------------------------------------ FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq summary { padding: 17px 20px; font-weight: 700; cursor: pointer; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 21px; font-weight: 800; line-height: 1; flex-shrink: 0; }
.faq[open] summary::after { content: "−"; }
.faq .body { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }
.faq .body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ CTA 条 */
.ctabar { background: linear-gradient(120deg, var(--brand), #f7c14b); color: #fff; padding: 40px 0; }
.ctabar h2 { color: #fff; font-size: clamp(22px, 4.4vw, 30px); }
.ctabar p { color: rgba(255, 255, 255, .94); margin-bottom: 22px; }
.ctabar .btn-white { background: #fff; color: var(--brand-dark); }
.ctabar .tel-big { font-size: clamp(26px, 6vw, 38px); font-weight: 800; display: block; margin-bottom: 6px; letter-spacing: 1px; }

/* ------------------------------------------------------------ 页脚 */
.foot { background: var(--ink); color: #a8b4c0; padding: 46px 0 26px; font-size: 14px; }
.foot-grid { display: grid; gap: 30px; margin-bottom: 30px; }
.foot h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.foot a { color: #a8b4c0; display: block; margin-bottom: 9px; }
.foot a:hover { color: var(--brand); }
.foot .f-brand b { color: #fff; font-size: 18px; display: block; margin-bottom: 8px; }
.foot .f-brand img { height: 36px; margin-bottom: 12px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.foot-contact li { margin-bottom: 10px; display: flex; gap: 8px; }
.foot-contact b { color: #ffd591; }
.foot-bot { border-top: 1px solid #34404b; padding-top: 20px; font-size: 13px; color: #7d8a97; text-align: center; }
.foot-bot a { display: inline; margin: 0 6px; }
.qr { background: #fff; padding: 8px; border-radius: 12px; display: inline-block; }
.qr img { width: 116px; height: 116px; }

/* 移动端浮动联系条 */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .07);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a, .dock button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 2px; font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: none; border: 0; font-family: var(--font); cursor: pointer;
}
.dock .em { font-size: 20px; }
.dock .hot { color: #fff; background: var(--brand); }

/* ------------------------------------------------------------ 响应式 */
@media (min-width: 640px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .adm-cards { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .fr-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  body { font-size: 16.5px; }
  .sec { padding: 78px 0; }
  .g2 { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .teacher-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 70px 0 78px; }
  .hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
  .hero-img { margin-top: 0; }
  .card { padding: 36px 32px; }
  .form-card { padding: 38px 34px; }
  .dock { display: none; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .fr-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .nav .nav-desktop { display: flex; }
}

@media (max-width: 899px) {
  .menu { display: none; }
  .burger { display: block; }
  .as-wrap { padding-bottom: 96px; }
  .pagehead { padding: 28px 0 32px; }
  .prose h2 { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}

/* 打印（家长打印居家训练卡） */
@media print {
  .nav, .topbar, .dock, .footer, .btn, .ctabar { display: none !important; }
  body { font-size: 12pt; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
