/* ==========================================================================
   纳福家政 · 家政服务平台 全站样式
   设计基调：温馨、整洁、可信赖（暖色系主色 + 大量留白 + 柔和圆角）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --bg: #FFFCF8;
  --bg-alt: #FFF5EC;
  --bg-deep: #FBEDE1;
  --card: #FFFFFF;
  --ink: #2A211B;
  --ink-2: #57493F;
  --ink-3: #8B7B70;
  --ink-4: #B4A69B;
  --line: #F1E5D9;
  --line-2: #E7D8C9;

  --brand: #E06A3B;
  --brand-d: #C4552B;
  --brand-2: #F29B5C;
  --brand-soft: #FDEDE3;
  --brand-soft-2: #FBE0CE;
  --gold: #C08A2E;
  --gold-soft: #FBF0D9;
  --green: #3E8E6E;
  --green-soft: #E7F4EE;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --shadow-s: 0 2px 8px rgba(126, 84, 52, .05);
  --shadow-m: 0 10px 28px rgba(126, 84, 52, .09);
  --shadow-l: 0 24px 64px rgba(126, 84, 52, .14);

  --max: 1180px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--ink); }

::selection { background: var(--brand-soft-2); color: var(--brand-d); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. 通用组件 ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 600;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  box-shadow: 0 8px 20px -8px rgba(224, 106, 59, .65);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(224, 106, 59, .7); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --btn-fg: var(--brand-d); border-color: var(--brand-2); background: #fff; box-shadow: var(--shadow-s); }

.btn--white { --btn-bg: #fff; --btn-fg: var(--brand-d); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .3); }
.btn--line-white { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn--line-white:hover { --btn-bg: rgba(255, 255, 255, .14); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-d);
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.tag--gray { background: #F6F1EC; color: var(--ink-3); }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--gold { background: var(--gold-soft); color: #9A6C18; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: linear-gradient(180deg, #FFF9F3 0%, var(--bg) 100%); }
.section--deep { background: var(--bg-alt); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sec-head__main { max-width: 640px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.sec-title { font-size: 32px; margin-top: 10px; letter-spacing: -.02em; }
.sec-sub { margin-top: 12px; color: var(--ink-3); font-size: 15px; }

.more-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-d); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: gap .2s var(--ease);
}
.more-link:hover { gap: 12px; }
.more-link svg { width: 16px; height: 16px; }

.grid { display: grid; gap: 20px; }

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 4. 顶部导航 ---------- */
.topbar {
  background: var(--ink);
  color: #F4E9DE;
  font-size: 12.5px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar__left { display: flex; align-items: center; gap: 18px; overflow: hidden; white-space: nowrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; opacity: .82; }
.topbar__item svg { width: 14px; height: 14px; }
.topbar__right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.topbar a:hover { opacity: 1; color: #FFD9BE; }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 252, 248, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 74px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 18px -8px rgba(224, 106, 59, .8);
  overflow: hidden;
}
.logo__mark svg { width: 24px; height: 24px; }
/* 后台上传的站点图标：铺满方框并按圆角裁切；透明底会露出橙色渐变，观感与内置图标一致 */
.logo__mark img.logo__img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center; border-radius: inherit;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.logo__slogan { font-size: 11px; color: var(--ink-3); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 10px; white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--brand-d); background: var(--brand-soft); }
.nav a.is-active { color: var(--brand-d); font-weight: 700; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--brand);
}

.header__cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header__phone { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.header__phone b { font-size: 16px; letter-spacing: .02em; }
.header__phone span { font-size: 11px; color: var(--ink-3); }

.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; color: var(--ink); place-items: center;
}
.burger svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none; border-bottom: 1px solid var(--line); background: #fff;
}
.mobile-nav.is-open { display: block; }
.mobile-nav > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--line); font-weight: 500;
}
.mobile-nav > a.is-active { color: var(--brand-d); font-weight: 700; background: var(--brand-soft); }
.mobile-nav > a svg { width: 15px; height: 15px; opacity: .45; flex: none; }
.mobile-nav__foot { padding: 16px 24px 22px; display: grid; gap: 10px; }

/* 头部容器不生成盒子，让 .header 与 .hsearch 直接相对页面滚动容器吸顶。
   不加这条时，[data-header] 的高度只包住自身，sticky 没有可粘滞区间，
   导航滚约 140px 就会跟着走，搜索条还会被导航盖住一截。 */
[data-header] { display: contents; }

/* ---------- 4.5 头部站内搜索条（2026-12-02） ----------
   位置：.header 之后、首屏之前。导航是 sticky top:0（高 75），这条跟着吸在它下沿，
   两者粘滞区间一致（都受 [data-header] 高度限制，滚过约 140px 后一起让位给内容）。
   top 必须和 header 实际高度对齐，否则会重叠或露缝。 */
.hsearch {
  position: sticky; top: 75px; z-index: 54;
  background: #FFF8F1;
  border-bottom: 1px solid var(--line);
}
.hsearch__inner {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 13px 0 12px;
}
.hsearch__box { position: relative; width: 100%; max-width: 640px; }
.hsearch__form {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 6px 0 15px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .18s, box-shadow .18s;
}
.hsearch__form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 8px 22px -14px rgba(224, 106, 59, .75);
}
.hsearch__ico { display: grid; place-items: center; flex: none; color: var(--ink-4); }
.hsearch__ico svg { width: 17px; height: 17px; }
.hsearch__input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: none;
  font-size: 14px; color: var(--ink); font-family: inherit;
}
.hsearch__input::placeholder { color: var(--ink-4); }
/* 去掉 type=search 自带的清除按钮，避免和右侧搜索按钮挨在一起显得乱 */
.hsearch__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hsearch__btn {
  flex: none; height: 34px; padding: 0 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; font-size: 14px; font-weight: 700; font-family: inherit;
  transition: filter .16s;
}
.hsearch__btn:hover { filter: brightness(1.05); }
.hsearch__hot {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: var(--ink-3);
}
.hsearch__hot > span { color: var(--ink-4); }
.hsearch__hot button {
  padding: 3px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--ink-2); font-size: 12.5px; font-family: inherit;
  cursor: pointer; transition: color .16s, border-color .16s, background .16s;
}
.hsearch__hot button:hover {
  color: var(--brand-d); border-color: var(--brand-soft-2); background: var(--brand-soft);
}

/* 生活服务页自己就有一个搜索框（且已支持跨类型搜索），头部这条在这个页面隐藏，避免两个输入框并排 */
body[data-searchbar="off"] .hsearch { display: none; }

