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

/* ---------- 设计变量 ---------- */
:root {
    --brand: #00B578;
    --brand-deep: #00965F;
    --brand-grad: linear-gradient(135deg, #00D18A 0%, #00B578 100%);
    --brand-light: #E6F9F2;
    --text-main: #1A1A1A;
    --text-sub: #666666;
    --text-mut: #999999;
    --bg-page: #F6F7F9;
    --bg-card: #FFFFFF;
    --line: #EEEEEE;
    --st-waitpay: #FF8F1F;   /* 待支付 */
    --st-accept: #FF8F1F;    /* 待接单 */
    --st-serving: #1677FF;   /* 服务中 */
    --st-finish: #00B578;    /* 已完成/已完结 */
    --st-cancel: #999999;    /* 已取消 */
    --st-refund: #F53F3F;    /* 退款 */
    --danger: #F53F3F;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .06);
    --shadow-btn: 0 4px 12px rgba(0, 181, 120, .3);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    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; }
.page { min-height: 100vh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.page-no-tab { padding-bottom: 24px; }

/* ---------- 演示模式横幅 ---------- */
.demo-banner {
    background: #FFF7E6;
    color: #B26A00;
    font-size: .75rem;
    text-align: center;
    padding: 5px 12px;
    border-bottom: 1px solid #FFE7BA;
}

/* ---------- 顶栏 ---------- */
.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-grad); color: #fff; border-bottom: none; }
.navbar-grad .nav-right { color: #fff; }

/* ---------- 首页头部（城市+搜索位） ---------- */
.home-head {
    background: var(--brand-grad);
    padding: 14px 14px 60px;
    color: #fff;
    border-radius: 0 0 20px 20px;
}
.home-head .city-pick {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .95rem; font-weight: 600;
    background: rgba(255, 255, 255, .2);
    padding: 5px 12px; border-radius: 999px;
}
.home-head .slogan { margin-top: 14px; 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);
    box-shadow: var(--shadow);
    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: 18px 10px;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cat-item .cat-icon {
    width: 52px; height: 52px; border-radius: 16px;
    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; box-shadow: var(--shadow);
}
.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: #FF5722; font-weight: 700; font-size: 1.1rem; }
.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: 14px; }
.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(56px + 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;
    box-shadow: var(--shadow);
}
.cell {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 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; box-shadow: var(--shadow); }
.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; }
.stars svg { width: 18px; height: 18px; color: #E0E0E0; }
.stars svg.on { color: #FFB400; }
.stars-input svg { width: 36px; height: 36px; cursor: pointer; }

/* ---------- 用户中心 ---------- */
.uc-head {
    background: var(--brand-grad);
    padding: 26px 18px 56px;
    display: flex; align-items: center; gap: 14px;
    color: #fff; border-radius: 0 0 20px 20px;
}
.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); }
.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: linear-gradient(135deg, #2B3A4A 0%, #16202B 100%);
    margin: 0; padding: 24px 18px 50px; color: #fff; border-radius: 0 0 20px 20px;
}
.income-head .ih-label { font-size: .78rem; opacity: .8; }
.income-head .ih-num { font-size: 2rem; font-weight: 700; margin-top: 4px; }
.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; }

/* ---------- 空状态 ---------- */
.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: 16px 16px 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: 14px;
    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; }
.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: 8px; 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: 36px 20px 26px; 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; }
.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) radial-gradient(circle, #fff 30%, transparent 32%); }

/* ---------- 登录页 ---------- */
.login-wrap { padding: 50px 28px 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); }
.demo-tag {
    display: inline-block; margin: 0 auto;
    background: #FFF7E6; color: #B26A00;
    font-size: .72rem; padding: 4px 12px; border-radius: 999px;
}
.demo-tag-wrap { text-align: center; margin-top: 16px; }

/* ---------- 推广页 ---------- */
.spread-head {
    background: linear-gradient(135deg, #FF9F43 0%, #FF6B6B 100%);
    padding: 26px 18px 46px; color: #fff; border-radius: 0 0 20px 20px;
}
.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); 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; box-shadow: var(--shadow); }
.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; box-shadow: var(--shadow);
}
.worker-stat .ws-num { font-size: 1.1rem; font-weight: 700; color: var(--brand); }
.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); }
