/* =====================================================================
 * 上门服务 O2O 系统 · H5 全部样式（手写设计系统，无任何外部引用）
 * 主题：--brand #00B578 鲜绿；状态色按订单状态区分
 * ===================================================================== */

/* ---------- 设计变量 ---------- */
:root {
    --brand: #00B578;
    --brand-deep: #00965F;
    --brand-grad: linear-gradient(135deg, #00D18A 0%, #00B578 100%);
    --brand-light: #E6F9F2;
    --text-main: #1F2733;
    --text-sub: #6B7483;
    --text-mut: #8A93A3;
    --bg-page: #F7F8FA;
    --bg-card: #FFFFFF;
    --line: #E5E7EB;
    --st-waitpay: #C77A16;   /* 待支付 */
    --st-accept: #C77A16;    /* 待接单 */
    --st-serving: #2F6FB5;   /* 服务中 */
    --st-finish: #1A9E6B;    /* 已完成/已完结 */
    --st-cancel: #8A93A3;    /* 已取消 */
    --st-refund: #C0392B;    /* 退款 */
    --danger: #C0392B;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-btn: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --tabbar-h: 56px;        /* 底部 Tabbar 内容高度（不含 iPhone 安全区） */
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: 1rem; outline: none; }
button { border: none; background: none; cursor: pointer; }
/* ---------- 底部固定栏占位（手机端适配） ----------
 * 主 Tab 页（首页 / 订单 / 我的）底部有 position:fixed 的 Tabbar，
 * 它脱离文档流、不占高度，因此必须由 body 预留出同等高度，
 * 否则正文最后一行会被 Tabbar 压住（在微信里要「强行下拉」的橡皮筋才能看见）。
 * 由 app/h5/view/layout.php 按当前页面是否展示 Tabbar 给 body 加 .has-tabbar 类。
 * 子页（有 .btn-bar 固定操作栏）不用这个类，它们各自带 70px 占位块。 */
body.has-tabbar { padding-bottom: 72px; }  /* 兜底：不支持 env()/var() 的老内核（56px 导航栏 + 16px 间距） */
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); }

/* 个人中心底部版权行 */
.page-foot {
    padding: 18px 14px 0;
    text-align: center;
    font-size: .72rem;
    color: var(--text-mut);
    line-height: 1.5;
    word-break: break-all;
}

/* ---------- 顶栏 ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
}
.navbar .nav-back { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.navbar .nav-title { flex: 1; text-align: center; font-size: 1.05rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar .nav-right { min-width: 24px; font-size: .85rem; color: var(--text-sub); }
.navbar-grad { background: var(--brand-deep); color: #fff; border-bottom: none; }
.navbar-grad .nav-right { color: #fff; }

/* ---------- 首页头部（城市+搜索位） ---------- */
.home-head {
    background: var(--brand-deep);
    padding: 22px 14px 60px;
    color: #fff;
    border-radius: 0 0 10px 10px;
}
/* 注：v1.5.3 起首页头部不再展示定位城市，原 .city-pick / .loc-tag 样式已一并移除 */
.home-head .slogan { margin-top: 0; font-size: 1.25rem; font-weight: 700; }
.home-head .slogan-sub { margin-top: 4px; font-size: .8rem; opacity: .9; }

