* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #eef1f4; color: #222;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; /* 微信里调大字体时不让布局错乱 */
}

/* 应用容器：手机上铺满全屏；电脑/平板上居中显示一列手机宽度，不放手机外壳 */
.app {
  position: relative;
  width: 100%; max-width: 480px; margin: 0 auto;
  height: 100vh; height: 100dvh;
  background: #f5f6f8;
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 481px) {
  .app { box-shadow: 0 0 24px rgba(0,0,0,.08); }
}
.screen { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-top: env(safe-area-inset-top); }
.loading { padding: 60px 0; text-align: center; color: #999; }

/* tabbar */
.tabbar { flex: none; height: 54px; background: #fff; border-top: 1px solid #e6e6e6; display: flex; }
.tabbar div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; color: #888; cursor: pointer; }
.tabbar div.on { color: #1a9e5c; font-weight: 600; }
.tabbar span { font-size: 18px; line-height: 1.2; }
/* 2026-11-06 加：底部「工作台」的待确认接单红点；tab 可用键盘聚焦 */
.tabbar span { position: relative; }
.tab-badge { position: absolute; top: -4px; left: 60%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e53935; color: #fff; font-size: 10px; font-style: normal; font-weight: 600; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.tabbar div:focus-visible { outline: 2px solid #1a9e5c; outline-offset: -4px; }

/* 通用块 */
.hero { background: linear-gradient(160deg, #21b06a, #128a4f); color: #fff; padding: 12px 12px 14px; }
.cityrow { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 8px; }
/* 2026-11-08：首页城市栏左侧小程序 logo */
.hero-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.cityrow select { background: rgba(255,255,255,.2); color: #fff; border: none; border-radius: 6px; padding: 2px 6px; font-size: 12px; }
.search { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 20px; padding: 7px 12px; color: #999; font-size: 12px; }
.card { background: #fff; border-radius: 10px; margin: 8px; padding: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.sec { font-size: 14px; font-weight: 600; padding: 12px 10px 4px; }
.grid { display: flex; flex-wrap: wrap; }
.grid div { width: 20%; text-align: center; padding: 10px 0; cursor: pointer; font-size: 10px; color: #444; }
.grid div em { display: block; font-size: 20px; font-style: normal; margin-bottom: 3px; }
.banner { border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; color: #fff; background: rgba(255,255,255,.16); }
.banner b { display: block; font-size: 13px; margin-bottom: 2px; }
.banner i { font-style: normal; font-size: 10px; opacity: .85; }
.tag { display: inline-block; font-size: 9px; border: 1px solid #ffb300; color: #ff8f00; border-radius: 4px; padding: 0 3px; margin-left: 4px; vertical-align: 1px; }
.entr { display: flex; gap: 8px; margin: 8px; }
.entr div { flex: 1; background: #fff; border-radius: 10px; padding: 9px 6px; text-align: center; cursor: pointer; }
.entr b { display: block; font-size: 12px; margin-bottom: 2px; }
.entr small { color: #999; font-size: 9px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 8px 8px; }
.chips::-webkit-scrollbar { display: none; }
.chips div { flex: none; background: #fff; border: 1px solid #e2e2e2; border-radius: 14px; padding: 4px 10px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.chips div.on { background: #1a9e5c; color: #fff; border-color: #1a9e5c; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f2f2f2; }
.row:last-child { border-bottom: none; }
.row b { display: block; font-size: 13px; font-weight: 500; }
.row p { color: #999; font-size: 10px; margin-top: 2px; }
.price { color: #e53935; font-weight: 600; white-space: nowrap; font-size: 13px; }
.price s { color: #bbb; font-weight: 400; font-size: 10px; margin-left: 4px; }
.btn { background: #1a9e5c; color: #fff; border: none; border-radius: 18px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
.btn.ghost { background: #fff; color: #1a9e5c; border: 1px solid #1a9e5c; }
.btn.big { width: 100%; padding: 12px; font-size: 15px; border-radius: 24px; }
.btn.mini { padding: 4px 10px; font-size: 11px; border-radius: 12px; }
.btn:disabled { background: #ccc; border-color: #ccc; color: #fff; cursor: not-allowed; }
.guar { display: flex; gap: 5px; flex-wrap: wrap; }
.guar span { background: #f0f7f3; color: #1a9e5c; font-size: 9px; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.back { color: #1a9e5c; font-size: 13px; padding: 12px 10px 0; cursor: pointer; }
.muted { color: #999; font-size: 11px; }
.empty { text-align: center; color: #aaa; padding: 40px 0; font-size: 13px; }

/* 左分类右列表 */
/* 2026-11-22 改：自适应高度，不写死像素，适配不同屏幕 */
.split { display: flex; height: calc(100vh - 54px - env(safe-area-inset-bottom)); }
.side { width: 82px; background: #fff; flex: none; overflow-y: auto; }
.side::-webkit-scrollbar { display: none; }
.side div { position: relative; padding: 10px 3px; text-align: center; font-size: 10px; color: #666; border-bottom: 1px solid #f4f4f4; cursor: pointer; line-height: 1.3; }
.side div span { display: block; font-size: 15px; margin-bottom: 2px; }
.side div.on { background: #f5f6f8; color: #1a9e5c; font-weight: 600; border-left: 3px solid #1a9e5c; }
.side div i.hot { position: absolute; top: 3px; right: 3px; font-style: normal; font-size: 8px; color: #fff; background: #ff5b3a; border-radius: 6px 6px 6px 0; padding: 0 3px; }
.mainlist { flex: 1; min-width: 0; overflow-y: auto; background: #f5f6f8; }

/* 服务条目（图文横排，贴截图） */
.item { display: flex; align-items: center; gap: 8px; padding: 9px; }
.thumb {
  flex: none; width: 58px; height: 58px; border-radius: 8px;
  background: linear-gradient(135deg, #d7f0e2, #b9e3cd); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.item-body { flex: 1; min-width: 0; }
.item-body > b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; line-height: 1.3; }
.item-body .price { font-size: 13px; margin-bottom: 1px; }
.price .unit { color: #999; font-weight: 400; font-size: 10px; }
.old { font-size: 10px; color: #bbb; margin: 1px 0 2px; }
.old em { font-style: normal; color: #ff8f00; margin-left: 4px; }
.item .meta { color: #999; font-size: 10px; line-height: 1.35; margin-top: 1px; }
.item .btn { flex: none; align-self: flex-end; padding: 4px 9px; font-size: 10px; border-radius: 12px; }

/* 底部三保障 */
.guar3 { display: flex; gap: 8px; }
.guar3 div { flex: 1; background: #f4faf6; border-radius: 8px; padding: 8px 4px; text-align: center; }
.guar3 b { display: block; font-size: 11px; color: #1a9e5c; margin-bottom: 3px; }
.guar3 small { font-size: 8px; color: #8aa395; line-height: 1.3; display: block; }

/* 表单 */
.form label { display: block; margin-bottom: 10px; font-size: 12px; color: #666; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 4px; border: 1px solid #e2e2e2; border-radius: 8px;
  padding: 8px 10px; font-size: 16px; font-family: inherit; background: #fff;
}
.form textarea { height: 60px; resize: none; }

/* 证件上传框 */
/* 2026-11-21 改：uploadBox 外层由 label 改为 div.uplabel，避免 iOS Safari 双重触发 */
.uplabel { display: block; }
.upbox {
  position: relative; margin-top: 5px; height: 86px; border: 1px dashed #b9c6bd; border-radius: 8px;
  background: #fbfdfc; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
}
.upbox .upph { color: #7c9084; font-size: 11px; display: flex; align-items: center; gap: 5px; }
.upbox .upph span { font-size: 18px; color: #1a9e5c; }
.upbox .upimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; background: #111; }
.upbox .updel {
  position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 10px; padding: 2px 8px; border-radius: 10px; display: none;
}
.upbox.done { border-style: solid; border-color: #1a9e5c; }
.upbox.done .upimg { display: block; }
.upbox.done .upph { display: none; }
.upbox.done .updel { display: block; }
.sum { background: #fffbe6; border-radius: 10px; padding: 10px 12px; margin: 10px; font-size: 13px; }
.sum div { display: flex; justify-content: space-between; padding: 2px 0; }
.sum .pay { color: #e53935; font-weight: 700; font-size: 16px; }
.sheet { padding: 14px 10px 20px; }
.order { border-left: 3px solid #1a9e5c; }
.order.st-canceled { border-left-color: #bbb; }
.order.st-done { border-left-color: #2196f3; }
.stat { font-size: 12px; font-weight: 600; color: #ff8f00; }
.kv { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; color: #666; }
.kv b { color: #222; font-weight: 500; }
.me-head { background: linear-gradient(160deg, #21b06a, #128a4f); color: #fff; padding: 20px 14px; }
.me-head b { font-size: 17px; }
.stats3 { display: flex; margin-top: 14px; }
.stats3 div { flex: 1; text-align: center; }
.stats3 em { display: block; font-size: 17px; font-style: normal; font-weight: 600; }
.stats3 small { font-size: 10px; opacity: .85; }

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(0,0,0,.82); color: #fff; padding: 9px 16px; border-radius: 20px;
  font-size: 13px; opacity: 0; transition: .2s; pointer-events: none; max-width: 80vw; text-align: center; z-index: 99;
}
.toast.on { opacity: 1; }

/* iPhone 底部横条安全区：tabbar 和 toast 往上让出空间（没有横条的机型 env() 为 0，不受影响） */
.tabbar { height: calc(54px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.toast { bottom: calc(70px + env(safe-area-inset-bottom)); }

/* 扫码付款 */
.paybox { text-align: center; }
.payamt { font-size: 28px; font-weight: 700; color: #e53935; margin: 6px 0 10px; }
.paytabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.paytabs button { flex: 1; max-width: 140px; padding: 7px 0; border: 1px solid #1a9e5c; background: #fff; color: #1a9e5c; border-radius: 16px; font-size: 13px; cursor: pointer; }
.paytabs button.on { background: #1a9e5c; color: #fff; }
.payqr { display: block; width: 220px; max-width: 80%; margin: 0 auto 8px; border-radius: 8px; border: 1px solid #eee; }
.paysteps { text-align: left; font-size: 12px; color: #555; margin: 10px 0 6px; padding-left: 20px; line-height: 1.8; }
.paysteps b { color: #e53935; }

/* 短信登录 */
.login label { margin-bottom: 4px; }
.login input { margin-bottom: 10px; }
.coderow { display: flex; gap: 8px; align-items: flex-start; }
.coderow input { flex: 1; min-width: 0; }
.coderow .btn { flex: none; white-space: nowrap; padding: 8px 12px; margin-top: 4px; }
/* 2026-11-18 加：登录页隐私协议勾选区样式 */
.login-agree { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; padding: 10px 12px; background: #f8f8f8; border-radius: 8px; }
.login-agree input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin-top: 1px; accent-color: #1a9e5c; cursor: pointer; }
.login-agree .login-agree-text { flex: 1; font-size: 13px; color: #666; line-height: 1.6; }

/* 首页宣传图轮播：框固定 2:1，图片默认铺满（边缘略裁），比例差得多的用 contain 整张显示、两侧露米色底 */
.promo { margin: 8px; background: #fbf5e9; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 2 / 1; overflow: hidden; }
.promo-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo-slide img.fit-contain { object-fit: contain; }
.promo-dots { display: flex; justify-content: center; gap: 2px; padding: 2px 0 6px; }
.promo-dots button { width: 22px; height: 22px; padding: 0; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.promo-dots button::before { content: ''; width: 6px; height: 6px; border-radius: 3px; background: #d5d9d0; transition: width .2s, background .2s; }
.promo-dots button.on::before { width: 14px; background: #1a9e5c; }

/* 在线客服悬浮按钮：在 tabbar 上方，避开 iPhone 底部横条 */
.kf-fab {
  position: absolute; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 20;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1a9e5c; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1.1; box-shadow: 0 4px 12px rgba(26,158,92,.35);
}
.kf-fab span { font-size: 18px; }
.kf-fab:focus-visible { outline: 3px solid #0d5c35; outline-offset: 2px; }
.kf-link { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 18px; background: #1a9e5c; color: #fff; text-decoration: none; }
/* 2026-11-08 加：订单卡片行内「联系客服」链接样式 */
.kf-inline { color: #1a9e5c; text-decoration: underline; font-weight: 500; }

/* 我的订单：状态标签 + 折叠卡片 */
.ord-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 8px; }
.ord-tabs::-webkit-scrollbar { display: none; }
.ord-tabs button { flex: none; background: #fff; border: 1px solid #e2e2e2; border-radius: 16px; padding: 5px 12px; font-size: 12px; color: #555; cursor: pointer; font-family: inherit; }
.ord-tabs button.on { background: #1a9e5c; border-color: #1a9e5c; color: #fff; font-weight: 600; }
.ord-tabs em { font-style: normal; margin-left: 3px; font-size: 11px; opacity: .85; }
.ord summary { list-style: none; cursor: pointer; }
.ord summary::-webkit-details-marker { display: none; }
.ord-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ord-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: #888; }
.ord-sub .price { margin-left: auto; font-size: 13px; }
.ord .chev { width: 8px; height: 8px; border-right: 2px solid #bbb; border-bottom: 2px solid #bbb; transform: rotate(45deg); transition: transform .15s; margin: 0 2px 3px 4px; }
.ord[open] .chev { transform: rotate(-135deg); margin-bottom: -3px; }
.ord-body { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #eee; }
.ord summary:focus-visible { outline: 2px solid #1a9e5c; outline-offset: 2px; border-radius: 4px; }
.ord-more { margin: 0 12px 10px; width: calc(100% - 24px); }

/* 余额入口：看起来和积分、订单一样，但可点 */
.stat-btn { flex: 1; background: none; border: none; color: inherit; font: inherit; text-align: center; cursor: pointer; padding: 0; }
.stat-btn em { display: block; font-size: 17px; font-style: normal; font-weight: 600; }
.stat-btn small { font-size: 10px; opacity: .85; }
.stat-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* 钱包 */
.w-card { margin: 10px 12px; padding: 18px 16px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #21b06a, #128a4f); }
.w-card small { font-size: 12px; opacity: .9; }
.w-bal { font-size: 32px; font-weight: 700; margin: 4px 0 14px; letter-spacing: .5px; }
.w-sum { display: flex; border-top: 1px solid rgba(255,255,255,.25); padding-top: 10px; }
.w-sum div { flex: 1; }
.w-sum b { display: block; font-size: 15px; margin-top: 2px; }
.w-btns { display: flex; gap: 10px; margin: 0 12px 10px; }
.w-btns .btn { flex: 1; margin: 0; }
.w-btns .btn[aria-disabled="true"] { opacity: .6; }
.w-tabs { display: flex; border-bottom: 1px solid #eee; margin: -4px -4px 4px; }
.w-tabs button { flex: 1; background: none; border: none; border-bottom: 2px solid transparent; padding: 10px 0; font: inherit; font-size: 14px; color: #888; cursor: pointer; }
.w-tabs button.on { color: #1a9e5c; border-bottom-color: #1a9e5c; font-weight: 600; }
.w-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f3f3; }
.w-row p { font-size: 11px; color: #999; margin-top: 2px; }
.w-row em { font-style: normal; font-weight: 600; }
.w-row em.in { color: #1a9e5c; }
.w-row em.out { color: #222; }
.w-empty { text-align: center; color: #aaa; padding: 36px 0; font-size: 13px; }
.w-note b { display: block; margin-bottom: 6px; }
.w-note p { font-size: 12px; color: #777; line-height: 1.7; }

/* 预约下单页（参照小程序样式：分组卡片 + 时长格子 + 底部固定提交栏） */
.app.booking .tabbar { display: none; }
.bk-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 6px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.bk-head b { font-size: 16px; }
.bk-head span, .bk-back { width: 40px; }
/* 2026-11-07 加：预约页顶部「分享」按钮样式 */
#btnShare { width: 40px; background: none; border: none; font-size: 12px; color: var(--main); cursor: pointer; padding: 0; }
.bk-back { height: 40px; background: none; border: none; font-size: 28px; line-height: 1; color: #333; cursor: pointer; }
.bk-card { background: #fff; border-radius: 12px; margin: 10px; padding: 4px 14px 10px; }
.bk-title { font-size: 15px; font-weight: 600; padding: 12px 0 4px; }
.bk-svc { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.bk-svc b { display: block; font-size: 15px; margin-bottom: 2px; }
.bk-svc .price { font-size: 17px; margin-top: 3px; }
.bk-desc { margin: -4px 10px 0; padding: 0 14px; font-size: 12px; color: #777; }
.bk-cell { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 0; border-bottom: 1px solid #f2f2f2; font-size: 14px; color: #333; }
.bk-cell:last-child { border-bottom: none; }
.bk-cell > span { flex: none; width: 82px; }
.bk-cell input, .bk-cell select, .bk-cell textarea {
  flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 16px; color: #222; text-align: right; padding: 4px 0; outline: none;
  -webkit-appearance: none; appearance: none;
}
.bk-cell select { direction: rtl; cursor: pointer; }
.bk-cell select option { direction: ltr; }
.bk-cell input::placeholder, .bk-cell textarea::placeholder { color: #bbb; }
.bk-cell input[type=date] { min-height: 30px; }
.bk-cell input[type=date]::-webkit-date-and-time-value { text-align: right; }
.bk-cell input:focus-visible, .bk-cell select:focus-visible, .bk-cell textarea:focus-visible { box-shadow: inset 0 -2px 0 #1a9e5c; }
.bk-arrow { flex: none; width: 8px; height: 8px; border-top: 2px solid #c4c4c4; border-right: 2px solid #c4c4c4; transform: rotate(45deg); margin-right: 3px; }
.bk-col { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 0; }
.bk-col > span { width: auto; }
.bk-col em { font-style: normal; margin-left: 4px; }
.bk-col textarea { text-align: left; background: #f7f8fa; border-radius: 8px; padding: 8px 10px; resize: none; }
.bk-qty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bk-qty button { height: 40px; border: 1px solid #e6e6e6; background: #fff; border-radius: 8px; font: inherit; font-size: 14px; color: #333; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.bk-qty button.on { border-color: #1a9e5c; background: #effaf4; color: #1a9e5c; font-weight: 600; }
.bk-qty button:disabled { color: #ccc; background: #fafafa; cursor: not-allowed; }
.bk-more { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12px; color: #999; }
/* 2026-11-22 修：iOS 输入框 font-size<16px 会触发自动缩放 */
.bk-more input { width: 64px; flex: none; border: 1px solid #e6e6e6; border-radius: 6px; text-align: center; padding: 4px; font-size: 16px; }
.bk-fam { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 4px; }
.bk-fam::-webkit-scrollbar { display: none; }
.bk-fam button { flex: none; border: 1px solid #e6e6e6; background: #fff; border-radius: 16px; padding: 5px 12px; font: inherit; font-size: 13px; color: #333; cursor: pointer; }
.bk-fam button small { color: #999; margin-left: 4px; font-size: 11px; }
.bk-fam button.on { border-color: #1a9e5c; background: #effaf4; color: #1a9e5c; }
.bk-tip { background: #fff8e6; color: #a0700a; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 6px 0 4px; }
.bk-notice { padding-left: 18px; font-size: 13px; color: #555; line-height: 1.8; }
.bk-notice li { margin-bottom: 4px; }
.bk-bar {
  position: sticky; bottom: 0; z-index: 5; margin-top: 12px; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.bk-total { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.bk-total .price { font-size: 20px; }
.bk-agree { display: flex; align-items: center; flex-wrap: wrap; font-size: 12px; color: #666; margin: 8px 0 10px; }
.bk-agree label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.bk-agree input { width: 16px; height: 16px; accent-color: #1a9e5c; }
.bk-link { background: none; border: none; color: #1a9e5c; font: inherit; padding: 0; cursor: pointer; }
.bk-mask { position: absolute; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.bk-sheet { width: 100%; max-height: 80%; display: flex; flex-direction: column; background: #fff; border-radius: 14px 14px 0 0; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
.bk-sheet > b { font-size: 16px; text-align: center; margin-bottom: 10px; }
.bk-sheet-body { flex: 1; overflow-y: auto; font-size: 13px; color: #555; line-height: 1.75; margin-bottom: 12px; }
.bk-sheet-body h4 { font-size: 14px; color: #222; margin: 8px 0 2px; }
.bk-cell .req { color: #e53935; font-style: normal; margin-left: 2px; }
.bk-same { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 10px 0 4px; font-size: 13px; color: #555; cursor: pointer; }
.bk-same input { width: 16px; height: 16px; accent-color: #1a9e5c; }
.bk-cell input[readonly] { color: #999; }

/* 下单页：选择服务者 */
.bk-staff { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 4px; }
.bk-staff button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid #ececec; border-radius: 10px; padding: 10px 12px; font: inherit; color: #222; cursor: pointer; }
.bk-staff button.on { border-color: #1a9e5c; background: #f3fbf7; }
.bk-staff button:focus-visible { outline: 2px solid #1a9e5c; outline-offset: 2px; }
.bk-ava { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #e3f4ea; color: #1a9e5c; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.bk-st-body { flex: 1; min-width: 0; }
.bk-st-body b { display: block; font-size: 14px; }
.bk-st-body b small { font-weight: 400; color: #888; font-size: 12px; margin-left: 6px; }
.bk-st-body em { display: block; font-style: normal; font-size: 12px; color: #999; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc; position: relative; }
.bk-staff button.on .bk-radio { border-color: #1a9e5c; }
.bk-staff button.on .bk-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #1a9e5c; }

/* 服务者入驻：服务方向多选 */
.reg-cats { border: none; margin: 0 0 10px; padding: 0; }
.reg-cats legend { font-size: 12px; color: #666; margin-bottom: 6px; }
.reg-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.form .reg-cat-grid label { margin: 0; position: relative; }
.reg-cat-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.reg-cat-grid span { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; min-height: 40px; padding: 4px; border: 1px solid #e2e2e2; border-radius: 8px; background: #fff; font-size: 12px; color: #333; text-align: center; cursor: pointer; line-height: 1.3; }
.reg-cat-grid span i { font-style: normal; font-size: 9px; color: #fff; background: #ff5b3a; border-radius: 4px; padding: 0 3px; }
.reg-cat-grid input:checked + span { border-color: #1a9e5c; background: #effaf4; color: #1a9e5c; font-weight: 600; }
.reg-cat-grid input:focus-visible + span { outline: 2px solid #1a9e5c; outline-offset: 2px; }

/* 首页搜索框（可输入）与搜索结果条 */
.search input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 16px; color: #222; outline: none; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: #999; }
.search:focus-within { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.kw-bar { display: flex; align-items: center; gap: 8px; margin: 10px 8px 2px; font-size: 12px; color: #666; }
.kw-bar button { margin-left: auto; background: none; border: 1px solid #ccc; border-radius: 12px; padding: 2px 10px; font: inherit; font-size: 12px; color: #555; cursor: pointer; }
.muted .bk-link { font-size: inherit; }

/* 2026-11-06 加：跑腿下单页 — 地图选点按钮行、全屏选点弹层 */
.pt-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 2px 0 10px; font-size: 12px; }
.pt-pick .btn.mini { flex: none; }
.pt-map { align-items: stretch; }
.pt-map-box { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.pt-map-head { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 6px 0 14px; border-bottom: 1px solid #f0f0f0; flex: none; }
.pt-map-box iframe { flex: 1; width: 100%; border: 0; }

/* 2026-11-06 加：领券中心 */
.cp-list { padding: 4px 0; }
.cp { display: flex; align-items: center; gap: 10px; border: 1px solid #f3d9c6; background: linear-gradient(90deg, #fff7f0, #fff); border-radius: 10px; padding: 10px; margin: 10px 0; }
.cp.off { filter: grayscale(1); opacity: .65; }
.cp-l { flex: none; width: 78px; text-align: center; color: #e65100; border-right: 1px dashed #f3c8a8; padding-right: 8px; }
.cp-l em { display: block; font-style: normal; font-size: 24px; font-weight: 700; line-height: 1.1; }
.cp-l em small { font-size: 12px; font-weight: 600; }
.cp-l span { font-size: 11px; color: #a1683a; }
.cp-r { flex: 1; min-width: 0; }
.cp-r b { font-size: 14px; }
.cp-r p { font-size: 11px; color: #777; margin-top: 2px; }
.cp .btn.mini { flex: none; }
.cp-why { flex: none; font-size: 11px; color: #999; }

/* 2026-11-06 加：我的订单 — 服务记录、评价、改金额提示 */
.ord-report { background: #f7faf8; border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-size: 12px; }
.ord-report b { margin-right: 6px; }
.ord-report p { margin-top: 4px; color: #333; line-height: 1.6; white-space: pre-wrap; }
.ord-report .stars, .rate-stars { color: #f59e0b; letter-spacing: 2px; }
.ord-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ord-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.adj-note { margin-top: 6px; background: #fff7ed; border-radius: 6px; padding: 6px 8px; color: #9a3412 !important; }
.rate-stars { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.rate-stars button { border: none; background: none; font-size: 34px; line-height: 1; color: #f59e0b; cursor: pointer; padding: 2px; }
.rate-tip { text-align: center; margin-bottom: 10px; min-height: 18px; }
#rtText { width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font: inherit; resize: vertical; }

/* 2026-11-07 加：爱心社区（分类、文章列表、服务者风采、好评精选、文章详情） */
.com-chips { display: flex; gap: 8px; padding: 10px 8px 4px; overflow-x: auto; }
.com-chips button { flex: none; border: 1px solid #e5e7eb; background: #fff; color: #555; border-radius: 16px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.com-chips button.on { border-color: #1a9e5c; background: #eaf7f0; color: #1a9e5c; font-weight: 600; }
.art-list { padding: 0 8px; }
.art-card { display: flex; gap: 10px; width: 100%; text-align: left; background: #fff; border: none; border-radius: 10px; margin-top: 8px; padding: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.05); cursor: pointer; font: inherit; color: inherit; }
.art-card img { flex: none; width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: #f0f2f4; }
.art-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.art-txt b { font-size: 14px; line-height: 1.4; }
.art-sum { font-size: 12px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-pin { font-style: normal; font-size: 10px; color: #fff; background: #f59e0b; border-radius: 4px; padding: 0 4px; margin-right: 4px; vertical-align: 1px; }
.com-staffs { display: flex; gap: 8px; padding: 0 8px; overflow-x: auto; }
.com-staff { flex: none; width: 132px; background: #fff; border-radius: 10px; padding: 12px 10px; box-shadow: 0 1px 6px rgba(0,0,0,.05); display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; font-size: 12px; }
.com-staff .av { width: 44px; height: 44px; border-radius: 50%; background: #eaf7f0; color: #1a9e5c; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.com-certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 2px; }
.com-certs i { font-style: normal; font-size: 10px; color: #1a9e5c; background: #eaf7f0; border-radius: 4px; padding: 0 4px; }
.com-stars { color: #f59e0b; letter-spacing: 1px; }
.com-review p { font-size: 13px; line-height: 1.6; margin: 4px 0; white-space: pre-wrap; }
.art-detail h1 { font-size: 18px; line-height: 1.4; margin-bottom: 4px; }
.art-cover, .art-img { display: block; width: 100%; border-radius: 8px; margin-top: 10px; background: #f0f2f4; }
.art-body { margin-top: 10px; font-size: 14px; line-height: 1.8; color: #333; }
.art-body p { margin-bottom: 10px; word-break: break-word; }
.art-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.art-cta .btn { flex: none; }
/* 2026-11-07 加：订单里服务者电话，点击拨打；加大点击区域方便老人点 */
.kv .tel-link { color: #1677ff; margin-left: 6px; padding: 4px 0; text-decoration: underline; }
/* 2026-11-07 加：个人资料 / 下单性别要求 / 服务者头像 */
.bk-gender { grid-template-columns: repeat(2, 1fr); } /* 2026-11-07 改：下单页已删除性别要求模块，此样式保留给管理后台等其他地方 */
.me-profile .bk-cell { padding: 6px 0; }
.me-gender { flex: 1; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.me-gender button { height: 36px; }
img.av { object-fit: cover; padding: 0; }
.ord-ava { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; display: block; }
/* 2026-11-07 加：「我的」顶部手机号可点，进入个人资料页 */
.me-who { display: block; width: 100%; background: none; border: none; color: inherit; font: inherit; text-align: left; padding: 0; margin-bottom: 4px; cursor: pointer; }
.me-who:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.me-edit { font-size: 12px; opacity: .9; margin-left: 4px; }
.me-sub { font-size: 12px; opacity: .85; margin-top: 3px; }

/* 2026-11-22 加：注销账号弹窗遮罩+居中面板 */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-bg .modal { background: #fff; border-radius: 12px; padding: 20px; width: 90%; max-width: 340px; }

/* 2026-11-25 加：抖音小程序日期选择器（仅 IN_DY_MP 环境渲染） */
.bk-date-btn { color: #333; cursor: pointer; flex: 1; text-align: right; }
.bk-date-btn:empty::after, .bk-date-btn:not([data-v])::after { content: ''; }
.dy-date-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; z-index: 10000; }
.dy-date-panel { width: 100%; background: #fff; border-radius: 14px 14px 0 0; padding: 0 16px 28px; }
.dy-date-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.dy-date-head button { background: none; border: none; font-size: 15px; color: #999; padding: 4px 8px; }
.dy-date-head button:last-child { color: #fe2c55; font-weight: 600; }
.dy-date-head b { font-size: 16px; }
.dy-date-cols { display: flex; gap: 8px; }
.dy-date-cols select { flex: 1; height: 44px; font-size: 18px; text-align: center; border: 1px solid #eee; border-radius: 8px; background: #f8f8f8; appearance: none; -webkit-appearance: none; }
.dy-date-unit { display: flex; gap: 8px; margin-top: 4px; }
.dy-date-unit span { flex: 1; text-align: center; font-size: 12px; color: #999; }

/* 2026-11-25 加：抖音小程序时间选择器弹窗 */
.dy-time-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 50vh; overflow-y: auto; padding: 4px 0 8px; }
.dy-time-opt { height: 40px; border: 1px solid #eee; border-radius: 8px; background: #f8f8f8; font-size: 15px; color: #333; cursor: pointer; }
.dy-time-opt.on { background: #fe2c55; color: #fff; border-color: #fe2c55; }