/* 联想下拉：绝对定位在输入框正下方，宽度与输入框一致 */
.hsearch__drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-m); overflow: hidden;
}
.hsearch__drop[hidden] { display: none; }
.hs-drop__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer; font-family: inherit;
}
.hs-drop__item.is-active, .hs-drop__item:hover { background: var(--brand-soft); }
.hs-drop__txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hs-drop__txt b {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hs-drop__txt em {
  font-style: normal; font-size: 12px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hs-drop__tag {
  flex: none; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-alt); color: var(--ink-3);
}
.hs-drop__tag--service { background: var(--brand-soft); color: var(--brand-d); }
.hs-drop__tag--article { background: #EAF2FB; color: #3C6FA8; }
.hs-drop__tag--faq { background: var(--gold-soft); color: var(--gold); }
.hs-drop__all {
  width: 100%; padding: 11px; border: 0; border-top: 1px solid var(--line);
  background: #FFFBF7; color: var(--brand-d);
  font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.hs-drop__all:hover { background: var(--brand-soft); }
.hs-drop__empty { padding: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* ---------- 5. 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #FFF6EE 0%, #FDECE0 46%, #FFF8F0 100%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(6px); opacity: .6;
}
.hero__blob--1 { width: 420px; height: 420px; right: -80px; top: -120px; background: radial-gradient(circle at 30% 30%, #FFD3B4, rgba(255, 211, 180, 0)); }
.hero__blob--2 { width: 360px; height: 360px; left: -120px; bottom: -160px; background: radial-gradient(circle at 60% 40%, #FFE2C2, rgba(255, 226, 194, 0)); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(224, 106, 59, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(224, 106, 59, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 72%);
}

.hero__inner {
  position: relative; display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 46px; align-items: center; padding-top: 54px; padding-bottom: 66px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-s);
}
.hero__badge em {
  font-style: normal; background: var(--brand); color: #fff;
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px; letter-spacing: .04em;
}
.hero h1 {
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: 1.16; margin: 20px 0 0; letter-spacing: -.03em;
}
.hero h1 .hl { position: relative; color: var(--brand-d); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: linear-gradient(90deg, rgba(242, 155, 92, .42), rgba(242, 155, 92, .1));
  border-radius: 6px; z-index: -1;
}
.hero__p { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); max-width: 520px; }
.hero__actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 27px; letter-spacing: -.02em; }
.hero__stat b span { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.hero__stat span { font-size: 13px; color: var(--ink-3); }

/* Hero 右侧视觉 */
.hero__visual { position: relative; }
.hero__photo {
  position: relative; aspect-ratio: 597 / 450;
  border-radius: 32px 32px 32px 10px;
  overflow: hidden; box-shadow: var(--shadow-l); background: #F6E3D3;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(rgba(255, 255, 255, .5) 1.2px, transparent 1.2px) 0 0 / 20px 20px,
    radial-gradient(circle at 72% 18%, #FFD9B8 0%, transparent 46%),
    radial-gradient(circle at 22% 82%, #F7C3A0 0%, transparent 50%),
    linear-gradient(150deg, #FFEBD9, #F9D6BB 60%, #F3C3A2);
  color: #9A6A46;
}
.hero__photo-fallback .ph-inner { padding: 26px; }
.hero__photo-fallback svg.scene { width: 95%; max-width: 460px; height: auto; opacity: 1; margin: 0 auto 6px; display: block; }
.hero__photo-fallback svg { width: 86px; height: 86px; opacity: .42; margin: 0 auto; display: block; }
.hero__photo-fallback b { display: block; margin-top: 10px; font-size: 13.5px; color: #8E5E3C; letter-spacing: .04em; }
.hero__photo-fallback small { display: block; margin-top: 5px; font-size: 11.5px; color: #A87A57; opacity: .85; letter-spacing: .02em; }

/* 三页实景图轮播：叠放淡入，圆点与箭头只在多于 1 张时出现 */
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .7s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
/* 首屏图「满屏」（可选档）：容器高度跟着图片自身比例走 —— 图片满宽铺满整块，
   既不留米色边、也不会裁掉图上文字。第一张参与布局把容器撑高，其余图绝对定位叠上来淡入。
   默认档是铺满 597×450（cover，走基础规则），这里只在后台选了「满屏」时生效 */
.hero__photo.is-fit { aspect-ratio: auto; min-height: 240px; background: #F6E3D3; }
.hero__photo.is-fit .hero-slides { position: static; }
.hero__photo.is-fit .hero-slide.is-hold { position: relative; inset: auto; }
.hero__photo.is-fit .hero-slide.is-hold img { height: auto; display: block; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%;
  background: rgba(255, 255, 255, .88); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(60, 35, 18, .5);
  opacity: 0; transition: opacity .22s, background .22s, transform .22s;
  z-index: 2;
}
.hero-nav svg { width: 16px; height: 16px; }
.hero-nav--prev { left: 14px; }
.hero-nav--prev svg { transform: rotate(180deg); }
.hero-nav--next { right: 14px; }
.hero__photo:hover .hero-nav { opacity: 1; }
.hero-nav:hover { background: #fff; }
.hero-dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px;
  background: rgba(32, 22, 14, .3); backdrop-filter: blur(6px);
  z-index: 2;
}
.hero-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .22s, background .22s;
}
.hero-dots button.is-active { width: 20px; border-radius: 9px; background: #fff; }
/* 触摸设备没有 hover，箭头常显一半透明度 */
@media (hover: none) { .hero-nav { opacity: .92; } }

/* ---------- 6. 服务入口 / 图标矩阵 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
/* 后台把首页板块全部移除时的占位（正常不会出现） */
.svc-grid__empty {
  grid-column: 1 / -1; padding: 30px 18px; text-align: center;
  color: var(--ink-4); font-size: 14px;
  background: #FFFDFB; border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.svc-tile {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.svc-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: var(--brand-soft-2); }
.svc-tile__ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, #FFF1E4, #FFE3CE); color: var(--brand-d);
  transition: background .22s, transform .26s var(--ease);
}
/* 悬停放大用 transform（不占布局），卡片不会因此变高、网格不会抖 */
.svc-tile:hover .svc-tile__ico { background: linear-gradient(150deg, var(--brand-2), var(--brand)); color: #fff; transform: scale(1.08); }
.svc-tile__ico svg { width: 27px; height: 27px; }
/* 分类图标可换成后台上传的图片：铺满整个图标框，按框的形状（圆角）裁切，不再缩成小图居中 */
.svc-tile__ico { overflow: hidden; }
.svc-tile__ico img.cat-ico { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; }
.svc-tile b { font-size: 14.5px; transition: color .22s var(--ease), transform .26s var(--ease); }
.svc-tile span { font-size: 12px; color: var(--ink-3); line-height: 1.5; transition: color .22s var(--ease), transform .26s var(--ease); }
/* 悬停时文字整体略放大，手感与图标一致 */
.svc-tile:hover b { transform: scale(1.07); }
.svc-tile:hover > span:last-child { transform: scale(1.05); }

/* 有分类图片时：整张卡片铺这张图（含标题与项目数所在区域），文字压在上面并加暗角保证可读；
   中间的内置图标徽标保留在最上层，不被图片盖掉 */
.svc-tile.is-photo {
  min-height: 176px; justify-content: flex-end; padding-bottom: 20px;
  background-color: #3A2E26; background-size: cover; background-position: center;
  border-color: rgba(255, 255, 255, .28);
  /* 背景不要画到 1px 半透明白边框下面，否则图片顶部会多一道浅线 */
  background-clip: padding-box;
}
/* 图片单独铺一层并向外扩 3px：把原图顶/底自带的杂边（常见于截图、二次保存的图）
   推到圆角外被 overflow:hidden 裁掉，卡片里只留干净画面。
   悬停时这层再叠一层 50% 白（inset 阴影当蒙版用），图片整体变淡 */
.svc-tile.is-photo::after {
  content: ''; position: absolute; inset: -3px; z-index: 0; pointer-events: none;
  background-image: inherit; background-size: cover; background-position: center;
  /* spread 固定 400px、只过渡颜色的透明度：白蒙是整体均匀淡入，不是从边缘涌进来 */
  box-shadow: inset 0 0 0 400px rgba(255, 255, 255, 0);
  transition: box-shadow .26s var(--ease);
}
.svc-tile.is-photo:hover::after { box-shadow: inset 0 0 0 400px rgba(255, 255, 255, .5); }
.svc-tile.is-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 14, 9, 0) 0%, rgba(20, 14, 9, .12) 46%, rgba(20, 14, 9, .64) 100%);
  transition: opacity .26s var(--ease);
}
/* 蒙白之后暗角必须退场，否则黑色叠在白色上会变灰，图片就不“白”了 */
.svc-tile.is-photo:hover::before { opacity: 0; }
.svc-tile.is-photo > * { position: relative; z-index: 2; }
.svc-tile.is-photo .svc-tile__ico {
  background: linear-gradient(150deg, var(--brand-2), var(--brand)); color: #fff;
  box-shadow: 0 6px 18px rgba(40, 22, 12, .3);
}
.svc-tile.is-photo:hover .svc-tile__ico { background: linear-gradient(150deg, var(--brand), var(--brand-d)); }
.svc-tile.is-photo b { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.svc-tile.is-photo > span:last-child { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
/* 悬停时背景被 50% 白蒙住，白字会糊，这里换成深色字 + 去掉深色投影 */
.svc-tile.is-photo:hover b { color: #2C1E15; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.svc-tile.is-photo:hover > span:last-child { color: rgba(44, 30, 21, .74); text-shadow: none; }

/* ---------- 7. 四大承诺 ---------- */
.promise-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.promise:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.promise__no {
  position: absolute; right: 14px; top: 6px; font-size: 46px; font-weight: 800;
  color: var(--brand-soft); letter-spacing: -.04em; line-height: 1;
}
.promise__ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-d); margin-bottom: 16px;
}
.promise__ico svg { width: 24px; height: 24px; }
.promise h3 { font-size: 16.5px; }
.promise p { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }

/* 后台上传了图片：整张承诺卡铺这张图（含标题与说明所在区域），图上**不压任何蒙层**，照片原样显示；
   文字改为黑色加粗。图片层做法与分类卡一致（外扩 3px 裁掉原图自带的杂边）。
   —— 2026-11-27：深色暗角 → 白色透明 → 现在按需求彻底去掉蒙层 */
.promise.is-photo {
  background-color: #fff; background-size: cover; background-position: center;
  background-clip: padding-box; border-color: rgba(126, 84, 52, .16);
  /* 文字块在卡内垂直居中（对齐参考图：图标在上，标题与说明成组居中在左侧） */
  display: flex; flex-direction: column; justify-content: center;
}
.promise.is-photo::after {
  content: ''; position: absolute; inset: -3px; z-index: 0; pointer-events: none;
  background-image: inherit; background-size: cover; background-position: center;
}
/* 01-04 的水印：无蒙层后照片亮度不定，用深色低透明 —— 浅色照片上隐约可见，深色照片上自动让位给文字 */
.promise.is-photo .promise__no { z-index: 2; color: rgba(44, 30, 21, .22); }
.promise.is-photo .promise__ico,
.promise.is-photo h3,
.promise.is-photo p { position: relative; z-index: 2; }
.promise.is-photo .promise__ico {
  background: linear-gradient(150deg, var(--brand-2), var(--brand)); color: #fff;
  box-shadow: 0 6px 16px rgba(203, 106, 52, .28);
}
/* 无蒙层后文字直接压在照片上：标题纯黑 800、说明深灰 600；
   标题按参考图分色——开头的数字/百分比（“100%”）黑色，后面的短语品牌橙；
   只给文字本身加一圈很淡的白描边（不是背景层），照片偏暗时也能咬住边缘 */
.promise h3 .p-num { margin-right: .3em; }
.promise.is-photo h3 { color: #111008; font-weight: 800; text-shadow: 0 0 2px rgba(255, 255, 255, .9), 0 1px 6px rgba(255, 255, 255, .6); }
.promise.is-photo h3 .p-num { color: #111008; }
.promise.is-photo h3 .p-txt { color: var(--brand); }
.promise.is-photo p { color: #3B342D; font-weight: 600; text-shadow: 0 0 2px rgba(255, 255, 255, .85), 0 1px 6px rgba(255, 255, 255, .55); }

/* ---------- 8. 人员卡片 ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.staff-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.staff-card__avatar {
  width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 14px;
  overflow: hidden; position: relative; border: 3px solid #fff;
  box-shadow: 0 8px 20px -8px rgba(126, 84, 52, .35);
  background: linear-gradient(140deg, #FFD7B8, #F0A778);
  display: grid; place-items: center;
  color: #fff; font-size: 26px; font-weight: 700;
}
.staff-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-card h3 { font-size: 16px; }
.staff-card__meta { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: #EFAF3C; margin-top: 8px; }
.stars svg { width: 14px; height: 14px; }
.stars b { margin-left: 5px; font-size: 13px; color: var(--ink); }
.staff-card__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.staff-card__tags span { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: #F7F2ED; color: var(--ink-2); }

/* ---------- 9. 服务分类 / 列表（生活服务页） ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #FFF7F0, #FDEDE1 70%, #FFF9F3);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { position: relative; padding-top: 48px; padding-bottom: 44px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand-d); }
.crumb svg { width: 12px; height: 12px; opacity: .6; }
.page-hero h1 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.02em; }
.page-hero p { margin-top: 12px; color: var(--ink-2); max-width: 720px; }

.services-layout { display: grid; grid-template-columns: 264px 1fr; gap: 28px; align-items: start; }

/* 服务分类栏：白色圆角卡 + 每行「彩色小图标 + 名称 + 数量」，选中整行浅橙底 */
.cat-nav {
  /* 11 项分类本身接近一屏高，做 sticky 没有可用空间（会被容器底部推走），
     所以按普通文档流整列展示，滚动页面即可看全，避免「整页滚动 + 侧栏内部滚动」两层滚动条 */
  align-self: start; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 12px 10px 12px; box-shadow: var(--shadow-s);
  min-width: 0; /* grid 子项默认 min-width:auto，横向滚动时会被内容撑破页面 */
}
.cat-nav::-webkit-scrollbar { width: 6px; }
.cat-nav::-webkit-scrollbar-thumb { background: #EADFD3; border-radius: 99px; }
.cat-nav::-webkit-scrollbar-track { background: transparent; }
.cat-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 10px; }
.cat-nav__head b { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.cat-nav__head em { font-style: normal; font-size: 11.5px; color: var(--ink-4); letter-spacing: .02em; }
/* 行间距：2026-12-01 按用户确认的「中收」档收紧（9px/3px → 5px/1px），
   相邻图标净空 21px → 11px，11 项整列约 690px → 582px。只压上下，不动左右 11px gap 与 42px 图标。 */
.cat-nav__list { display: flex; flex-direction: column; gap: 1px; }
.cat-nav__item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 5px 10px; border: 0; border-radius: 14px; background: transparent;
  color: var(--ink-2); font-size: 14.5px; text-align: left; font-weight: 500;
  transition: background .16s, color .16s;
}
.cat-nav__ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tone-bg, #F3F4F6); color: var(--tone, var(--brand-d));
  overflow: hidden; transition: transform .18s var(--ease);
}
.cat-nav__ico svg { width: 24px; height: 24px; }
.cat-nav__ico img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.cat-nav__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-nav__count { margin-left: auto; font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.cat-nav__item:hover { background: #FAF4EE; }
.cat-nav__item:hover .cat-nav__ico { transform: translateY(-1px); }
.cat-nav__item.is-active { background: #FFF2E6; color: var(--brand-d); font-weight: 700; }
.cat-nav__item.is-active .cat-nav__count { color: var(--brand); font-weight: 700; }
.cat-nav__item.is-active .cat-nav__ico { background: #fff; box-shadow: 0 1px 2px rgba(180, 110, 60, .10); }

/* 右栏：标题 + 搜索固定，卡片列表在自己的框里滚。
   max-height 由 JS 按左侧分类栏实测高度写入（syncPanelHeight），
   所以左右底边齐平；内容没超出时 max-height 不起作用，不会出现滚动条。 */
.svc-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.svc-panel__scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  /* 滚到底后继续滚会带动整页（2026-12-01 用户改要求，原为 contain 停住）：
     框内还有内容时滚轮只滚框，框内到底了才顺延滚页面 */
  overscroll-behavior: auto;
  /* 右侧留 6px 给滚动条，卡片不会被滚动条压住；留白常驻，有无滚动条时不跳宽 */
  padding: 2px 6px 2px 0;
  scrollbar-width: thin; scrollbar-color: #EADFD3 transparent;
}
.svc-panel__scroll::-webkit-scrollbar { width: 6px; }
.svc-panel__scroll::-webkit-scrollbar-thumb { background: #EADFD3; border-radius: 99px; }
.svc-panel__scroll::-webkit-scrollbar-thumb:hover { background: #DCC9B8; }
.svc-panel__scroll::-webkit-scrollbar-track { background: transparent; }
/* 内滚框里的卡片保留淡入，但去掉 18px 下移：位移会被算进 scrollHeight，
   内容不多的分类（2 项）也会多出一条只能滚 16px 的空隙，像「滚了又没滚」 */
.svc-panel__scroll .svc-card.reveal:not(.is-in) { transform: none; }
.svc-panel__head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.svc-panel__head h2 { font-size: 22px; }
.svc-search { width: 220px; flex: none; }
.svc-panel__head p { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

.svc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: stretch; }
.svc-card {
  display: flex; align-items: stretch; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; padding: 14px 16px 14px 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--brand-soft-2); }

/* 左侧图片：内嵌圆角块，上下与右侧文字对齐（同一内容盒），四角同形 */
.svc-card__media {
  flex: none; width: 148px; align-self: stretch; position: relative; overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(162deg, #FFFDFA 0%, #FFF7EF 52%, #FFF0E2 100%);
  display: grid; place-items: center;
}
.svc-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  border-radius: inherit; transition: transform .4s var(--ease);
}
.svc-card:hover .svc-card__media img { transform: scale(1.04); }
.svc-card__media svg { width: 46px; height: 46px; position: relative; z-index: 1; opacity: .8; }
.svc-card__media--empty {
  color: var(--brand-d);
  /* 没有主图时只有一层柔光 + 大图标，不用实体圆点，避免内嵌圆角下看起来像污渍 */
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle at 10% 98%, rgba(255, 228, 200, .75), rgba(255, 228, 200, 0) 55%),
    linear-gradient(162deg, #FFFDFA 0%, #FFF7EF 52%, #FFF0E2 100%);
}
.svc-card__media--empty::before,
.svc-card__media--empty::after { content: none; }

.svc-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 0; }
.svc-card__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.svc-card__head h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-badge {
  flex: none; font-size: 11px; font-weight: 600; line-height: 1.7; padding: 1px 7px; border-radius: 5px;
  background: #FFF6E8; color: #A9701A; border: 1px solid #F6E3C2;
}
.svc-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.svc-card__meta em { font-style: normal; color: var(--line-2); }
.svc-card__sum { font-size: 13px; line-height: 1.6; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-card__tags span { font-size: 11.5px; font-weight: 600; line-height: 1.8; padding: 1px 8px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-d); }
.svc-card__foot { margin-top: auto; padding-top: 2px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.svc-card__foot .price { line-height: 1.2; }
.price { color: var(--brand-d); font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.price small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.link-mini { font-size: 13px; font-weight: 600; color: var(--brand-d); display: inline-flex; align-items: center; gap: 4px; }
.link-mini svg { width: 14px; height: 14px; }
.link-mini:hover { gap: 8px; }

/* ---------- 9.5 搜索结果页（services.html?q=）----------
   服务走原有 .svc-card；分类用 chips；常见问题与学院文章用紧凑行，避免结果页被大图卡撑爆。 */
.sr-cats {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.sr-cats__label { font-size: 12.5px; color: var(--ink-3); }
.sr-cat {
  padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--ink-2); font-size: 12.5px; font-family: inherit;
  cursor: pointer; transition: color .16s, border-color .16s, background .16s;
}
.sr-cat:hover { color: var(--brand-d); border-color: var(--brand-soft-2); background: var(--brand-soft); }

.sr-group { margin-top: 22px; }
.sr-group:first-child { margin-top: 0; }
.sr-group__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--ink);
}
.sr-group__head em {
  font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-3);
}
.sr-faq {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 13px; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .16s;
}
.sr-faq:hover { border-color: var(--brand-soft-2); }
.sr-faq__q { font-size: 13px; color: var(--ink); line-height: 1.55; }
.sr-faq__src { font-size: 11.5px; color: var(--ink-3); }
.sr-art {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .16s;
}
.sr-art:hover { border-color: var(--brand-soft-2); }
.sr-art__body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.sr-art__body b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.sr-art__body em {
  font-style: normal; font-size: 12px; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.sr-art__date { flex: none; font-size: 11.5px; color: var(--ink-4); }
.sr-tips {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3);
}
.sr-tips button {
  padding: 3px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--ink-2); font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.sr-tips button:hover { color: var(--brand-d); border-color: var(--brand-soft-2); background: var(--brand-soft); }

/* ---------- 10. 服务详情 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 366px; gap: 32px; align-items: start; }
.detail-main { min-width: 0; }
.detail-title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }
.detail-lead { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detail-block { margin-top: 34px; }
.detail-block h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.detail-block h2::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--brand); }
.detail-block .body { margin-top: 14px; color: var(--ink-2); font-size: 14.5px; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.feature-list li {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14px;
}
.feature-list svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; counter-reset: step; }
.flow li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 16px 16px; font-size: 13.5px; color: var(--ink-2);
}
.flow li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .08em; margin-bottom: 6px;
}
.flow li b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }

.note-box {
  background: var(--gold-soft); border: 1px solid #F0DFB9; border-radius: 14px;
  padding: 16px 18px; font-size: 13.5px; color: #7A5A16; display: flex; gap: 10px;
}
.note-box svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.note-box ul { display: grid; gap: 6px; }

/* 右栏整体吸顶（2026-12-02）：价格卡与下面的「平台承诺」包进 .detail-aside 一起固定。
   原来只有 .booking-box 自己 sticky，向下滚时价格卡浮上去，把「平台承诺」压住重叠 123px。
   吸顶必须挂在 <aside> 上而不是内层 div：sticky 的粘滞区间是它所在块（内层 div 只有 736px
   内容高，没有任何移动空间，滚两屏就被推走）；挂到 aside 后约束变成整行高度，才真的固定。
   align-self: start 保证 aside 高度是内容高，不随行高拉伸。
   整块高约 736px，视口放不下时由 JS 摘掉 .is-stuck，退化成跟随页面滚。 */
.detail-layout > aside { align-self: start; }
.detail-layout > aside.is-stuck { position: sticky; top: 94px; }
.detail-aside { display: flex; flex-direction: column; }

.booking-box {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow-m);
}
.booking-box__price { display: flex; align-items: baseline; gap: 6px; }
.booking-box__price b { font-size: 34px; color: var(--brand-d); letter-spacing: -.03em; }
.booking-box__price span { font-size: 13px; color: var(--ink-3); }
.booking-box__rows { margin: 18px 0; display: grid; gap: 0; border-top: 1px dashed var(--line-2); }
.booking-box__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px;
}
.booking-box__row span { color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.booking-box__row svg { width: 15px; height: 15px; }
.booking-box__row b { font-weight: 600; text-align: right; }
.booking-box__tip { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 12px; line-height: 1.7; }
.booking-box__phone {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.booking-box__phone svg { width: 15px; height: 15px; color: var(--brand-d); flex: none; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  transition: box-shadow .2s, transform .2s var(--ease);
}
.related-item:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.related-item b { font-size: 14.5px; }
.related-item p { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------- 11. 发布任务页 ---------- */
.task-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-s); }
.panel__head { margin-bottom: 22px; }
.panel__head h2 { font-size: 21px; }
.panel__head p { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field label i { color: var(--brand); font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea {
  height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #FFFDFB; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { height: auto; min-height: 108px; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 4px rgba(242, 155, 92, .14);
}
.field .err { font-size: 12px; color: #C9402B; display: none; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: #E4816E; background: #FFF7F5; }
.field.is-error .err { display: block; }
.field .hint { font-size: 12px; color: var(--ink-4); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); }
.checkline input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--brand); flex: none; }

.task-list { display: grid; gap: 14px; }
.task-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: box-shadow .2s, border-color .2s;
}
.task-item:hover { box-shadow: var(--shadow-m); border-color: var(--brand-soft-2); }
.task-item__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-item__top b { font-size: 15.5px; }
.task-item__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.task-item__meta span { display: inline-flex; align-items: center; gap: 5px; }
.task-item__meta svg { width: 14px; height: 14px; }
.task-item__desc { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.task-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line-2); }
.task-item__foot .price { font-size: 15px; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; font-size: 13px; color: var(--ink-2); font-weight: 500;
  transition: all .18s;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand-d); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.steps-side { display: grid; gap: 0; }
.steps-side li { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.steps-side li:last-child { padding-bottom: 0; }
.steps-side li::before {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px;
  background: linear-gradient(var(--line-2), transparent);
}
.steps-side li:last-child::before { display: none; }
.steps-side .dot {
  width: 31px; height: 31px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-d); font-size: 13px; font-weight: 800;
}
.steps-side b { font-size: 14.5px; display: block; }
.steps-side p { font-size: 13px; color: var(--ink-3); margin-top: 3px; }

/* ---------- 12. 加入我们 ---------- */
.join-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.join-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.join-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.join-card__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-d); display: grid; place-items: center; margin-bottom: 16px; }
.join-card__ico svg { width: 24px; height: 24px; }
.join-card h3 { font-size: 16.5px; }
.join-card p { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }

.qr-box {
  display: flex; gap: 16px; align-items: center; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.qr-box__img {
  width: 92px; height: 92px; border-radius: 10px; flex: none; overflow: hidden;
  background: #F8F2EC; display: grid; place-items: center; color: var(--ink-4);
  border: 1px dashed var(--line-2);
}
.qr-box__img img { width: 100%; height: 100%; object-fit: cover; }
.qr-box__img svg { width: 34px; height: 34px; }
.qr-box b { font-size: 14.5px; }
.qr-box p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

.map-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #F3EDE6; }
.map-card__bg {
  height: 220px;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px),
    linear-gradient(140deg, #EFE6DA, #E7DCCB);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  position: relative;
}
.map-card__pin {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: grid; place-items: center; color: var(--brand);
}
.map-card__pin svg { width: 42px; height: 42px; filter: drop-shadow(0 6px 12px rgba(224,106,59,.4)); }
.map-card__info {
  position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255,255,255,.94);
  border-radius: 12px; padding: 12px 14px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}

/* ---------- 13. 家政学院 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tabs button {
  padding: 12px 18px; border: 0; background: none; font-size: 15px; font-weight: 600;
  color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button.is-active { color: var(--brand-d); border-bottom-color: var(--brand); }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.article-card__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.article-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-card:hover .article-card__cover img { transform: scale(1.05); }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative; color: #fff; }
.cover-ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(255,255,255,.35), transparent 55%);
}
.cover-ph svg { width: 44px; height: 44px; opacity: .92; }
.cover-ph--a { background: linear-gradient(140deg, #F0A26B, #DE6B3C); }
.cover-ph--b { background: linear-gradient(140deg, #E9B45E, #C98A2A); }
.cover-ph--c { background: linear-gradient(140deg, #6FB79A, #3E8E6E); }
.cover-ph--d { background: linear-gradient(140deg, #94A9C9, #6E7FA4); }
.play-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  background: rgba(0, 0, 0, .55); color: #fff; border-radius: 999px; font-size: 11.5px; backdrop-filter: blur(4px);
}
.play-badge svg { width: 12px; height: 12px; }
.article-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.article-card__body h3 { font-size: 16px; line-height: 1.5; }
.article-card__body p { font-size: 13px; color: var(--ink-3); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.article-card__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-4); margin-top: 14px; }
.article-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.article-card__meta svg { width: 13px; height: 13px; }

.forum { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.post-list { display: grid; gap: 14px; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.post__head { display: flex; align-items: center; gap: 10px; }
.post__avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, #FFD7B8, #EF9F72); color: #fff; font-weight: 700; font-size: 15px;
}
.post__head b { font-size: 14px; }
.post__head > span.post__time { font-size: 12px; color: var(--ink-4); margin-left: auto; white-space: nowrap; }
.post p { font-size: 14px; color: var(--ink-2); margin-top: 10px; white-space: pre-wrap; }
.post__foot { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--ink-4); }
.empty {
  padding: 46px 20px; text-align: center; color: var(--ink-3); background: #fff;
  border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 13.5px;
}
.empty svg { width: 40px; height: 40px; color: var(--ink-4); margin-bottom: 10px; }

/* ---------- 14. 文章详情 ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.article-hero { border-radius: var(--radius-l); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/6.6; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .cover-ph svg { width: 62px; height: 62px; opacity: .95; }
.article-body { font-size: 15.5px; color: var(--ink-2); line-height: 1.95; }
.article-body h2 { font-size: 20px; color: var(--ink); margin: 32px 0 12px; }
.article-body h3 { font-size: 17px; color: var(--ink); margin: 24px 0 10px; }
.article-body p { margin: 0 0 14px; }
.article-body ul { margin: 0 0 16px; display: grid; gap: 8px; }
.article-body ul li { position: relative; padding-left: 18px; }
.article-body ul li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }
.article-body blockquote {
  margin: 20px 0; padding: 16px 20px; background: var(--brand-soft);
  border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; color: var(--brand-d); font-size: 14.5px;
}
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: #241C17; display: grid; place-items: center; color: #fff; margin-bottom: 24px;
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-ph { text-align: center; }
.video-ph svg { width: 54px; height: 54px; opacity: .9; }
.video-ph p { font-size: 13px; opacity: .7; margin-top: 10px; }

/* ---------- 15. 客服浮窗 / 弹窗 ---------- */
.fab-stack { position: fixed; right: 22px; bottom: 26px; z-index: 80; display: grid; gap: 10px; justify-items: end; }
.fab {
  width: 50px; height: 50px; border-radius: 16px; border: 0;
  background: #fff; color: var(--brand-d); display: grid; place-items: center;
  box-shadow: var(--shadow-m); border: 1px solid var(--line);
  transition: transform .2s var(--ease), background .2s, color .2s;
  position: relative;
}
.fab:hover { transform: translateY(-3px); background: var(--brand); color: #fff; }
.fab svg { width: 22px; height: 22px; }
/* 客服入口：图标按钮，无文字（点击区域即 50×50 圆形按钮本身） */
.fab--main {
  width: 50px; height: 50px; padding: 0; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff; border: 0;
  box-shadow: 0 12px 26px -10px rgba(224,106,59,.8);
}
.fab--main svg { width: 24px; height: 24px; }
.fab--main:hover { background: linear-gradient(140deg, var(--brand), var(--brand-d)); }
.fab__dot {
  position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: #E4572E; border: 2px solid #fff;
}
.fab-label {
  position: absolute; right: 58px; top: 50%;
  transform: translate(6px, -50%);
  background: rgba(42, 33, 27, .92); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  padding: 6px 11px; border-radius: 8px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
/* 小三角指向按钮 */
.fab-label::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: rgba(42, 33, 27, .92);
}
/* 提示标签只在按钮外侧，pointer-events:none 不会挡点击；悬停 / 聚焦 / 触摸按下均会浮出 */
.fab:hover .fab-label,
.fab:focus-visible .fab-label,
.fab:active .fab-label,
.fab.is-tip .fab-label { opacity: 1; transform: translate(0, -50%); }
.fab:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }


.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(42, 33, 27, .45);
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-mask.is-open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-l); width: 100%; max-width: 480px;
  max-height: 90vh; overflow: auto; padding: 28px; box-shadow: var(--shadow-l);
  animation: pop .24s var(--ease);
}
.modal--wide { max-width: 640px; }
.modal__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.modal__head h3 { font-size: 20px; }
.modal__head p { font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.modal__close { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); flex: none; display: grid; place-items: center; }
.modal__close:hover { background: #FAF4EE; color: var(--ink); }
.modal__close svg { width: 16px; height: 16px; }
.modal__foot { display: flex; gap: 10px; margin-top: 22px; }
.modal__foot .btn { flex: 1; }

.success-box { text-align: center; padding: 12px 0 6px; }
.success-box__ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
}
.success-box__ico svg { width: 32px; height: 32px; }
.success-box h3 { font-size: 19px; }
.success-box p { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }

/* toast */
.toast-wrap { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; }
.toast {
  background: rgba(42, 33, 27, .94); color: #fff; font-size: 13.5px; padding: 10px 20px;
  border-radius: 999px; box-shadow: var(--shadow-m); animation: toastIn .28s var(--ease);
  display: flex; align-items: center; gap: 8px;
}
.toast svg { width: 15px; height: 15px; }
.toast--ok svg { color: #7FD3AE; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* 后台内容已更新，但用户正在填表：常驻提示，点了才刷新 */
.sync-chip {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 190;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--ink, #2A211B); color: #fff; border: 0; border-radius: 999px;
  font-size: 13px; font-family: inherit; cursor: pointer; box-shadow: var(--shadow-m, 0 8px 24px rgba(0,0,0,.18));
  animation: toastIn .24s ease;
}
.sync-chip:hover { background: #3A2E25; }
.sync-chip svg { width: 15px; height: 15px; color: #FFC59E; }
body.is-syncing { opacity: .6; transition: opacity .2s ease; }

/* 数据诊断面板（?diag=1） */
.diag-box {
  position: fixed; left: 14px; bottom: 14px; z-index: 300; max-width: 460px;
  background: #fff; color: #2A211B; border: 1px solid rgba(42,33,27,.12);
  border-radius: 12px; padding: 14px 40px 12px 16px; font-size: 12px; line-height: 1.8;
  box-shadow: 0 10px 30px rgba(0,0,0,.14); word-break: break-all;
}
.diag-box b { display: block; font-size: 13px; margin-bottom: 4px; }
.diag-box code { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(42,33,27,.06); padding: 1px 5px; border-radius: 4px; }
.diag-box p { margin-top: 8px; color: #7A6A5E; font-size: 11.5px; }
.diag-box__x {
  position: absolute; right: 8px; top: 6px; width: 24px; height: 24px; border: 0; background: none;
  font-size: 18px; line-height: 1; color: #7A6A5E; cursor: pointer;
}

/* ---------- 16. 页脚 ---------- */
.footer { background: #241C17; color: #C9BCB1; padding: 60px 0 0; margin-top: 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer__brand .logo__name { color: #fff; }
.footer__brand .logo__slogan { color: #9C8D82; }
.footer__desc { font-size: 13px; line-height: 1.85; margin-top: 16px; color: #A29185; max-width: 320px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .04em; }
.footer li { font-size: 13px; margin-bottom: 9px; }
.footer li a:hover { color: #FFC59E; }
.footer__contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer__contact svg { width: 15px; height: 15px; margin-top: 4px; flex: none; opacity: .8; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: #8C7C71;
}
.footer__bottom a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.footer__bottom a:hover { color: #FFC59E; border-bottom-color: #FFC59E; }

/* ---------- 16.5 CTA 横幅 ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  background: linear-gradient(120deg, #3A2A21 0%, #59402F 46%, #7A4A2E 100%);
  color: #fff; padding: 46px 48px; box-shadow: var(--shadow-l);
}
.cta-band__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 88% 12%, rgba(242, 155, 92, .45), transparent 46%),
    radial-gradient(circle at 10% 96%, rgba(255, 214, 176, .22), transparent 52%);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: 27px; letter-spacing: -.02em; }
.cta-band p { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .74); max-width: 560px; line-height: 1.85; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  /* 两列时每列只剩约 344px，图宽收到 120 才不会把右侧文字挤换行 */
  .svc-card { padding: 12px 14px 12px 12px; gap: 14px; }
  .svc-card__media { width: 120px; }
  .svc-card__media svg { width: 42px; height: 42px; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 54px; padding-bottom: 64px; }
  .hero__visual { max-width: 520px; }
  .services-layout { grid-template-columns: 220px 1fr; }
  .detail-layout { grid-template-columns: 1fr 320px; }
  .task-layout { grid-template-columns: 1fr; }
  .join-hero { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .header__phone { display: none; }
  .header__inner { gap: 18px; }
  .nav a { padding: 9px 10px; font-size: 14.5px; }
  .header__cta { gap: 8px; }
}

@media (max-width: 900px) {
  .nav, .header__phone, .header__cta .btn { display: none; }
  .burger { display: grid; }
  .header__inner { height: 64px; }
  /* 手机上 header 是 64+1 边框，搜索条吸顶位置要跟着改，否则会露出 10px 缝 */
  .hsearch { top: 65px; }
  .hsearch__inner { padding: 10px 0; gap: 7px; }
  .hsearch__form { height: 40px; padding: 0 5px 0 13px; }
  .hsearch__input { font-size: 13px; }
  .hsearch__btn { height: 30px; padding: 0 16px; font-size: 13px; }
  .hsearch__hot { font-size: 12px; gap: 6px; }
  .hsearch__hot button { padding: 2px 9px; font-size: 12px; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .promise-row { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-cards { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .join-cards { grid-template-columns: 1fr; }
  .forum { grid-template-columns: 1fr; }
  .services-layout { grid-template-columns: 1fr; }
  .cat-nav { display: block; padding: 10px; border-radius: 16px; }
  .cat-nav__head { display: none; }
  .cat-nav__list { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .cat-nav__list::-webkit-scrollbar { display: none; }
  .cat-nav__item { width: auto; white-space: nowrap; background: #FAF4EE; padding: 7px 12px 7px 8px; gap: 8px; border-radius: 12px; }
  .cat-nav__ico { width: 30px; height: 30px; border-radius: 9px; }
  .cat-nav__ico svg { width: 17px; height: 17px; }
  .cat-nav__count { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-layout > aside { align-self: auto; }
  .detail-layout > aside.is-stuck { position: static; }
  .svc-panel__head { flex-direction: column; align-items: stretch; gap: 12px; }
  .svc-search { width: 100%; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .page-hero__inner { padding-top: 34px; padding-bottom: 32px; }
  .section { padding: 56px 0; }
  .sec-title { font-size: 26px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 18px; }
  /* 窄屏热词只留词汇，省掉「大家在搜」四个字，否则一行放不下会折成两行 */
  .hsearch__hot > span { display: none; }
  .hsearch__hot { gap: 6px; }
  .topbar__left { display: none; }
  .topbar .wrap { justify-content: center; }
  .hero__inner { padding-top: 38px; padding-bottom: 48px; }
  /* 手机端不留过大空白：图片按屏幕比例收，圆点与箭头仍可用 */
  .hero__photo { min-height: 0; aspect-ratio: 4 / 3.15; border-radius: 24px 24px 24px 8px; }
  .hero-nav { width: 34px; height: 34px; }
  .hero-dots { bottom: 12px; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 28px; }
  .hero__stat b { font-size: 22px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .svc-tile { padding: 18px 12px; }
  .promise-row, .staff-grid, .article-grid, .related-grid { grid-template-columns: 1fr; }
  .feature-list, .form-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; }
  .fab-stack { right: 14px; bottom: 18px; gap: 8px; }
  .fab { width: 46px; height: 46px; border-radius: 14px; }
  .fab--main { width: 46px; height: 46px; padding: 0; }
  .fab-label { right: 54px; font-size: 11.5px; padding: 5px 10px; }
  .panel { padding: 20px; }
  .modal { padding: 22px; }
  .svc-card { padding: 12px 13px 12px 12px; gap: 13px; }
  .svc-card__media { width: 92px; }
  .svc-card__media svg { width: 34px; height: 34px; }
  .svc-card__body { padding: 0; gap: 5px; }
  .svc-card__head h3 { font-size: 15px; }
  .svc-card__meta { font-size: 12px; gap: 6px; }
  .svc-card__sum { font-size: 12.5px; -webkit-line-clamp: 1; }
  .svc-card__foot .price { font-size: 17px; }
  .svc-card__foot .btn { height: 32px; padding: 0 14px; font-size: 13px; }
  .task-item__foot { flex-direction: column; align-items: flex-start; }
  .article-hero { aspect-ratio: 16/11; }
}

/* ---------- 在线客服：微信式对话窗 ---------- */
.btn-support { color: var(--brand-d); border-color: var(--brand-soft-2); background: var(--brand-soft); }
.btn-support:hover { background: #fff; border-color: var(--brand); color: var(--brand-d); }

.wx-mask {
  position: fixed; inset: 0; z-index: 90; background: rgba(34, 26, 20, .38);
  display: none; align-items: flex-end; justify-content: flex-end; padding: 22px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.wx-mask.is-open { display: flex; }

.wx {
  width: 400px; max-width: 100%; height: min(620px, calc(100vh - 44px));
  background: #EDEDED; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 34px 80px -28px rgba(38, 24, 14, .55);
  animation: wxIn .24s var(--ease);
}
@keyframes wxIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

.wx__head {
  flex: none; padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff;
}
.wx__ava {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: rgba(255, 255, 255, .22); display: grid; place-items: center;
}
.wx__ava svg { width: 22px; height: 22px; }
.wx__who { min-width: 0; line-height: 1.35; }
.wx__who b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx__who span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; opacity: .92; }
.wx__dot { width: 6px; height: 6px; border-radius: 50%; background: #5BE38A; box-shadow: 0 0 0 2px rgba(91, 227, 138, .28); flex: none; }
.wx__dot--off { background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.wx__close {
  margin-left: auto; width: 28px; height: 28px; flex: none; border: 0; border-radius: 9px;
  background: rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center;
}
.wx__close svg { width: 15px; height: 15px; }

.wx__body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain;
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 255, 255, .5), transparent 42%), #EDEDED;
}
.wx__body::-webkit-scrollbar { width: 6px; }
.wx__body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .14); border-radius: 3px; }

.wx__time { align-self: center; font-size: 11px; color: #9C9C9C; background: rgba(0, 0, 0, .045); padding: 2px 9px; border-radius: 6px; }

.wx__row { display: flex; align-items: flex-start; gap: 8px; }
.wx__row--me { flex-direction: row-reverse; }
.wx__ava2 {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
  color: #fff; overflow: hidden;
}
.wx__ava2 svg { width: 19px; height: 19px; }
.wx__ava2--cs { background: linear-gradient(140deg, var(--brand-2), var(--brand)); }
.wx__ava2--me { background: linear-gradient(140deg, #B9C6D8, #7C8FA8); }

.wx__msg {
  position: relative; max-width: 76%; padding: 9px 12px; border-radius: 6px;
  background: #fff; color: var(--ink); font-size: 13.5px; line-height: 1.68;
  box-shadow: 0 1px 2px rgba(40, 26, 16, .06); word-break: break-word;
}
.wx__msg::before {
  content: ""; position: absolute; top: 12px; left: -5px;
  border: 5px solid transparent; border-right-color: #fff; border-left: 0;
}
.wx__row--me .wx__msg { background: #95EC69; color: #15290C; }
.wx__row--me .wx__msg::before { left: auto; right: -5px; border-right: 0; border-left-color: #95EC69; }

.wx__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.wx__act {
  border: 1px solid var(--brand); background: #fff; color: var(--brand-d);
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 8px;
}
.wx__act:hover { background: var(--brand); color: #fff; }

.wx__msg--typing { display: flex; align-items: center; gap: 4px; padding: 13px 14px; }
.wx__msg--typing i {
  width: 6px; height: 6px; border-radius: 50%; background: #B9B4AF;
  animation: wxDot 1.2s infinite ease-in-out;
}
.wx__msg--typing i:nth-child(2) { animation-delay: .15s; }
.wx__msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wxDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.wx__quick {
  flex: none; display: flex; gap: 7px; overflow-x: auto; padding: 9px 12px;
  background: #F7F7F7; border-top: 1px solid #E4E4E4;
}
.wx__quick.is-hidden { display: none; }
.wx__quick::-webkit-scrollbar { height: 0; }
.wx__chip {
  flex: none; font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #DEDEDE; color: var(--ink-2); white-space: nowrap;
}
.wx__chip:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-soft); }

.wx__foot {
  flex: none; display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px; background: #F7F7F7; border-top: 1px solid #E4E4E4;
}
.wx__input {
  flex: 1; min-height: 40px; max-height: 92px; resize: none; outline: none;
  border: 0; border-radius: 9px; padding: 10px 12px; background: #fff;
  font-family: inherit; font-size: 13.5px; line-height: 1.5; color: var(--ink);
  box-shadow: inset 0 0 0 1px #E4E4E4;
}
.wx__input:focus { box-shadow: inset 0 0 0 1px var(--brand); }
.wx__send {
  flex: none; height: 40px; padding: 0 17px; border: 0; border-radius: 9px;
  background: #07C160; color: #fff; font-size: 13.5px; font-weight: 600;
}
.wx__send:hover { background: #06AD56; }

@media (max-width: 640px) {
  .wx-mask { padding: 0; align-items: stretch; justify-content: stretch; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .wx { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .wx__body { padding: 12px 12px 8px; }
  .wx__msg { max-width: 80%; }
  .wx__quick { padding: 8px 12px; }
}

/* ---------- 服务详情页：主图 + 图文详情（2026-12-02） ---------- */
/* 主图统一尺寸（2026-12-03）：固定 4:3 展示框 + 裁切填满。
   不同比例的照片不会再一高一矮；用 object-fit 裁，原图不动，换布局也不怕。
   宽屏下左栏很宽时封顶 520px 高，免得主图把首屏顶掉一整屏。 */
.detail-cover { margin-bottom: 24px; border-radius: 18px; overflow: hidden; background: #FBF3E8; border: 1px solid var(--line); aspect-ratio: 4 / 3; max-height: 520px; }
.detail-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pg-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.pg-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pg-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #FBF3E8; }
.pg-gallery figcaption { padding: 10px 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.65; }
@media (max-width: 720px) { .pg-gallery { grid-template-columns: 1fr; } }
