:root{--bg:#f6f7fb;--card:#fff;--text:#1f2937;--muted:#6b7280;--brand:#ff6b35;--brand2:#ffb347;--line:#e5e7eb;--green:#16a34a;--red:#dc2626;--shadow:0 18px 45px rgba(15,23,42,.08);--radius:20px}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",Arial,sans-serif;background:var(--bg);color:var(--text);padding-bottom:80px}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}.app{max-width:980px;margin:0 auto;padding:14px}.topbar{position:sticky;top:0;z-index:8;background:rgba(246,247,251,.92);backdrop-filter:blur(14px);padding:12px 14px;border-bottom:1px solid rgba(229,231,235,.7);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:10px;align-items:center}.logo{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--brand),var(--brand2));display:grid;place-items:center;color:#fff;font-weight:900;box-shadow:var(--shadow)}.brand h1{font-size:18px;margin:0}.brand p{font-size:12px;color:var(--muted);margin:2px 0 0}.cart-icon{position:relative;border:0;background:#fff;border-radius:14px;padding:10px 12px;box-shadow:var(--shadow);font-weight:800}.badge{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;border-radius:99px;background:var(--red);color:#fff;font-size:12px;display:grid;place-items:center;padding:0 5px}.hero{border-radius:28px;background:linear-gradient(135deg,#111827,#374151);color:#fff;padding:26px 22px;margin:14px 0;box-shadow:var(--shadow);overflow:hidden;position:relative}.hero:after{content:"";position:absolute;right:-40px;top:-50px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.12)}.hero h2{margin:0 0 8px;font-size:26px}.hero p{margin:0;color:#e5e7eb}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick{background:var(--card);border-radius:var(--radius);padding:16px;text-align:center;box-shadow:var(--shadow);border:1px solid var(--line)}.quick b{display:block;margin-top:8px}.card{background:var(--card);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);border:1px solid var(--line);margin:14px 0}.section-title{display:flex;justify-content:space-between;align-items:center;margin:18px 0 10px}.section-title h2{font-size:20px;margin:0}.muted{color:var(--muted);font-size:13px}.search{width:100%;border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px 14px;font-size:15px;outline:none}.tabs{display:flex;gap:8px;overflow:auto;padding:8px 0}.tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 14px;white-space:nowrap;color:var(--muted)}.tab.active{background:var(--brand);border-color:var(--brand);color:#fff}.food-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.food{background:#fff;border-radius:22px;box-shadow:var(--shadow);overflow:hidden;border:1px solid var(--line)}.food-img{height:130px;background:#f3f4f6;object-fit:cover;width:100%}.food-body{padding:13px}.food h3{font-size:16px;margin:0 0 6px}.food p{height:38px;overflow:hidden;margin:0 0 10px;color:var(--muted);font-size:13px;line-height:1.45}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.price{color:var(--brand);font-size:18px;font-weight:900}.btn{border:0;border-radius:14px;padding:11px 14px;background:var(--brand);color:#fff;font-weight:800;cursor:pointer}.btn.secondary{background:#111827}.btn.light{background:#fff;color:var(--text);border:1px solid var(--line)}.btn.danger{background:var(--red)}.btn.green{background:var(--green)}.btn.small{padding:7px 10px;border-radius:10px;font-size:12px}.input,.select,textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px 13px;font-size:15px;outline:none}textarea{min-height:88px;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.field label{display:block;font-size:13px;color:var(--muted);margin:0 0 6px}.cart-item{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}.cart-item:last-child{border-bottom:0}.cart-item img{width:64px;height:64px;border-radius:16px;object-fit:cover}.qty{display:flex;align-items:center;gap:8px}.qty button{width:30px;height:30px;border-radius:10px;border:1px solid var(--line);background:#fff}.paybox{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.paycard{border:1px solid var(--line);border-radius:18px;padding:12px;background:#fff}.paycard.selected{border-color:var(--brand);box-shadow:0 0 0 3px rgba(255,107,53,.12)}.paycard img{height:150px;object-fit:contain;margin:8px auto}.bottom-nav{position:fixed;z-index:20;left:50%;bottom:12px;transform:translateX(-50%);width:min(720px,calc(100% - 24px));display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.95);backdrop-filter:blur(18px);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:8px}.bottom-nav a{text-align:center;color:var(--muted);font-size:12px;padding:7px 4px;border-radius:16px}.bottom-nav a.active{background:#fff1eb;color:var(--brand);font-weight:900}.notice{border-radius:16px;background:#fff7ed;color:#9a3412;padding:12px;margin:12px 0}.status{display:inline-flex;border-radius:999px;padding:5px 10px;font-size:12px;background:#f3f4f6;color:#374151}.stars{display:flex;gap:6px}.star{font-size:26px;color:#d1d5db;cursor:pointer}.star.active{color:#f59e0b}.table-wrap{overflow:auto}.empty{text-align:center;color:var(--muted);padding:34px 10px}.modal{position:fixed;inset:0;background:rgba(15,23,42,.5);display:none;align-items:center;justify-content:center;padding:18px;z-index:50}.modal.show{display:flex}.modal-box{background:#fff;border-radius:24px;padding:18px;width:min(620px,100%);max-height:88vh;overflow:auto}.modal-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.close{border:0;background:#f3f4f6;border-radius:10px;width:36px;height:36px}.pill{display:inline-block;border-radius:999px;background:#f3f4f6;padding:6px 10px;margin:3px;font-size:12px}.category-block{margin:12px 0}.category-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);cursor:pointer}.category-content{display:none}.category-content.open{display:block}@media(max-width:720px){.app{padding:12px}.grid{grid-template-columns:repeat(3,1fr);gap:9px}.quick{padding:13px 8px}.food-grid{grid-template-columns:1fr}.form-grid,.paybox{grid-template-columns:1fr}.hero h2{font-size:22px}.cart-item{grid-template-columns:56px 1fr}.cart-item .qty{grid-column:2}.bottom-nav{grid-template-columns:repeat(5,1fr)}}
/* v3 支付流程与现代简约细节优化 */
.checkout-hero{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0;padding:22px;border-radius:28px;background:linear-gradient(135deg,#ffffff,#fff7ed);border:1px solid var(--line);box-shadow:var(--shadow)}.checkout-hero h2{margin:0 0 6px;font-size:24px}.checkout-hero p{margin:0;color:var(--muted)}.checkout-bar{position:sticky;bottom:90px;z-index:9;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:22px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;margin:14px 0}.checkout-bar strong{display:block}.pay-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.pay-steps span{background:#f8fafc;border:1px solid var(--line);border-radius:14px;text-align:center;padding:10px 6px;font-size:13px;color:var(--muted)}.pay-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.pay-option{border:1px solid var(--line);background:#fff;border-radius:18px;padding:13px;text-align:left;cursor:pointer}.pay-option b{display:block;font-size:15px}.pay-option small{display:block;color:var(--muted);margin-top:5px;line-height:1.4}.pay-option.selected{border-color:var(--brand);box-shadow:0 0 0 4px rgba(255,107,53,.12);background:#fff7ed}.pay-qr{border:1px dashed #fed7aa;background:#fff7ed;border-radius:20px;padding:14px;margin:12px 0}.pay-qr h3{margin:0 0 10px}.pay-qr img{max-height:260px;object-fit:contain;margin:auto;border-radius:16px;background:#fff}.text-danger{border:0;background:transparent;color:var(--red);padding:0;margin-top:4px;cursor:pointer}details summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none}details summary::-webkit-details-marker{display:none}.review-img,.feedback-img{max-height:160px;border-radius:16px;margin-top:8px}.order-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}@media(max-width:720px){.checkout-hero{align-items:flex-start;flex-direction:column}.checkout-bar{bottom:88px}.pay-options,.pay-steps{grid-template-columns:1fr}.pay-qr img{max-height:220px}}
/* v4 金币、订单时间线、公开评价 */
.timeline{position:relative;margin:12px 0;padding-left:16px;border-left:3px solid #fed7aa}.timeline-item{margin:0 0 10px;padding:10px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:14px}.timeline-item b{display:block}.wallet-card{background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #fed7aa;border-radius:24px;padding:18px;box-shadow:var(--shadow)}.wallet-card .balance{font-size:34px;font-weight:900;color:var(--brand);margin:8px 0}.history-list{display:grid;gap:10px}.mini-card{border:1px solid var(--line);border-radius:16px;padding:12px;background:#fff}.avatar{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#f3f4f6}.review-card{display:grid;gap:10px;border:1px solid var(--line);border-radius:20px;background:#fff;padding:14px;box-shadow:var(--shadow);margin:12px 0}.review-head{display:flex;gap:10px;align-items:center}.reply{background:#f8fafc;border-radius:14px;padding:10px;margin:6px 0}.pay-warning{background:#fff7ed;border:1px solid #fed7aa;border-radius:18px;padding:12px;color:#9a3412;line-height:1.6}.status-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.status-grid div{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:10px}@media(max-width:720px){.status-grid{grid-template-columns:1fr}.wallet-card .balance{font-size:28px}}
/* V5 additions */
.back-btn{width:36px;height:36px;border:0;border-radius:14px;background:#fff7ed;color:#9a3412;font-size:28px;line-height:1;box-shadow:0 8px 20px rgba(154,52,18,.08);cursor:pointer;margin-right:8px}.password-wrap{display:flex;gap:8px;align-items:center}.password-wrap .input{flex:1}.order-summary details{border:1px solid #f1f5f9;border-radius:16px;padding:10px 12px;background:#fff}.order-summary summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center}.chat-box{border:1px solid #f1f5f9;border-radius:18px;background:#fff;padding:12px;margin-top:14px}.chat-list{display:flex;flex-direction:column;gap:10px;max-height:320px;overflow:auto;padding:6px}.chat-msg{max-width:88%;padding:10px 12px;border-radius:16px;background:#f8fafc}.chat-msg.mine{align-self:flex-end;background:#fff7ed}.chat-msg.admin{border-left:4px solid #f97316}.chat-head{font-size:12px;color:#64748b;margin-bottom:4px}.media-stack{display:flex;gap:8px;overflow-x:auto;padding:6px 0;scroll-snap-type:x mandatory}.media-stack img,.media-stack video{height:120px;max-width:180px;border-radius:14px;object-fit:cover;scroll-snap-align:start;cursor:pointer}.media-stack audio{width:220px}.chat-input{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px}.chat-input textarea{min-height:72px}.viewer{position:fixed;inset:0;background:rgba(15,23,42,.86);z-index:999;display:none;align-items:center;justify-content:center;padding:20px}.viewer.show{display:flex}.viewer img,.viewer video{max-width:96vw;max-height:86vh;border-radius:18px;background:#000}.viewer .close-viewer{position:absolute;top:16px;right:16px;background:#fff;border:0;border-radius:999px;width:40px;height:40px;font-size:22px}.change-card{border:1px dashed #fb923c;background:#fff7ed;border-radius:16px;padding:10px;margin:8px 0}.pay-warning{background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;padding:10px;color:#9a3412;margin:10px 0}.nav-location{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.nav-location a{display:inline-flex;align-items:center;gap:6px;padding:10px 12px;border-radius:999px;background:#fff7ed;color:#9a3412;text-decoration:none;font-weight:700}.order-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.topbar{gap:8px}
/* V6 私聊、订单备注、未读提醒 */
.top-actions{display:flex;align-items:center;gap:8px}.msg-icon{background:#fff7ed}.bottom-nav{grid-template-columns:repeat(6,1fr)}.msg-badge{display:none}.global-msg-tip{position:fixed;right:14px;bottom:92px;z-index:60;background:#111827;color:#fff;border-radius:999px;padding:10px 14px;box-shadow:var(--shadow);font-size:13px;cursor:pointer}.thread-card{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);border-radius:18px;padding:13px;margin:10px 0;background:#fff;box-shadow:var(--shadow);cursor:pointer}.thread-card:hover{border-color:#fed7aa;background:#fff7ed}.unread-dot{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:var(--red);color:#fff;font-size:12px;font-weight:900;padding:0 7px}.note-box{border:1px solid #bfdbfe;background:#eff6ff;border-radius:18px;padding:12px;margin:14px 0}.note-item{border:1px solid #dbeafe;background:#fff;border-radius:14px;padding:10px;margin:8px 0}.note-item p{margin:6px 0 0;line-height:1.6}.chat-box h3,.note-box h3{margin:0}.chat-msg.mine .chat-head{color:#9a3412}.chat-msg.admin .chat-head{font-weight:700}.media-stack img+img,.media-stack video+video{margin-left:0}@media(max-width:720px){.bottom-nav{grid-template-columns:repeat(6,1fr);font-size:11px;padding:7px}.bottom-nav a{font-size:11px;padding:7px 2px}.global-msg-tip{bottom:86px;right:10px}.top-actions{gap:5px}.cart-icon{padding:9px 10px}}
/* V7 好友、私聊搜索、强提醒 */
.msg-tabs{display:flex;gap:8px;overflow:auto;margin:10px 0}.msg-tabs button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;font-weight:800;color:var(--muted)}.msg-tabs button.active{background:var(--brand);border-color:var(--brand);color:#fff}.friend-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:16px;padding:11px;margin:8px 0}.friend-actions{display:flex;gap:6px;flex-wrap:wrap}.strong-alert{animation:qjPulse 1s infinite}.global-msg-tip{font-weight:900;border:2px solid #fff;animation:qjBounce 1.2s infinite}.unread-dot{animation:qjPulse 1.1s infinite}@keyframes qjPulse{0%{box-shadow:0 0 0 0 rgba(220,38,38,.35)}70%{box-shadow:0 0 0 10px rgba(220,38,38,0)}100%{box-shadow:0 0 0 0 rgba(220,38,38,0)}}@keyframes qjBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}

.req{color:#ef4444;font-size:12px}.optional{color:#6b7280;font-size:12px}.auth-tabs{display:flex;gap:8px;margin:12px 0}.auth-tabs button{border:0;border-radius:999px;padding:10px 18px;background:#f3f4f6}.auth-tabs button.active{background:#111827;color:#fff}.emoji-bar{display:flex;gap:6px;margin:6px 0}.emoji-bar button{border:0;border-radius:10px;background:#f3f4f6;padding:8px 10px;font-size:18px}.global-msg-tip{position:fixed;right:14px;bottom:86px;z-index:80;background:#ef4444;color:#fff;border-radius:999px;padding:10px 14px;box-shadow:0 10px 25px rgba(239,68,68,.3);font-weight:700}.strong-alert{animation:qjPulse 1s infinite alternate}@keyframes qjPulse{from{box-shadow:0 0 0 rgba(239,68,68,0)}to{box-shadow:0 0 0 4px rgba(239,68,68,.16)}}

.food-detail .detail-img,.detail-img{width:100%;max-height:360px;object-fit:cover;border-radius:18px;margin-bottom:14px}.req{color:#ef4444}.optional{color:#64748b}.global-msg-tip{position:fixed;right:16px;bottom:86px;z-index:90;background:#ef4444;color:#fff;padding:10px 14px;border-radius:999px;box-shadow:0 10px 24px rgba(239,68,68,.25);font-weight:700}.strong-alert{animation:qjPulse 1s infinite}@keyframes qjPulse{0%,100%{box-shadow:0 0 0 rgba(239,68,68,0)}50%{box-shadow:0 0 0 5px rgba(239,68,68,.12)}}

/* V16 final polish */
.food .row span .btn{margin-left:6px}
input[readonly]{background:#f7f8fb;color:#6b7280}
.red-text{color:#ef4444;font-weight:800}

/* V16 orderfix */
.status-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.status-tabs button{border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:8px 12px;color:#374151}
.status-tabs button.active{background:#111827;color:#fff;border-color:#111827}
.order-msg-jump{border:1px dashed #d1d5db;background:#f9fafb}
.order-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #f3f4f6}
.strong-out-alert{animation:qjPulse 1s infinite;background:#fff7ed!important;border-color:#fb923c!important}
@keyframes qjPulse{0%{box-shadow:0 0 0 0 rgba(251,146,60,.55)}70%{box-shadow:0 0 0 10px rgba(251,146,60,0)}100%{box-shadow:0 0 0 0 rgba(251,146,60,0)}}
.btn.mini{padding:4px 7px;border-radius:8px;font-size:11px;margin-left:6px}.review-item{border:1px solid var(--line);border-radius:16px;padding:12px;margin:10px 0;background:#fff}.stars-text{color:#f59e0b;font-weight:900}.food-detail .detail-img{width:100%;max-height:320px;object-fit:cover;border-radius:18px;background:#f3f4f6}.order-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
/* V20.2 chat/order polish */
.chat-list{scroll-behavior:auto}.order-msg-jump{border:1px dashed #d1d5db;background:#f9fafb}.strong-out-alert{animation:qjPulse 1s infinite;background:#fff7ed!important;border-color:#fb923c!important}.sound-hint{font-size:12px;color:#6b7280;margin:6px 0}.review-empty{border:1px dashed var(--line);border-radius:16px;padding:16px;text-align:center;color:var(--muted);background:#fafafa}

/* V20.2.1 actionable realtime notice */
.global-msg-tip{border-radius:18px!important;max-width:300px;min-width:210px;padding:10px!important;line-height:1.35;animation:qjPulse 1s infinite alternate!important}
.global-msg-tip .notice-title{font-weight:900;margin:2px 4px 8px;color:#fff}
.global-msg-tip .notice-item{display:block;width:100%;text-align:left;border:0;border-radius:12px;background:rgba(255,255,255,.14);color:#fff;margin:6px 0;padding:8px;cursor:pointer}
.global-msg-tip .notice-item b{display:block;font-size:13px}.global-msg-tip .notice-item span{display:block;font-size:11px;opacity:.9;margin-top:3px}
/* V20.2 未读提醒收起/精准直达优化 */
.global-msg-tip.notice-minimized{min-width:auto;max-width:230px;border-radius:999px!important;animation:none!important}
.global-msg-tip .notice-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.notice-min-btn{border:0;border-radius:999px;background:rgba(255,255,255,.22);color:#fff;padding:4px 8px;font-weight:800;cursor:pointer}
