@charset "utf-8";
/* ==========================================================================
   牛匠直装 官网 · 样式表
   --------------------------------------------------------------------------
   设计口径：
     · 主色 #FFD250（与匠猫 ijiangmao.cn 同一支黄，也是小程序落地主题色）；
     · 黄色的明度很高，**字一定要压在深色上**：主色底配 #151515 字，
       白底上的黄色只能当「标记 / 色块」，正文强调用 --gold（#8A6400），
       否则白底黄字直接看不见；
     · 风格：简洁、直接、明了。一屏只讲一件事，不加无意义的装饰动画；
     · 断点：1180 / 900 / 720 / 480。900 以下整套改成单列 + 底部固定行动条。

   文件顺序：变量 → 基础元件 → 页头/抽屉 → 首页各区 → 子页 → 页脚 → 响应式
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 变量与基础
   -------------------------------------------------------------------------- */
:root {
  --y: #ffd250;
  --y-strong: #f7c41c;
  --y-soft: #fff7dc;
  --y-mist: #fffcf0;

  --ink: #151515;
  --ink2: #3c3c3c;
  --ink3: #6e6e6e;
  --ink4: #9b9b9b;

  --line: #ebe4d2;
  --line2: #f4efe2;

  --gold: #8a6400;
  --green: #1f8a4c;

  --white: #fff;
  --r: 18px;
  --r-sm: 12px;
  --sh: 0 10px 30px rgba(20, 20, 20, .06);
  --sh-lift: 0 16px 40px rgba(20, 20, 20, .1);

  --wrap: 1180px;
  --hdr-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 页面内锚点（#why）不要被固定页头盖住 */
  scroll-padding-top: calc(var(--hdr-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 抽屉打开时锁滚动（由 JS 加类，不写死在 body 上） */
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ★ `[hidden]` 必须带 !important：
   浏览器自带的 `[hidden]{display:none}` 是**作者样式之前**的 UA 规则，
   而我们给 .ftr-qrs / .qrs / section 之类写了 display:flex|grid，
   会把它盖掉 —— 结果就是「二维码没上传，页脚却留着一个空框」。
   动态隐藏的每一处（二维码、备案号、表单成功态、空动态区块）都靠这条生效。 */
[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
b, strong { font-weight: 700; }

::selection { background: var(--y); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--y-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* 只给读屏用的文字 */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. 基础元件：按钮 / 表单 / 标签
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--y);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(255, 210, 80, .32);
}
.btn-primary:hover { background: var(--y-strong); }

.btn-dark { background: var(--ink); color: var(--y); }
.btn-dark:hover { background: #000; }

.btn-line {
  background: transparent;
  border-color: #ddd3ba;
  color: var(--ink);
}
.btn-line:hover { border-color: var(--ink); background: #fff; }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--y-soft); }

.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* 表单：只留一条下边线，视觉更轻（官网表单越"像表单"越吓人） */
.field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
}
.field + .field { margin-top: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236E6E6E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink4); }
.field textarea { resize: vertical; min-height: 84px; padding-top: 12px; }

.field.is-bad { border-bottom-color: #d64545; }
.field .tip {
  position: absolute;
  right: 0;
  bottom: -18px;
  font-size: 12px;
  color: #d64545;
}

.field-row { display: flex; gap: 18px; }
.field-row .field { flex: 1; min-width: 0; }

/* 小标签 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--y);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
}
.chip-line {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink3);
  font-weight: 600;
}

/* 可选中的小块（装修类型） */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--ink2);
  cursor: pointer;
  transition: all .16s ease;
}
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:hover { border-color: #d9cfa9; }
.pick.is-on {
  background: var(--y);
  border-color: var(--y);
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3. 页头
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hdr.is-stuck {
  border-bottom-color: var(--line2);
  box-shadow: 0 6px 24px rgba(20, 20, 20, .05);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--hdr-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--y);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.brand-txt span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--ink4);
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink2);
  transition: color .16s ease, background .16s ease;
}
.nav a:hover { color: var(--ink); background: var(--y-mist); }
.nav a.on { color: var(--ink); font-weight: 700; }
.nav a.on::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--y);
}

