    <style>
        * {
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: #f5f5f5;
            padding-bottom: 80px;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        /* 顶部标题栏 */
        .app-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 8px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .app-header h1 {
            font-size: 16px;
            margin: 0;
            font-weight: 600;
        }

        .app-header .header-sub {
            font-size: 12px;
            opacity: 0.85;
        }

        /* 筛选胶囊 */
        .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: #667eea;
            color: white;
            border-color: #667eea;
        }

        .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.08);
            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;
            background: #e9ecef;
            color: #495057;
        }

        .status-pending { background: #fff3cd; color: #856404; }
        .status-assigned { background: #d1ecf1; color: #0c5460; }
        .status-picked { background: #e2d5f1; color: #492575; }
        .status-delivering { background: #cce5ff; color: #004085; }
        .status-delivered { background: #d4edda; color: #155724; }
        .status-cancelled { background: #f8d7da; color: #721c24; }
        .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;
        }

        /* 支付方式标识 */
        .pay-method-badge {
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 500;
            white-space: nowrap;
        }
        .pay-method-cod { background: #fff3e0; color: #e65100; }
        .pay-method-online { background: #e3f2fd; color: #1565c0; }

        /* COD收款提示 */
        .cod-collect-reminder {
            grid-column: span 2;
            background: #fff3e0;
            border: 1px solid #ffe0b2;
            border-radius: 8px;
            padding: 10px;
            text-align: center;
            color: #e65100;
            font-size: 13px;
            font-weight: 500;
        }

        .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;
            margin-right: 12px;
        }

        .product-info {
            flex: 1;
        }

        .product-name {
            font-size: 14px;
            color: #333;
            margin-bottom: 4px;
        }

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

        .product-price {
            font-size: 14px;
            color: #ff6b6b;
            font-weight: 600;
        }

        /* 客户信息 */
        .customer-section {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 15px;
        }

        .customer-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .customer-header i {
            color: #667eea;
            margin-right: 8px;
        }

        .customer-header span {
            font-size: 14px;
            color: #666;
            font-weight: 500;
        }

        .customer-info p {
            margin: 5px 0;
            font-size: 14px;
            color: #333;
        }

        .customer-info .phone {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .customer-info .phone a {
            color: #667eea;
            text-decoration: none;
        }

        .gps-info {
            font-size: 12px;
            color: #28a745;
            margin-top: 5px;
        }

        /* 操作按钮 */
        .order-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .order-actions.full-width {
            grid-template-columns: 1fr;
        }

        .btn-action {
            padding: 12px;
            border-radius: 8px;
            border: none;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-primary-action {
            background: #667eea;
            color: white;
        }

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

        .btn-info-action {
            background: #17a2b8;
            color: white;
        }

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

        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            padding: 10px 15px;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-around;
            z-index: 100;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #999;
            font-size: 12px;
            cursor: pointer;
        }

        .nav-item i {
            font-size: 20px;
            margin-bottom: 2px;
        }

        .nav-item.active {
            color: #667eea;
        }

        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }

        .empty-state i {
            font-size: 60px;
            margin-bottom: 15px;
            opacity: 0.5;
        }

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

        /* 模态框优化 */
        .modal-content {
            border-radius: 16px;
            border: none;
        }

        .modal-header {
            border-bottom: 1px solid #f0f0f0;
            padding: 15px;
        }

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

        .modal-body {
            padding: 15px;
            max-height: 70vh;
            overflow-y: auto;
        }

        .modal-footer {
            border-top: 1px solid #f0f0f0;
            padding: 15px;
        }

        /* 加载动画 */
        .loading {
            text-align: center;
            padding: 40px;
            color: #999;
        }

        .loading i {
            font-size: 30px;
            animation: spin 1s linear infinite;
        }

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

        /* ===== 配送员时间线 ===== */
        .driver-timeline {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 4px;
            padding: 16px 12px;
            background: #f8f9fa;
            border-radius: 12px;
            margin-bottom: 16px;
        }
        .driver-timeline .tl-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            min-width: 50px;
            position: relative;
        }
        .driver-timeline .tl-dot {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 4px;
            transition: all 0.3s;
        }
        .driver-timeline .tl-dot.done { background: #28a745; }
        .driver-timeline .tl-dot.active { background: #fd7e14; animation: tlPulse 1.5s infinite; }
        .driver-timeline .tl-dot.pending { background: #dee2e6; }
        @keyframes tlPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15); box-shadow: 0 0 8px rgba(253,126,20,0.4); }
        }
        .driver-timeline .tl-label {
            font-size: 11px;
            color: #999;
            text-align: center;
            line-height: 1.2;
        }
        .driver-timeline .tl-label.done { color: #28a745; font-weight: 600; }
        .driver-timeline .tl-label.active { color: #fd7e14; font-weight: 600; }
        /* 连接线 */
        .driver-timeline .tl-step::after {
            content: '';
            position: absolute;
            top: 12px;
            left: 60%;
            width: calc(100% - 20px);
            height: 2px;
            background: #dee2e6;
            z-index: 0;
        }
        .driver-timeline .tl-step:last-child::after { display: none; }
        .driver-timeline .tl-step.done-line::after { background: #28a745; }
        .driver-timeline .tl-dot { z-index: 1; position: relative; }

        /* 商家信息区 */
        .merchant-section {
            background: #fff8e1;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 12px;
            border-left: 4px solid #ffc107;
        }
        .merchant-section .mc-header {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }
        .merchant-section .mc-header i { color: #ffc107; margin-right: 6px; }
        .merchant-section .mc-info { font-size: 13px; color: #666; }

        /* 商家联系按钮（IM / TEL 独立） */
        .mc-contact-btns {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }
        .mc-contact-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 8px 0;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            border: none;
            cursor: pointer;
        }
        .mc-contact-btn.mc-tel {
            background: #e8f5e9;
            color: #2e7d32;
            border: 1px solid #a5d6a7;
        }
        .mc-contact-btn.mc-im {
            background: #e3f2fd;
            color: #1565c0;
            border: 1px solid #90caf9;
        }

        /* 距离与配送费信息条 */
        .delivery-metrics {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            background: #f0f7ff;
            border-radius: 8px;
            padding: 10px 12px;
            margin-bottom: 12px;
            border-left: 4px solid #4a90d9;
        }
        .delivery-metrics .dm-item {
            font-size: 13px;
            color: #333;
            font-weight: 500;
        }
        .delivery-metrics .dm-item i { color: #4a90d9; margin-right: 4px; }
        .delivery-metrics .dm-fee {
            color: #e65100;
            font-weight: 600;
        }
        .delivery-metrics .dm-fee i { color: #e65100; }

        /* Toast 提示 */
        .toast-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 15px 25px;
            border-radius: 8px;
            font-size: 14px;
            z-index: 9999;
            display: none;
        }
