/* =========================================================================
 *  防水补漏小程序 · H5 预览版样式
 *  设计对齐参考图：蓝色渐变头部 + 白色卡片 + 圆形服务按钮 + 底部 5 宫格 Tab
 * ========================================================================= */

:root {
  --blue:        #2F7DE4;
  --blue-deep:   #1F63C9;
  --blue-grad:   linear-gradient(155deg, #62AAF8 0%, #3B84EC 45%, #2564DA 100%);
  --blue-soft:   #EDF4FE;
  --red:         #D2202C;
  --red-deep:    #A8141F;
  --red-grad:    linear-gradient(160deg, #E03340 0%, #C0161F 100%);
  --gold:        #F0B429;
  --bg:          #F4F5F7;
  --card:        #FFFFFF;
  --t1:          #1F2329;
  --t2:          #646A73;
  --t3:          #9AA0A6;
  --line:        #EEF0F3;
  --line-2:      #E4E7EC;
  --green:       #22A06B;
  --orange:      #F08300;
  --radius:      12px;
  --radius-lg:   16px;
  --shadow:      0 2px 10px rgba(31, 35, 41, .06);
  --shadow-up:   0 -2px 12px rgba(31, 35, 41, .07);
  --nav-h:       46px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #E9EDF3;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--t1);
  font-size: 14px;
  line-height: 1.5;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 500px at 12% 0%, #E3EDFB 0%, transparent 60%),
    radial-gradient(800px 500px at 92% 100%, #E7F0FA 0%, transparent 55%),
    #E9EDF3;
  overflow: hidden;
}

/* ---------------- 手机外壳 ---------------- */
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  max-height: 100vh;
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 10px #1B1D21,
    0 0 0 12px #34373C,
    0 30px 70px rgba(20, 30, 50, .32);
}

@media (max-width: 480px), (max-height: 900px) {
  body { display: block; background: var(--bg); }
  .phone {
    width: 100vw; height: 100vh; max-height: none;
    border-radius: 0; box-shadow: none;
  }
  .phone__notch { display: none; }
}

.phone__notch {
  flex: none;
  height: 26px;
  background: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .3px;
}
.phone__notch .dots { display: flex; gap: 4px; align-items: center; }
.phone__notch .dots i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.85); }
.phone__notch.on-light { background: #fff; color: #1F2329; }
.phone__notch.on-light .dots i { background: #1F2329; }
.phone__notch.on-dark { background: #1E2430; color: #fff; }

/* 小图块（后台线索详情用） */
.tile.leading { width: 54px; height: 54px; border-radius: 10px; }
.tile.leading .tile__icon { font-size: 22px; }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 10px; color: #fff; text-align: center;
  background: rgba(0,0,0,.42); padding: 2px 0;
}

.phone__view {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* 页面栈 */
.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  will-change: transform;
  transition: transform .26s cubic-bezier(.32, .72, .34, 1);
}
.page__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.page__scroll::-webkit-scrollbar { width: 0; }

/* ---------------- 导航栏 ---------------- */
.navbar {
  flex: none;
  height: var(--nav-h);
  background: var(--blue-grad);
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
}
.navbar.on-white {
  background: #fff;
  color: var(--t1);
  border-bottom: 1px solid var(--line);
}
.navbar__back {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  flex: none;
  /* 返回箭头放大 1 倍（18px → 36px） */
  font-size: 36px;
}
.navbar__back:active { background: rgba(255,255,255,.16); }
.navbar.on-white .navbar__back:active { background: rgba(0,0,0,.06); }
.navbar__title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 16px; font-weight: 600; white-space: nowrap;
}
.navbar__right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.navbar__icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.navbar__home {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,.92); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; flex: none;
}
.navbar.on-white .navbar__home { background: var(--blue-soft); }

/* ---------------- 通用 ---------------- */
.section { margin: 10px 12px; }
.section__head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 2px 8px;
}
.section__title {
  font-size: 16px; font-weight: 700; letter-spacing: .2px;
  display: flex; align-items: center; gap: 6px;
}
.section__title::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: var(--blue); display: block;
}
.section__more { margin-left: auto; font-size: 12px; color: var(--t3); }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card + .card { margin-top: 10px; }
.row { display: flex; align-items: center; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--t3); }
.center { text-align: center; }
.hidden { display: none !important; }

/* 图标占位（渐变图块，后台可换真实图片） */
.tile {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.94);
  overflow: hidden;
  flex: none;
}
.tile__icon { font-size: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.18)); }
.tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.28), transparent 55%);
}
.tile.has-img::after { display: none; }
.tile.has-img .tile__icon { display: none; }

