* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html,body { margin:0; padding:0; }
body { font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; background:#f2f4f8; color:#1f2533; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background:#f2f4f8; position:relative; padding-bottom: 56px; }
#topbar { position: sticky; top:0; z-index: 20; background: linear-gradient(135deg,#3b6ef5,#06b6d4); color:#fff; }
.top-inner { height: 48px; display:flex; align-items:center; padding: 0 12px; position:relative; }
.top-back { background:none; border:none; color:#fff; font-size:26px; line-height:1; padding:0 8px 0 0; cursor:pointer; }
.top-title { font-size:17px; font-weight:700; flex:1; text-align:center; }
.top-right { width:30px; }
#view { padding-bottom: 8px; }
.bottom-pad { height: 18px; }

.locbar { display:flex; align-items:center; gap:8px; padding:10px 12px; background:#fff; }
.loc { font-size:13px; color:#3b6ef5; font-weight:600; white-space:nowrap; }
.searchbox { flex:1; background:#f0f2f7; border-radius:18px; padding:7px 14px; color:#9aa3b2; font-size:13px; }
.banner { margin:10px 12px; border-radius:16px; padding:18px 18px; color:#fff; background:linear-gradient(135deg,#ff7a59,#ff4d6d); position:relative; overflow:hidden; }
.bn-t1 { font-size:20px; font-weight:800; }
.bn-t2 { font-size:12px; opacity:.92; margin-top:6px; }
.bn-btn { position:absolute; right:14px; top:14px; background:rgba(255,255,255,.9); color:#ff4d6d; font-size:12px; padding:5px 12px; border-radius:14px; font-weight:700; }

.sec-title { font-size:15px; font-weight:700; margin:16px 14px 8px; color:#1f2533; }
.cat-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; padding:4px 10px; background:#fff; border-radius:14px; margin:0 12px; }
.cat-item { text-align:center; padding:8px 2px; }
.cat-emoji { font-size:26px; }
.cat-name { font-size:11px; margin-top:4px; color:#444; }

.guarantee { display:flex; justify-content:space-around; background:#fff; margin:10px 12px; border-radius:14px; padding:12px 6px; font-size:11px; color:#555; text-align:center; }
.coupon-roll { display:flex; align-items:center; gap:8px; margin:10px 12px; overflow-x:auto; }
.cr-t { font-size:12px; color:#ff4d6d; font-weight:700; white-space:nowrap; }
.cr-it { background:#fff0f0; color:#ff4d6d; border:1px solid #ffd6d6; border-radius:14px; padding:6px 12px; font-size:12px; white-space:nowrap; }

.hlist { padding:0 12px; }
.hcard { display:flex; background:#fff; border-radius:14px; padding:10px; margin-bottom:10px; align-items:center; }
.hcard-em { font-size:34px; width:54px; text-align:center; }
.hcard-bd { flex:1; padding-left:10px; }
.hcard-name { font-size:14px; font-weight:600; }
.hcard-meta { font-size:11px; color:#f5a623; margin:3px 0; }
.hcard-meta .sold { color:#9aa3b2; margin-left:8px; }
.hcard-price { color:#ff4d6d; font-weight:700; font-size:15px; }
.hcard-price .unit { font-size:11px; color:#9aa3b2; font-weight:400; }

.wroll { display:flex; gap:10px; overflow-x:auto; padding:0 12px; }
.wchip { background:#fff; border-radius:14px; padding:10px; display:flex; align-items:center; gap:8px; min-width:180px; }
.w-av { font-size:30px; }
.w-name { font-size:13px; font-weight:600; }
.w-y { font-size:10px; color:#3b6ef5; }
.w-rate { font-size:11px; color:#f5a623; }
.revwall { padding:0 12px; }
.revw { background:#fff; border-radius:12px; padding:10px; margin-bottom:8px; }
.revw-u { font-size:12px; color:#3b6ef5; font-weight:600; }
.revw-r { color:#f5a623; }
.revw-t { font-size:12px; color:#555; margin-top:4px; }

/* 分类页 */
.cate-wrap { display:flex; height:calc(100vh - 104px); }
.cate-left { width:104px; background:#f0f2f7; overflow-y:auto; flex-shrink:0; }
.cate-li { padding:16px 8px; font-size:13px; text-align:center; color:#555; border-left:3px solid transparent; }
.cate-li.on { background:#fff; color:#3b6ef5; font-weight:700; border-left-color:#3b6ef5; }
.cate-right { flex:1; overflow-y:auto; padding:8px 10px; background:#fff; }

.srow { display:flex; padding:10px 6px; border-bottom:1px solid #f0f2f7; align-items:center; }
.srow-em { font-size:28px; width:46px; text-align:center; }
.srow-bd { flex:1; padding-left:8px; }
.srow-name { font-size:14px; font-weight:600; }
.srow-tags { margin:4px 0; }
.srow-tags span, .sv-tags span, .tag { display:inline-block; background:#eef3ff; color:#3b6ef5; font-size:10px; padding:1px 6px; border-radius:8px; margin-right:4px; }
.srow-bot { display:flex; justify-content:space-between; align-items:center; }
.rate { color:#f5a623; font-size:12px; }
.srow-price { color:#ff4d6d; font-weight:700; font-size:14px; }
.srow-price i { font-size:10px; color:#9aa3b2; font-weight:400; font-style:normal; }
.empty { text-align:center; color:#9aa3b2; padding:30px; font-size:13px; }

/* 搜索 */
.sch-bar { display:flex; gap:8px; padding:10px 12px; background:#fff; }
.sch-input { flex:1; border:1px solid #e2e6ee; border-radius:18px; padding:8px 14px; font-size:14px; outline:none; }
.sch-btn { background:#3b6ef5; color:#fff; border:none; border-radius:18px; padding:0 18px; font-size:14px; }
.sch-hot { padding:10px 12px; font-size:12px; color:#9aa3b2; }
.sch-h { display:inline-block; background:#eef3ff; color:#3b6ef5; border-radius:12px; padding:3px 10px; margin:0 6px 6px 0; }
.sch-chips { padding:0 12px; display:flex; flex-wrap:wrap; gap:8px; }
.sch-chip { background:#fff; border:1px solid #e2e6ee; border-radius:14px; padding:6px 12px; font-size:12px; }

/* 服务详情 */
.sv-hero { height:170px; background:linear-gradient(135deg,#3b6ef5,#06b6d4); display:flex; align-items:center; justify-content:center; font-size:84px; position:relative; }
.sv-hero-bg { position:absolute; inset:0; background:radial-gradient(circle at 70% 30%, rgba(255,255,255,.25), transparent 60%); }
.sv-head { background:#fff; padding:14px; margin-bottom:8px; }
.sv-name { font-size:18px; font-weight:800; }
.sv-meta { margin:6px 0; font-size:12px; }
.sv-meta .sold { color:#9aa3b2; margin-left:10px; }
.sv-price { color:#ff4d6d; font-size:22px; font-weight:800; }
.sv-price i { font-size:12px; color:#9aa3b2; font-weight:400; font-style:normal; }
.card { background:#fff; margin:8px 12px; border-radius:14px; padding:12px 14px; }
.card-t { font-size:14px; font-weight:700; margin-bottom:8px; color:#1f2533; }
.card-c { font-size:13px; color:#566; line-height:1.7; }
.spec-line { margin:10px 0; }
.spec-name { font-size:12px; color:#9aa3b2; margin-bottom:6px; }
.spec-opts { display:flex; flex-wrap:wrap; gap:8px; }
.sp { border:1px solid #e2e6ee; border-radius:12px; padding:6px 12px; font-size:12px; color:#444; }
.sp.on { border-color:#3b6ef5; color:#3b6ef5; background:#eef3ff; font-weight:700; }
.wmini { display:flex; align-items:center; gap:10px; padding:10px 6px; border-bottom:1px solid #f0f2f7; }
.wmini-info { flex:1; }
.w-pick { background:#3b6ef5; color:#fff; border:none; border-radius:12px; padding:5px 12px; font-size:12px; }
.rev { padding:10px 0; border-bottom:1px solid #f0f2f7; }
.rev-u { font-size:12px; color:#3b6ef5; font-weight:600; }
.rev-r { color:#f5a623; }
.rev-d { font-size:11px; color:#9aa3b2; float:right; }
.rev-t { font-size:13px; color:#555; margin-top:5px; line-height:1.6; }
.rev-imgs { margin-top:6px; }
.rev-img { font-size:24px; margin-right:6px; }

/* 固定底栏 */
.fixed-bar { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; background:#fff; display:flex; box-shadow:0 -2px 10px rgba(0,0,0,.06); z-index:30; }
.fixed-bar.single button { width:100%; border-radius:0; }
.fb-fav { flex:1; border:none; background:#fff; color:#ff4d6d; font-size:15px; padding:14px; font-weight:600; }
.fb-book { flex:2; border:none; background:linear-gradient(135deg,#3b6ef5,#06b6d4); color:#fff; font-size:16px; font-weight:700; padding:14px; }
#view { padding-bottom: 60px; }

/* 人员详情 */
.wk-hero { background:linear-gradient(135deg,#3b6ef5,#06b6d4); padding:20px 16px; display:flex; align-items:center; gap:14px; color:#fff; }
.wk-av { font-size:56px; }
.wk-name { font-size:19px; font-weight:800; }
.wk-g { font-size:12px; opacity:.85; font-weight:400; }
.wk-rate { font-size:13px; margin-top:4px; }
.wk-region { font-size:12px; margin-top:4px; opacity:.9; }
.wk-certs { display:flex; gap:8px; padding:12px; background:#fff; flex-wrap:wrap; }
.cert { background:#e8f8ee; color:#1aa260; font-size:11px; padding:3px 10px; border-radius:10px; }

/* 预约 */
.bk-svc { display:flex; align-items:center; gap:12px; background:#fff; margin:8px 12px; border-radius:14px; padding:12px; }
.bk-em { font-size:40px; }
.bk-name { font-size:15px; font-weight:700; }
.bk-price { font-size:13px; color:#ff4d6d; font-weight:700; margin-top:4px; }
.bk-price i { font-size:11px; color:#9aa3b2; font-style:normal; font-weight:400; }
.bk-w { font-size:13px; color:#3b6ef5; padding:4px 0; }
.day-row, .slot-row { display:flex; gap:8px; overflow-x:auto; padding:4px 0; }
.day, .slot { border:1px solid #e2e6ee; border-radius:10px; padding:6px 10px; font-size:12px; color:#444; text-align:center; white-space:nowrap; line-height:1.4; }
.day.on, .slot.on { border-color:#3b6ef5; color:#3b6ef5; background:#eef3ff; font-weight:700; }
.addr-sel, .coup-sel { font-size:13px; color:#444; padding:6px 0; }
.addr-edit, .addr-sel .addr-edit { color:#3b6ef5; font-size:12px; }
.bk-note { width:100%; border:1px solid #e2e6ee; border-radius:10px; padding:10px; font-size:13px; min-height:64px; outline:none; resize:none; }
.bill .bill-row { display:flex; justify-content:space-between; font-size:13px; color:#555; padding:6px 0; }
.bill .bill-row.total { font-weight:800; color:#ff4d6d; font-size:16px; border-top:1px dashed #eee; margin-top:4px; padding-top:10px; }

/* 订单列表 */
.otabs, .ctabs { display:flex; gap:4px; padding:10px 8px; background:#fff; overflow-x:auto; position:sticky; top:48px; z-index:10; }
.ot, .ct { font-size:13px; color:#666; padding:6px 12px; border-radius:14px; white-space:nowrap; }
.ot.on, .ct.on { background:#3b6ef5; color:#fff; font-weight:700; }
.olist { padding:0 12px; }
.ocard { background:#fff; border-radius:14px; padding:12px; margin:10px 0; }
.oc-top { display:flex; justify-content:space-between; font-size:14px; font-weight:700; }
.oc-st { color:#ff8a3d; font-size:12px; font-weight:600; }
.oc-mid { font-size:12px; color:#9aa3b2; margin:6px 0; }
.oc-bot { display:flex; justify-content:space-between; align-items:center; }
.oc-price { color:#ff4d6d; font-weight:700; }
.oc-go { color:#3b6ef5; font-size:13px; }

/* 订单详情 */
.od-steps { display:flex; align-items:flex-start; justify-content:space-between; padding:18px 14px; background:#fff; }
.step { text-align:center; flex:1; position:relative; }
.dot { width:16px; height:16px; border-radius:50%; background:#d8dde6; margin:0 auto 6px; }
.step.on .dot { background:#3b6ef5; }
.stx { font-size:11px; color:#9aa3b2; }
.step.on .stx { color:#3b6ef5; font-weight:700; }
.stline { flex:1; height:2px; background:#e2e6ee; margin-top:8px; }
.oc-name2 { font-size:16px; font-weight:800; }
.od-row { display:flex; justify-content:space-between; font-size:13px; color:#555; padding:7px 0; border-bottom:1px solid #f4f6fa; }
.od-row span:first-child { color:#9aa3b2; }
.ph-block { margin:10px 0; }
.ph-t { font-size:12px; color:#9aa3b2; margin-bottom:6px; }
.ph-imgs { display:flex; gap:8px; }
.ph { font-size:40px; background:#f4f6fa; border-radius:10px; width:64px; height:64px; display:flex; align-items:center; justify-content:center; }
.rev-done { font-size:13px; color:#1aa260; padding:4px; }

/* 评价 */
.rev-head { background:#fff; padding:16px; font-size:16px; font-weight:800; text-align:center; }
.rate3 { background:#fff; margin:8px 12px; border-radius:14px; padding:12px 14px; }
.r3-line { display:flex; justify-content:space-between; align-items:center; padding:8px 0; }
.r3-line span:first-child { font-size:14px; }
.stars { color:#f5a623; font-size:20px; letter-spacing:2px; }
.rev-txt { width:calc(100% - 24px); margin:8px 12px; border:1px solid #e2e6ee; border-radius:12px; padding:12px; font-size:14px; min-height:90px; outline:none; resize:none; }
.rev-imgs-add { margin:0 12px 12px; }
.rev-imgs-add .rev-img { background:#f4f6fa; border-radius:10px; padding:14px 18px; font-size:13px; color:#666; }

/* 优惠券 */
.clist { padding:0 12px; }
.cp { display:flex; background:#fff; border-radius:14px; margin:10px 0; overflow:hidden; }
.cp.exp { opacity:.55; }
.cp-l { flex:1; padding:14px; border-left:4px solid #ff4d6d; }
.cp-cond { font-size:17px; font-weight:800; color:#ff4d6d; }
.cp-name { font-size:13px; color:#333; margin-top:4px; }
.cp-scope { font-size:11px; color:#9aa3b2; margin-top:3px; }
.cp-r { display:flex; align-items:center; padding:0 14px; background:#fff5f5; }
.cp-btn { background:#ff4d6d; color:#fff; border:none; border-radius:14px; padding:7px 14px; font-size:13px; font-weight:700; }
.cp-btn.use { background:#3b6ef5; }
.cp-dis { font-size:12px; color:#9aa3b2; }

/* 我的 */
.mine-card { background:linear-gradient(135deg,#3b6ef5,#06b6d4); color:#fff; padding:22px 18px; }
.mc-level { display:inline-block; background:rgba(255,255,255,.25); border-radius:12px; padding:3px 12px; font-size:12px; font-weight:700; }
.mc-name { font-size:18px; font-weight:800; margin:10px 0; }
.mc-meta { display:flex; gap:18px; font-size:13px; }
.mine-orders { background:#fff; margin:10px 12px; border-radius:14px; padding:12px; }
.mo-t { font-size:13px; color:#9aa3b2; margin-bottom:8px; }
.mo-row { display:flex; }
.mo-row > div { flex:1; text-align:center; font-size:12px; color:#666; }
.mo-row b { display:block; font-size:18px; color:#3b6ef5; }
.m-menu { background:#fff; margin:10px 12px; border-radius:14px; overflow:hidden; }
.m-row { display:flex; align-items:center; padding:14px; border-bottom:1px solid #f4f6fa; }
.m-ic { font-size:18px; width:30px; }
.m-tx { flex:1; font-size:14px; }
.m-ar { color:#cdd3df; font-size:18px; }

/* 地址 */
.addr-list { padding:0 12px; }
.addr-card { background:#fff; border-radius:14px; padding:12px; margin:10px 0; }
.ac-top { font-size:14px; font-weight:700; display:flex; align-items:center; gap:8px; }
.ac-tag { background:#3b6ef5; color:#fff; font-size:11px; padding:1px 8px; border-radius:8px; }
.ac-def { background:#e8f8ee; color:#1aa260; font-size:11px; padding:1px 8px; border-radius:8px; }
.ac-detail { font-size:13px; color:#666; margin:6px 0; }
.ac-act { display:flex; gap:16px; font-size:12px; color:#3b6ef5; }
.big-btn { width:calc(100% - 24px); margin:0 12px; background:#3b6ef5; color:#fff; border:none; border-radius:14px; padding:13px; font-size:15px; font-weight:700; }
.form { background:#fff; margin:10px 12px; border-radius:14px; padding:14px; }
.form label { display:block; font-size:13px; color:#666; margin:10px 0 4px; }
.form input { width:100%; border:1px solid #e2e6ee; border-radius:10px; padding:10px; font-size:14px; outline:none; }
.tag-row { display:flex; gap:10px; margin-top:6px; }
.ftag { border:1px solid #e2e6ee; border-radius:12px; padding:6px 18px; font-size:13px; color:#666; }
.ftag.on { border-color:#3b6ef5; color:#3b6ef5; background:#eef3ff; font-weight:700; }

/* 收藏 */
.fav-del { color:#ff4d6d; font-size:12px; padding:4px 0; }

/* 帮助 */
.help-banner { background:#eef3ff; color:#3b6ef5; text-align:center; padding:12px; font-size:13px; font-weight:600; }
.faq { background:#fff; margin:8px 12px; border-radius:12px; padding:12px 14px; }
.faq-q { font-size:14px; font-weight:600; display:flex; justify-content:space-between; }
.faq-ar { color:#cdd3df; }
.faq-a { font-size:13px; color:#566; line-height:1.7; margin-top:8px; }

/* 会员 */
.lv-list { padding:0 12px; }
.lv { background:#fff; border-radius:14px; padding:12px; margin:10px 0; border:1px solid #eef0f5; }
.lv.on { border-color:#3b6ef5; background:#eef3ff; }
.lv-name { font-size:15px; font-weight:800; color:#3b6ef5; }
.lv-perk { font-size:12px; color:#566; margin:6px 0; }
.lv-need { font-size:11px; color:#9aa3b2; }
.mcard-list { padding:0 12px; display:flex; flex-direction:column; gap:10px; }
.mcard { background:#fff; border-radius:14px; padding:14px; display:flex; flex-direction:column; }
.mc-t { font-size:15px; font-weight:800; }
.mc-sub { font-size:12px; color:#9aa3b2; margin:4px 0; }
.mc-price { font-size:18px; font-weight:800; color:#ff4d6d; }
.mc-save { font-size:11px; color:#1aa260; margin-left:6px; }
.mc-buy { align-self:flex-start; margin-top:8px; background:#3b6ef5; color:#fff; border:none; border-radius:12px; padding:7px 18px; font-size:13px; font-weight:700; }

/* toast */
#toast { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); background:rgba(0,0,0,.8); color:#fff; padding:10px 18px; border-radius:10px; font-size:14px; z-index:99; opacity:0; pointer-events:none; transition:opacity .2s; max-width:80%; text-align:center; }
#toast.show { opacity:1; }

/* 底部 Tab */
#tabbar { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; height:54px; background:#fff; border-top:1px solid #eee; display:flex; z-index:40; }
.tab { flex:1; text-align:center; padding:6px 0; color:#9aa3b2; cursor:pointer; }
.tab-ic { font-size:20px; line-height:1; }
.tab-tx { font-size:11px; margin-top:2px; }
.tab.on { color:#3b6ef5; }
