/* 它归处 H5 · 全局样式
 * 配色取自 Logo：暖金主色 + 深暖褐墨 + 米白卡片底，手机端优先。
 * 所有页面共用这份表，改主题只改 :root 变量。 */

:root {
  --ink: #2b2118;
  --ink-2: #34291d;
  --ink-3: #5c4a37;
  --gold: #c0954b;
  --gold-lt: #d9b978;
  --gold-dim: rgba(217, 185, 120, 0.45);
  --cream: #f7eeda;
  --paper: #fbf6ec;
  --card: #ffffff;
  --line: #ece5da;
  --muted: #8c7a66;
  --text: #2a2114;
  --red: #c2543f;
  --green: #2f6d5b;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 4px 18px rgba(52,41,29,0.07);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: calc(20px + var(--safe-b)); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* 手机端居中，桌面预览时收成一条 */
.wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--paper);
  overflow-x: hidden;
}

/* ============ 顶部深色品牌区 ============ */
.hero {
  background: linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 62%, #443528 100%);
  color: #fff;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 26px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* 星空点点，呼应 LOGO */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 62% 32%, rgba(217,185,120,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 44%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,.3) 50%, transparent 51%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-top { display: flex; align-items: center; gap: 12px; }
.hero-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: #2b2118;
  object-fit: cover;
  flex: none;
  border: 1px solid rgba(217,185,120,.35);
}
.hero-brand { flex: 1; min-width: 0; }
.hero-brand .nm { font-size: 17px; font-weight: 700; letter-spacing: 2px; color: var(--gold-lt); }
.hero-brand .en { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: 1px; }
.hero-phone {
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 13px;
}

.hero-title {
  margin: 18px 0 8px;
  font-size: 26px; line-height: 1.35; font-weight: 700;
  color: var(--gold-lt);
  white-space: pre-line;
  letter-spacing: 1px;
}
.hero-sub { font-size: 13px; color: rgba(255,255,255,.72); }
.hero-scope { font-size: 12px; color: rgba(217,185,120,.85); margin-top: 4px; }

.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn-gold, .btn-ghost {
  flex: 1; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; font-weight: 600;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #24190a;
  box-shadow: 0 6px 16px rgba(192,149,75,.28);
}
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
/* 第三个按钮独占一行，宽度等于上面两个加起来 */
.btn-full { flex: 0 0 100%; width: 100%; }

/* 数据指标 */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 18px; gap: 4px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
}
.metrics .m { text-align: center; }
.metrics .n { font-size: 16px; font-weight: 700; color: var(--gold-lt); }
.metrics .t { font-size: 11px; color: rgba(255,255,255,.55); }

/* ============ 通用卡片 ============ */
.section { padding: 0 14px; margin-top: 14px; }
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card-t {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.card-t h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.card-t .sub { font-size: 12px; color: var(--muted); }
.sect-label { font-size: 12px; color: var(--muted); margin: 18px 0 8px 4px; letter-spacing: .5px; }
/* 服务覆盖标题可点击：点一下强制拉最新城市文案（不整页重载、不触发定位） */
#coverageLabel { cursor: pointer; user-select: none; -webkit-user-select: none; }
#coverageLabel:active { opacity: .65; }
.sect-refresh { font-size: 11px; color: var(--gold); margin-left: 8px; }

/* ============ 服务覆盖城市 ============ */
.city-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}
.city-chip.on {
  background: var(--ink); border-color: var(--ink); color: var(--gold-lt);
}
.city-chip .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}
.city-chip.on .dot { background: var(--gold-lt); }
/* 「其他城市」：虚线边、金色字，一眼看出是可点的入口而不是某个已开通城市 */
.city-chip.other {
  background: transparent; border-style: dashed; border-color: var(--gold);
  color: var(--gold); cursor: pointer;
}
.city-chip.other .more { font-size: 12px; }