/* 标签 */
.tag {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 4px;
  font-size: 10px; line-height: 16px;
  background: var(--blue-soft); color: var(--blue);
  border: 1px solid rgba(47,125,228,.16);
  white-space: nowrap;
}
.tag.green { background: #E8F7F0; color: var(--green); border-color: rgba(34,160,107,.16); }
.tag.orange { background: #FFF3E4; color: var(--orange); border-color: rgba(240,131,0,.16); }
.tag.red { background: #FDECEC; color: var(--red); border-color: rgba(210,32,44,.16); }
.tag.gray { background: #F2F3F5; color: var(--t2); border-color: var(--line-2); }
.tag.gold { background: #FFF8E5; color: #B07C00; border-color: rgba(176,124,0,.18); }

/* 状态色点：与状态文字同色，用于筛选胶囊 / 状态流转按钮 */
.status-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 4px; flex: none;
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border: none; outline: none;
  border-radius: 22px; font-size: 16px; font-weight: 600;
  background: linear-gradient(135deg, #57A2F6, #2A72E2); color: #fff;
  cursor: pointer; transition: opacity .15s, transform .1s;
  font-family: inherit;
}
.btn:active { opacity: .88; transform: scale(.985); }
.btn--block { width: 100%; }
.btn--sm { height: 30px; padding: 0 14px; font-size: 12px; border-radius: 15px; font-weight: 500; }
.btn--ghost {
  background: #fff; color: var(--blue);
  border: 1px solid rgba(47,125,228,.45);
}
.btn--gray { background: #F2F3F5; color: var(--t2); }
.btn--red { background: var(--red-grad); }
.btn--disabled { background: #C8CDD4 !important; color: #fff !important; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line-2);
  font-size: 12px; color: var(--t2); cursor: pointer;
}
.pill.active {
  background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 500;
}

/* =========================================================================
 *  首页
 * ========================================================================= */
/* 首页顶部：主题蓝渐变底 + 蓝色装饰圆；banner 通栏（高度为原比例 ×1.2） */
.home-hero {
  position: relative;
  background: linear-gradient(160deg, #6FB2FA 0%, #3B84EC 48%, #2564DA 100%);
  padding: 0;
  color: #fff;
  overflow: hidden;
}
.home-hero::before {
  content: ''; position: absolute; right: -46px; top: -66px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.home-hero::after {
  content: ''; position: absolute; right: 34px; top: 26px;
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
/* banner 下方服务保证栏：白底红字 4 项 */
.home-guarantee {
  display: flex; align-items: stretch;
  background: #fff;
  padding: 9px 2px;
}
.home-guarantee__item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  color: #E8442E; font-size: 12px; font-weight: 600; letter-spacing: .5px;
  white-space: nowrap;
}
.home-guarantee__item svg { flex: none; display: block; }

/* 首页「立刻达」快捷条：专业师傅上方（标题 + 红色副标 + 5 个线性图标项） */
.quick-strip { padding: 13px 14px 11px; }
.quick-strip__head { display: flex; align-items: baseline; justify-content: space-between; }
.quick-strip__title { font-size: 17px; font-weight: 700; color: #222; }
.quick-strip__hint { font-size: 12px; font-weight: 600; color: #E8442E; }
.quick-strip__row { display: flex; margin-top: 10px; }
.quick-strip__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; cursor: pointer; }
.quick-strip__icon { height: 30px; display: flex; align-items: center; justify-content: center; color: #333; }
.quick-strip__label { font-size: 11.5px; color: #333; white-space: nowrap; }

/* 首页「立刻达」下方营销卡片：2×2 渐变色块（标题 + 白色胶囊按钮 + 右下装饰圆） */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promo-card {
  position: relative;
  min-height: 92px;
  padding: 13px 12px 11px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.promo-card--pink   { background: linear-gradient(135deg, #FF7D94, #FFA8B8); }
.promo-card--blue   { background: linear-gradient(135deg, #4AA8FF, #8FCDFF); }
.promo-card--green  { background: linear-gradient(135deg, #3ECF85, #82E5B4); }
.promo-card--orange { background: linear-gradient(135deg, #FFA53E, #FFCB80); }
.promo-card__title { position: relative; z-index: 1; font-size: 14px; font-weight: 700; line-height: 1.45; color: #fff; }
.promo-card__btn {
  position: relative; z-index: 1;
  display: inline-block;
  margin-top: 9px;
  padding: 3px 11px;
  background: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.promo-card__art {
  position: absolute; right: -7px; bottom: -9px; z-index: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* 首页头部检索框：白底圆角，输入即搜（结果浮层） */
.home-search {
  position: relative;
  display: flex; align-items: center;
  margin: 12px 14px;
  height: 38px;
  background: #fff; border-radius: 19px;
  padding: 0 5px 0 13px;
  box-shadow: 0 4px 14px rgba(9, 32, 77, .18);
}
.home-search__ico { font-size: 14px; margin-right: 8px; flex: none; }
.home-search__input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: transparent;
  font-size: 13px; color: var(--t1); font-family: inherit;
}
.home-search__input::placeholder { color: #9AA0A6; }
.home-search__btn {
  flex: none;
  background: linear-gradient(140deg, #5AA6F7, #2A70E0); color: #fff;
  font-size: 13px; font-weight: 600;
  border-radius: 15px; padding: 6px 15px; cursor: pointer;
}
.home-search__drop {
  display: none;
  position: absolute; top: 44px; left: 0; right: 0;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(9, 32, 77, .2);
  max-height: 240px; overflow-y: auto; z-index: 30;
}
.home-search__drop.show { display: block; }
.home-search__row {
  display: flex; align-items: center;
  padding: 10px 14px; font-size: 13px; color: var(--t1); cursor: pointer;
}
.home-search__row:active { background: #F5F7FA; }
.home-search__name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-search__sold { flex: none; color: #9AA0A6; font-size: 11px; margin-left: 8px; }
.home-search__empty { padding: 16px 14px; font-size: 12px; color: #9AA0A6; text-align: center; }

/* 首页顶部轮播图（后台「内容管理 → 首页轮播图」可改图片/标题/跳转、增删排序、显示隐藏） */
/* 首页顶部轮播图：通栏贴顶（无蓝色衬底、无圆角），后台「内容管理 → 首页轮播图」可管理 */
.bn {
  position: relative; margin: 0; border-radius: 0; overflow: hidden;
}
.bn__track { display: flex; transition: transform .45s ease; will-change: transform; }
/* 4:3 横图：高度 = 宽度 × 3/4（100% 用 padding 撑高），图片铺满裁切（不同图画面一致） */
.bn__item { flex: 0 0 100%; position: relative; padding-top: 75%; }
.bn__item img {
  position: absolute; left: 0; top: 0;
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.bn__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px;
  font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
}
.bn__dots { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 5px; }
.bn__dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5);
  transition: width .2s, background .2s;
}
.bn__dot.active { width: 14px; border-radius: 3px; background: #fff; }

/* 主体卡片容器（顶部蓝色区已移除，不再上浮重叠） */
.home-body {
  margin-top: 10px;
  padding-bottom: 12px;
  position: relative;
}

.circle-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px 4px;
  padding: 16px 6px 18px;
}
.circle-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer;
}
.circle-item:active .circle-item__img { transform: scale(.94); }
.circle-item__img {
  width: 66px; height: 66px; border-radius: 50%;
  transition: transform .15s;
  box-shadow: 0 4px 12px rgba(31,60,110,.14);
  border: 2px solid #fff;
}
/* 图片图标：完整显示不裁边（白底图融入圆内白底），避免 cover 把图形切掉；
   必须 no-repeat——横版图 contain 后上下留空，默认平铺会在顶部露出重复图边 */
.circle-item__img.has-img {
  background-size: contain;
  background-color: #fff;
  background-repeat: no-repeat;
}
.circle-item__img .tile__icon { font-size: 24px; }
.circle-item__text { font-size: 12px; color: var(--t2); text-align: center; }

/* 评价 */
/* 后台：分享返佣统计 */
.share-row { padding: 13px 12px; }
.share-row + .share-row { border-top: 1px solid #F2F3F5; }
.share-row__top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.share-row__top span { margin-left: auto; font-size: 12px; }
.share-row__line { margin-top: 7px; font-size: 12.5px; color: #4E5969; }
.share-row__dim { margin-top: 4px; font-size: 11.5px; color: #9AA0A6; }

.review-item { padding: 14px 12px; }
.review-item + .review-item { border-top: 8px solid var(--bg); }
.review-head { display: flex; align-items: center; gap: 9px; }
.review-avatar { width: 34px; height: 34px; border-radius: 50%; }
.review-avatar .tile__icon { font-size: 15px; }
.review-name { font-size: 13px; font-weight: 600; }
.rv-empty { padding: 40px 0; text-align: center; color: #9AA0A6; font-size: 13px; }
.review-svc {
  margin-left: auto; flex-shrink: 0; font-size: 11px; line-height: 1;
  color: #4B7FB5; background: #EAF2FB; border-radius: 4px; padding: 5px 8px;
}
.review-head .tag.red + .review-svc { margin-left: 0; }
.review-stars { color: #FFB300; font-size: 12px; letter-spacing: 1px; }
.review-content {
  font-size: 13px; color: #3A3F45; line-height: 1.62; margin-top: 9px;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.review-imgs { display: flex; gap: 6px; margin-top: 9px; }
.review-imgs .tile { width: 74px; height: 74px; border-radius: 7px; }
.review-imgs .tile__icon { font-size: 18px; }
.review-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 9px; font-size: 11px; color: var(--t3);
}

/* =========================================================================
 *  分类页
 * ========================================================================= */
.cat-wrap { display: flex; flex: 1; overflow: hidden; }
.cat-side {
  width: 92px; flex: none; background: #F7F8FA;
  overflow-y: auto;
}
.cat-side::-webkit-scrollbar { width: 0; }
.cat-side__item {
  height: 46px; display: flex; align-items: center;
  padding-left: 16px;
  font-size: 13px; font-weight: 400; color: #3C4148;
  position: relative; cursor: pointer;
}
.cat-side__item.active {
  background: #fff; color: var(--blue); font-weight: 600;
}
.cat-side__item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; background: var(--blue); border-radius: 0 3px 3px 0;
}
/* 两级分类样式已随 V10 单级化移除（--main / --sub / __arrow / cat-chips） */

.cat-main { flex: 1; overflow-y: auto; padding: 12px 12px 20px; }
.cat-main::-webkit-scrollbar { width: 0; }
.cat-title {
  font-size: 14px; font-weight: 700; color: var(--red);
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.cat-title::before {
  content: ''; width: 3px; height: 13px; background: var(--red); border-radius: 2px;
}
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.svc-grid__item { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.svc-grid__item .tile {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 10px;
}
.svc-grid__item .tile__icon { font-size: 26px; }
.svc-grid__text { font-size: 12px; color: var(--t2); text-align: center; }

/* =========================================================================
 *  详情页（图7）
 * ========================================================================= */
.detail-banner { display: block; width: 100%; }
.detail-plate { background: #fff; margin-bottom: 0; }

.flow-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px; padding: 14px 12px 18px;
}
.flow-item { text-align: center; }
.flow-item__no {
  width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%;
  background: var(--red-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.flow-item__text { font-size: 11px; color: var(--t2); }

.team-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.team-tags .pill { background: #FFF1F1; border-color: rgba(210,32,44,.2); color: var(--red); font-weight: 500; }

.guard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
.guard-item {
  display: flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #FFF7F7, #FFFDF5);
  border: 1px solid rgba(210,32,44,.12);
  border-radius: 10px; padding: 11px;
}
.guard-item__icon { font-size: 20px; }
.guard-item__title { font-size: 13px; font-weight: 700; color: var(--red-deep); }
.guard-item__desc { font-size: 10px; color: var(--t3); margin-top: 1px; }

/* 详情页底部操作条 */
.action-bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; background: #fff;
  box-shadow: var(--shadow-up); border-top: 1px solid var(--line);
}
.action-bar__icon {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 10px; color: var(--t2); width: 44px; cursor: pointer; flex: none;
}
.action-bar__icon i { font-style: normal; font-size: 19px; }
.action-bar .btn { flex: 1; height: 42px; }
.action-bar .btn--call { background: var(--red-grad); }

.svc-row { display: flex; gap: 10px; padding: 12px; cursor: pointer; }
.svc-row + .svc-row { border-top: 1px solid var(--line); }
.svc-row:active { background: #FAFBFC; }
.svc-row__img { width: 78px; height: 78px; border-radius: 9px; }
.svc-row__img .tile__icon { font-size: 26px; }
.svc-row__name { font-size: 14px; font-weight: 700; }
.svc-row__desc { font-size: 12px; color: var(--t3); margin-top: 3px; }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.svc-row__foot { display: flex; align-items: flex-end; margin-top: 7px; }
.svc-row__price { color: var(--red); font-size: 15px; font-weight: 800; }
.svc-row__price small { font-size: 10px; font-weight: 400; color: var(--t3); margin-left: 2px; }
.svc-row__sold { margin-left: auto; font-size: 11px; color: var(--t3); }

.list-end { text-align: center; font-size: 12px; color: var(--t3); padding: 16px; }

/* =========================================================================
 *  表单 / 预约页（图3）
 * ========================================================================= */
.form-block { background: #fff; padding: 0 14px; }
.form-block + .form-block { margin-top: 10px; }
.form-block__title { font-size: 15px; font-weight: 700; padding: 14px 0 6px; }
.form-block__title-hint { color: #B4B9C0; font-weight: 400; font-size: 12px; }
.form-textarea {
  width: 100%; min-height: 70px; border: none; outline: none; resize: none;
  background: #F7F8FA; border-radius: 8px; padding: 10px 12px;
  font-size: 13px; color: var(--t1); font-family: inherit; line-height: 1.55;
}
.form-textarea::placeholder { color: #B4B9C0; }
.form-hint { font-size: 12px; color: var(--t3); padding: 7px 0 4px; }
.form-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; border-bottom: 1px solid var(--line);
}
.form-row:last-child { border-bottom: none; }
.form-row__label { width: 64px; flex: none; font-size: 14px; color: var(--t1); }
.form-row__input {
  flex: 1; border: none; outline: none; font-size: 14px;
  color: var(--t1); background: transparent; font-family: inherit; text-align: left;
  min-width: 0;
}
.form-row__input::placeholder { color: #B4B9C0; text-align: left; }
.form-row__input.left { text-align: left; }
.form-row__input.left::placeholder { text-align: left; }
.form-row__btn {
  flex: none; font-size: 12px; color: var(--blue);
  border: 1px solid rgba(47,125,228,.4); border-radius: 14px;
  padding: 4px 10px; cursor: pointer; background: #fff; font-family: inherit;
}
.form-row__btn.solid { background: var(--blue); color: #fff; border-color: var(--blue); }
/* 预约页各表单白块之间不留灰色缝隙 */
[data-page="appoint"] .form-block + .form-block { margin-top: 0; }
/* 地址块底部多留白底（padding 防止末行 margin 塌陷到块外露出灰底） */
[data-page="appoint"] .form-block--addr { padding-bottom: 12px; }
/* 提高优先级（0,3,0）：盖过 .form-row:last-child 的 border-bottom:none，否则末行（详细地址）底边丢失 */
.form-block .form-row.form-row--box {
  border: 1px solid #E3E7EE; border-radius: 8px;
  padding: 0 10px; margin: 10px 0;
}
.form-row__arrow { color: var(--t3); font-size: 15px; }
/* 提交校验失败：行描边变红 + 行尾「请输入」红字提示（同级优先级、写在后面生效） */
.form-block .form-row.form-row--err {
  border-color: #E84C3D;
}
.form-err { color: #E84C3D; font-size: 12px; flex: none; }
/* 地址行「定位」按钮：红色定位针 SVG */
.form-loc { color: #E8442E; display: inline-flex; align-items: center; cursor: pointer; }

/* 省/市/区县 三级下拉 */
.addr-selects { flex: 1; display: flex; gap: 6px; min-width: 0; }
.addr-select {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--t1); font-size: 13px; font-family: inherit;
  padding: 8px 4px; outline: none; text-align: center; text-align-last: center;
}

.divider-dash {
  height: 1px; margin: 12px 14px;
  background-image: linear-gradient(90deg, #D8DCE2 0 6px, transparent 6px 12px);
  background-size: 12px 1px; background-repeat: repeat-x;
}

.svc-preview { display: flex; gap: 10px; padding: 12px 14px; align-items: center; }
.svc-preview__img { width: 54px; height: 54px; border-radius: 8px; }
.svc-preview__img .tile__icon { font-size: 20px; }
.svc-preview__name { font-size: 14px; font-weight: 700; }
.svc-preview__price { font-size: 12px; color: var(--red); font-weight: 700; margin-top: 3px; }
.svc-preview__price span { color: var(--t3); font-weight: 400; }

.time-pills { display: flex; gap: 10px; padding: 10px 0 14px; }
/* 到达时间：标题与按钮同行平齐 */
.pills-row { display: flex; align-items: center; gap: 12px; }
.pills-row__title { padding: 10px 0 6px; }
.time-pills--inline { padding: 10px 0 6px; }
.pick-time {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 8px; padding: 10px 12px;
  background: #F5F8FD; border-radius: 10px;
}
.pick-time__icon { font-size: 16px; line-height: 22px; }
.pick-time__main { font-size: 14px; font-weight: 600; color: #1F2A3D; }
.pick-time__sub { font-size: 12px; color: #8A94A6; margin-top: 2px; }
/* 漏水情况胶囊：底部内边距加大 → 与「到达时间」板块距离加倍（白底内延伸不露灰） */
/* 漏水情况胶囊：三列等宽网格，整齐不乱；底部内边距 → 与「到达时间」板块距离（白底内延伸不露灰） */
.leak-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 0 28px; }
.leak-pill {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0; border-radius: 18px; font-size: 13px;
  background: #F2F4F7; color: var(--t2); cursor: pointer; border: 1px solid transparent;
}
.leak-pill.active { background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(47,125,228,.3); }
/* 到达时间胶囊：整体缩小约 10%（原 padding 8/20、字号 13px、圆角 18px） */
.time-pill {
  padding: 7px 18px; border-radius: 16px; font-size: 12px;
  background: #F2F4F7; color: var(--t2); cursor: pointer; border: 1px solid transparent;
}
.time-pill.active {
  background: var(--blue); color: #fff; font-weight: 600;
  box-shadow: 0 4px 10px rgba(47,125,228,.3);
}

.tips-list { padding: 6px 14px 14px; }
.tips-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.tips-item__no {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
}
.tips-item__text { font-size: 13px; color: var(--t2); line-height: 20px; padding-top: 1px; }

.submit-bar {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #fff; box-shadow: var(--shadow-up);
}
.submit-bar__total { font-size: 15px; font-weight: 700; }
.submit-bar__total em { color: var(--red); font-style: normal; font-size: 19px; font-weight: 800; }
.submit-bar .btn { flex: 1; height: 46px; }

/* =========================================================================
 *  订单页（图4）/ 列表空态
 * ========================================================================= */
.tabs {
  flex: none; display: flex; background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs::-webkit-scrollbar { height: 0; }
.tabs__item {
  flex: none; min-width: 68px; text-align: center;
  padding: 12px 4px 10px; font-size: 13px; color: var(--t2);
  position: relative; cursor: pointer; white-space: nowrap;
}
.tabs__item.active { color: var(--blue); font-weight: 700; }
.tabs__item.active::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--blue);
}

.empty { padding: 60px 20px; text-align: center; }
.empty__art { font-size: 58px; opacity: .28; margin-bottom: 14px; }
.empty__text { font-size: 14px; color: var(--t3); margin-bottom: 20px; }
.empty .btn { min-width: 160px; }

.order-card { padding: 13px; }
.order-card + .order-card { margin-top: 10px; }
.order-card__head {
  display: flex; align-items: center; font-size: 12px; color: var(--t3);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.order-card__no { margin-right: auto; }
.order-card__status { font-weight: 700; }
.order-card__status.pending { color: var(--orange); }
.order-card__status.dispatched { color: #7C5CF0; }
.order-card__status.assigned { color: var(--blue); }
.order-card__status.serving { color: #E0A800; }
.order-card__status.done { color: var(--green); }
.order-card__status.canceled { color: var(--t3); }
.order-card__status.invalid { color: var(--red); }
.order-card__body { display: flex; gap: 10px; padding: 11px 0; }
.order-card__img { width: 58px; height: 58px; border-radius: 8px; }
.order-card__img .tile__icon { font-size: 21px; }
.order-card__name { font-size: 14px; font-weight: 700; }
.order-card__meta { font-size: 12px; color: var(--t3); margin-top: 4px; }
.order-card__foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.order-card__amount { margin-right: auto; font-size: 12px; color: var(--t3); }

/* =========================================================================
 *  个人中心（图5）
 * ========================================================================= */
.profile-head {
  position: relative; background: var(--blue-grad);
  padding: 22px 16px 54px; color: #fff; text-align: center;
  overflow: hidden; flex: none;
}
.profile-head::before {
  content: ''; position: absolute; left: -50px; top: -70px;
  width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.09);
}
.profile-head::after {
  content: ''; position: absolute; right: -30px; bottom: -60px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.07);
}
.profile-avatar {
  position: relative; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.28); border: 2px solid rgba(255,255,255,.65);
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  overflow: hidden;
}
.profile-avatar__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-name { position: relative; font-size: 16px; font-weight: 700; }
.profile-sub { position: relative; font-size: 12px; opacity: .88; margin-top: 3px; }
.profile-edit {
  position: relative; display: inline-block; margin-top: 8px;
  font-size: 11.5px; padding: 3px 12px; border-radius: 12px;
  background: rgba(255,255,255,.22); cursor: pointer;
}

.profile-body { margin-top: -34px; padding-bottom: 12px; position: relative; }

.order-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 4px; padding: 14px 8px 18px; }
.order-grid__item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.order-grid__icon { font-size: 22px; position: relative; }
.order-grid__text { font-size: 12px; color: var(--t2); }
.order-grid__badge {
  position: absolute; top: -6px; right: -12px;
  background: var(--red); color: #fff; font-size: 9px;
  border-radius: 9px; padding: 0 5px; line-height: 15px; font-weight: 700;
}

.menu-list { padding: 0 14px; }
.menu-item {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 0; cursor: pointer; font-size: 14px;
}
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-item__icon { font-size: 17px; width: 22px; text-align: center; }
.menu-item__arrow { margin-left: auto; color: #C4C9CF; font-size: 15px; }
.menu-item__value { margin-left: auto; font-size: 13px; color: var(--t3); }

/* =========================================================================
 *  在线咨询
 * ========================================================================= */
.chat-scroll { flex: 1; overflow-y: auto; padding: 14px 12px; background: #F4F5F7; }
.chat-scroll::-webkit-scrollbar { width: 0; }
.chat-msg { display: flex; gap: 8px; margin-bottom: 14px; }
.chat-msg.me { flex-direction: row-reverse; }
.chat-avatar { width: 34px; height: 34px; border-radius: 9px; flex: none; font-size: 16px; }
.chat-bubble {
  max-width: 228px; padding: 10px 12px; border-radius: 12px;
  font-size: 13.5px; line-height: 1.55; word-break: break-word;
  background: #fff; box-shadow: var(--shadow);
}
.chat-msg.me .chat-bubble { background: #D6E9FF; color: #10305A; }
.chat-time { text-align: center; font-size: 11px; color: var(--t3); margin: 12px 0; }
.chat-input-bar {
  flex: none; display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; background: #fff; border-top: 1px solid var(--line);
}
.chat-input {
  flex: 1; height: 38px; border-radius: 19px; border: none; outline: none;
  background: #F2F4F7; padding: 0 15px; font-size: 14px; font-family: inherit;
}
.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 12px 4px; }
.chat-quick .pill { font-size: 12px; }

/* =========================================================================
 *  底部 Tab 栏
 * ========================================================================= */
.tabbar {
  flex: none; height: 56px; background: #fff;
  display: flex; align-items: stretch;
  border-top: 1px solid var(--line);
  position: relative; padding-bottom: 4px;
}
.tabbar__item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; color: #9AA0A6; cursor: pointer;
}
.tabbar__item.active { color: #E8442E; }
.tabbar__icon { font-size: 20px; line-height: 1; }
.tabbar__center {
  width: 78px; flex: none; position: relative;
  display: flex; align-items: flex-start; justify-content: center;
}
.tabbar__fab {
  position: absolute; top: -9px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(140deg, #5AA6F7, #2A70E0);
  color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; line-height: 1.15;
  box-shadow: 0 6px 16px rgba(42,112,224,.42);
  border: 3px solid #fff; cursor: pointer;
  /* 外框红白交替闪动，吸引点击 */
  animation: fabFlash 1s linear infinite;
}
@keyframes fabFlash {
  0%, 100% { border-color: #E8442E; box-shadow: 0 6px 16px rgba(232,68,46,.5); }
  50% { border-color: #fff; box-shadow: 0 6px 16px rgba(42,112,224,.42); }
}
.tabbar__fab:active { transform: scale(.95); }

/* =========================================================================
 *  管理后台（小程序内置 / 移动端）
 * ========================================================================= */
.admin-nav {
  flex: none; background: #1E2430; color: #fff;
  padding: 0 14px; height: var(--nav-h);
  display: flex; align-items: center; font-size: 16px; font-weight: 600;
}
.admin-nav__back { width: 30px; cursor: pointer; font-size: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow);
}
.stat-card__label { font-size: 12px; color: var(--t3); display: flex; align-items: center; gap: 5px; }
.stat-card__value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.5px; }
.stat-card__value.blue { color: var(--blue); }
.stat-card__value.red { color: var(--red); }
.stat-card__value.green { color: var(--green); }
.stat-card__value.orange { color: var(--orange); }
.stat-card__sub { font-size: 11px; color: var(--t3); margin-top: 3px; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 116px; padding: 12px 14px 6px; }
.bar-chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bar-chart__bar {
  width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #6FB0F7, #2F7DE4);
  min-height: 4px; transition: height .4s;
}
.bar-chart__bar.zero { background: #E4E7EC; }
.bar-chart__val { font-size: 11px; color: var(--t2); font-weight: 700; }
.bar-chart__label { font-size: 10px; color: var(--t3); }

.lead-item { padding: 13px 12px; cursor: pointer; }
.lead-item + .lead-item { border-top: 1px solid var(--line); }
.lead-item:active { background: #FAFBFC; }
.lead-item__top { display: flex; align-items: center; gap: 7px; }
.lead-item__name { font-size: 15px; font-weight: 700; }
.lead-item__phone { font-size: 13px; color: var(--blue); margin-left: auto; font-weight: 600; }
.lead-item__svc { font-size: 12px; color: var(--t2); margin-top: 5px; }
.lead-item__addr { font-size: 12px; color: var(--t3); margin-top: 3px; }
.lead-item__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.lead-item__foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2);
  font-size: 11px; color: var(--t3);
}
.lead-item__mail { margin-left: auto; }

.filter-bar {
  display: flex; gap: 7px; padding: 10px 12px; overflow-x: auto; background: #fff;
  border-bottom: 1px solid var(--line); flex: none;
}
.filter-bar::-webkit-scrollbar { height: 0; }

.admin-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px; background: #fff; cursor: pointer; font-size: 14px;
}
/* 后台栏目分组标题（如「表单管理」独立栏目） */
.admin-group-title {
  padding: 12px 14px 8px; font-size: 13px; font-weight: 700; color: #1F2329;
  background: #fff; border-bottom: 1px solid #F0F2F5;
}
.admin-menu-item + .admin-menu-item { border-top: 1px solid var(--line); }
.admin-menu-item__icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; background: var(--blue-soft);
}
.admin-menu-item__desc { font-size: 11.5px; color: var(--t3); margin-top: 2px; }

/* Toast / 弹窗 */
.toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(28,32,40,.88); color: #fff; font-size: 13.5px;
  padding: 11px 20px; border-radius: 10px; z-index: 999;
  max-width: 250px; text-align: center; line-height: 1.5;
  animation: toastIn .2s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,-50%) scale(.92); } }

.mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.42);
  display: flex; align-items: center; justify-content: center; z-index: 900;
  padding: 30px;
}

/* ============ 登录面板（个人中心「立即登录」） ============ */
/* 整块一张渐变（不拆成头部+内容两截），按钮层 z-index 高于任何背景装饰 */
/* 登录卡片显示在屏幕正中间（不再贴底）；用 .mask.login-mask 提高优先级盖过后面的 .time-mask */
.mask.login-mask { align-items: center; padding: 0 28px; }
@keyframes loginPop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.login-sheet {
  width: 100%; position: relative;
  background: linear-gradient(180deg, #FFE1E1 0%, #FFF3EF 40%, #FFFFFF 82%);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  animation: loginPop .2s ease-out;
}
.login-sheet__close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 28px; height: 28px; line-height: 26px; text-align: center;
  color: #B9BFC8; font-size: 14px; cursor: pointer;
}
/* 文字布局：标题/口号/协议全部左对齐（对照参考图） */
.login-sheet__head { position: relative; z-index: 1; padding: 24px 20px 6px; text-align: left; }
.login-sheet__title { font-size: 20px; font-weight: 800; color: #1F2329; letter-spacing: .5px; }
.login-sheet__sub { font-size: 13px; color: #6B7280; margin-top: 7px; }
.login-sheet__agree {
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px;
  margin-top: 14px; font-size: 11px; color: #9AA0A6;
}
.login-sheet__agree b { color: #D91B23; font-weight: 600; cursor: pointer; }
.login-sheet__check {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 1px solid #C4C9CF; margin-right: 4px;
  font-size: 10px; line-height: 14px; text-align: center; color: #fff; cursor: pointer;
}
.login-sheet__check.on { background: #D91B23; border-color: #D91B23; }
.login-sheet__ops {
  position: relative; z-index: 2; padding: 16px 20px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.login-sheet__primary {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 46px; line-height: 1; padding: 0;
  border: 0; border-radius: 23px; cursor: pointer;
  background: linear-gradient(90deg, #F5222D, #D91B23);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 8px 18px rgba(217, 27, 35, .32);
}
.login-sheet__primary:active { transform: scale(.98); }
.login-sheet__primary--flat {
  margin-top: 4px; border-radius: 10px; letter-spacing: 6px; box-shadow: none;
}
.login-sheet__ghost {
  height: 34px; border: 0; background: none; cursor: pointer;
  color: #9AA0A6; font-size: 13px;
}
.login-sheet__form { position: relative; z-index: 2; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.login-sheet__row {
  display: flex; align-items: center; height: 46px;
  border: 1px solid #E2E5EA; border-radius: 10px; overflow: hidden; background: #fff;
}
.login-sheet__row:focus-within { border-color: #D91B23; }
.login-sheet__pre {
  padding: 0 10px 0 14px; font-size: 14px; font-weight: 700; color: #1F2329;
  border-right: 1px solid #EEF0F3;
}
.login-sheet__input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none;
  padding: 0 12px; font-size: 15px; color: #1F2329; background: transparent;
}
/* 数字输入框去掉浏览器自带的上下三角（验证码 / 金额等输入框更干净） */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.login-sheet__code {
  display: flex; align-items: center; justify-content: center;
  flex: none; width: 80px; height: 30px; line-height: 1; padding: 0;
  margin-right: 8px; border: 0; border-radius: 15px; cursor: pointer;
  background: #FDECEC; color: #D91B23; font-size: 11px; font-weight: 600;
}
.login-sheet__back {
  border: 0; background: none; cursor: pointer;
  font-size: 12px; color: #9AA0A6; padding: 2px 0 0;
}

/* ============ 到达时间选择面板（半屏） ============ */
.time-mask { align-items: flex-end; padding: 0; }
.time-sheet {
  width: 100%; max-height: 78%; display: flex; flex-direction: column;
  background: #F5F6F7; border-radius: 14px 14px 0 0; overflow: hidden;
  animation: sheetUp .22s ease-out;
}
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } }
.time-sheet__title {
  padding: 14px 0 10px; text-align: center;
  font-size: 16px; font-weight: 700; color: #1F2329; background: #fff;
}
.time-tabs {
  display: flex; background: #fff; border-bottom: 1px solid #EEF0F3;
  overflow-x: auto;
}
.time-tab {
  flex: 1; min-width: 64px; text-align: center; padding: 8px 0 7px;
  border-bottom: 3px solid transparent; cursor: pointer;
}
.time-tab__label { font-size: 14px; font-weight: 700; color: #1F2329; }
.time-tab__date { font-size: 10px; color: #9AA0A6; margin-top: 2px; }
.time-tab-active { border-bottom-color: #2F7DE4; }
.time-tab-active .time-tab__label,
.time-tab-active .time-tab__date { color: #2F7DE4; }
.time-grid {
  flex: 1; overflow-y: auto; display: flex; flex-wrap: wrap;
  padding: 10px 8px 20px; align-content: flex-start;
}
.slot {
  width: calc(33.33% - 10px); margin: 5px; padding: 9px 0 8px;
  background: #fff; border-radius: 8px; text-align: center;
}
.slot__text { font-size: 13px; font-weight: 600; color: #1F2329; }
.slot__btn {
  margin-top: 6px; padding: 3px 20px; border: 0; cursor: pointer;
  background: #2F7DE4; color: #fff; font-size: 11px; border-radius: 999px;
}
.slot-disabled .slot__text { color: #C9CDD4; font-weight: 400; }
.slot__tag {
  display: inline-block; margin-top: 6px; padding: 3px 14px;
  background: #F0F1F3; color: #B4B9C0; font-size: 11px; border-radius: 999px;
}
.modal {
  width: 100%; background: #fff; border-radius: 14px; overflow: hidden;
  animation: modalIn .22s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.94); } }
.modal__title { font-size: 16px; font-weight: 700; text-align: center; padding: 18px 16px 6px; }
.modal__body { padding: 8px 16px 14px; max-height: 400px; overflow-y: auto; }
.modal__foot { display: flex; border-top: 1px solid var(--line); }
.modal__btn {
  flex: 1; text-align: center; padding: 14px; font-size: 15px;
  cursor: pointer; background: none; border: none; font-family: inherit; color: var(--t1);
}
.modal__btn.primary { color: var(--blue); font-weight: 700; }
.modal__btn + .modal__btn { border-left: 1px solid var(--line); }

.field { margin-bottom: 12px; }
.field__label { font-size: 12px; color: var(--t2); margin-bottom: 5px; }
.field__input {
  width: 100%; height: 40px; border-radius: 8px; border: 1px solid var(--line-2);
  padding: 0 11px; font-size: 14px; outline: none; font-family: inherit;
  background: #fff; color: var(--t1);
}
.field__input:focus { border-color: var(--blue); }
textarea.field__input { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.field__row { display: flex; gap: 8px; }
.field__row > * { flex: 1; min-width: 0; }

/* 演示提示条 */
.demo-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px;
  display: flex; align-items: center; gap: 9px;
  background: rgba(28,32,40,.9); color: #fff;
  padding: 8px 15px; border-radius: 22px; font-size: 12px; z-index: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.demo-bar button {
  background: rgba(255,255,255,.16); border: none; color: #fff;
  border-radius: 12px; padding: 3px 10px; font-size: 12px;
  cursor: pointer; font-family: inherit;
}
.demo-bar button:hover { background: rgba(255,255,255,.28); }
@media (max-width: 480px), (max-height: 900px) { .demo-bar { bottom: 66px; } }

/* =========================================================================
 *  右侧悬浮客服栏（圆形：电话咨询 / 在线客服 / 回到顶部）
 * ========================================================================= */
.float-side {
  position: absolute; right: 10px; bottom: 96px; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none; transition: opacity .2s;
}
.float-side.hide { display: none; }
/* 圆形按钮：宽高由 config.float.size 通过内联样式控制 */
.float-btn {
  pointer-events: auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  width: 56px; height: 56px; padding: 0; border-radius: 50%;
  font-size: 11px; font-weight: 600; cursor: pointer; color: #fff;
  background: rgba(38, 38, 38, .82);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .12s;
}
.float-btn:active { transform: scale(.93); }
.float-btn--tel, .float-btn--chat { text-align: center; }
.float-btn--top {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.94); color: var(--t2);
  opacity: 0; visibility: hidden;
}
.float-btn--top.show { opacity: 1; visibility: visible; }
.float-ico { font-size: 18px; line-height: 1; }
.float-txt { white-space: nowrap; }
/* 后台换成图片图标时：圆形图片充满按钮 */
.float-img {
  width: 60%; height: 60%; border-radius: 50%;
  background-size: cover; background-position: center; background-color: #EDEFF2;
}

/* 后台内容管理：图片字段（左侧显示当前图片，右侧地址 + 更换/清除） */
.img-edit { display: flex; gap: 10px; align-items: flex-start; }
.img-edit__thumb {
  width: 72px; height: 54px; border-radius: 6px; object-fit: cover;
  background: #F2F4F7; border: 1px solid #EEF0F3; flex: none;
}
.img-edit__empty {
  width: 72px; height: 54px; border-radius: 6px; flex: none;
  background: #F7F8FA; border: 1px dashed #D8DEE7; color: #B0B6BF;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.img-edit__main { flex: 1; min-width: 0; }
.img-edit__ops { display: flex; gap: 6px; margin-top: 6px; }

/* 后台内容管理：悬浮按钮编辑行 */
.float-row { border: 1px solid #EEF0F3; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.float-row__head { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.float-row__ico { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #F2F4F7; }
.float-row__emoji {
  width: 26px; height: 26px; border-radius: 50%; background: #F2F4F7;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.float-row__name { font-weight: 600; }
.float-row__act { color: #8A94A6; margin-right: auto; }
.float-row__body { margin-top: 8px; border-top: 1px dashed #EEF0F3; padding-top: 8px; }

/* 后台弹窗：字符串列表逐行编辑（漏水情况选项 / 线索标签 / 线索标记） */
.sl-tip { font-size: 12px; color: #646A73; line-height: 1.6; margin-bottom: 10px; }
.sl-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sl-row__input {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px;
  border: 1px solid #E4E7EC; border-radius: 8px;
  font-size: 13px; background: #fff; color: #1F2329;
}
.sl-add {
  text-align: center; padding: 10px; margin-top: 2px;
  border: 1px dashed #C9D3E0; border-radius: 10px;
  color: #2F7DE4; font-size: 13px; background: #FAFCFF;
}

/* =========================================================================
 *  订单页增强：状态概览 / 时间线 / 更多操作
 * ========================================================================= */
.order-summary {
  display: flex; background: #fff; border-radius: var(--radius);
  margin: 12px 12px 0; padding: 12px 4px; box-shadow: var(--shadow);
}
.order-summary__item {
  flex: 1; text-align: center; cursor: pointer; position: relative;
}
.order-summary__num { font-size: 19px; font-weight: 800; line-height: 1.1; }
.order-summary__label { font-size: 11px; color: var(--t3); margin-top: 3px; }
.order-summary__item.active .order-summary__num { color: var(--blue); }
.order-summary__item.active .order-summary__label { color: var(--blue); }
.order-card__time {
  display: flex; justify-content: space-between; font-size: 11.5px;
  color: var(--t3); padding: 7px 12px 0;
}
.order-card__ops {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 10px 12px 0; border-top: 1px solid var(--line); margin-top: 10px;
}
.order-progress { display: flex; align-items: center; gap: 4px; padding: 10px 12px 0; }
.order-progress__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none;
}
.order-progress__dot.on { background: var(--green); }
.order-progress__line { flex: 1; height: 2px; background: var(--line); }
.order-progress__line.on { background: var(--green); }
.order-progress__txt { font-size: 11px; color: var(--t2); flex: none; }

/* =========================================================================
 *  个人中心增强：会员卡 / 数量角标 / 权益
 * ========================================================================= */
.profile-stats {
  display: flex; background: rgba(255,255,255,.16); border-radius: 12px;
  margin: 12px 12px 0; padding: 10px 0;
}
.profile-stats__item { flex: 1; text-align: center; cursor: pointer; }
.profile-stats__num { font-size: 18px; font-weight: 800; line-height: 1.1; }
.profile-stats__label { font-size: 11px; opacity: .85; margin-top: 2px; }
.profile-vip {
  margin: 12px 12px 0; padding: 10px 12px;
  background: linear-gradient(120deg, #FFF3D6 0%, #FFE6B0 100%);
  border-radius: 12px; display: flex; align-items: center; gap: 8px;
}
.profile-vip__icon { font-size: 20px; }
.profile-vip__txt { flex: 1; font-size: 12px; color: #8A5A0B; line-height: 1.5; }
.profile-vip__btn {
  background: #8A5A0B; color: #FFE9B8; font-size: 11px; font-weight: 700;
  border-radius: 12px; padding: 4px 10px; cursor: pointer; flex: none;
}
.grid-badge {
  position: absolute; top: 2px; right: 20%; min-width: 15px; height: 15px;
  padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff;
  font-size: 10px; line-height: 15px; text-align: center; font-weight: 700;
}
.order-grid__item { position: relative; }

/* =========================================================================
 *  分类页增强：搜索 / 横幅 / 服务卡片 / 热门问题
 * ========================================================================= */
.cat-search {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #D8E4FA; border-radius: 18px;
  height: 34px; padding: 0 12px;
  box-shadow: 0 2px 8px rgba(47, 125, 228, .06);
}
.cat-search__ico { font-size: 13px; opacity: .6; }
.cat-search__input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 12.5px; color: var(--t1); min-width: 0;
}
.cat-search__clear {
  width: 18px; height: 18px; border-radius: 50%; background: #C9CDD4;
  color: #fff; font-size: 11px; line-height: 18px; text-align: center; cursor: pointer;
}
.cat-title__sub { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--t3); }

.svc-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--radius); padding: 10px;
  margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer;
}
.svc-item:active { transform: scale(.99); }
.svc-item__img { width: 62px; height: 62px; border-radius: 8px; flex: none; }
/* 分类页卡片套用主类目 JPG 图：完整显示不裁边（同首页圆圈），白底融合 */
.svc-item__img.has-img {
  background-size: contain;
  background-color: #fff;
  background-repeat: no-repeat;
}
.svc-item__body { flex: 1; min-width: 0; }
.svc-item__name { font-size: 13.5px; font-weight: 700; }
.svc-item__desc {
  font-size: 11px; color: var(--t3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.svc-item__meta { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.svc-item__sold { font-size: 10.5px; color: var(--t3); }
.svc-item__right {
  flex: none; text-align: center;
  align-self: stretch;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between;
}
.svc-item__btn {
  background: var(--blue-grad); color: #fff;
  font-size: 11.5px; font-weight: 700; border-radius: 12px;
  padding: 4px 12px; cursor: pointer;
}
.svc-item__sold { margin-top: 6px; font-size: 10.5px; color: var(--t3); }
.cat-hot { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.cat-hot__item {
  background: #fff; border: 1px solid var(--line); color: var(--t2);
  font-size: 12px; border-radius: 14px; padding: 5px 12px; cursor: pointer;
}
.cat-hot__item:active { background: #EDF3FE; color: var(--blue); }

/* =========================================================================
 *  后台线索管理增强：日期筛选 / 新增线索 / 费用 / 合计行
 * ========================================================================= */
.admin-nav__act { min-width: 30px; text-align: right; }
.admin-nav__btn {
  display: inline-block; background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: 13px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer;
}
.admin-nav__btn:active { background: rgba(255,255,255,.28); }
.lead-item__cost { color: var(--red); font-weight: 700; }
.lead-sum {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  margin-top: 10px; padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(90deg,#EDF3FE,#F8FBFF);
  border: 1px solid #DCE8FB; font-size: 12.5px; color: var(--t2);
}
.lead-sum b { font-size: 17px; font-weight: 800; color: var(--t1); margin: 0 2px; }
.lead-sum b.money { color: var(--red); }
.form-tip {
  font-size: 11.5px; color: var(--t3); line-height: 1.6;
  background: #F6F8FB; border-radius: 8px; padding: 8px 10px; margin-top: 6px;
}

/* 评价配图：前台展示 + 后台编辑 */
.review-imgs .review-img { width:74px; height:74px; border-radius:7px; object-fit:cover; cursor:pointer; }
.imgs-edit { display:flex; flex-wrap:wrap; gap:8px; min-height:34px; }
.imgs-edit__item { position:relative; width:62px; height:62px; border-radius:6px; overflow:hidden; cursor:pointer; }
.imgs-edit__item img { width:100%; height:100%; object-fit:cover; display:block; }
.imgs-edit__item i { position:absolute; right:0; top:0; width:18px; height:18px; line-height:18px;
  text-align:center; background:rgba(0,0,0,.55); color:#fff; font-style:normal; font-size:13px; border-radius:0 0 0 6px; }

/* =========================================================================
 *  分类落地页（除防水补漏外，各分类服务详情页）
 *  主题色通过根节点内联 --lpc（主色）/ --lpcd（深色）注入
 * ========================================================================= */
/* 底部留白给 ActionBar（页面滚动容器 .page__scroll 内，ActionBar 在下方常驻） */
.lp { padding-bottom: 14px; }
.lp-hero { position: relative; }
.lp-hero img { width: 100%; display: block; aspect-ratio: 750 / 452; object-fit: cover; }
.lp-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06) 30%, rgba(0,0,0,.46) 78%, rgba(0,0,0,.58) 100%);
}
.lp-hero__text { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.lp-hero__tag {
  display: inline-block; padding: 2px 10px; margin-bottom: 6px;
  border-radius: 11px; background: var(--lpc); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
}
.lp-hero__slogan { font-size: 19px; font-weight: 800; line-height: 1.35; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.lp-hero__sub { font-size: 12px; opacity: .92; margin-top: 4px; }
.lp-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 12px 12px 2px;
}
.lp-chip {
  padding: 4px 11px; border-radius: 13px;
  background: color-mix(in srgb, var(--lpc) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--lpc) 32%, #fff);
  color: var(--lpcd); font-size: 11.5px; font-weight: 600;
}
.lp-card {
  background: #fff; border-radius: 12px; margin: 12px 12px 0;
  padding: 12px 12px 13px; box-shadow: var(--shadow);
}
.lp-card__head {
  display: flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 800; color: var(--t1); margin-bottom: 10px;
}
.lp-card__head i {
  width: 4px; height: 15px; border-radius: 2px; background: var(--lpc); flex: none;
}
.lp-card__more { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--t3); cursor: pointer; }
/* 服务一览长图（服务项目文字列表已删，改为整张详情长图） */
.lp-svcs-img { width: 100%; display: block; border-radius: 10px; }
/* 整页自定义图（c2 家电维修）：通栏无缝拼排 */
.lp-custom-img { display: block; width: 100%; }
.lp-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lp-feat { text-align: center; padding: 8px 2px; border-radius: 10px; background: #F7F9FC; }
.lp-feat__icon { font-size: 21px; line-height: 1.2; }
.lp-feat__t { font-size: 12px; font-weight: 700; color: var(--t1); margin-top: 4px; }
.lp-feat__d { font-size: 10px; color: var(--t3); margin-top: 2px; line-height: 1.4; }
.lp-steps { display: flex; flex-wrap: wrap; }
.lp-step {
  width: 33.33%; display: flex; align-items: center; gap: 6px;
  padding: 7px 0; box-sizing: border-box; padding-right: 4px;
}
.lp-step__no {
  width: 19px; height: 19px; border-radius: 50%; flex: none;
  background: var(--lpc); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lp-step__text { font-size: 12px; color: var(--t2); font-weight: 500; }
.lp-faq { padding: 9px 0; border-bottom: 1px solid #F1F3F6; }
.lp-faq:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-faq__q { font-size: 13px; font-weight: 700; color: var(--t1); line-height: 1.5; }
.lp-faq__a { font-size: 12px; color: var(--t2); line-height: 1.6; margin-top: 4px; }