.hdr-act { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hdr-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
}
.hdr-tel span { font-size: 12px; font-weight: 500; color: var(--ink4); }
.hdr-tel:hover { color: var(--gold); }
.hdr-tel b { font-size: 15px; font-weight: 800; letter-spacing: .3px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger i,
.burger i::before,
.burger i::after {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}
.burger i::before { transform: translateY(-6px); }
.burger i::after { transform: translateY(4px); }

/* 抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.drawer.is-open { display: block; }
.drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, .45);
  animation: fade .2s ease;
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px);
  padding: 24px 24px calc(28px + env(safe-area-inset-bottom));
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* 内容贴到右边缘会被滚动条压住，留一条稳定的槽 */
  scrollbar-gutter: stable;
  animation: slideIn .24s cubic-bezier(.22, .61, .36, 1);
}
.drawer-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-x {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dnav {
  display: flex;
  align-items: center;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line2);
  font-size: 16.5px;
  color: var(--ink2);
}
.dnav.on { color: var(--ink); font-weight: 700; }
.dnav.on::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--y-strong);
  margin-right: 8px;
}
.dsep { height: 22px; }
.dtel { display: flex; flex-direction: column; gap: 4px; }
.dtel span { font-size: 12.5px; color: var(--ink4); }
.dtel b { font-size: 26px; font-weight: 800; letter-spacing: .5px; line-height: 1.25; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(18px); opacity: .6; } to { transform: none; opacity: 1; } }

/* --------------------------------------------------------------------------
   4. 首页 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, var(--y) 0%, rgba(255, 210, 80, 0) 62%),
    linear-gradient(180deg, var(--y-mist) 0%, #fff 78%);
}
/* 细网格：让「白 + 黄」两块不要糊在一起，也让大留白有质感 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(21, 21, 21, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 21, 21, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero-kicker { margin-bottom: 20px; }
.hero-kicker .chip { height: 32px; }

.hero-h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
/* 黄色「马克笔」：只画字的下半截，比整块黄底干净 */
.hero-h1 em {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.hero-h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4px; right: -4px;
  bottom: 2px;
  height: .42em;
  border-radius: 4px;
  background: var(--y);
}

.hero-sub {
  max-width: 30em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink2);
}
.hero-sub b { color: var(--ink); }

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink3);
}
.hero-marks li { display: inline-flex; align-items: center; gap: 7px; }
.hero-marks li::before {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--y) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7'%3E%3Cpath d='M1 3.4 3.2 5.5 8 1' fill='none' stroke='%23151515' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  flex: none;
}

/* 首屏预约卡 —— 官网唯一强转化的地方，视觉必须比正文重 */
.lead {
  position: relative;
  padding: 26px 26px 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(21, 21, 21, .12), 0 0 0 1px var(--line2);
}
/* 卡片顶部黄条：视觉锚点，也让「这是表单」一眼可辨 */
.lead::before {
  content: "";
  position: absolute;
  top: 0; left: 26px; right: 26px;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: var(--y);
}
.lead-hd { margin-bottom: 6px; }
.lead-hd b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.lead-hd span { font-size: 13px; color: var(--ink3); }

.lead-types { margin: 16px 0 6px; }
.lead-types .picks { gap: 7px; }
.lead-types .pick { height: 34px; padding: 0 13px; font-size: 13px; }

.lead-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink4);
}
.lead-note a { color: var(--gold); font-weight: 700; }

.lead .btn-block { margin-top: 18px; }

.lead-ok { display: none; padding: 18px 0 6px; text-align: center; }
/* ★ 这里只认 [data-book-wrap]，不认 .lead：首页首屏卡片是 .lead，
   装修/预约页是 .book-card，两种容器的成功态必须同一套规则，
   否则其中一页会出现「表单收起了、成功面板却还是 display:none」的空卡片。 */
[data-book-wrap].is-done .lead-body,
[data-book-wrap].is-done [data-book-body] { display: none; }
[data-book-wrap].is-done .lead-ok { display: block; }
.lead-ok .ok-ic {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--y);
  display: grid;
  place-items: center;
}
.lead-ok b { display: block; font-size: 18px; font-weight: 800; }
.lead-ok p { margin-top: 6px; font-size: 13px; color: var(--ink3); }

/* --------------------------------------------------------------------------
   5. 数据条（深色）
   -------------------------------------------------------------------------- */
.stats { background: var(--ink); color: #fff; }
.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  /* 同上：也是 .wrap，左右必须留给 .wrap */
  padding-top: 34px;
  padding-bottom: 34px;
}
.stat { padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--y);
  letter-spacing: -.5px;
}
.stat b i { font-size: .5em; font-style: normal; margin-left: 3px; color: rgba(255, 255, 255, .7); }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .62); }

/* --------------------------------------------------------------------------
   6. 通用区块
   -------------------------------------------------------------------------- */