/* ============ 服务商选择（同城多家） ============ */
.provider-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.prov-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3); cursor: pointer;
}
.prov-chip .pc-nm { font-weight: 600; color: var(--ink); }
.prov-chip .pc-tag { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #f3efe6; color: var(--muted); }
.prov-chip.on { border-color: var(--gold); background: #fffcF5; }
.prov-chip.on .pc-tag { background: var(--gold); color: #fff; }
.prov-tip { font-size: 12px; color: var(--muted); margin: -2px 0 10px 4px; line-height: 1.5; }

/* ============ 服务商价目表（模式B） ============ */
.pricelist-img {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #fbf6ec;
}
.pricelist-img img {
  width: 100%;
  height: auto;
  display: block;
}
.pricelist-pdf {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #24190a; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(192,149,75,.28);
  margin-bottom: 10px;
}

/* 当前城市条 */
.addr-card { display: flex; align-items: center; gap: 10px; }
.addr-ic {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #f3ead8, #e8dcc2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 17px;
}
.addr-main { flex: 1; min-width: 0; }
.addr-main .l1 { font-size: 15px; font-weight: 600; }
.addr-main .l2 { font-size: 12px; color: var(--muted); }
.addr-main .l3 { font-size: 12px; color: var(--gold); margin-top: 2px; }
.addr-go { color: #c9c2b6; font-size: 18px; }
/* 模糊定位按钮：放在城市卡里，点它不会弹省市区选择器（js 里 stopPropagation） */
.addr-loc {
  flex: none; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink-3); font-size: 12px; line-height: 1.2;
  font-family: inherit;
}
.addr-loc:disabled { opacity: .55; }

/* ============ 套餐卡 ============ */
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
  position: relative;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.plan.on { border-color: var(--gold); background: #fffcF5; }
.plan-hd { display: flex; align-items: flex-start; gap: 10px; }
.radio {
  width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 3px;
  border: 1.5px solid #cfc7b8; position: relative;
}
.plan.on .radio { border-color: var(--gold); }
.plan.on .radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--gold);
}
.plan-nm { flex: 1; min-width: 0; }
.plan-nm .n { font-size: 15px; font-weight: 700; }
.plan-nm .badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 10px; border-radius: 4px;
  background: rgba(192,84,63,.1); color: var(--red); font-weight: 500;
}
.plan-nm .d { font-size: 12px; color: var(--muted); margin-top: 3px; }
.plan-price { flex: none; font-size: 17px; font-weight: 700; color: var(--red); }

.plan-toggle {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--gold);
  background: #faf6ee; border-radius: 8px; padding: 6px 10px;
}
.plan-items { margin: 8px 0 0; padding: 0 0 0 2px; list-style: none; }
.plan-items li {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.9;
  padding-left: 12px; position: relative;
}
.plan-items li::before {
  content: "·"; position: absolute; left: 2px; color: var(--gold); font-weight: 700;
}

