/* ============================================================
   净屿 · 家政服务（手机端）
   设计：暖奶油底 + 青绿主色 + 琥珀暖调（clean & home）
   刻意区别于社交的霓虹紫，营造"干净、到家"的家政气质
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    font-family: "PingFang SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
    color: #2c2a26;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background:
        radial-gradient(900px 700px at 12% -10%, #2c4a44 0%, transparent 60%),
        radial-gradient(820px 620px at 115% 115%, #4a3a2a 0%, transparent 55%),
        linear-gradient(160deg, #1c2b27 0%, #221c16 100%);
    background-attachment: fixed;
}

/* ---------- 手机设备外壳 ---------- */
.device {
    padding: 12px;
    background: linear-gradient(160deg, #2a2a28, #121210);
    border-radius: 54px;
    box-shadow: 0 40px 90px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.05);
}
.phone {
    position: relative;
    width: 390px; max-width: calc(100vw - 44px);
    height: 824px; max-height: calc(100vh - 60px);
    background: #faf7f0;
    border-radius: 44px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.32);
}
.notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 150px; height: 26px; background: #121210; border-radius: 0 0 16px 16px; z-index: 30;
}
.statusbar {
    height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
    padding: 0 26px; font-size: 13px; font-weight: 600; color: #2c2a26; background: transparent; z-index: 20;
}
.sb-icons { display: inline-flex; align-items: center; gap: 5px; }
.sb-icons i { display: inline-block; background: #2c2a26; border-radius: 2px; }
.sb-signal { width: 16px; height: 11px; -webkit-mask: linear-gradient(#000 0 0) left/4px 100% no-repeat, linear-gradient(#000 0 0) 6px/4px 100% no-repeat, linear-gradient(#000 0 0) 12px/4px 100% no-repeat; }
.sb-wifi { width: 15px; height: 11px; border-radius: 0 0 8px 8px; }
.sb-battery { width: 22px; height: 11px; border-radius: 3px; position: relative; }
.sb-battery::after { content:""; position:absolute; right:-3px; top:3px; width:2px; height:5px; background:#2c2a26; border-radius:1px; }

.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 10; }

/* 顶栏 */
.app-header {
    flex-shrink: 0; min-height: 50px; display: flex; align-items: center; gap: 10px;
    padding: 6px 14px; background: rgba(250,247,240,.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.app-header .h-title { font-size: 18px; font-weight: 800; letter-spacing: .5px; color: #14695e; }
.app-header .h-title .spark { color: #f4a93b; }
.app-header .h-spacer { flex: 1; }
.app-header .h-search {
    flex: 1; display: flex; align-items: center; gap: 6px; background: #fff;
    border: 1px solid #efe6d6; border-radius: 999px; padding: 7px 12px; color: #a89e8e; font-size: 13px;
}
.app-header .h-btn {
    width: 34px; height: 34px; border-radius: 50%; border: none; background: #fff;
    font-size: 17px; color: #14695e; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(20,105,94,.08);
}
.app-header .loc { font-size: 13px; color: #6b6358; display: flex; align-items: center; gap: 3px; }

.app-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #faf7f0; }

/* 底部 Tab */
.tabbar {
    flex-shrink: 0; height: 58px; display: flex; align-items: stretch;
    background: rgba(255,255,255,.95); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0,0,0,.06); position: relative; z-index: 20;
}
.tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: #a89e8e; font-size: 11px; position: relative; transition: color .15s;
}
.tab .tab-ico { font-size: 21px; filter: grayscale(.3); transition: transform .15s; }
.tab.active { color: #0e9f8e; }
.tab.active .tab-ico { filter: none; transform: translateY(-1px) scale(1.06); }
.tab-badge {
    position: absolute; top: 6px; left: 56%; min-width: 16px; height: 16px; padding: 0 4px;
    background: #f4a93b; color: #fff; font-size: 10px; line-height: 16px; text-align: center;
    border-radius: 999px; box-shadow: 0 0 0 2px #fff;
}

/* 通用：头像 */
.avatar {
    border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; overflow: hidden;
}

/* 通用：胶囊/标签 */
.chip {
    display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
    font-size: 13px; color: #6b6358; background: #fff; border: 1px solid #ece3d4; transition: all .15s;
}
.chip.active { color: #fff; background: linear-gradient(135deg,#11a897,#16b87a); border-color: transparent; box-shadow: 0 4px 12px rgba(17,168,151,.28); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }

/* ---------- 首页 ---------- */
.home-hero {
    margin: 12px; border-radius: 20px; padding: 18px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg,#11a897,#16b87a);
    box-shadow: 0 10px 26px rgba(17,168,151,.28);
}
.home-hero .hh-greet { font-size: 13px; opacity: .92; }
.home-hero .hh-title { font-size: 20px; font-weight: 800; margin: 4px 0 12px; }
.home-hero .hh-row { display: flex; gap: 10px; }
.home-hero .hh-pill {
    flex: 1; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
    border-radius: 14px; padding: 10px; backdrop-filter: blur(4px);
}
.home-hero .hh-pill .n { font-size: 18px; font-weight: 800; }
.home-hero .hh-pill .l { font-size: 11px; opacity: .9; }
.home-hero .hh-bubbles { position: absolute; right: -10px; top: -10px; font-size: 84px; opacity: .18; transform: rotate(8deg); }

.home-loc { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px; font-size: 13px; color: #6b6358; }
.home-loc .loc-chip { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #ece3d4; border-radius: 999px; padding: 5px 12px; color: #14695e; font-weight: 600; }

.home-sec { font-size: 16px; font-weight: 800; color: #2c2a26; margin: 16px 16px 8px; display: flex; align-items: center; justify-content: space-between; }
.home-sec .more { font-size: 12px; color: #0e9f8e; font-weight: 600; }

.svc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding: 0 14px; }
.svc-cell {
    background: #fff; border-radius: 16px; padding: 12px 6px; text-align: center;
    box-shadow: 0 2px 10px rgba(70,60,40,.05); border: 1px solid #f3ecdf; transition: transform .12s;
}
.svc-cell:active { transform: scale(.95); }
.svc-cell .svc-ico { font-size: 28px; display: block; margin-bottom: 6px; }
.svc-cell .svc-name { font-size: 12px; color: #4a443b; font-weight: 600; }

.promo {
    margin: 12px 14px; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg,#fdeccf,#fbd89a); color: #8a5a16;
}
.promo .p-ico { font-size: 30px; }
.promo .p-main { flex: 1; }
.promo .p-t { font-size: 15px; font-weight: 800; }
.promo .p-s { font-size: 12px; opacity: .9; }
.promo .p-btn { background: #ffffff; color: #b8751a; border: none; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700; }

.staff-mini { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 4px; scrollbar-width: none; }
.staff-mini::-webkit-scrollbar { display: none; }
.staff-card-mini {
    flex-shrink: 0; width: 130px; background: #fff; border-radius: 16px; padding: 12px; text-align: center;
    box-shadow: 0 2px 10px rgba(70,60,40,.05); border: 1px solid #f3ecdf;
}
.staff-card-mini .avatar { width: 52px; height: 52px; margin: 0 auto 8px; font-size: 20px; }
.staff-card-mini .nm { font-size: 14px; font-weight: 700; }
.staff-card-mini .sk { font-size: 11px; color: #a89e8e; margin: 3px 0 6px; }
.staff-card-mini .rt { font-size: 12px; color: #f4a93b; font-weight: 700; }

.guarantee { display: flex; margin: 14px; background: #fff; border-radius: 16px; padding: 12px 0; box-shadow: 0 2px 10px rgba(70,60,40,.05); border: 1px solid #f3ecdf; }
.guarantee .g { flex: 1; text-align: center; font-size: 12px; color: #6b6358; }
.guarantee .g .gi { font-size: 20px; display: block; margin-bottom: 4px; }
.guarantee .g + .g { border-left: 1px solid #f0e9dc; }

/* ---------- 订单 ---------- */
.seg { display: flex; gap: 16px; padding: 12px 14px 6px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg .sg { font-size: 14px; color: #a89e8e; font-weight: 600; position: relative; padding-bottom: 6px; white-space: nowrap; }
.seg .sg.active { color: #2c2a26; }
.seg .sg.active::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; border-radius:3px; background: linear-gradient(135deg,#11a897,#16b87a); }

.order-card {
    background: #fff; border-radius: 16px; margin: 10px 12px; padding: 14px;
    box-shadow: 0 2px 10px rgba(70,60,40,.05); border: 1px solid #f3ecdf;
}
.order-card .oc-top { display: flex; align-items: center; gap: 10px; }
.order-card .oc-ico { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg,#e7f6f1,#d6f0e6); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.order-card .oc-main { flex: 1; min-width: 0; }
.order-card .oc-main .t { font-size: 15px; font-weight: 700; }
.order-card .oc-main .s { font-size: 12px; color: #a89e8e; margin-top: 2px; }
.order-card .oc-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.st-pending { color: #b8751a; background: #fdeccf; }
.st-doing { color: #0e9f8e; background: #d6f0e6; }
.st-done { color: #8a8a8a; background: #f0ece4; }
.st-cancel { color: #c0584f; background: #fae3e0; }
.order-card .oc-meta { display: flex; gap: 14px; font-size: 12px; color: #6b6358; margin-top: 12px; }
.order-card .oc-meta .pr { color: #d9772b; font-weight: 800; font-size: 15px; }
.order-card .oc-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.obtn { border: 1px solid #ece3d4; background: #fff; color: #4a443b; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.obtn.primary { background: linear-gradient(135deg,#11a897,#16b87a); color: #fff; border: none; }
.obtn.amber { background: linear-gradient(135deg,#f4a93b,#ef8e2c); color: #fff; border: none; }

/* 订单详情时间线 */
.timeline { padding: 4px 0; }
.tl-item { display: flex; gap: 12px; padding: 6px 0; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; flex-shrink: 0; background: #d6f0e6; border: 2px solid #11a897; }
.tl-dot.off { background: #f0ece4; border-color: #ddd3c4; }
.tl-item .tl-t { font-size: 14px; font-weight: 600; color: #2c2a26; }
.tl-item .tl-s { font-size: 12px; color: #a89e8e; margin-top: 2px; }

/* ---------- 阿姨 ---------- */
.staff-list { padding: 0 12px; }
.staff-card {
    background: #fff; border-radius: 16px; margin: 10px 0; padding: 14px; display: flex; gap: 12px;
    box-shadow: 0 2px 10px rgba(70,60,40,.05); border: 1px solid #f3ecdf;
}
.staff-card .avatar { width: 60px; height: 60px; font-size: 22px; }
.staff-card .sc-main { flex: 1; min-width: 0; }
.staff-card .sc-top { display: flex; align-items: center; gap: 8px; }
.staff-card .sc-name { font-size: 16px; font-weight: 800; }
.staff-card .sc-cert { font-size: 11px; color: #0e9f8e; background: #d6f0e6; border-radius: 6px; padding: 2px 6px; }
.staff-card .sc-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag-sk { font-size: 11px; color: #6b6358; background: #f3ecdf; border-radius: 6px; padding: 3px 8px; }
.staff-card .sc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #a89e8e; }
.staff-card .sc-foot .price { color: #d9772b; font-weight: 800; font-size: 15px; }
.staff-card .sc-book { background: linear-gradient(135deg,#f4a93b,#ef8e2c); color: #fff; border: none; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700; }
.rating { color: #f4a93b; font-weight: 700; }

.review { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f0e9dc; }
.review .avatar { width: 36px; height: 36px; font-size: 14px; }
.review .rv-main { flex: 1; }
.review .rv-name { font-size: 13px; font-weight: 700; }
.review .rv-text { font-size: 13px; color: #4a443b; margin-top: 3px; }
.review .rv-time { font-size: 11px; color: #b6b0a3; margin-top: 3px; }

/* ---------- 我的 ---------- */
.profile-hero { background: linear-gradient(135deg,#11a897,#0e9f8e); padding: 22px 16px 26px; color: #fff; position: relative; }
.profile-hero .ph-top { display: flex; align-items: center; gap: 14px; }
.profile-hero .ph-top .avatar { width: 64px; height: 64px; border: 3px solid rgba(255,255,255,.6); font-size: 24px; }
.profile-hero .ph-name { font-size: 20px; font-weight: 800; }
.profile-hero .ph-phone { font-size: 13px; opacity: .9; margin-top: 2px; }
.profile-hero .ph-edit { position: absolute; top: 18px; right: 16px; font-size: 12px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 999px; padding: 5px 12px; }
.profile-stats { display: flex; background: #fff; margin: -16px 12px 0; border-radius: 14px; padding: 14px 0; box-shadow: 0 4px 16px rgba(70,60,40,.08); position: relative; }
.profile-stats .ps { flex: 1; text-align: center; }
.profile-stats .ps .n { font-size: 18px; font-weight: 800; color: #14695e; }
.profile-stats .ps .l { font-size: 12px; color: #a89e8e; }
.profile-stats .ps + .ps { border-left: 1px solid #f0e9dc; }

.my-menu { margin: 14px 12px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(70,60,40,.05); border: 1px solid #f3ecdf; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; font-size: 14px; border-bottom: 1px solid #f3ecdf; }
.menu-item:last-child { border-bottom: none; }
.menu-item .mi-ico { width: 26px; text-align: center; font-size: 17px; }
.menu-item .mi-main { flex: 1; }
.menu-item .mi-arrow { color: #c4bcae; }
.menu-item .mi-badge { background: #f4a93b; color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; margin-right: 6px; }

/* ---------- 弹层 / 表单 ---------- */
.sheet-mask {
    position: absolute; inset: 0; background: rgba(40,32,24,.42); z-index: 40;
    animation: fade .15s ease; display: flex; align-items: flex-end;
}
.sheet {
    width: 100%; height: 100%; background: #faf7f0; display: flex; flex-direction: column;
    animation: sheetUp .22s ease;
}
.sheet-header {
    flex-shrink: 0; height: 50px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
    border-bottom: 1px solid #ece3d4; background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
}
.sheet-back { width: 34px; height: 34px; border: none; background: none; font-size: 24px; color: #2c2a26; }
.sheet-title { font-size: 16px; font-weight: 700; color: #14695e; }
.sheet-header .h-spacer { flex: 1; }
.sheet-body { flex: 1; overflow-y: auto; background: #faf7f0; }

@keyframes sheetUp { from { transform: translateY(8%); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.svc-pick { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 14px; }
.svc-pick .sp { background: #fff; border: 1px solid #ece3d4; border-radius: 14px; padding: 12px 6px; text-align: center; font-size: 13px; }
.svc-pick .sp.sel { border-color: #11a897; background: #e7f6f1; color: #0e9f8e; font-weight: 700; }
.svc-pick .sp .spi { font-size: 24px; display: block; margin-bottom: 5px; }

.form-field { padding: 10px 14px; }
.form-field label { font-size: 13px; color: #6b6358; display: block; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; border: 1px solid #ece3d4; border-radius: 12px; padding: 11px 12px; font-size: 14px;
    outline: none; background: #fff; font-family: inherit; color: #2c2a26;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #11a897; }
.form-foot { padding: 14px; }
.big-btn { width: 100%; border: none; background: linear-gradient(135deg,#11a897,#16b87a); color: #fff; border-radius: 999px; padding: 13px; font-size: 15px; font-weight: 700; box-shadow: 0 6px 16px rgba(17,168,151,.3); }

/* ---------- Toast ---------- */
.toast {
    position: absolute; left: 50%; top: 70px; transform: translateX(-50%);
    background: rgba(44,40,32,.94); color: #fff; padding: 10px 18px; border-radius: 12px;
    font-size: 13px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: toastIn .2s ease;
    backdrop-filter: blur(10px); max-width: 80%;
}
.toast.success { background: linear-gradient(135deg,#16b87a,#0e9f8e); }
.toast.error { background: linear-gradient(135deg,#ef8e2c,#d9772b); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,-8px); } to { opacity: 1; transform: translate(-50%,0); } }

.loading { text-align: center; color: #a89e8e; padding: 30px 0; font-size: 13px; }
.empty-tip { text-align: center; color: #a89e8e; padding: 50px 0; font-size: 14px; }

/* ---------- 窄屏：铺满真机 ---------- */
@media (max-width: 480px) {
    body { padding: 0; background: #faf7f0; }
    .device { padding: 0; background: #faf7f0; border-radius: 0; box-shadow: none; }
    .phone { width: 100%; height: 100vh; max-height: none; max-width: none; border-radius: 0; box-shadow: none; }
    .notch { display: none; }
    .statusbar { display: none; }
}