.sec { padding: 92px 0; }
.sec-tight { padding: 60px 0; }
.sec-tint { background: var(--y-mist); }
.sec-soft { background: #faf8f2; }

.sec-hd { max-width: 720px; margin-bottom: 44px; }
.sec-hd.center { margin-left: auto; margin-right: auto; text-align: center; }

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ink3);
}
.sec-kicker::before {
  content: "";
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--y-strong);
}

.sec-t {
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.6px;
}
.sec-t em { color: var(--gold); }
.sec-d { margin-top: 14px; font-size: 15.5px; line-height: 1.85; color: var(--ink3); }

.sec-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink2);
}
.sec-more:hover { color: var(--ink); }
.sec-more svg { transition: transform .16s ease; }
.sec-more:hover svg { transform: translateX(3px); }

.hd-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hd-row .sec-hd { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. 服务类型
   -------------------------------------------------------------------------- */
.svcs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); border-color: transparent; }
.svc-ic {
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--y-soft);
  display: grid;
  place-items: center;
}
.svc-t { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.svc-p { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--ink3); }
.svc-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.svc-go::after { content: "→"; transition: transform .16s ease; }
.svc:hover .svc-go::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   8. 五真体系
   -------------------------------------------------------------------------- */
.truths {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.truth {
  padding: 24px 20px 26px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
}
.truth-n {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}
.truth-t { margin-top: 12px; font-size: 20px; font-weight: 800; }
.truth-t::after {
  content: "";
  display: block;
  width: 24px; height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--y);
}
.truth-p { margin-top: 12px; font-size: 13.5px; line-height: 1.8; color: var(--ink3); }

/* --------------------------------------------------------------------------
   9. 对比表
   -------------------------------------------------------------------------- */
.cmp-wrap { margin-top: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); }
table.cmp { width: 100%; border-collapse: collapse; background: #fff; }
table.cmp th, table.cmp td {
  padding: 18px 20px;
  text-align: left;
  font-size: 14.5px;
  line-height: 1.7;
  vertical-align: top;
  border-bottom: 1px solid var(--line2);
}
table.cmp tr:last-child th,
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp thead th {
  background: #fbf9f2;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink3);
  letter-spacing: .6px;
}
table.cmp thead th:nth-child(3) { background: var(--y-soft); color: var(--ink); }
table.cmp tbody th {
  width: 20%;
  font-weight: 700;
  color: var(--ink);
  background: #fdfcf8;
}
table.cmp td { color: var(--ink3); }
table.cmp td:nth-child(3) { color: var(--ink); font-weight: 600; background: rgba(255, 247, 220, .5); }

/* --------------------------------------------------------------------------
   10. 流程
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.step { position: relative; padding-top: 40px; }
/* 横向连接线 */
.step::before {
  content: "";
  position: absolute;
  top: 15px; left: 44px; right: -16px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #d9d0b8 0 6px, transparent 6px 12px);
}
.step:last-child::before { display: none; }
.step::after {
  content: "";
  position: absolute;
  top: 6px; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--y);
  box-shadow: 0 0 0 5px var(--y-mist);
}
.step-n {
  position: absolute;
  top: 4px; left: 34px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink4);
  letter-spacing: .5px;
}
.step-t { font-size: 16px; font-weight: 800; }
.step-p { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--ink3); }

/* --------------------------------------------------------------------------
   11. 动态卡片
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ncard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ncard:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.ncard-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--y-soft) center/cover no-repeat;
  overflow: hidden;
}
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ncard:hover .ncard-img img { transform: scale(1.04); }
.ncard-date {
  position: absolute;
  left: 14px; bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  line-height: 1.15;
}
.ncard-date b { font-size: 19px; font-weight: 800; }
.ncard-date span { font-size: 11px; color: var(--ink3); }
.ncard-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.ncard-t {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncard-p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: var(--ink4);
}
.ncard-foot .rd { font-weight: 700; color: var(--ink); }

/* 空态 / 载入态 */
.empty {
  padding: 54px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  text-align: center;
  color: var(--ink3);
  background: #fff;
}
.empty b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; }
.skel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}
.skel-i {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #f5f2e8 25%, #fbf9f3 37%, #f5f2e8 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
}
.skel-b { padding: 20px 22px 24px; }
.skel-l { height: 14px; border-radius: 6px; background: #f2eee2; margin-bottom: 10px; }
.skel-l.s { width: 46%; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* --------------------------------------------------------------------------
   12. 保障（深色）
   -------------------------------------------------------------------------- */
.guard {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.guard::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 80, .22), transparent 66%);
  pointer-events: none;
}
.guard .sec-t { color: #fff; }
.guard .sec-t em { color: var(--y); }
.guard .sec-d { color: rgba(255, 255, 255, .62); }
.guard .sec-kicker { color: rgba(255, 255, 255, .58); }

.guards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.guard-i {
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .04);
}
.guard-i .gt { font-size: 19px; font-weight: 800; color: var(--y); letter-spacing: -.2px; }
.guard-i .gp { margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .66); }

