/* 顾客首页：和后台同一品牌色（靛蓝），但更温和、留白更多 */
:root {
  --bg: #faf9f6;
  --bg-alt: #f2f1ec;
  --card: #ffffff;
  --text: #16181d;
  --muted: #5b616e;
  --line: #e6e4dd;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-text: #ffffff;
  --ok: #15803d;
  --ok-soft: #e8f6ec;
  --wa: #16a34a;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 12px 32px -12px rgba(22, 24, 29, .14);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1015;
    --bg-alt: #14171e;
    --card: #181b23;
    --text: #e8e9ec;
    --muted: #a0a6b3;
    --line: #2a2e38;
    --accent: #8b8cf8;
    --accent-hover: #a5a6fb;
    --accent-soft: #1f1d4a;
    --accent-text: #0e1015;
    --ok: #4ade80;
    --ok-soft: #12261a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:lang(en) body, :lang(ms) body { line-height: 1.6; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 72px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--muted); }
.btn-block { width: 100%; }

/* 顶部导航 */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-text); font-size: 16px; font-weight: 700; }
.brand.small { font-size: 15px; }
.brand.small .brand-mark { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.langs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.langs a { all: unset; cursor: pointer; min-width: 34px; height: 30px; padding: 0 6px; text-align: center; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); box-sizing: border-box; line-height: 30px; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.langs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-in { gap: 12px; }
}
@media (max-width: 420px) {
  .nav-end .btn-sm { display: none; }
}

/* 首屏 */
.hero { padding: 72px 0 88px; background:
  radial-gradient(900px 420px at 85% 10%, var(--accent-soft), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.02em; }
.lede { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft); box-shadow: inset 0 0 0 4px var(--ok-soft), inset 0 0 0 8px var(--ok); }

/* 首屏示意卡片 */
.hero-art { position: relative; display: grid; gap: 0; max-width: 440px; justify-self: end; width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card-k { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.need { width: 86%; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--muted); }
.ticks li.on { color: var(--text); }
.tick { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); flex: none; position: relative; }
.ticks li.on .tick { background: var(--accent); border-color: var(--accent); }
.ticks li.on .tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.link-line { height: 36px; display: flex; justify-content: center; }
.link-line span { width: 2px; background: repeating-linear-gradient(var(--accent) 0 6px, transparent 6px 11px); }
.match { width: 92%; justify-self: end; }
.match-head { display: flex; gap: 12px; align-items: center; }
.firm-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; flex: none; }
.match-t { font-weight: 700; }
.match-s { font-size: 13px; color: var(--muted); }
.bill { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.bill-row { display: flex; justify-content: space-between; color: var(--muted); }
.bill-row b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.bill-row.paid b { color: var(--ok); }

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { justify-self: center; }
}