/* ============ 价目表 ============ */
.price-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-tbl th, .price-tbl td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.price-tbl th { color: var(--muted); font-weight: 500; font-size: 12px; }
.price-tbl td:first-child, .price-tbl th:first-child { text-align: left; color: var(--ink-3); }
.price-tbl .hot { color: var(--red); font-weight: 600; }
.price-tbl tr.cur td { background: #fffaf0; }

/* ============ 表单 ============ */
.field {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.field:last-child { border-bottom: none; }
.field > .lb { width: 76px; flex: none; font-size: 14px; color: var(--ink-3); }
.field > .ct { flex: 1; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--text); font-family: inherit;
  padding: 0;
}
.field input::placeholder, .field textarea::placeholder { color: #c3bcae; }
.field textarea { resize: none; line-height: 1.6; min-height: 44px; }
.field .unit { font-size: 13px; color: var(--muted); }
.field.pick .ct { display: flex; align-items: center; justify-content: space-between; }
.field.pick .v { font-size: 15px; }
.field.pick .arrow { color: #cfc7b8; }

/* 分段选择（宠物类型 / 体重档） */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-i {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-3);
}
.seg-i.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 套餐外服务 */
.addon {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.addon:last-child { border-bottom: none; }
.addon .cb {
  width: 19px; height: 19px; border-radius: 5px; flex: none;
  border: 1.5px solid #cfc7b8; position: relative;
}
.addon.on .cb { background: var(--gold); border-color: var(--gold); }
.addon.on .cb::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.addon .nm { flex: 1; min-width: 0; font-size: 14px; }
.addon .pr { flex: none; font-size: 13px; color: var(--red); }
.addon .pr .from { color: var(--muted); }

/* ============ 底部结算栏 ============ */
.paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + var(--safe-b));
  display: flex; align-items: center; gap: 12px;
}
.paybar .sum { flex: 1; min-width: 0; }
.paybar .sum .t { font-size: 11px; color: var(--muted); }
.paybar .sum .v { font-size: 21px; font-weight: 700; color: var(--red); line-height: 1.2; }
.paybar .sum .v small { font-size: 13px; font-weight: 500; }
.paybar .go {
  flex: none; height: 44px; padding: 0 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #24190a; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.paybar .go[disabled] { opacity: .5; }
.paybar-in { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.paybar { padding-left: 0; padding-right: 0; }
.paybar > .paybar-in { padding: 0 14px; width: 100%; }
.has-bar { padding-bottom: calc(78px + var(--safe-b)); }

/* ============ 遮罩弹层（省市区 / 通用弹窗） ============ */
.mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(36,27,20,.45);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 480px; margin: 0 auto;
  background: #fff; border-radius: 18px 18px 0 0;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.3,.8,.4,1);
  max-height: 76vh; display: flex; flex-direction: column;
}
.mask.on .sheet { transform: translateY(0); }

/* 确认弹窗（ui.js confirmBox/alertBox）：居中卡片 + 缩放进出，与小程序 gx-modal 同形态。
 * 全局 .mask 是底部上滑的 sheet 形态（省市区选择器等在用），这里用后缀类覆盖。 */
.mask-confirm { align-items: center; justify-content: center; padding: 0 28px; }
.mask-confirm .sheet {
  border-radius: 18px;
  transform: scale(.9); opacity: 0;
  transition: transform .2s cubic-bezier(.2,.9,.3,1.18), opacity .18s;
}
.mask-confirm.on .sheet { transform: scale(1); opacity: 1; }

/* 弹窗按钮：白底卡片内使用（hero 深色区的 .btn-ghost 在这里不适用） */
.dlg-btn {
  flex: 1; height: 44px; border-radius: 999px; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.dlg-no { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.dlg-yes {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #24190a;
  box-shadow: 0 6px 16px rgba(192,149,75,.28);
}
.dlg-yes-danger { background: #fff; border: 1px solid var(--red); color: var(--red); }
.sheet-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none;
}
.sheet-hd .t { font-size: 15px; font-weight: 700; }
.sheet-hd .ok { color: var(--gold); font-size: 15px; font-weight: 600; }
.sheet-hd .x { color: var(--muted); font-size: 15px; }
.sheet-bd { overflow: hidden; flex: 1; }

/* 省市区三列滚动选择 */
.cols { display: flex; height: 240px; }
.col { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; position: relative; }
.col::-webkit-scrollbar { display: none; }
.col-i {
  padding: 11px 6px; text-align: center; font-size: 14px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.col-i.on { color: var(--gold); font-weight: 700; background: #fffaf0; }
.col-hl {
  position: absolute; left: 0; right: 0; top: 50%; height: 40px;
  transform: translateY(-50%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  pointer-events: none;
}

/* 体重档弹层列表 */
.opt-list { max-height: 60vh; overflow-y: auto; }
.opt {
  padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.opt.on { color: var(--gold); font-weight: 700; background: #fffaf0; }

/* ============ 状态标签 / 时间轴 ============ */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: 11px; line-height: 1.6;
}
.tag-pending { background: #fff4e5; color: #b5762a; }
.tag-accepted,
.tag-picked,
.tag-cremating { background: #e8f3ef; color: var(--green); }
.tag-completed { background: #eef1f4; color: var(--ink-3); }
.tag-closed { background: #f1efec; color: var(--muted); }
.tag-offline { background: #faf6ee; color: #b5762a; }

.steps { position: relative; padding-left: 4px; }
.step { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.step:last-child { padding-bottom: 0; }
.step .pt { flex: none; width: 18px; display: flex; justify-content: center; position: relative; }
.step .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 4px; z-index: 1;
}
.step.off .dot { background: #fff; border: 1.5px solid #d6cec0; }
.step .ln { position: absolute; left: 8.5px; top: 12px; bottom: -6px; width: 1px; background: var(--line); }
.step:last-child .ln { display: none; }
.step .tx .t { font-size: 13.5px; font-weight: 600; }
.step .tx .d { font-size: 12px; color: var(--muted); }

/* ============ 客服联系条 ============ */
.contact-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fffaf0, #fdf6e9);
  border: 1px solid #f0e6d2;
}
.contact-bar .ic {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.contact-bar .tx { flex: 1; min-width: 0; }
.contact-bar .tx .l { font-size: 12px; color: var(--muted); }
.contact-bar .tx .p { font-size: 17px; font-weight: 700; color: var(--gold); letter-spacing: .5px; }
.contact-bar .call {
  flex: none; padding: 7px 16px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: 14px; font-weight: 600;
}

.banner {
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  background: #f7f3ea; color: var(--ink-3); font-size: 12.5px; line-height: 1.6;
}
.banner.warn { background: #fdf1e3; color: #9a6520; }

/* ============ 提示 / 加载 ============ */
.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%);
  z-index: 90; max-width: 78%;
  background: rgba(43,33,24,.92); color: #fff;
  padding: 11px 18px; border-radius: 10px; font-size: 14px;
  text-align: center; line-height: 1.5;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.on { opacity: 1; }

.loading {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.4);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.loading.on { opacity: 1; pointer-events: auto; }
.spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(192,149,75,.25); border-top-color: var(--gold);
  animation: sp .8s linear infinite;
  background: #fff;
}
@keyframes sp { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); font-size: 13.5px; }
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: .35; }

/* ============ 底部导航（首页/预约/进度共用） ============ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar-in { max-width: 480px; margin: 0 auto; display: flex; }
.tab {
  flex: 1; padding: 8px 0 7px; text-align: center; font-size: 11px; color: var(--muted);
}
.tab .ic { font-size: 19px; line-height: 1.3; }
.tab.on { color: var(--gold); font-weight: 600; }
body.has-tab { padding-bottom: calc(58px + var(--safe-b)); }
body.has-tab.has-bar { padding-bottom: calc(128px + var(--safe-b)); }

/* 顶部返回条（内页） */
.navbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  display: flex; align-items: center; gap: 10px;
}
.navbar .back { font-size: 20px; color: var(--ink-3); width: 26px; }
.navbar .tt { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.navbar .rr { width: 26px; }

/* 成功页 */
.done-hero { text-align: center; padding: 40px 20px 26px; }
.done-ic {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #fff; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(192,149,75,.3);
}
.done-t { font-size: 19px; font-weight: 700; }
.done-d { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.7; }

/* 演示模式角标 */
.demo-tag {
  position: fixed; right: 10px; bottom: calc(70px + var(--safe-b)); z-index: 50;
  background: rgba(43,33,24,.82); color: #ffd88a;
  font-size: 11px; padding: 4px 9px; border-radius: 999px;
}

/* ---------------- 我的 ---------------- */
.me-head { background: var(--ink); padding: 16px 14px 18px; }
.me-user { display: flex; align-items: center; gap: 12px; }
.me-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; flex: none;
}
.me-info { flex: 1; min-width: 0; }
.me-info .nm { color: #fff; font-size: 16px; font-weight: 700; }
.me-info .ph { color: var(--gold-lt); font-size: 12.5px; margin-top: 3px; }
.me-edit {
  flex: none; color: rgba(255,255,255,.72); font-size: 12.5px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 5px 12px;
}
.me-stat {
  display: flex; gap: 8px; margin-top: 14px;
  background: rgba(255,255,255,.07); border-radius: 12px; padding: 11px 6px;
}
.me-stat .s { flex: 1; text-align: center; }
.me-stat .n { color: #fff; font-size: 19px; font-weight: 700; }
.me-stat .t { color: rgba(255,255,255,.5); font-size: 11px; margin-top: 2px; }

.me-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.me-item:last-child { border-bottom: 0; }
.me-item .ic {
  width: 30px; height: 30px; border-radius: 9px; background: var(--cream);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex: none;
}
.me-item .tx { flex: 1; min-width: 0; }
.me-item .t { font-size: 14.5px; font-weight: 600; color: var(--text); }
.me-item .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.me-item .go { flex: none; color: #c9c2b6; font-size: 19px; }
.me-item .badge {
  display: inline-block; background: var(--gold); color: #fff; font-size: 10.5px;
  border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: 1px;
}

.me-line {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.me-line:last-child { border-bottom: 0; }
.me-line .l { font-size: 13.5px; color: var(--muted); }
.me-line .r { font-size: 15px; font-weight: 700; color: var(--gold); }

.fold { border-bottom: 1px solid var(--line); }
.fold:last-child { border-bottom: 0; }
.fold > summary {
  padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--text);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 16px; }
.fold[open] > summary::after { content: '-'; }
.fold .bd { font-size: 13px; color: var(--ink-3); line-height: 1.75; padding: 0 0 14px; }
.fold .bd p { margin: 0 0 8px; }

/* 表单页（资料 / 入驻） */
.form-card { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 13px; color: var(--ink-3); background: var(--card);
}
.chip.on { border-color: var(--gold); background: #fffcf5; color: var(--gold); font-weight: 600; }
.save-bar { padding: 0 14px; margin-top: 16px; }

/* 隐藏工具类 */
.hide { display: none !important; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.red { color: var(--red); }

/* ---- 自动刷新状态条（进度页） ---- */
.refresh-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; margin: 0 0 10px;
  font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  border-radius: 10px;
}
.refresh-bar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #b9b3aa; flex: none;
}
.refresh-bar.on .dot { background: #3fae6a; animation: rbPulse 1.8s ease-in-out infinite; }
.refresh-bar .tx { color: var(--ink-3); }
.refresh-bar.on .tx { color: #2f8a55; }
.refresh-bar .at { margin-left: auto; font-variant-numeric: tabular-nums; }
@keyframes rbPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.8); }
}

/* 订单卡片发生变化时闪一下，用户才知道是哪张变了 */
.ord.flash { animation: ordFlash 1.6s ease-out; }
@keyframes ordFlash {
  0%   { box-shadow: 0 0 0 0 rgba(192,149,75,.55); background: #fffaf0; }
  35%  { box-shadow: 0 0 0 4px rgba(192,149,75,.18); background: #fffaf0; }
  100% { box-shadow: 0 0 0 0 rgba(192,149,75,0); background: #fff; }
}

/* ============================================================
   服务商工作台（staff-login.html / staff.html）
   仅服务商使用，视觉沿用客户端的深藏蓝 + 米金，但信息密度更高
   ============================================================ */

.nav-act {
  background: none; border: 0; padding: 0; font-size: 13px;
  color: var(--ink-3); font-family: inherit;
}

/* ---------- 登录页 ---------- */
.staff-brand {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.sb-logo {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  object-fit: contain;
}
.sb-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.sb-d { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ---------- 工作台头部 ---------- */
.staff-head {
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: var(--radius-lg); padding: 16px 16px 14px;
  box-shadow: 0 8px 24px rgba(52,41,29,.18);
}
.sh-row { display: flex; align-items: center; gap: 12px; }
.sh-av {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: rgba(217, 185, 120, .16); border: 1px solid rgba(217, 185, 120, .35);
  color: var(--gold-lt); font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sh-info { min-width: 0; }
.sh-n { color: #fff; font-size: 16px; font-weight: 700; }
.sh-d { color: rgba(255,255,255,.55); font-size: 12px; margin-top: 3px; }

/* ---------- 刷新状态条 ---------- */
.refresh-bar {
  display: flex; align-items: center; gap: 7px;
  margin: 10px 14px 0; padding: 8px 12px;
  background: #f3f8f5; border-radius: 10px;
  font-size: 12px; color: var(--green);
}
.refresh-bar.bad { background: #fdf1e3; color: #9a6520; }
.refresh-bar .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
}
.rb-btn {
  margin-left: auto; background: none; border: 0; padding: 2px 0 2px 10px;
  font-size: 12px; color: inherit; font-family: inherit; text-decoration: underline;
}

/* ---------- 订单卡 ---------- */
.oc {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
}
.oc-top { display: flex; align-items: center; gap: 8px; }
.oc-no { font-size: 12px; color: var(--muted); letter-spacing: .3px; flex: 1; }
.oc-main { position: relative; margin-top: 9px; padding-right: 78px; }
.oc-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.oc-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.65; margin-top: 4px; }
.oc-money {
  position: absolute; right: 0; top: 0;
  font-size: 16px; font-weight: 700; color: var(--gold);
}
.oc-note {
  margin-top: 9px; padding: 8px 10px; border-radius: 9px;
  background: #fbf6ec; font-size: 12.5px; color: var(--ink-3); line-height: 1.6;
}
.oc-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line);
}
.oc-contact { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-3); }
.oc-tel { color: var(--gold); font-weight: 600; text-decoration: none; }
.oc-stamp { font-size: 11.5px; color: var(--muted); }
.oc-btn { flex: none; padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.oc-btn[disabled] { opacity: .55; }

.staff-body .section { padding: 0 14px; }
.staff-body .chips { margin-top: 0; }

/* ============ 工作台 · 本城价格 ============ */
.wk-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 13px 15px; text-decoration: none;
}
.wk-link-l { flex: 1; min-width: 0; }
.wk-link-l b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.wk-link-l em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.wk-arrow { flex: none; font-size: 20px; color: var(--gold); line-height: 1; }

.pr-h-top { display: flex; align-items: flex-start; gap: 10px; }
.pr-h-city { font-size: 17px; font-weight: 700; color: var(--ink); }
.pr-h-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.pr-badge {
  margin-left: auto; flex: none; font-size: 11.5px; padding: 4px 9px;
  border-radius: 999px; background: #f3ead8; color: #8a6d2f;
}
.pr-badge.def { background: #eef2f0; color: #4a6b60; }
.pr-h-foot {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); line-height: 1.6;
}

.pr-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pr-row:last-child { border-bottom: none; }
.pr-lb { flex: 1; font-size: 13.5px; color: var(--ink-3); }
.pr-lb.over { color: var(--gold); font-weight: 600; }
.pr-in { flex: none; width: 106px; }
.pr-i {
  width: 100%; height: 38px; text-align: right; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; font-weight: 600; color: var(--ink); background: #fff;
  font-variant-numeric: tabular-nums;
}
.pr-i:focus { border-color: var(--gold); outline: none; background: #fffdf8; }
.pr-i.bad { border-color: var(--red); background: #fffaf9; }
.pr-i-sm { width: 76px; }
.pr-over {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0 2px; border-top: 1px solid var(--line); margin-top: 6px;
}
.pr-o-l { flex: 1; font-size: 13px; color: var(--ink-3); }
.pr-o-r { display: inline-flex; align-items: center; gap: 6px; }
.pr-o-r em { font-style: normal; font-size: 13px; color: var(--muted); }

.pr-addon { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pr-addon:last-child { border-bottom: none; }
.pr-a-n { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.pr-a-tag {
  margin-left: 6px; font-size: 10.5px; color: var(--gold);
  border: 1px solid var(--gold-dim); border-radius: 4px; padding: 0 4px;
}
.pr-add {
  width: 100%; margin-top: 10px; height: 40px; border-radius: 10px;
  border: 1px dashed var(--gold-dim); background: #fffdf8;
  color: var(--gold); font-size: 13.5px;
}
.pr-add.danger { border-color: #e8d3cd; color: var(--red); background: #fffaf9; }
.pr-del {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #faf6ee; color: var(--muted); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

.pt-sec { margin-bottom: 12px; }
.pt-l { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 5px; }
.pt-l2 { font-size: 12px; color: var(--muted); margin: 14px 0 2px; }
.pt-i {
  width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13.5px; color: var(--ink); background: #fff;
}
.pt-i:focus { border-color: var(--gold); outline: none; background: #fffdf8; }
.pt-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.pt-n { width: 16px; flex: none; font-size: 11px; color: var(--muted); text-align: center; }
.pt-tag { font-size: 11px; color: var(--gold); }

.pr-err {
  margin: 12px 14px 0; padding: 10px 12px; border-radius: 10px;
  background: #fdf2ef; color: var(--red); font-size: 12.5px; line-height: 1.6;
}
.pr-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + var(--safe-b));
}
.pr-bar-in { display: flex; align-items: center; gap: 10px; }
.pr-bar-t { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.4; }
.pr-bar-t.dirty { color: var(--gold); font-weight: 600; }
.pr-save { flex: none; width: 116px; height: 42px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.pr-save[disabled] { opacity: .5; }

/* ============ 预约页 · 自定义服务单 ============ */
.opt.plain {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 2px 0 12px; border-bottom: 1px solid var(--line);
}
.opt.plain .opt-body { flex: 1; min-width: 0; }
.opt.plain .opt-body .b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.opt.plain .opt-body .s { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
/* 选中态：单选圆圈高亮。
   套餐卡片选中圆圈的规则写的是 .plan.on .radio / .plan.on .radio::after（见上方套餐区），
   自定义服务这一行是 .opt.plain，不在 .plan 选择器覆盖范围内，
   不补这段规则就会出现「点了有反应、圆圈不变色」。底色与 .plan.on 保持一致。 */
.opt.plain.on { background: #fffcF5; }
.opt.plain.on .radio { border-color: var(--gold); }
.opt.plain.on .radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--gold);
}

/* 自送：方框勾选，样式与套餐外服务一致 */
.opt.square {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.opt.square .cb {
  width: 19px; height: 19px; border-radius: 5px; flex: none;
  border: 1.5px solid #cfc7b8; position: relative;
}
.opt.square.on .cb { background: var(--gold); border-color: var(--gold); }
.opt.square.on .cb::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.opt.square .nm { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.opt.square.on .nm { color: var(--ink); font-weight: 500; }

/* 自定义单的服务需求描述 */
.field.col > .lb { width: auto; }
.field .req { font-style: normal; font-size: 11px; color: var(--red); margin-left: 4px; }
.custom-tip {
  font-size: 12px; color: #8a6a2c; line-height: 1.6;
  background: #fdf6e8; border-radius: 10px; padding: 9px 11px; margin: 4px 0 10px;
}

/* 自定义服务单：客户填写协商价格（查进度页，与小程序订单详情页同款交互） */
.price-row {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 0 12px;
}
.price-row .pr-label { flex: none; font-size: 14px; color: var(--ink); }
.price-row .pr-input {
  flex: 1; min-width: 0; background: #fbf6ec; border-radius: 10px;
  padding: 10px 12px; font-size: 20px; font-weight: 700; color: var(--text);
  font-family: "Songti SC", "STSong", serif;
}
.price-row .pr-input:disabled { opacity: .6; }
.price-row .pr-unit { flex: none; font-size: 13px; color: var(--muted); }
.price-tip {
  font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 12px;
}

/* 自定义单的底栏：没有固定金额，只说清楚价格怎么定 */
.paybar .sum.single .t { font-size: 13px; color: #8a6a2c; line-height: 1.5; }
.paybar .sum.single .v { display: none; }

/* 协商价格填写弹窗（price-prompt.js）：居中卡片 + 金额输入，暂不填写/提交 */
.pp-box { max-width: 340px; }
.pp-title {
  font-size: 15.5px; font-weight: 700; text-align: center;
  color: var(--text); line-height: 1.55;
}
.pp-sub { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.pp-row {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.pp-row:focus-within { border-color: var(--gold); }
.pp-input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 17px; font-weight: 700; color: var(--text);
}
.pp-unit { font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.pp-tip {
  margin-top: 12px; font-size: 11.5px; color: var(--muted);
  line-height: 1.7; text-align: center;
}
.pp-btns { display: flex; gap: 10px; margin-top: 18px; }

/* ---------------- 它们的家长说（只放审核通过的评价） ---------------- */
.rv-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rv-item:first-child { padding-top: 4px; }
.rv-item:last-child { border-bottom: none; padding-bottom: 4px; }
.rv-hd { display: flex; align-items: center; gap: 10px; }
.rv-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4ece0;
  color: #a08a63;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex: none;
}
.rv-nm { font-size: 14px; font-weight: 600; color: #2b2118; }
.rv-mt { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.rv-tx { font-size: 13.5px; line-height: 1.85; color: #5c4a37; margin-top: 8px; white-space: pre-wrap; }
.rv-img { width: 100%; border-radius: 10px; margin-top: 10px; display: block; background: #f5ebdb; }

/* 订单评价填写（已完成订单才出现） */
.rv-done { font-size: 12.5px; color: #a08a63; margin-bottom: 8px; }
.rv-input {
  width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #2b2118;
  background: #fbf6ec;
  font-family: inherit;
  resize: vertical;
}
.rv-tools { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 12px; }
.rv-pick {
  font-size: 12.5px;
  color: #a08a63;
  border: 1px dashed #d9c9a8;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.rv-file { display: none; }
.rv-thumb { position: relative; width: 74px; height: 74px; border-radius: 10px; overflow: hidden; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-del {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  line-height: 20px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 15px;
  border-bottom-left-radius: 10px;
}
.rv-count { font-size: 11.5px; color: var(--muted); margin-left: auto; }

/* 工作台评价状态标签 */
.rv-st { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; flex: none; }
.rv-st.pending { background: #f3e6c9; color: #8a6a2c; }
.rv-st.approved { background: #e6f0e2; color: #4d7a3a; }
.rv-st.hidden { background: #eee9e1; color: #8c7a66; }


/* ---------- 备案号页脚（工信部要求：备案域名对外提供服务的页面需标注并链接） ---------- */
.icp-foot {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #a3927e;
  padding: 10px 0 22px;
}
.icp-foot a { color: #a3927e; text-decoration: none; }
/* 申领页底部有固定按钮，页脚要抬到按钮上方 */
.urn-body .icp-foot { padding-bottom: 140px; }