/* ---------- 轮播 ---------- */
.swiper {
    position: relative; overflow: hidden;
    margin: -46px 14px 0;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #ddd;
}
.swiper-track { display: flex; transition: transform .35s ease; }
.swiper-item { flex: 0 0 100%; }
.swiper-item img { width: 100%; height: 150px; object-fit: cover; }
.swiper-dots {
    position: absolute; bottom: 8px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
}
.swiper-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: all .3s; }
.swiper-dots i.on { width: 16px; border-radius: 3px; background: #fff; }

/* ---------- 分类宫格 ---------- */
.cat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px 8px;
    background: var(--bg-card);
    margin: 12px 14px 0; padding: 16px 10px;
    border-radius: var(--radius); border: 1px solid var(--line);
}
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cat-item .cat-icon {
    width: 52px; height: 52px; border-radius: 8px;
    background: var(--brand-light);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.cat-item .cat-icon img { width: 32px; height: 32px; object-fit: contain; }
.cat-item span { font-size: .78rem; color: var(--text-main); }

/* ---------- 区块标题 ---------- */
.sec-title {
    display: flex; align-items: center; justify-content: space-between;
    margin: 18px 14px 10px;
    font-size: 1.05rem; font-weight: 700;
}
.sec-title::before {
    content: ""; display: inline-block; width: 4px; height: 16px;
    background: var(--brand); border-radius: 2px; margin-right: 8px;
    vertical-align: -2px;
}
.sec-title .more { font-size: .78rem; color: var(--text-mut); font-weight: 400; }
.sec-title span.t { display: flex; align-items: center; }

/* ---------- 服务卡片 ---------- */
.svc-list { padding: 0 14px; display: flex; flex-direction: column; gap: 12px; }
.svc-card {
    display: flex; gap: 12px;
    background: var(--bg-card); border-radius: var(--radius);
    padding: 12px; border: 1px solid var(--line);
}
.svc-card .svc-cover {
    width: 110px; height: 92px; border-radius: 10px;
    object-fit: cover; background: #f0f0f0; flex-shrink: 0;
}
.svc-card .svc-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.svc-card .svc-title {
    font-size: .95rem; font-weight: 600;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.svc-card .svc-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.svc-card .svc-sales { margin-top: auto; font-size: .72rem; color: var(--text-mut); }
.svc-card .svc-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.price { color: var(--brand); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.price::before { content: "¥"; font-size: .72rem; margin-right: 1px; }
.price .unit { font-size: .72rem; color: var(--text-mut); font-weight: 400; }
.price-del { font-size: .75rem; color: var(--text-mut); text-decoration: line-through; margin-left: 6px; font-weight: 400; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 22px;
    border-radius: var(--radius);
    font-size: .95rem; font-weight: 600;
    transition: opacity .15s;
}
.btn:active { opacity: .85; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-btn); }
.btn-plain { background: var(--brand-light); color: var(--brand); }
.btn-ghost { background: #fff; color: var(--text-sub); border: 1px solid var(--line); }
.btn-danger { background: #FFF1F0; color: var(--danger); border: 1px solid #FFDCD6; }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 32px; padding: 0 14px; font-size: .8rem; border-radius: 8px; }
.btn-lg { height: 50px; font-size: 1.05rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    max-width: 750px; margin: 0 auto;
    display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
}
.btn-bar .btn { flex: 1; }

/* ---------- 底部 Tabbar ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    max-width: 750px; margin: 0 auto;
    display: flex; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line);
}
.tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: .68rem; color: var(--text-mut);
}
.tabbar a.on { color: var(--brand); font-weight: 600; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar .tab-badge {
    position: absolute; top: 4px; margin-left: 22px;
    min-width: 15px; height: 15px; padding: 0 4px;
    background: var(--danger); color: #fff;
    font-size: .6rem; line-height: 15px; text-align: center;
    border-radius: 999px;
}
.tabbar a { position: relative; }

/* ---------- 标签页 Tabs ---------- */
.tabs {
    display: flex; background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 48px; z-index: 40;
}
.tabs a, .tabs .tab-item {
    flex: 1; text-align: center; padding: 12px 4px;
    font-size: .88rem; color: var(--text-sub);
    position: relative; white-space: nowrap;
}
.tabs a.on, .tabs .tab-item.on { color: var(--brand); font-weight: 600; }
.tabs a.on::after, .tabs .tab-item.on::after {
    content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; border-radius: 2px; background: var(--brand);
}
.tabs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs-scroll::-webkit-scrollbar { display: none; }

/* ---------- 卡片与列表 ---------- */
.card {
    background: var(--bg-card); border-radius: var(--radius);
    margin: 12px 14px; padding: 14px;
    border: 1px solid var(--line);
}
.cell {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.cell:last-child { border-bottom: none; }
.cell .cell-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand); }
.cell .cell-label { flex: 1; font-size: .92rem; }
.cell .cell-value { font-size: .85rem; color: var(--text-mut); }
.cell .cell-arrow { width: 16px; height: 16px; color: #ccc; flex-shrink: 0; }
.cell .cell-badge {
    min-width: 16px; height: 16px; padding: 0 5px;
    background: var(--danger); color: #fff;
    font-size: .62rem; line-height: 16px; text-align: center; border-radius: 999px;
}

/* ---------- 表单 ---------- */
.form-item { margin-bottom: 16px; }
.form-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 14px;
    background: #F7F8FA; border: 1px solid transparent; border-radius: 10px;
    font-size: .92rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--brand); background: #fff; }
.form-textarea { min-height: 88px; resize: none; }
.form-tip { margin-top: 6px; font-size: .75rem; color: var(--text-mut); }
.form-row { display: flex; gap: 10px; }
.form-row .form-item { flex: 1; }
.radio-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pills .pill {
    padding: 8px 16px; border-radius: 999px;
    background: #F7F8FA; border: 1px solid var(--line);
    font-size: .85rem; color: var(--text-sub);
}
.radio-pills .pill.on {
    background: var(--brand-light); color: var(--brand);
    border-color: var(--brand); font-weight: 600;
}

/* ---------- 上传组件 ---------- */
.upload-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-item { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; position: relative; }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item .del {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff;
    font-size: 12px; line-height: 20px; text-align: center;
}
.upload-add {
    width: 84px; height: 84px; border-radius: 10px;
    border: 1px dashed #ccc; color: var(--text-mut);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: .7rem; gap: 4px; background: #FAFAFA;
}
.upload-add svg { width: 24px; height: 24px; }

/* ---------- 订单卡片 ---------- */
.order-card { background: #fff; border-radius: var(--radius); margin: 12px 14px; padding: 14px; border: 1px solid var(--line); }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-card .oc-no { font-size: .78rem; color: var(--text-mut); }
.order-card .oc-body { display: flex; gap: 12px; padding: 12px 0; }
.order-card .oc-cover { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; background: #f0f0f0; }
.order-card .oc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-card .oc-title { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card .oc-time { margin-top: 6px; font-size: .75rem; color: var(--text-sub); }
.order-card .oc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.order-card .oc-actions { display: flex; gap: 8px; }

/* ---------- 状态徽章 ---------- */
.st { font-size: .78rem; font-weight: 600; }
.st-0  { color: var(--st-waitpay); }
.st-10 { color: var(--st-accept); }
.st-20, .st-30 { color: var(--st-serving); }
.st-40, .st-50 { color: var(--st-finish); }
.st-60 { color: var(--st-cancel); }
.st-70, .st-80 { color: var(--st-refund); }
.tag {
    display: inline-block; padding: 2px 8px; border-radius: 6px;
    font-size: .68rem; background: var(--brand-light); color: var(--brand);
}
.tag-blue { background: #E8F1FF; color: var(--st-serving); }
.tag-orange { background: #FFF3E6; color: var(--st-waitpay); }
.tag-red { background: #FFF1F0; color: var(--danger); }
.tag-gray { background: #F2F3F5; color: var(--text-mut); }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .tl-item { position: relative; padding-bottom: 18px; }
.timeline .tl-item:last-child { padding-bottom: 0; }
.timeline .tl-dot {
    position: absolute; left: -22px; top: 4px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid #ddd;
}
.timeline .tl-item.on .tl-dot { border-color: var(--brand); background: var(--brand); }
.timeline .tl-title { font-size: .88rem; font-weight: 600; }
.timeline .tl-item.on .tl-title { color: var(--brand); }
.timeline .tl-desc { margin-top: 2px; font-size: .75rem; color: var(--text-mut); }
.timeline .tl-time { margin-top: 2px; font-size: .72rem; color: var(--text-mut); }

/* ---------- 星级 ---------- */
.stars { display: inline-flex; gap: 4px; align-items: center; }
.stars .star { display: inline-flex; align-items: center; justify-content: center; }
.stars svg { width: 18px; height: 18px; color: #E0E0E0; }
.stars svg.on { color: #FFB400; }
.stars .star.on svg { color: #FFB400; }
.stars-input svg { width: 36px; height: 36px; cursor: pointer; }
.stars-input .star { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ---------- 用户中心 ---------- */
.uc-head {
    background: var(--brand-deep);
    padding: 18px 18px 56px;
    display: flex; align-items: center; gap: 14px;
    color: #fff; border-radius: 0 0 10px 10px;
}
.uc-head .avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5); background: #fff; object-fit: cover; }
.uc-head .uc-name { font-size: 1.15rem; font-weight: 700; }
.uc-head .uc-code { margin-top: 4px; font-size: .75rem; opacity: .9; }
.uc-card { margin: -40px 14px 0; position: relative; z-index: 2; }
.stat-row { display: flex; }
.stat-row .stat-item { flex: 1; text-align: center; padding: 6px 0; }
.stat-row .stat-num { font-size: 1.15rem; font-weight: 700; color: var(--text-main); font-variant-numeric: tabular-nums; }
.stat-row .stat-num.green { color: var(--brand); }
.stat-row .stat-label { margin-top: 2px; font-size: .72rem; color: var(--text-mut); }

/* ---------- 收益页 ---------- */
.income-head {
    background: #2B3A4A;
    margin: 0; padding: 20px 18px 50px; color: #fff; border-radius: 0 0 10px 10px;
}
.income-head .ih-label { font-size: .78rem; opacity: .8; }
.income-head .ih-num { font-size: 2rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.income-head .ih-num::before { content: "¥"; font-size: 1rem; margin-right: 2px; }
.income-head .ih-row { display: flex; margin-top: 18px; }
.income-head .ih-row > div { flex: 1; }
.income-head .ih-row .ih-sub-num { font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-mut); }
.empty img { width: 140px; margin: 0 auto 14px; opacity: .9; }
.empty p { font-size: .85rem; }

/* ---------- Toast / Loading / 弹层 ---------- */
.toast {
    position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%);
    z-index: 999; max-width: 76%;
    background: rgba(0, 0, 0, .75); color: #fff;
    padding: 12px 20px; border-radius: 10px;
    font-size: .88rem; text-align: center;
    animation: toastIn .2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.loading-mask {
    position: fixed; inset: 0; z-index: 998;
    background: rgba(255, 255, 255, .6);
    display: flex; align-items: center; justify-content: center;
}
.loading-spin {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid var(--brand-light); border-top-color: var(--brand);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mask {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(0, 0, 0, .5);
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mask.show { opacity: 1; pointer-events: auto; }
.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
    max-width: 750px; margin: 0 auto;
    background: #fff; border-radius: 8px 8px 0 0;
    transform: translateY(100%); transition: transform .25s ease;
    max-height: 78vh; display: flex; flex-direction: column;
}
.sheet.show { transform: translateY(0); }
.sheet .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; border-bottom: 1px solid var(--line);
    font-size: 1rem; font-weight: 600;
}
.sheet .sheet-body { padding: 16px; overflow-y: auto; }
.sheet .sheet-close { width: 22px; height: 22px; color: var(--text-mut); }
.dialog {
    position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.92);
    z-index: 99; width: 82%; max-width: 340px;
    background: #fff; border-radius: 8px;
    opacity: 0; pointer-events: none; transition: all .2s;
}
.dialog.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.dialog .dlg-title { padding: 20px 20px 0; font-size: 1rem; font-weight: 700; text-align: center; }
.dialog .dlg-body { padding: 12px 20px 20px; font-size: .9rem; color: var(--text-sub); text-align: center; }
.dialog .dlg-btns { display: flex; border-top: 1px solid var(--line); }
.dialog .dlg-btns button {
    flex: 1; height: 48px; font-size: .95rem; color: var(--text-sub);
    border-right: 1px solid var(--line);
}
.dialog .dlg-btns button:last-child { border-right: none; }
.dialog .dlg-btns button.ok { color: var(--brand); font-weight: 600; }
.dialog .dlg-btns button.danger { color: var(--danger); font-weight: 600; }

/* ---------- 城市选择 ---------- */
.city-list { padding: 6px 0; }
.city-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.city-list a.on { color: var(--brand); font-weight: 600; }
.city-list a .prov { font-size: .78rem; color: var(--text-mut); }

/* ---------- 详情页图集 ---------- */
.detail-swiper { margin: 0; border-radius: 0; box-shadow: none; }
.detail-swiper .swiper-item img { height: 280px; }
.detail-head { background: #fff; padding: 16px 14px; }
.detail-title { font-size: 1.1rem; font-weight: 700; }
.detail-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.detail-price-row .price { font-size: 1.5rem; }
.plan-card {
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    margin-bottom: 10px; cursor: pointer; background: #fff;
}
.plan-card:last-child { margin-bottom: 0; }
.plan-card.on { border-color: var(--brand); background: var(--brand-light); }
.detail-rich { background: #fff; margin-top: 10px; padding: 16px 14px; }
.detail-rich h3 { font-size: 1rem; margin: 14px 0 8px; }
.detail-rich p { font-size: .9rem; color: var(--text-sub); margin: 8px 0; }
.detail-rich img { border-radius: 6px; margin: 8px 0; }
.detail-rich ul { padding-left: 18px; list-style: disc; color: var(--text-sub); font-size: .9rem; }

/* ---------- 评价 ---------- */
.eval-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.eval-item:last-child { border-bottom: none; }
.eval-head { display: flex; align-items: center; gap: 10px; }
.eval-head .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #f0f0f0; }
.eval-head .name { font-size: .85rem; font-weight: 600; }
.eval-head .time { margin-left: auto; font-size: .72rem; color: var(--text-mut); }
.eval-content { margin-top: 8px; font-size: .88rem; color: var(--text-sub); }
.eval-imgs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.eval-imgs img { width: 78px; height: 78px; border-radius: 8px; object-fit: cover; }
.eval-reply { margin-top: 8px; background: #F7F8FA; border-radius: 8px; padding: 10px 12px; font-size: .8rem; color: var(--text-sub); }

/* ---------- 收银台 ---------- */
.cashier-amount { text-align: center; padding: 24px 20px 20px; background: #fff; }
.cashier-amount .ca-label { font-size: .85rem; color: var(--text-mut); }
.cashier-amount .ca-num { font-size: 2.4rem; font-weight: 700; color: var(--text-main); margin-top: 8px; font-variant-numeric: tabular-nums; }
.cashier-amount .ca-num::before { content: "¥"; font-size: 1.2rem; }
.cashier-count { margin-top: 10px; font-size: .8rem; color: var(--st-waitpay); }
.pay-channel { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pay-channel:last-child { border-bottom: none; }
.pay-channel .pc-icon { width: 28px; height: 28px; }
.pay-channel .pc-name { flex: 1; font-size: .95rem; font-weight: 600; }
.pay-channel .pc-desc { display: block; font-size: .72rem; color: var(--text-mut); font-weight: 400; }
.pay-channel .pc-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ddd; }
.pay-channel.on .pc-radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px #fff; }

/* ---------- 登录页 ---------- */
.login-wrap { padding: 40px 24px 0; }
.login-logo { width: 76px; height: 76px; margin: 0 auto 16px; display: block; }
.login-title { text-align: center; font-size: 1.3rem; font-weight: 700; }
.login-sub { text-align: center; margin-top: 8px; font-size: .82rem; color: var(--text-mut); }
.login-form { margin-top: 34px; }
.login-tip { text-align: center; margin-top: 18px; font-size: .75rem; color: var(--text-mut); }

/* ---------- 推广页 ---------- */
.spread-head {
    background: #1F4A3C;
    padding: 20px 18px 46px; color: #fff; border-radius: 0 0 10px 10px;
}
.invite-link-box {
    display: flex; align-items: center; gap: 8px;
    background: #F7F8FA; border-radius: 10px; padding: 10px 12px;
    font-size: .78rem; color: var(--text-sub); word-break: break-all;
}
.invite-link-box .link { flex: 1; }
.poster-canvas-wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); margin: 12px 14px; padding: 14px; text-align: center; }
.poster-canvas-wrap canvas { width: 100%; border-radius: 10px; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 18px 14px; font-size: .82rem; color: var(--text-sub); }
.pager a { padding: 6px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.pager a.cur { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager a.dis { opacity: .4; pointer-events: none; }
.load-more { text-align: center; padding: 14px; font-size: .8rem; color: var(--text-mut); }

/* ---------- 工单大厅 ---------- */
.hall-card { background: #fff; border-radius: var(--radius); margin: 12px 14px; padding: 14px; border: 1px solid var(--line); }
.hall-card .hc-top { display: flex; justify-content: space-between; align-items: center; }
.hall-card .hc-title { font-size: .95rem; font-weight: 700; }
.hall-card .hc-meta { margin-top: 8px; font-size: .8rem; color: var(--text-sub); display: flex; flex-direction: column; gap: 4px; }
.hall-card .hc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.worker-stat {
    display: flex; gap: 10px; margin: 12px 14px 0;
}
.worker-stat > div {
    flex: 1; background: #fff; border-radius: var(--radius); padding: 12px 8px;
    text-align: center; border: 1px solid var(--line);
}
.worker-stat .ws-num { font-size: 1.1rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.worker-stat .ws-label { font-size: .7rem; color: var(--text-mut); margin-top: 2px; }

/* ---------- 工具类 ---------- */
.mt10 { margin-top: 10px; } .mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; } .mb20 { margin-bottom: 20px; }
.tc { text-align: center; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-1 { flex: 1; min-width: 0; }
.gray { color: var(--text-mut); }
.sub { color: var(--text-sub); }
.green { color: var(--brand); }
.red { color: var(--danger); }
.blue { color: var(--st-serving); }
.orange { color: var(--st-waitpay); }
.fs12 { font-size: .75rem; } .fs13 { font-size: .82rem; } .fs14 { font-size: .88rem; }
.bold { font-weight: 700; }
.nowrap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 10px; background: var(--bg-page); }

/* ===== 付款前未开通地区拦截（收银台） ===== */
.region-block{padding:6px 2px 2px;text-align:center}
.region-block .rb-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0 auto 12px;border-radius:50%;background:var(--bg-page);color:var(--text-sub)}
.region-block .rb-icon svg{width:24px;height:24px}
.region-block .rb-title{font-size:.95rem;font-weight:600;color:var(--text-main);margin-bottom:8px}
.region-block .rb-desc{font-size:.8rem;line-height:1.65;color:var(--text-sub);margin:0 6px 18px}
.region-block .btn+.btn{margin-top:10px}

/* =====================================================================
 * v1.5.10 下单页「预约时间」控件（自绘日期按钮 + 日历 + 时段已过禁用）
 * 背景：原生 <input type="date"> 在微信/安卓老 WebView 不兼容（退化成空白框），
 *       本控件全部由页面自绘，不依赖任何原生日期控件。
 * 说明：本节为「仅追加」内容，不改动上方任何既有规则；配色沿用既有设计令牌。
 * ===================================================================== */

/* 今天 / 明天 / 后天：三列等宽大按钮 */
.date-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.date-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 56px; padding: 6px 2px;
    background: #F7F8FA; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text-main); text-align: center;
}
.date-tab .dt-main { display: block; font-size: .92rem; font-weight: 600; line-height: 1.25; color: var(--text-main); }
.date-tab .dt-sub { display: block; margin-top: 2px; font-size: .68rem; line-height: 1.2; color: var(--text-sub); white-space: nowrap; }
.date-tab.on { background: var(--brand-light); border-color: var(--brand); }
.date-tab.on .dt-main { color: var(--brand); }
.date-tab.on .dt-sub { color: var(--brand-deep); }
.date-tab[disabled] { background: #F0F1F3; border-color: var(--line); opacity: .5; }
.date-tab[disabled] .dt-main, .date-tab[disabled] .dt-sub { color: var(--text-mut); }

/* 灰字提示 + 非快捷日期回显 */
.date-hint { margin-top: 8px; font-size: .75rem; line-height: 1.5; color: var(--text-mut); }
.date-picked { margin-top: 6px; font-size: .75rem; color: var(--brand); }
.date-hint[hidden], .date-picked[hidden], .date-cal[hidden] { display: none !important; }

/* 更多日期 */
.more-date {
    display: inline-flex; align-items: center; gap: 2px;
    min-height: 44px; margin-top: 2px; padding: 0 2px;
    font-size: .82rem; color: var(--brand);
}
.more-date svg { width: 14px; height: 14px; }

/* 自绘当月日历（文档流展开，不用 position:fixed） */
.date-cal {
    margin-top: 8px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.date-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.date-cal-title { flex: 1; text-align: center; font-size: .9rem; font-weight: 600; color: var(--text-main); }
.date-cal-nav {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; line-height: 1; color: var(--text-sub); border-radius: var(--radius);
}
.date-cal-nav[disabled] { color: #C7CBD1; pointer-events: none; }
.date-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.date-cal-week span { text-align: center; font-size: .72rem; color: var(--text-mut); }
.date-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.date-cal-day {
    display: flex; align-items: center; justify-content: center;
    min-height: 44px; border-radius: 8px;
    font-size: .85rem; color: var(--text-main); background: #F7F8FA;
}
.date-cal-day.on { background: var(--brand-light); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.date-cal-day[disabled] { background: transparent; color: var(--text-mut); opacity: .4; pointer-events: none; }
.date-cal-day.empty { background: transparent; pointer-events: none; }

/* 时段按钮：已过禁用态 + 已过标记（仅本页 #timeSlots，避免影响其他复用 .radio-pills 的页面） */
#timeSlots .pill { display: inline-flex; align-items: center; min-height: 44px; }
.radio-pills .pill[disabled] { background: #F0F1F3; color: var(--text-mut); border-color: var(--line); opacity: .6; pointer-events: none; }
.radio-pills .pill .off-tag {
    display: inline-block; margin-left: 4px; padding: 0 4px;
    font-size: .62rem; line-height: 1.5; border-radius: 4px;
    background: #E6E8EB; color: var(--text-mut); vertical-align: 1px;
}
/* 「已过」标记的显示由 hidden 属性控制；本条 specificity 需压过上面的 display:inline-block，
 * 否则未置灰的时段也会常驻显示「已过」标记。 */
.radio-pills .pill .off-tag[hidden] { display: none !important; }

/* =====================================================================
 * v1.6.1 系统自绘选择器（替代手机原生 <select>）
 * 用途：地址表单（省/市/区县）、代理申请（意向地区）、师傅入驻（服务地区）
 * 背景：安卓/iOS 的原生 <select> 会弹出整屏系统列表/滚轮，与本系统风格完全不一致，
 *       与「type=date」同源问题。
 * 说明：本节为「仅追加」内容，不改动上方任何既有规则；配色沿用既有设计令牌。
 * ===================================================================== */

/* —— 底部选择面板（H5.picker）—— */
.pk-mask {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(0, 0, 0, .5);
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.pk-mask.show { opacity: 1; pointer-events: auto; }
.pk-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    max-width: 750px; margin: 0 auto;
    background: #fff; border-radius: 12px 12px 0 0;
    transform: translateY(100%); transition: transform .25s ease;
    max-height: 78vh; display: flex; flex-direction: column;
    box-shadow: 0 -2px 12px rgba(16, 24, 40, .08);
}
.pk-panel.show { transform: translateY(0); }
.pk-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; border-bottom: 1px solid var(--line);
    font-size: 1rem; font-weight: 600; color: var(--text-main);
}
.pk-x { width: 22px; height: 22px; color: var(--text-mut); flex-shrink: 0; }
.pk-body { overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: 60vh; padding: 4px 0; }
.pk-item {
    display: flex; align-items: center; gap: 8px; width: 100%;
    min-height: 50px; padding: 0 16px;
    font-size: .95rem; color: var(--text-main); text-align: left;
    border-bottom: 1px solid var(--line);
}
.pk-item:last-child { border-bottom: none; }
.pk-item-txt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-item.on { color: var(--brand); font-weight: 600; }
.pk-tick { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; display: none; }
.pk-item.on .pk-tick { display: block; }
.pk-empty { padding: 32px 16px; text-align: center; color: var(--text-mut); font-size: .85rem; }

/* —— 三级联动字段（H5.regionCascade）—— */
.rc-row { display: flex; gap: 8px; }
.rc-row .pk-field { flex: 1; min-width: 0; }
.pk-field {
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    width: 100%; padding: 12px 14px; min-height: 44px;
    background: #F7F8FA; border: 1px solid transparent; border-radius: 10px;
    font-size: .92rem; color: var(--text-main); text-align: left;
}
.pk-field.empty { color: var(--text-mut); }
.pk-field-txt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-caret { width: 12px; height: 12px; color: var(--text-mut); flex-shrink: 0; }

/* —— v1.6.1 微调：仅超窄屏（≤360px）收紧三格，给长区县名多让一点宽度 ——
 * 仍保持三格一行（不堆叠、不一格两行）；只收横向间距与左右内边距，为长名字让出宽度。
 * 🔴 必须包在媒体查询里：收紧后字号是 .86rem，而正常屏上必须与 .form-input 的 .92rem
 *    完全一致（同一张表单里字号一高一矮，客户一眼能看出不统一）。
 * 实测（320px）：内蒙古 文本区 36px→41px、scrollWidth 44px→41px，从不放得下变成刚好放下。 */
@media (max-width: 360px) {
    .rc-row { gap: 6px; }
    .pk-field { padding-left: 12px; padding-right: 12px; font-size: .86rem; }
}