/* --------------------------------------------------------------------------
   13. CTA 条
   -------------------------------------------------------------------------- */
.cta-band { padding: 0 0 92px; }
.cta-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 52px;
  border-radius: 24px;
  background: var(--y);
  overflow: hidden;
}
/* 斜纹底：纯黄色块太大时会显得空 */
.cta-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(21, 21, 21, .05) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.cta-t { position: relative; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.6px; text-wrap: balance; }
.cta-d { position: relative; margin-top: 10px; font-size: 15px; color: rgba(21, 21, 21, .7); }
.cta-act { position: relative; display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* --------------------------------------------------------------------------
   14. 子页头
   -------------------------------------------------------------------------- */
.phero {
  position: relative;
  padding: 56px 0 44px;
  background: linear-gradient(180deg, var(--y-mist), #fff);
  border-bottom: 1px solid var(--line2);
}
.phero-t { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -1px; }
.phero-d { max-width: 640px; margin-top: 12px; font-size: 15.5px; line-height: 1.85; color: var(--ink3); }
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--ink4); }
.crumb a:hover { color: var(--ink); }
.crumb span { color: var(--ink3); }

/* --------------------------------------------------------------------------
   15. 动态列表页
   -------------------------------------------------------------------------- */
.news-lay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.news-list { display: flex; flex-direction: column; gap: 18px; }

.nrow {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nrow:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: transparent; }
.nrow-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  background: var(--y-soft) center/cover no-repeat;
  overflow: hidden;
}
/* 没有封面的条目（常见问题 / 服务保障基本都没配图）：
   别留一个空的米色方块占着 232px，直接把整列收掉，文字铺满。
   `.nrow.noimg` 比媒体查询里的 .nrow 高一级，四个断点都不用重复写。 */
.nrow.noimg { grid-template-columns: minmax(0, 1fr); gap: 0; }
.nrow.noimg .nrow-img { display: none; }
.ncard.noimg .ncard-img { display: none; }
.nrow-img img { width: 100%; height: 100%; object-fit: cover; }
.nrow-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-right: 6px; }
.nrow-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink4); }
.nrow-meta .tagy {
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--y-soft);
  color: var(--gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.nrow-t {
  margin-top: 10px;
  font-size: 19px;
  /* 标题折两行时别把最后一个字甩到第二行（手机端 108px 图 + 15px 字最容易出现） */
  text-wrap: balance;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.2px;
}
.nrow:hover .nrow-t { color: var(--gold); }
.nrow-p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nrow-more { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--ink2); }

/* 分类标签（资讯动态页）—— 五个标签全部露出，不横向隐藏：
   横向滚动会把「服务保障」藏到屏幕外，用户根本不知道还有第四个分类。
   换行成 3+2 两行反而是最直白的做法。 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink2);
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.tab:hover { border-color: #d9cfa9; color: var(--ink); }
.tab.on {
  background: var(--y);
  border-color: var(--y-strong);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(255, 210, 80, .34);
}
/* 切分类时的占位骨架：只留 2 行，不要把页面撑得跳来跳去 */
.tabs-busy { opacity: .45; pointer-events: none; }

/* 列表侧栏 */
.side { position: sticky; top: calc(var(--hdr-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.side-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.side-card.tint { background: var(--y-mist); border-color: #f0e7cc; }
.side-t { font-size: 16px; font-weight: 800; }
.side-p { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--ink3); }
.side-list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.side-list a { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--ink2); }
.side-list a:hover { color: var(--gold); }
.side-list i { flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--y-strong); }
.side-tel { margin-top: 12px; font-size: 24px; font-weight: 800; letter-spacing: .4px; }
.side .btn { margin-top: 14px; }

/* --------------------------------------------------------------------------
   16. 文章页
   -------------------------------------------------------------------------- */
.art-lay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.art-hd { max-width: 760px; }
.art-h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.6px;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line2);
  font-size: 13px;
  color: var(--ink4);
}
.art-meta .tagy {
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--y-soft);
  color: var(--gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.art-cover {
  margin-top: 26px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--y-soft);
}
.art-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 富文本正文：后台录入的 HTML 自带行内 style，
   这里只兜底「没有行内样式」的情况，不覆盖运营手调过的排版 */
