    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #f5f5f5;
            min-height: 100vh;
            padding-bottom: 80px;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        .header {
            background: linear-gradient(135deg, #38ae53 0%, #2d8a42 100%);
            color: white;
            padding: 8px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .header-title {
            font-size: 16px;
            font-weight: 600;
        }

        .header-shop {
            font-size: 12px;
            opacity: 0.85;
            max-width: 140px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .filter-pills {
            display: flex;
            gap: 8px;
            padding: 10px 15px;
            overflow-x: auto;
            scrollbar-width: none;
            background: #f5f5f5;
            position: sticky;
            top: 36px;
            z-index: 49;
        }

        .filter-pills::-webkit-scrollbar {
            display: none;
        }

        .filter-pill {
            flex-shrink: 0;
            background: white;
            border: 1px solid #e0e0e0;
            padding: 7px 14px;
            border-radius: 18px;
            font-size: 13px;
            color: #666;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .filter-pill.active {
            background: #38ae53;
            color: white;
            border-color: #38ae53;
        }

        .pill-count {
            font-weight: 700;
            font-size: 15px;
        }

        .order-list {
            padding: 0 15px;
        }

        .order-card {
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            overflow: hidden;
        }

        .order-header {
            padding: 15px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .order-id {
            font-size: 14px;
            color: #333;
            font-weight: 600;
        }

        .order-time {
            font-size: 12px;
            color: #999;
            margin-top: 2px;
        }

        .status-badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .status-pending { background: #fff3cd; color: #856404; }
        .status-confirmed { background: #d1ecf1; color: #0c5460; }
        .status-ready { background: #e2d5f1; color: #492575; }
        .status-completed { background: #d4edda; color: #155724; }
        .status-cancelled { background: #f8d7da; color: #721c24; }
        .status-delivery-assigned { background: #cce5ff; color: #004085; }
        .status-delivery-picked { background: #fff3cd; color: #856404; }
        .status-delivery-delivering { background: #d1ecf1; color: #0c5460; }
        .status-exception { background: #fddfc4; color: #b3541e; }

        .exception-banner {
            background: #fff3e0;
            color: #e65100;
            border-left: 4px solid #ff9800;
            padding: 10px 12px;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .order-body {
            padding: 15px;
        }

        .product-list {
            margin-bottom: 15px;
        }

        .product-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f5f5f5;
        }

        .product-item:last-child {
            border-bottom: none;
        }

        .product-img {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            object-fit: cover;
            background: #f5f5f5;
            margin-right: 12px;
        }

        .product-info {
            flex: 1;
        }

        .product-name {
            font-size: 14px;
            color: #333;
            font-weight: 500;
        }

        .product-spec {
            font-size: 12px;
            color: #999;
            margin-top: 4px;
        }

        .product-price {
            font-size: 15px;
            color: #38ae53;
            font-weight: bold;
        }

        .product-quantity {
            font-size: 13px;
            color: #999;
        }

        .customer-info {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 15px;
        }

        .info-row {
            display: flex;
            margin-bottom: 8px;
        }

        .info-row:last-child {
            margin-bottom: 0;
        }

        .info-label {
            color: #999;
            font-size: 13px;
            width: 70px;
            flex-shrink: 0;
        }

        .info-value {
            color: #333;
            font-size: 13px;
            flex: 1;
        }

        .phone-row {
            background: #fff3cd;
            border-radius: 6px;
            padding: 9px 0;
            margin: 6px 0;
            cursor: pointer;
            border: 1px dashed #f0ad4e;
        }
        .phone-row:hover {
            background: #ffe69c;
        }
        .phone-value {
            font-size: 1.1rem !important;
            font-weight: 700 !important;
            color: #d32f2f !important;
        }
        .phone-value a {
            color: #d32f2f !important;
            text-decoration: none;
        }

        .pay-method-badge {
            display: inline-block;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 12px;
            margin-left: 8px;
            font-weight: 600;
            vertical-align: middle;
        }
        .pay-cod {
            background: #fff3e0;
            color: #e65100;
            border: 1px solid #ffcc80;
        }
        .pay-online {
            background: #e3f2fd;
            color: #1565c0;
            border: 1px solid #90caf9;
        }

        /* ===== 支付信息栏（仿美团/饿了么） ===== */
        .payment-info-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            background: #f8f9fa;
            border-radius: 8px;
            margin: 12px 0;
            font-size: 13px;
        }
        .payment-info-bar.pay-warning {
            background: #fff3e0;
            border-left: 3px solid #ff9800;
        }
        .payment-info-bar.pay-done {
            background: #e8f5e9;
            border-left: 3px solid #4caf50;
        }
        .pay-info-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .pay-info-icon {
            font-size: 16px;
        }
        .pay-info-method {
            font-weight: 600;
            color: #333;
        }
        .pay-info-status {
            color: #666;
            font-size: 12px;
        }
        .pay-info-status.text-danger {
            color: #e65100 !important;
            font-weight: 600;
        }
        .pay-info-amount {
            font-weight: 700;
            color: #333;
            font-size: 15px;
        }
        .pay-warning-banner {
            text-align: center;
            padding: 14px;
            background: #fff3e0;
            border: 1px dashed #ff9800;
            border-radius: 8px;
            color: #e65100;
            font-weight: 600;
            font-size: 14px;
        }

        .payment-status {
            padding: 10px 12px;
            border-radius: 6px;
            margin-bottom: 10px;
            font-weight: 600;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .payment-paid {
            background: #e8f5e9;
            color: #2e7d32;
            border: 1px solid #a5d6a7;
        }
        .payment-unpaid {
            background: #fff3e0;
            color: #e65100;
            border: 1px solid #ffcc80;
            animation: pulse-unpaid 2s infinite;
        }
        @keyframes pulse-unpaid {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .order-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .btn-action {
            padding: 10px 16px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary-action {
            background: #38ae53;
            color: white;
        }

        .btn-primary-action:hover {
            background: #2d8a42;
        }

        .btn-success-action {
            background: #198754;
            color: white;
        }

        .btn-success-action:hover {
            background: #157347;
        }

        .btn-danger-action {
            background: #dc3545;
            color: white;
        }

        .btn-danger-action:hover {
            background: #bb2d3b;
        }

        .btn-outline-action {
            background: white;
            color: #666;
            border: 1px solid #ddd;
        }

        .btn-outline-action:hover {
            border-color: #38ae53;
            color: #38ae53;
        }

        .btn-info-action {
            background: #0dcaf0;
            color: white;
        }

        .btn-info-action:hover {
            background: #0aa2c0;
        }

        .btn-self-action {
            background: #fd7e14;
            color: white;
        }

        .btn-self-action:hover {
            background: #e06b0a;
        }

        .btn-delivery-action {
            background: #0d6efd;
            color: white;
        }

        .btn-delivery-action:hover {
            background: #0b5ed7;
        }

        .btn-complete-action {
            background: #198754;
            color: white;
        }

        .btn-complete-action:hover {
            background: #157347;
        }

        .btn-pay-action {
            background: linear-gradient(135deg, #ff6f00, #ff8f00);
            color: white;
            font-weight: 600;
        }

        .btn-pay-action:hover {
            background: linear-gradient(135deg, #e65100, #ff6f00);
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }

        .empty-state i {
            font-size: 60px;
            color: #ddd;
            margin-bottom: 15px;
        }

        .empty-state p {
            color: #999;
            font-size: 14px;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #999;
        }

        .loading i {
            font-size: 40px;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
            z-index: 100;
        }

        .nav-item {
            flex: 1;
            text-align: center;
            padding: 12px 0;
            cursor: pointer;
            color: #999;
            transition: all 0.3s;
        }

        .nav-item.active {
            color: #38ae53;
        }

        .nav-item i {
            font-size: 22px;
            display: block;
            margin-bottom: 4px;
        }

        .nav-item span {
            font-size: 12px;
        }

        .toast-message {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            z-index: 1000;
            display: none;
            font-size: 14px;
        }

        .toast-message.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

/* 统计卡片 */
#statsGrid,#statsGrid2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:0 0 4px;}
.stat-card{background:#fff;border-radius:12px;padding:16px 14px;text-align:center;border:1px solid #eee;}
.stat-icon{font-size:22px;margin-bottom:8px;}
.stat-num{font-size:22px;font-weight:700;color:#222;line-height:1.2;}
.stat-label{font-size:12px;color:#888;margin-top:4px;}
.stat-sub{font-size:11px;color:#aaa;margin-top:2px;}
.stat-section-title{font-size:13px;font-weight:600;color:#555;padding:8px 0 4px;border-bottom:1px solid #f0;}
