:root{--main:#2f7df6;--main2:#1e5fd0;--ok:#21b573;--warn:#ff9d00;--bg:#f4f6fa;--tx:#222;--tx2:#888;--line:#eceef2;--red:#e64340}
*{margin:0;padding:0;box-sizing:border-box;font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
body{background:var(--bg);color:var(--tx);font-size:14px}
a{text-decoration:none;color:inherit}
input,select,textarea,button{font-size:14px;outline:none;border:none;background:transparent}
button{cursor:pointer}
img{display:block;max-width:100%}
/* 布局 */
.hd{position:sticky;top:0;z-index:50;background:linear-gradient(135deg,#2f7df6,#5aa2ff);padding:10px 14px;color:#fff}
.hd-loc{font-size:13px;opacity:.95;margin-bottom:8px}
.hd-search{background:#fff;border-radius:18px;padding:8px 14px}
.hd-search input{width:100%;color:#333}
main{padding-bottom:70px;max-width:520px;margin:0 auto}
.tabbar{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;z-index:60;max-width:520px;margin:0 auto}
.tabbar a{flex:1;text-align:center;padding:7px 0 9px;font-size:12px;color:var(--tx2)}
.tabbar a span{display:block;font-size:20px}
.tabbar a.on{color:var(--main)}
/* 卡片 */
.card{background:#fff;border-radius:12px;margin:10px 12px;padding:14px}
.sec-t{display:flex;justify-content:space-between;align-items:center;margin:16px 14px 4px;font-weight:600;font-size:15px}
.sec-t a{color:var(--tx2);font-weight:400;font-size:12px}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px}
.grid4 .it{text-align:center;background:#fff;border-radius:12px;padding:12px 4px}
.grid4 .it img{width:40px;height:40px;object-fit:cover;border-radius:8px;margin:0 auto 6px}
.grid4 .it div{font-size:12px}
.banner{position:relative;margin:4px 12px;border-radius:12px;overflow:hidden}
.banner img{width:100%;height:130px;object-fit:cover}
.banner span{position:absolute;left:12px;bottom:10px;color:#fff;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.svc{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.svc:last-child{border:none}
.svc img{width:110px;height:76px;border-radius:8px;object-fit:cover;flex-shrink:0}
.svc .info{flex:1;min-width:0}
.svc h4{font-size:15px;margin-bottom:4px}
.svc p{font-size:12px;color:var(--tx2);margin-bottom:6px}
.price{color:var(--red);font-weight:700}
.price small{font-weight:400;font-size:11px;color:var(--tx2);margin-left:6px;text-decoration:line-through}
.btn{background:var(--main);color:#fff;border-radius:18px;padding:7px 16px;font-size:13px}
.btn.sm{padding:4px 12px;font-size:12px}
.btn.ghost{background:#fff;color:var(--main);border:1px solid var(--main)}
.btn.ok{background:var(--ok)}
.btn.gray{background:#eee;color:#999}
.btn.red{background:var(--red)}
.worker-card{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;margin:8px 12px;padding:12px}
.worker-card img{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#eee}
.stars{color:#ffb400;font-size:12px}
.tag{display:inline-block;background:#eef4ff;color:var(--main);border-radius:4px;padding:1px 6px;font-size:11px;margin-right:4px}
.tag.g{background:#e8f8f0;color:var(--ok)}
.tag.o{background:#fff4e5;color:var(--warn)}
.tag.r{background:#ffeaea;color:var(--red)}
/* 表单 */
.form{padding:0}
.form .row{display:flex;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.form .row label{width:80px;color:#555;flex-shrink:0;padding-top:2px}
.form .row input,.form .row textarea,.form .row select{flex:1;width:100%;color:#333}
.form .row textarea{min-height:60px;resize:vertical}
.stepper{display:flex;align-items:center;gap:10px}
.stepper button{width:26px;height:26px;border-radius:50%;background:#eef4ff;color:var(--main);font-size:16px}
/* 订单卡 */
.order{background:#fff;border-radius:12px;margin:10px 12px;padding:14px}
.order .top{display:flex;justify-content:space-between;font-size:12px;color:var(--tx2);margin-bottom:8px}
.order .top b{color:var(--main)}
.order .mid{display:flex;gap:10px}
.order .mid img{width:60px;height:60px;border-radius:8px;object-fit:cover}
.order .foot{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.order .foot .acts{display:flex;gap:8px}
.status-pending_grab,.status-grabbing,.status-pending_assign{color:var(--warn)}
.status-grabbed,.status-arrived,.status-processing{color:var(--main)}
.status-finished{color:var(--ok)}
.status-cancelled{color:#999}
.status-aftersale{color:var(--red)}
/* 我的 */
.me-head{background:linear-gradient(135deg,#2f7df6,#5aa2ff);color:#fff;padding:26px 16px 30px}
.me-head .av{width:56px;height:56px;border-radius:50%;background:#fff3;display:flex;align-items:center;justify-content:center;font-size:26px;margin-bottom:8px}
.me-grid{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;margin:-22px 12px 0;background:#fff;border-radius:12px;padding:14px 0}
.me-grid b{font-size:17px}
.me-grid div{font-size:12px;color:var(--tx2)}
.me-list{background:#fff;margin:12px;border-radius:12px;overflow:hidden}
.me-list a{display:flex;justify-content:space-between;padding:14px;border-bottom:1px solid var(--line);font-size:14px}
.me-list a:last-child{border:none}
.me-list a i{color:#ccc;font-style:normal}
/* 弹层 */
.mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:90;display:none;align-items:flex-end;justify-content:center}
.mask.show{display:flex}
.sheet{background:#fff;width:100%;max-width:520px;border-radius:16px 16px 0 0;padding:16px;max-height:82vh;overflow:auto}
.sheet h3{margin-bottom:10px;font-size:16px}
.sheet .close{float:right;color:#999;font-size:18px}
#toast{position:fixed;top:45%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.75);color:#fff;padding:10px 18px;border-radius:8px;font-size:13px;display:none;z-index:99}
.empty{text-align:center;color:#bbb;padding:50px 0}
.upimgs{display:flex;gap:8px;flex-wrap:wrap}
.upimgs img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.upimgs .add{width:64px;height:64px;border:1px dashed #ccc;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:24px;color:#ccc}
.bigbtn{width:100%;background:var(--main);color:#fff;border-radius:22px;padding:12px;font-size:15px;margin-top:14px}
.center-link{ text-align:center;margin-top:12px;font-size:12px;color:var(--tx2)}