.art-body { margin-top: 30px; font-size: 16px; line-height: 1.95; color: var(--ink2); }
.art-body h2 { margin: 34px 0 14px; font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.art-body h3 { margin: 26px 0 12px; font-size: 18px; font-weight: 800; color: var(--ink); }
.art-body p { margin: 0 0 16px; }
.art-body ul, .art-body ol { margin: 0 0 18px; padding-left: 22px; }
.art-body ul li { list-style: disc; margin-bottom: 8px; }
.art-body ol li { list-style: decimal; margin-bottom: 8px; }
.art-body img { margin: 22px 0; border-radius: var(--r-sm); height: auto; }
/* ★ 富文本里带图说的插图（figure）：
   ① 宽度要给 !important —— RichText::normalize() 会往 img 上写 `width:auto`，
      行内样式优先，420px 的小图在 776px 的正文列里会显得又小又不齐；
   ② 封顶交给 figure 而不是 img —— 出参里 img 上有 `max-width:100%!important`，
      在 img 上再写 max-width 是白写的（行内 !important 赢），只能在外层收。 */
/* margin 也要 !important：演示数据在 figure 上写了 `margin:20px 0`（行内），
   不压掉的话 auto 变 0，560px 的图会贴在正文左边而不是居中 */
.art-body figure { max-width: 560px; margin: 26px auto !important; }
.art-body figure img { width: 100% !important; height: auto !important; margin: 0 !important; }
.art-body figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--ink4); text-align: center; }
.art-body blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--y);
  border-radius: 0 10px 10px 0;
  background: var(--y-mist);
  color: var(--ink2);
}
.art-body a { color: var(--gold); text-decoration: underline; }
.art-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.art-body th, .art-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

.art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line2);
}
.art-foot .taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.art-foot .tag {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink3);
}

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.pn a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink2);
  transition: all .16s ease;
}
.pn a:hover { border-color: var(--y); background: var(--y-mist); }
.pn a span { display: block; font-size: 12px; color: var(--ink4); margin-bottom: 4px; }
.pn a.next { text-align: right; }

/* --------------------------------------------------------------------------
   17. 联系我们
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 40px;
  align-items: start;
}
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.info .ik {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--ink4);
}
.info .iv { display: block; margin-top: 10px; font-size: 17px; font-weight: 700; line-height: 1.6; word-break: break-all; }
.info .iv.sm { font-size: 15px; font-weight: 600; color: var(--ink2); }
.info a.iv:hover { color: var(--gold); }
.info .in { margin-top: 8px; font-size: 12.5px; color: var(--ink4); }
.info .go-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.info .go-map:hover { background: var(--y-soft); border-color: var(--y); }

.qr-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--y-mist);
}
.qrs { display: flex; gap: 18px; margin-top: 18px; }
.qr { flex: 1; }
.qr-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.qr-img img { width: 100%; height: 100%; object-fit: contain; }
.qr span { display: block; margin-top: 9px; font-size: 12.5px; color: var(--ink3); text-align: center; }
.qr-tip { margin-top: 14px; font-size: 12.5px; line-height: 1.7; color: var(--ink3); }

.map-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
}
.map-card .mc-k { font-size: 12.5px; color: rgba(255, 255, 255, .55); letter-spacing: .6px; }
.map-card .mc-v { margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.65; }
.map-card .mc-tip { font-size: 12.5px; line-height: 1.75; color: rgba(255, 255, 255, .55); }

.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.areas .chip-line { height: 32px; padding: 0 14px; font-size: 13px; }

/* --------------------------------------------------------------------------
   18. 预约页
   -------------------------------------------------------------------------- */
