/* ===== 移动端（小程序效果的 H5 端：企业端 / 技师端） ===== */
.phone {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f2f4f7;
    position: relative;
    box-shadow: 0 0 0 1px #dfe5ec, 0 18px 40px rgba(15, 39, 64, .18);
    display: flex;
    flex-direction: column;
}
@media (max-width: 480px) { .phone { box-shadow: none; max-width: 100%; } }
.phone-body { flex: 1; padding: 10px 12px 78px; }

.m-bar {
    background: linear-gradient(180deg, #0f3f6f, #0d5fb0);
    color: #fff;
    padding: 12px 14px;
    position: relative;
}
.m-bar .ttl { font-size: 16px; font-weight: 700; text-align: center; }
.m-bar .back { position: absolute; left: 12px; top: 12px; color: #fff; }
.m-bar .sub { text-align: center; font-size: 12px; color: #cfe3f6; margin-top: 2px; }

.m-card { background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(15, 39, 64, .06); }
.m-card .hd { font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }

.m-list { display: flex; flex-direction: column; gap: 10px; }
.m-order {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    border-left: 3px solid var(--brand);
    box-shadow: 0 1px 2px rgba(15, 39, 64, .06);
}
.m-order.urgent { border-left-color: var(--accent); }
.m-order.emergency { border-left-color: var(--bad); }
.m-order .no { font-size: 12px; color: var(--muted); }
.m-order .ttl { font-weight: 600; margin: 2px 0 6px; }
.m-order .meta { font-size: 12px; color: var(--muted); }

.money-card {
    background: linear-gradient(135deg, #0d5fb0, #0a3d75);
    color: #fff;
    border-radius: 6px;
    padding: 12px;
}
.money-card .row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; }
.money-card .big { font-size: 24px; font-weight: 700; }
.money-card .tip { font-size: 12px; opacity: .85; margin-top: 6px; }

.m-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--brand);
    color: #fff;
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
    border: 0;
    cursor: pointer;
}
.m-btn.gray { background: #8a99a8; }
.m-btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.m-btn.danger { background: #fff; color: var(--bad); border: 1px solid var(--bad); }
.m-btn-row { display: flex; gap: 10px; }
.m-btn-row .m-btn { flex: 1; }

.m-fixed-bottom {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 12px;
    box-shadow: 0 -2px 8px rgba(15, 39, 64, .06);
}

.tabbar {
    position: fixed;
    bottom: 0;
    width: 430px;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 30;
}
@media (max-width: 480px) { .tabbar { width: 100%; } }
.tabbar a {
    flex: 1;
    text-align: center;
    padding: 6px 0 5px;
    color: var(--muted);
    font-size: 11px;
}
.tabbar a .ic { display: block; font-size: 18px; line-height: 20px; }
.tabbar a.on { color: var(--brand); font-weight: 600; }

.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.m-grid a { color: var(--text); font-size: 12px; }
.m-grid .ic {
    display: block;
    height: 44px;
    line-height: 44px;
    font-size: 20px;
    background: var(--brand-l);
    border-radius: 8px;
    color: var(--brand);
    margin-bottom: 4px;
}

.m-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.m-tabs a { padding: 5px 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.m-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.m-cell { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f3f5; gap: 10px; }
.m-cell:last-child { border-bottom: 0; }
.m-cell .k { color: var(--muted); font-size: 13px; }
.m-cell .v { text-align: right; }
.m-cell .arrow::after { content: "›"; color: #b9c4cf; margin-left: 6px; }

.m-step { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m-step span { font-size: 12px; padding: 2px 8px; border-radius: 12px; background: #eef1f4; color: var(--muted); }
.m-step span.on { background: var(--brand); color: #fff; }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-l); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.qr-box { text-align: center; padding: 16px; }
.qr-code {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px;
    background: repeating-conic-gradient(#1b2733 0% 25%, #fff 0% 50%) 50% / 20px 20px;
    border: 1px solid var(--line-d);
}
.m-search { display: flex; gap: 8px; margin-bottom: 10px; }
.m-search .input { flex: 1; border-radius: 20px; }

/* 入口门户页 */
.portal { max-width: 980px; margin: 0 auto; padding: 40px 20px; }
.portal-hero { background: linear-gradient(135deg, #0a3d75, #0d5fb0); color: #fff; border-radius: 8px; padding: 26px; margin-bottom: 20px; }
.portal-hero h1 { margin: 0 0 8px; font-size: 24px; }
.portal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .portal-cards { grid-template-columns: 1fr; } }
.portal-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.portal-card h3 { margin-bottom: 6px; }
.portal-card .btn { margin-top: 12px; }
.account-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
