:root { --brand:#0c8f6b; --brand-2:#086d52; --ink:#132235; --muted:#6d7c8f; --line:#e4ebe9; --bg:#f3f7f6; --danger:#c0392b; --warn:#b7791f; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
button,input,textarea,select { font:inherit; }
button { border:0; border-radius:10px; background:var(--brand); color:#fff; padding:10px 14px; }
button.ghost { background:#eaf4f0; color:var(--brand-2); }
button.danger { background:#fdecea; color:var(--danger); }
button.block { width:100%; }
button:disabled { opacity:.5; }
input,textarea,select { width:100%; border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:#fff; }
textarea { min-height:68px; resize:vertical; }
.hidden { display:none!important; }
.app { max-width:560px; margin:0 auto; min-height:100vh; background:var(--bg); padding-bottom:76px; }
.topbar { position:sticky; top:0; z-index:8; background:rgba(12,143,107,.97); color:#fff; padding:14px 16px; display:flex; justify-content:space-between; align-items:center; }
.topbar h1 { font-size:17px; margin:0; }
.topbar .sub { font-size:11px; opacity:.8; }
.role-badge { background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.35); color:#fff; border-radius:999px; padding:3px 8px; font-size:11px; }
.driver-mode .topbar { background:linear-gradient(135deg,#123b5c,#0c8f6b); }
.driver-mode .bottom-nav a.active { color:#0b5c86; }
.driver-mode .card { border-top:3px solid rgba(12,143,107,.35); }
.content { padding:14px 14px 24px; }
.card { background:#fff; border-radius:16px; padding:16px; box-shadow:0 8px 24px rgba(15,60,48,.06); margin-bottom:12px; }
.card h2 { font-size:16px; margin:0 0 10px; }
.card h3 { font-size:14px; margin:0 0 8px; }
.muted { color:var(--muted); }
.small { font-size:12px; }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.spread { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.stack > * + * { margin-top:10px; }
.pill { display:inline-block; padding:2px 8px; border-radius:999px; background:#eaf4f0; color:var(--brand-2); font-size:11px; }
.pill.warn { background:#fff6e5; color:var(--warn); }
.pill.danger { background:#fdecea; color:var(--danger); }
.pill.gray { background:#eef1f4; color:var(--muted); }
.field label { display:block; color:var(--muted); font-size:12px; margin:8px 0 4px; }
.notify-count { position:absolute; top:-5px; right:-5px; min-width:16px; height:16px; line-height:16px; padding:0 4px; border-radius:999px; background:#e74c3c; color:#fff; font-size:10px; text-align:center; }
.notification-item { cursor:pointer; }
.notification-item.read { opacity:.55; }
.license-warning { margin:10px 16px 0; padding:10px 12px; border-radius:10px; background:#fff3cd; color:#7a4b00; font-size:12px; border:1px solid #f0d48a; }
.danger-zone { margin-top:12px; padding:14px; border:1px solid #f0c9c4; border-radius:14px; background:#fff7f5; color:#7a2e24; }
.danger-zone b { font-size:15px; }
.danger-zone p { margin:8px 0 0; font-size:12px; line-height:1.6; color:#8b4a40; }
.doc-row { display:flex; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); }
.doc-row:last-child { border-bottom:0; }
.doc-row .photo { flex:0 0 auto; margin:0; padding:8px 10px; }
.coupon-tabs { margin-bottom:10px; }
.coupon-tabs button { flex:1; font-size:13px; }
.coupon-card { display:flex; align-items:center; gap:12px; padding:14px; margin-bottom:10px; border:1px solid #e6ece9; border-radius:16px; background:linear-gradient(135deg,#ffffff,#f5fbf8); box-shadow:0 4px 14px rgba(16,61,47,.05); }
.coupon-card.used { opacity:.62; background:#f6f7f7; }
.coupon-value { flex:0 0 82px; text-align:center; color:var(--brand-2); font-size:23px; font-weight:800; }
.coupon-value span { display:block; margin-top:2px; color:#8b9a95; font-size:11px; font-weight:400; }
.coupon-info { flex:1; min-width:0; }
.coupon-info b { display:block; font-size:15px; color:var(--ink); margin-bottom:3px; }
.coupon-info > div { font-size:12px; color:#6f8179; margin-top:2px; }
.coupon-card button { flex:0 0 auto; border-radius:999px; padding:8px 13px; }
.points-card { background:linear-gradient(135deg,#fff8e6,#fff1cc); border-color:#f4d58a; }
.points-card b { color:#8a5a00; }
.vehicle-picker { padding:0; overflow:hidden; border-radius:20px; background:#fff; border:1px solid #f0e8df; box-shadow:0 8px 24px rgba(126,74,22,.06); }
.service-tabs { display:flex; gap:6px; overflow-x:auto; padding:14px 14px 8px; scrollbar-width:none; }
.service-tabs::-webkit-scrollbar { display:none; }
.service-tabs button { flex:0 0 auto; border:0; background:transparent; color:#2d2a27; font-size:17px; font-weight:600; padding:8px 11px; border-radius:999px; }
.service-tabs button.active { background:#ff6b00; color:#fff; font-weight:800; box-shadow:0 4px 12px rgba(255,107,0,.25); }
.mode-switch { width:62%; margin:8px auto 6px; padding:4px; display:flex; gap:3px; background:#f4f3f0; border-radius:999px; }
.mode-switch button { flex:1; border:0; background:transparent; color:#77736d; border-radius:999px; padding:9px 10px; font-size:15px; }
.mode-switch button.active { background:#fff; color:#ff6b00; font-weight:800; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.vehicle-showcase { position:relative; height:192px; margin:6px 0 0; display:flex; align-items:center; justify-content:center; background:linear-gradient(180deg,#fffdfb,#fff8f0); overflow:hidden; }
.showcase-watermark { position:absolute; left:24px; top:56px; font-size:38px; font-weight:900; letter-spacing:3px; color:#f1ece4; transform:skew(-8deg); user-select:none; }
.showcase-image { position:relative; max-width:62%; height:158px; object-fit:contain; filter:drop-shadow(0 8px 10px rgba(0,0,0,.10)); }
.showcase-emoji { position:relative; font-size:86px; filter:drop-shadow(0 8px 10px rgba(0,0,0,.10)); }
.showcase-badge { position:absolute; right:26px; top:62px; padding:10px 14px; border-radius:14px; background:#fff3c4; color:#8c5b08; font-size:12px; line-height:1.35; text-align:center; box-shadow:0 4px 12px rgba(0,0,0,.05); }
.showcase-badge b { font-size:17px; }
.showcase-badge span { font-size:11px; }
.showcase-price { display:flex; justify-content:space-between; align-items:center; padding:2px 18px 8px; }
.showcase-price b { font-size:18px; color:#312d28; }
.showcase-price span { color:#ff6b00; font-weight:800; font-size:16px; }
.vehicle-chips { display:flex; flex-wrap:wrap; gap:7px 5px; padding:8px 16px 10px; max-height:180px; overflow:hidden; transition:max-height .2s; }
.vehicle-chips.collapsed { max-height:82px; }
.vehicle-chip { border:1px solid transparent; background:transparent; color:#2f2b26; font-size:16px; padding:6px 9px; border-radius:999px; }
.vehicle-chip.active { border-color:#ff9a52; color:#ff6b00; background:#fff8f1; font-weight:700; }
.vehicle-chip:hover { color:#ff6b00; }
.picker-footer { display:flex; align-items:center; gap:10px; padding:4px 16px 16px; border-top:1px solid #f5f1eb; }
.picker-footer .ghost { border:1px solid #e6e1d9; border-radius:999px; padding:6px 10px; color:#5e5851; font-size:12px; background:#fff; }
.picker-footer .ai-pick { margin-left:auto; border:1px solid #ffd2ad; background:#fff4e8; color:#ff6b00; border-radius:999px; padding:8px 12px; font-size:12px; font-weight:700; }
.home-hero { position:relative; min-height:150px; border-radius:0 0 28px 28px; background:linear-gradient(135deg,#d8f4ea,#c8ede1); padding:22px 18px 18px; overflow:hidden; display:flex; align-items:center; }
.home-hero-copy h1 { font-size:30px; line-height:1.1; margin:0; color:#1b2b3a; letter-spacing:1px; }
.home-hero-copy p { font-size:24px; margin:8px 0 0; color:#0b7f66; font-weight:800; }
.home-hero-image { position:absolute; right:-18px; bottom:0; width:190px; height:130px; object-fit:contain; }
.home-hero-placeholder { position:absolute; right:16px; bottom:10px; font-size:70px; opacity:.8; }
.category-tabs { display:flex; gap:8px; overflow-x:auto; padding:2px 0 12px; -webkit-overflow-scrolling:touch; }
.category-tabs button { flex:0 0 auto; background:transparent; color:var(--muted); padding:8px 10px; border-radius:999px; font-size:15px; }
.category-tabs button.active { background:var(--brand); color:#fff; }
.home-vehicle { flex:0 0 280px; flex-direction:column; align-items:stretch; }
.diy-vehicle-carousel { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; width:100%; gap:10px; padding-bottom:10px; }
.diy-vehicle-slide { flex:0 0 100%; min-width:100%; scroll-snap-align:center; flex-direction:column; align-items:stretch; }
.vehicle-card { display:block; padding:0; margin:0; border:1px solid #e3ece8; border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 8px 24px rgba(16,61,47,.08); }
.vehicle-card.active { border-color:var(--brand); box-shadow:0 10px 28px rgba(12,143,107,.18), 0 0 0 2px rgba(12,143,107,.12); }
.vehicle-media { position:relative; height:188px; display:flex; align-items:center; justify-content:center; background:linear-gradient(145deg,#edf8f3,#f7fbf9); overflow:hidden; }
.vehicle-media .vehicle-image { width:78%; height:156px; object-fit:contain; background:transparent; }
.vehicle-emoji { width:104px; height:104px; display:grid; place-items:center; border-radius:26px; background:#e2f2eb; font-size:52px; }
.vehicle-category { position:absolute; left:14px; top:14px; padding:5px 10px; border-radius:999px; background:rgba(255,255,255,.92); color:var(--brand-2); font-size:12px; font-weight:700; box-shadow:0 3px 10px rgba(0,0,0,.05); }
.vehicle-info { padding:15px 16px 16px; }
.vehicle-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.vehicle-name { font-size:21px; font-weight:800; color:var(--ink); letter-spacing:.2px; }
.vehicle-desc { margin-top:4px; color:#8b9a95; font-size:12px; }
.vehicle-price { text-align:right; white-space:nowrap; }
.vehicle-price b { display:block; font-size:24px; color:var(--brand-2); line-height:1.1; }
.vehicle-price span { display:block; margin-top:3px; color:#9aa8a2; font-size:11px; }
.vehicle-specs { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
.vehicle-specs span { padding:9px 10px; border-radius:10px; background:#f5f9f7; color:var(--ink); font-size:12px; font-weight:600; }
.vehicle-specs i { display:inline-block; margin-right:6px; color:#91a19a; font-style:normal; font-weight:400; }
.vehicle-image { width:100%; height:145px; object-fit:contain; background:#f4faf7; border-radius:12px; }
.vehicle-scroll { display:flex; gap:10px; overflow-x:auto; padding:2px 2px 10px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
.vehicle { display:flex; gap:10px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:14px; margin-bottom:8px; background:#fff; }
.vehicle-scroll .vehicle { flex:0 0 235px; margin-bottom:0; scroll-snap-align:start; }
.vehicle.active { border-color:var(--brand); box-shadow:0 0 0 3px rgba(12,143,107,.12); }
.vehicle .icon { width:54px; height:42px; border-radius:10px; background:#eaf4f0; display:grid; place-items:center; font-size:22px; }
.vehicle .grow { flex:1; min-width:0; }
.vehicle b { font-size:14px; }
.vehicle .price { color:var(--brand-2); font-weight:700; white-space:nowrap; }
.address-book-head { display:flex; justify-content:space-between; align-items:center; margin-top:8px; }
.address-book-head button { padding:6px 10px; font-size:12px; }
.address-book-list { display:flex; flex-direction:column; gap:7px; max-height:190px; overflow:auto; margin-top:8px; }
.address-book-item { display:flex; flex-direction:column; align-items:flex-start; gap:3px; width:100%; text-align:left; border:1px solid #e3ece8; background:#fbfdfc; border-radius:10px; padding:9px 11px; }
.address-book-item b { font-size:13px; color:var(--ink); }
.address-book-item span { font-size:12px; color:#52675e; }
.address-book-item em { font-style:normal; font-size:11px; color:#91a19a; }
.address-empty { padding:16px 10px; border:1px dashed #d8e4df; border-radius:10px; color:#8a9a93; font-size:12px; text-align:center; }
.address-add-form { margin-top:10px; padding:10px; border-radius:10px; background:#f7fbf9; border:1px solid #e3ece8; }
.address-box { border:1px solid var(--line); background:#fff; border-radius:12px; padding:12px; margin:6px 0 12px; cursor:pointer; }
.address-box .address-label { font-weight:800; font-size:15px; color:var(--ink); }
.address-box .address-value { margin-top:4px; color:var(--ink); word-break:break-all; }
.address-box .address-value.placeholder { color:#9aa8b6; }
.map { height:170px; border-radius:14px; background:linear-gradient(135deg,#dff1ea,#e8eef8); position:relative; overflow:hidden; }
.map canvas { width:100%; height:100%; display:block; }
.map .hint { position:absolute; left:10px; bottom:10px; background:rgba(255,255,255,.9); border-radius:8px; padding:4px 8px; font-size:11px; color:var(--muted); }
.bottom-nav { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:560px; background:#fff; border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); z-index:9; padding-bottom:env(safe-area-inset-bottom); }
.bottom-nav a { text-align:center; padding:10px 2px; color:var(--muted); text-decoration:none; font-size:11px; }
.bottom-nav a b { display:block; font-size:18px; line-height:1.2; }
.bottom-nav a.active { color:var(--brand); }
.login { min-height:100vh; display:flex; flex-direction:column; justify-content:center; padding:28px; background:radial-gradient(600px 300px at 100% 0,#d9f4e9,transparent 60%),var(--bg); }
.login .logo { font-size:34px; font-weight:800; color:var(--brand); letter-spacing:-1px; }
.login h2 { margin:8px 0 20px; font-size:20px; }
.tabs { display:flex; background:#eaf0ee; padding:4px; border-radius:12px; margin-bottom:12px; }
.tabs button { flex:1; background:transparent; color:var(--muted); padding:8px; }
.tabs button.active { background:#fff; color:var(--ink); box-shadow:0 2px 8px rgba(0,0,0,.06); }
.steps { display:flex; gap:6px; margin:10px 0; }
.steps span { flex:1; height:4px; border-radius:99px; background:#e3ebe8; }
.steps span.done { background:var(--brand); }
.photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.photo { border:1px dashed #b9d4ca; border-radius:12px; padding:8px; text-align:center; font-size:11px; color:var(--muted); background:#f7fbf9; min-height:96px; display:flex; flex-direction:column; justify-content:center; gap:6px; }
.photo input { display:none; }
.photo img { width:100%; height:64px; object-fit:cover; border-radius:8px; }
.order-item { padding:12px 0; border-bottom:1px solid var(--line); }
.order-item:last-child { border-bottom:0; }
.timeline { list-style:none; margin:6px 0 0; padding:0; }
.timeline li { border-left:2px solid #cfe8de; padding:0 0 12px 12px; position:relative; font-size:12px; }
.timeline li::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--brand); position:absolute; left:-4.5px; top:5px; }
.toast { position:fixed; left:50%; bottom:92px; transform:translateX(-50%); background:#102235; color:#fff; padding:10px 14px; border-radius:10px; z-index:99; max-width:90vw; font-size:13px; }
.sheet-mask { position:fixed; inset:0; background:rgba(8,20,16,.45); z-index:30; display:flex; align-items:flex-end; justify-content:center; }
.sheet { width:100%; max-width:560px; max-height:88vh; overflow:auto; background:#fff; border-radius:20px 20px 0 0; padding:18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet h3 { margin:0 0 12px; }
.chat-panel { padding:0; overflow:hidden; }
.chat-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding:16px 16px 10px; background:linear-gradient(135deg,#e7f7ef,#f6fbf8); }
.chat-head h3 { margin:0; font-size:17px; }
.chat-online { display:flex; align-items:center; gap:5px; margin-top:5px; color:#5c7a6e; font-size:11px; }
.chat-online i { width:7px; height:7px; border-radius:50%; background:#18b36b; box-shadow:0 0 0 3px rgba(24,179,107,.14); }
.chat-hint { margin:0 16px; padding:8px 10px; border-radius:9px; background:#f6f9f8; color:#71827b; font-size:11px; }
.chat-quick { display:flex; gap:7px; overflow-x:auto; padding:10px 16px 2px; }
.chat-quick button { flex:0 0 auto; padding:6px 10px; border-radius:999px; font-size:11px; background:#fff; border:1px solid #dce8e3; color:#426257; }
.chat-input-row { display:flex; gap:8px; align-items:flex-end; padding:10px 12px 14px; border-top:1px solid #edf1ef; background:#fff; }
.chat-input-row textarea { flex:1; min-height:40px; max-height:100px; resize:none; border:1px solid #dfe8e4; border-radius:12px; padding:10px; font:inherit; }
.chat-input-row button { flex:0 0 auto; height:40px; border-radius:12px; padding:0 16px; }
.chat-empty { padding:26px 16px; text-align:center; color:#93a29c; font-size:12px; }
.chat-list { max-height:45vh; overflow:auto; padding:8px 14px; }
.chat-bubble { max-width:82%; padding:8px 10px; border-radius:12px 12px 12px 3px; background:#f1f5f4; margin:6px 0; word-break:break-word; }
.chat-bubble.mine { margin-left:auto; border-radius:12px 12px 3px 12px; background:#dcf5e9; color:#135a43; }
.menu-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.menu-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:12px 4px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--text); text-decoration:none; font-size:12px; text-align:center; cursor:pointer; }
.menu-item .ico { font-size:22px; line-height:1; }
.menu-item .menu-icon { width:28px; height:28px; object-fit:cover; border-radius:7px; display:block; }
.menu-item b { font-weight:500; }
.pager { display:flex; align-items:center; justify-content:center; gap:12px; margin:14px 0; font-size:12px; color:var(--muted); }
.tabs { display:flex; gap:6px; overflow:auto; margin:8px 0; }
.tabs button { background:#eef4f1; color:var(--brand-2); white-space:nowrap; }
.tabs button.active { background:var(--brand); color:#fff; }
.invoice-paper { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; }
@media print { .topbar,.bottom-nav,.no-print { display:none !important; } .content { padding:0; } }
.notice { background:#f1f9f5; border:1px solid #d9eee5; color:#28624f; border-radius:10px; padding:10px 12px; font-size:12px; }
.big { font-size:28px; font-weight:800; color:var(--brand-2); }
.breakdown { font-size:12px; color:var(--muted); }
.breakdown div { display:flex; justify-content:space-between; padding:3px 0; }