.book-lay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
}
.book-card {
  padding: 34px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--sh);
}
.book-t { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.book-d { margin-top: 8px; font-size: 13.5px; color: var(--ink3); }
.book-form { margin-top: 24px; }
.book-form .block { margin-bottom: 22px; }
.book-form .block > .bk {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.book-form .block > .bk i { font-size: 12px; font-weight: 400; color: var(--ink4); }
.book-form .req::after { content: "必填"; font-size: 11px; font-weight: 600; color: var(--gold); margin-left: 2px; }

.book-form .field { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; }
.book-form .field + .field { margin-top: 10px; }
.book-form .field:focus-within { border-color: var(--y-strong); box-shadow: 0 0 0 3px rgba(255, 210, 80, .22); }

.book-aside { display: flex; flex-direction: column; gap: 18px; }
.side-step { display: flex; gap: 14px; }
.side-step .n {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--y);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.side-step b { display: block; font-size: 14.5px; }
.side-step p { margin-top: 3px; font-size: 13px; line-height: 1.7; color: var(--ink3); }

/* --------------------------------------------------------------------------
   19. 页脚
   -------------------------------------------------------------------------- */
.ftr { background: #0f0f0f; color: rgba(255, 255, 255, .72); }
.ftr-main {
  display: grid;
  /* 第 4 列给 auto：二维码没上传时整列 display:none，其余三列不会被撑出空白 */
  grid-template-columns: 1.5fr 1fr 1.3fr auto;
  gap: 36px;
  /* ★ 只写上下。这个元素同时是 .wrap，左右内边距必须留给 .wrap：
     写成 `padding: 56px 0 40px` 会把 .wrap 的 24px 一起清零，
     桌面端看不出（1180 居中），手机端就是文字直接贴着屏幕边缘。 */
  padding-top: 56px;
  padding-bottom: 40px;
}
.ftr .brand-txt strong { color: #fff; }
.ftr .brand-txt span { color: rgba(255, 255, 255, .4); }
.ftr-slogan { margin-top: 16px; font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .5); max-width: 22em; }
.ftr-tel { margin-top: 20px; }
.ftr-tel a { font-size: 24px; font-weight: 800; color: var(--y); letter-spacing: .5px; }
.ftr-tel span { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .45); }

.ftr-h { margin-bottom: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: rgba(255, 255, 255, .45); }
.ftr-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.ftr-links a:hover { color: var(--y); }
.ftr-info { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.ftr-info .k { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .4); margin-bottom: 2px; }
.ftr-info a:hover { color: var(--y); }
/* 地址与「地图导航」必须是两个块：
   写成同一个 <a> 里的两个 inline 子元素时，地址换行后「地图导航」
   会跟着挤在第二行、和地址文字叠在一起（真踩过）。 */
.ftr-addr { display: block; }
.ftr-addr:hover { color: var(--y); }
.ftr-map {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--y);
}

.ftr-qrs { display: flex; gap: 14px; }
.ftr-qr { width: 96px; }
.ftr-qr .box {
  width: 96px; height: 96px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ftr-qr .box img { width: 100%; height: 100%; object-fit: contain; }
.ftr-qr span { display: block; margin-top: 7px; font-size: 11.5px; color: rgba(255, 255, 255, .5); text-align: center; }

.ftr-bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  /* 同上：左右留给 .wrap，别用 padding 简写 */
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .38);
}
.ftr-bot a:hover { color: rgba(255, 255, 255, .7); }

/* --------------------------------------------------------------------------
   20. 移动端底部行动条
   -------------------------------------------------------------------------- */
.mbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line2);
  backdrop-filter: blur(10px);
}
.mbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}
.mbar .m-tel { flex: 0 0 42%; border: 1px solid var(--line); background: #fff; }
.mbar .m-cta { flex: 1; background: var(--y); }

/* --------------------------------------------------------------------------
   21. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 120;
  max-width: min(90vw, 420px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(21, 21, 21, .92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-bad { background: #a12b2b; }

/* --------------------------------------------------------------------------
   22. 入场动画（只在支持 IntersectionObserver 时启用，见 ui.js）
   -------------------------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ncard:hover, .svc:hover, .nrow:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   23. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero-in { gap: 40px; }
  .truths { grid-template-columns: repeat(3, 1fr); }
  .svcs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .step:nth-child(3n)::before { display: none; }
  .news-lay { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .art-lay { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
}

@media (max-width: 900px) {
  :root { --hdr-h: 62px; }

  .nav, .hdr-act .btn, .hdr-tel span { display: none; }
  .hdr-in { gap: 14px; }
  .hdr-act { gap: 10px; }
  .hdr-tel { font-size: 14px; }
  .burger { display: grid; }

  .hero-in {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .hero-sub { font-size: 15px; }
  .lead { padding: 22px 20px 18px; border-radius: 18px; }
  .lead::before { left: 20px; right: 20px; }

  .stats-in { grid-template-columns: 1fr 1fr; gap: 24px 0; padding-top: 28px; padding-bottom: 28px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }

  .sec { padding: 60px 0; }
  .sec-tight { padding: 44px 0; }
  .sec-hd { margin-bottom: 30px; }
  .hd-row { flex-direction: column; align-items: flex-start; gap: 14px; }

  .news-grid { grid-template-columns: 1fr 1fr; }
  .guards { grid-template-columns: 1fr; }

  .cta-band { padding-bottom: 60px; }
  .cta-in { flex-direction: column; align-items: flex-start; padding: 30px 24px; border-radius: 18px; }
  .cta-act { width: 100%; }
  .cta-act .btn { flex: 1; }

  .news-lay, .art-lay, .book-lay, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .side { position: static; }
  .info-list { grid-template-columns: 1fr; }
  .book-card { padding: 24px 20px; }

  .ftr-main { grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 30px; }
  .ftr-bot { padding-bottom: 84px; }

  .nrow { grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px; }
  .nrow-t { font-size: 16px; margin-top: 6px; }
  .nrow-p { display: none; }

  .mbar { display: flex; }
  .toast { bottom: 84px; }
}

@media (max-width: 720px) {
  /* 只能写左右，不能写 `padding: 0 18px` 简写：
     本文件里 .wrap 同时是 .hero-in / .ftr-main 的载体，它们各自在 900 断点
     设了上下 padding。简写会把 padding-top/bottom 一起清零（同特异性、后写的赢），
     结果就是「手机上首屏小标签贴着导航、页脚四列贴在一起」。
     20px 是手机端能给到的最小呼吸量，18px 时正文基本贴着屏幕边缘。 */
  .wrap { padding-left: 20px; padding-right: 20px; }

  .hero-h1 { letter-spacing: -.6px; }
  .hero-btns .btn { flex: 1; }
  .hero-marks { gap: 6px 16px; font-size: 13px; }

  .svcs { grid-template-columns: 1fr; margin-top: 30px; }
  .svc { min-height: 0; padding: 22px 20px; }
  .svc-ic { margin-bottom: 12px; }

  .truths { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
  .truth { padding: 20px 17px 22px; }
  .truth-t { font-size: 17px; }
  .truth-p { font-size: 13px; line-height: 1.75; }

  .steps { grid-template-columns: 1fr; row-gap: 0; margin-top: 30px; }
  .step { padding: 0 0 24px 34px; }
  .step::before {
    top: 22px; left: 9px; right: auto; bottom: -2px;
    width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, #d9d0b8 0 6px, transparent 6px 12px);
  }
  .step:last-child::before { display: none; }
  .step::after { top: 6px; left: 0; }
  .step-n { top: 2px; left: 34px; }
  .step-t { font-size: 15.5px; }

  .news-grid { grid-template-columns: 1fr; }

  /* 对比表：表头隐藏，每行变成一张小卡 */
  table.cmp thead { display: none; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp th, table.cmp td { display: block; width: auto; }
  table.cmp tr { padding: 14px 16px; border-bottom: 1px solid var(--line2); }
  table.cmp tr:last-child { border-bottom: 0; }
  table.cmp tbody th { width: auto; padding: 0 0 8px; background: transparent; font-size: 14px; }
  table.cmp td { padding: 0; font-size: 14px; background: transparent; }
  table.cmp td::before { content: attr(data-label) "："; font-size: 12.5px; color: var(--ink4); }
  table.cmp td:nth-child(2) { margin-bottom: 6px; }
  table.cmp td:nth-child(3) { background: transparent; }

  .art-foot { flex-direction: column; align-items: flex-start; }
  .pn { grid-template-columns: 1fr; }

  .contact-grid { gap: 24px; }
  .qrs { gap: 12px; }
  .ftr-main { grid-template-columns: 1fr; gap: 26px; }
  .ftr-qrs { gap: 18px; }

  .phero { padding: 34px 0 28px; }
  .crumb { margin-bottom: 10px; }
}

@media (max-width: 480px) {
  .brand-txt strong { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .hdr-tel { display: none; }

  .hero-h1 { font-size: 30px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }

  .stat b { font-size: 24px; }

  .lead-types .pick { height: 32px; padding: 0 11px; font-size: 12.5px; }

  .nrow { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  .nrow-img { aspect-ratio: 1; }
  .nrow-t { font-size: 15px; }
  .nrow-meta .tagy { display: none; }

  .cta-act { flex-direction: column; }
  .cta-act .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   24. 手机端留白补偿（视觉走查收口）
   --------------------------------------------------------------------------
   手机端最刺眼的问题不是「字小」，是「挤」：字贴边框、按钮被压成一条。
   上面几个断点管的是「怎么变成单列」，这一段管「单列之后每个盒子留多少气」。
   之后所有手机端的间距调整都往这一段加，别再散回上面的断点里。
   -------------------------------------------------------------------------- */

/* ★ 被 flex 压扁的按钮 —— 本轮最实质的一个 bug：
   .hero-btns / .cta-act 在 <=480 变成 flex-direction:column，
   而 <=720 / <=900 又给子按钮写了 `flex:1`。纵向布局下 flex-basis 作用于**高度**，
   `height:52px` 被 flex-basis:0 直接吃掉 → 按钮只剩文字高度（实测 18px），
   字上下几乎贴着边框，看着就是「文字与边框距离太小」。
   row 方向 flex:1 是对的（均分宽度），column 方向必须放回 auto。 */
@media (max-width: 900px) {
  /* 一、首屏：小标签离导航太近（.wrap 简写把 hero 的 padding-top 清了，已在 720 断点修） */
  .hero-in { padding-top: 56px; padding-bottom: 52px; }
  .hero-kicker { margin-bottom: 22px; }
  .hero-kicker .chip { height: 36px; padding: 0 16px; font-size: 13.5px; }
  .hero-h1 { line-height: 1.2; margin-bottom: 18px; }
  .hero-sub { line-height: 1.9; }
  .hero-btns { gap: 12px; margin-top: 26px; }
  .hero-marks { margin-top: 22px; gap: 10px 18px; }

  /* 二、按钮尺寸：46px 在手机上偏矮，点到的常常是边框而不是字 */
  .btn { height: 50px; font-size: 15.5px; }
  .btn-lg { height: 54px; padding: 0 24px; font-size: 17px; }
  .lead .btn-block,
  .book-card .btn-block,
  .side-card .btn-block { height: 54px; font-size: 17px; }

  /* 三、首屏预约卡：标题与边框之间留出气 */
  .lead { padding: 26px 22px 24px; }
  .lead::before { left: 22px; right: 22px; }
  .lead-hd { margin-bottom: 10px; }
  .lead-hd b { font-size: 21px; line-height: 1.35; }
  .lead-hd span { font-size: 13.5px; }
  .lead-types { margin: 18px 0 6px; }
  .lead .btn-block { margin-top: 20px; }

  /* 四、黄色成单条：标题折两行时上下都要有气；电话那一行加粗加大 */
  .cta-in { padding: 34px 24px; border-radius: 20px; gap: 22px; }
  .cta-t { font-size: 25px; line-height: 1.4; }
  .cta-d { margin-top: 12px; line-height: 1.8; }
  .cta-act { gap: 12px; }
  .cta-act .btn { font-size: 17px; }
  .cta-act .btn-white { font-weight: 800; letter-spacing: .4px; }

  /* 五、子页头 / 卡片 / 列表行 / 侧栏：统一加一档内边距 */
  .phero { padding-top: 40px; padding-bottom: 34px; }
  .phero-t { line-height: 1.3; }
  .phero-d { font-size: 15px; line-height: 1.9; }
  .book-card { padding: 28px 22px 26px; border-radius: 18px; }
  .side-card, .info, .qr-card { padding: 24px 22px; }
  .nrow { padding: 16px; }
  .nrow-t { line-height: 1.55; }

  /* 六、页脚：手机上四列会折成一列，行距不给够就糊成一坨（截图里最明显的一处） */
  .ftr-main { padding-top: 44px; padding-bottom: 32px; gap: 30px; }
  .ftr-tel { margin-top: 18px; }
  .ftr-tel a { font-size: 27px; }
  .ftr-tel span { margin-top: 6px; font-size: 12.5px; }
  .ftr-h { margin-bottom: 12px; }
  .ftr-links { gap: 12px; font-size: 14px; }
  .ftr-info { gap: 16px; font-size: 14px; }
  .ftr-addr { line-height: 1.75; }
  .ftr-map { margin-top: 10px; font-size: 13px; }

  /* 七、底部行动条：字要够大才看得出是「点我打电话」 */
  .mbar { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; }
  .mbar a { height: 50px; font-size: 16px; }
  .ftr-bot { padding-bottom: 92px; }
  .toast { bottom: 88px; }
}

@media (max-width: 480px) {
  /* 纵向排列里 flex:1 压高度，必须显式放回 auto（见上方注释） */
  .hero-btns .btn,
  .cta-act .btn { flex: 0 0 auto; width: 100%; }

  .tabs { gap: 8px; margin-bottom: 20px; }
  .tab { height: 38px; padding: 0 16px; font-size: 14px; }
}