/* 通用段落 */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; max-width: 22em; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* 服务 */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.price { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.price b { color: var(--accent); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.services { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; row-gap: 20px; }
.svc-ic { justify-self: start; }
/* 每张卡片占 4 行（图标 / 标题 / 说明 / 列表），用 subgrid 让四张卡片的同一部分上下对齐 */
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; transition: border-color .15s, box-shadow .15s, transform .15s; }
.svc:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .svc:hover { transform: none; } }
.svc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.svc-ic svg { width: 22px; height: 22px; }
.svc h3 { margin-top: 18px; font-size: 19px; }
.svc p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.svc ul { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; font-size: 14px; }
.svc li { display: flex; gap: 8px; align-items: baseline; }
.svc li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* 流程 */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.steps h3 { margin-top: 16px; font-size: 19px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* 为什么 */
.whys { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.why { border-top: 2px solid var(--accent); padding-top: 20px; }
.why h3 { font-size: 18px; }
.why p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .whys { grid-template-columns: 1fr; gap: 28px; } }

/* 咨询表单 */
.enquire { background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%); }
.enquire-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.enquire-copy { position: sticky; top: 104px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; }
@media (max-width: 900px) {
  .enquire-in { grid-template-columns: 1fr; gap: 32px; }
  .enquire-copy { position: static; }
}
@media (max-width: 480px) { .form-card { padding: 22px 18px; } }
.f { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.f > span, .f legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.f > span { margin-bottom: 0; }
.f input:not([type="checkbox"]) {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.f input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.f input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--card); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip { position: relative; display: grid; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-weight: 500; font-size: 15px; line-height: 1.3; transition: border-color .15s, background .15s; }
.chip span::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 5px; border: 1.5px solid var(--line); background: var(--card); }
.chip:hover span { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.chip input:checked + span::before { background: var(--accent); border-color: var(--accent);
  background-image: linear-gradient(45deg, transparent 0 0); box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 9px var(--accent-text); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-err { min-height: 0; color: #c2410c; font-size: 14px; margin: -4px 0 12px; }
.form-err:empty { display: none; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.done { text-align: center; padding: 24px 8px; }
.done-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.done-ic svg { width: 28px; height: 28px; }
.done h3 { margin-top: 16px; font-size: 22px; }
.done p { margin: 8px auto 24px; color: var(--muted); max-width: 26em; }

/* 常见问题 */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

/* ---------- 右下角 WhatsApp 浮窗 ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.wa-dot {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px -6px rgba(37, 211, 102, .6), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-dot svg { width: 32px; height: 32px; }
.wa-label {
  /* 浮在按钮左边，不占位置，避免看不见的区域也能点到 */
  position: absolute; right: calc(100% + 10px); top: 50%; margin-top: -19px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.wa-float:hover .wa-dot { transform: scale(1.06); box-shadow: 0 14px 32px -6px rgba(37, 211, 102, .7), 0 2px 6px rgba(0, 0, 0, .12); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { opacity: 1; transform: none; }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-dot { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: none) { .wa-label { display: none; } }
.wa-dot { position: relative; }
.wa-dot svg { position: relative; z-index: 1; }
/* 未读小红点 */
.wa-badge {
  position: absolute; top: -2px; right: -2px; z-index: 2; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #ef4444; color: #fff; font: 700 12px/20px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--bg);
}
.wa-float.seen .wa-badge { display: none; }
/* 问候气泡 */
.wa-greet {
  position: fixed; right: 24px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 30; width: 270px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow);
  padding: 14px 36px 14px 16px; cursor: pointer;
}
.wa-greet-who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.wa-online { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .2); }
.wa-greet-msg { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.wa-greet-x { all: unset; position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border-radius: 50%; text-align: center; line-height: 26px; font-size: 18px; color: var(--muted); cursor: pointer; }
.wa-greet-x:hover { background: var(--bg-alt); color: var(--text); }
.wa-greet-x:focus-visible { outline: 2px solid var(--accent); }
@media (max-width: 600px) {
  .wa-greet { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); width: min(270px, calc(100vw - 32px)); }
}

@media (prefers-reduced-motion: no-preference) {
  /* 呼吸波纹：两圈绿色往外扩散，一直轻轻提醒 */
  .wa-dot::before, .wa-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: 0; z-index: 0;
    animation: wa-ripple 2.6s cubic-bezier(.2, .6, .4, 1) infinite;
  }
  .wa-dot::after { animation-delay: 1.3s; }
  /* 小红点弹出 + 偶尔跳一下 */
  .anim .wa-badge { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) 3s both, wa-bounce 3.5s ease 4.5s infinite; }
  /* 鼠标移上去，图标晃一晃 */
  .wa-float:hover .wa-dot svg { animation: wa-wiggle .5s ease; }
  /* 气泡从按钮的方向弹出 */
  .wa-greet:not([hidden]) { transform-origin: bottom right; animation: wa-greet-in .45s cubic-bezier(.3, 1.4, .5, 1) both; }
  .wa-greet.out { animation: wa-greet-out .25s ease forwards; }
}
@keyframes wa-ripple { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes wa-bounce { 0%, 80%, 100% { transform: none; } 86% { transform: translateY(-5px); } 92% { transform: translateY(0); } 96% { transform: translateY(-2px); } }
@keyframes wa-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
@keyframes wa-greet-in { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes wa-greet-out { to { opacity: 0; transform: translateY(8px) scale(.9); } }

/* ---------- 手机版 ---------- */
.float-cta { display: none; }
@media (max-width: 600px) {
  /* 手机：段落之间、卡片里面都收紧，一屏多看一点 */
  .hero { padding: 24px 0 36px; }
  .hero h1 { font-size: 34px; }
  .section h2 { font-size: 25px; }
  .hero-in { gap: 24px; }
  .eyebrow { font-size: 13px; margin-bottom: 8px; }
  .lede { font-size: 15.5px; margin-top: 12px; }
  .hero-cta { margin-top: 18px; gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; min-height: 46px; }
  .hero-points { margin-top: 16px; gap: 6px 16px; font-size: 13px; }
  .hero-art { max-width: 320px; justify-self: center; }
  .card { padding: 14px 16px; }
  .card-k { margin-bottom: 8px; }
  .ticks { gap: 7px; font-size: 15px; }
  .bill { margin-top: 12px; padding-top: 10px; gap: 4px; }
  .section { padding: 36px 0; }
  .sec-head { gap: 10px; }
  .price { padding: 6px 14px; font-size: 14px; }
  .services, .steps, .whys { margin-top: 18px; }
  .services { gap: 10px; }
  /* 服务卡片：图标放标题左边，项目横排，卡片矮一点 */
  .svc { padding: 16px; grid-template-columns: 36px 1fr; column-gap: 12px; grid-row: auto; grid-template-rows: auto; }
  .svc-ic { width: 36px; height: 36px; grid-column: 1; grid-row: 1; align-self: center; }
  .svc h3 { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 17px; }
  .svc p, .svc ul { grid-column: 1 / -1; }
  .svc p { margin-top: 10px; font-size: 14.5px; }
  .svc ul { margin-top: 10px; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
  /* 三步：数字在左，像时间线 */
  .steps { gap: 0; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; background: none; border: 0; border-radius: 0; padding: 0 0 16px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: color-mix(in srgb, var(--accent) 25%, transparent); }
  .step-n { grid-row: 1 / span 2; }
  .steps h3 { margin-top: 6px; font-size: 17px; }
  .steps p { margin-top: 2px; font-size: 14.5px; }
  .whys { gap: 16px; }
  .why { padding-top: 12px; }
  .why p { font-size: 14.5px; margin-top: 4px; }
  .enquire-in { gap: 16px; }
  .enquire .lede { margin-top: 8px; }
  .form-card { padding: 18px 16px; border-radius: 16px; }
  .f { margin-bottom: 14px; gap: 6px; }
  .f legend { margin-bottom: 6px; }
  .chips { gap: 8px; }
  .chip span { min-height: 46px; padding: 8px 12px; font-size: 14.5px; }
  .faq { margin-top: 16px; }
  .faq summary { font-size: 15.5px; padding: 14px 0; }
  .faq details p { padding-bottom: 14px; font-size: 14.5px; }

  .float-cta {
    display: flex; align-items: center; justify-content: center;
    /* 右边留位置给 WhatsApp 圆按钮 */
    position: fixed; left: 16px; right: 84px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
    min-height: 50px; border-radius: 14px; background: var(--accent); color: var(--accent-text);
    font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(79, 70, 229, .55);
    transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease;
  }
  .float-cta.show { transform: none; opacity: 1; pointer-events: auto; }
  .float-cta:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
  .foot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wa-float { right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .wa-dot { width: 56px; height: 56px; }
}

/* ---------- 动态效果 ----------
   只在有 JS（html.anim）且用户没有开「减少动态效果」时生效；
   没有 JS 时页面直接显示最终状态。 */
@media (prefers-reduced-motion: no-preference) {
  /* 1. 首屏：需求逐个打勾 → 虚线连过去 → 会计公司卡片出现 → 未还归零变绿 */
  .anim .need { animation: rise .6s cubic-bezier(.2, .7, .2, 1) .1s both; }
  .anim .ticks li.on .tick { animation: tick-box .35s ease both; }
  .anim .ticks li.on .tick::after { animation: tick-mark .3s cubic-bezier(.3, 1.6, .5, 1) both; }
  .anim .ticks li.on { animation: tick-text .35s ease both; }
  .anim .ticks li:nth-child(1), .anim .ticks li:nth-child(1) .tick, .anim .ticks li:nth-child(1) .tick::after { animation-delay: .55s; }
  .anim .ticks li:nth-child(2), .anim .ticks li:nth-child(2) .tick, .anim .ticks li:nth-child(2) .tick::after { animation-delay: .8s; }
  .anim .ticks li:nth-child(3), .anim .ticks li:nth-child(3) .tick, .anim .ticks li:nth-child(3) .tick::after { animation-delay: 1.05s; }
  .anim .link-line span { transform-origin: top; animation: draw-down .45s ease-out 1.35s both, flow 1.2s linear 1.8s 3; }
  .anim .match { animation: rise .6s cubic-bezier(.2, .7, .2, 1) 1.7s both; }
  .anim .bill-row.paid b { transition: color .4s ease; }
  .anim .bill-row.paid.owing b { color: #c2410c; }

  /* 2. 滚动到才出现：淡入 + 上移，同一组依次出现 */
  .anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .anim .reveal.in { opacity: 1; transform: none; }
  .anim .reveal.d1 { transition-delay: .08s; }
  .anim .reveal.d2 { transition-delay: .16s; }
  .anim .reveal.d3 { transition-delay: .24s; }
  /* 卡片出现后，鼠标移上去的浮起不要带延迟 */
  .anim .svc.reveal.in { transition: opacity .6s ease, transform .2s ease, border-color .15s, box-shadow .15s; transition-delay: 0s; }
  .anim .svc.reveal.in:hover { transform: translateY(-2px); }

  /* WhatsApp 浮窗：首屏动画快结束时弹出 */
  .anim .wa-float { animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) 2.4s both; }

  /* 3. 提交成功：圆圈弹出，勾一笔画出来 */
  .anim .done:not([hidden]) .done-ic { animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
  .anim .done:not([hidden]) .done-ic path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s ease-out .25s forwards; }
  .anim .done:not([hidden]) h3, .anim .done:not([hidden]) p, .anim .done:not([hidden]) .btn { animation: rise .5s ease .35s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tick-box { from { background: var(--card); border-color: var(--line); } to { background: var(--accent); border-color: var(--accent); } }
@keyframes tick-mark { from { opacity: 0; transform: rotate(45deg) scale(.3); } to { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes tick-text { from { color: var(--muted); } to { color: var(--text); } }
@keyframes draw-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes flow { from { background-position: 0 0; } to { background-position: 0 11px; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); font-size: 14px; text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
