        /* 订单页面额外样式 */
        
        /* 旋转动画 */
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .order-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }
        
        .order-tab {
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f3f4f6;
            color: #6b7280;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .order-tab:hover {
            background: #e5e7eb;
        }
        
        .order-tab.active {
            background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
            color: #000;
            font-weight: 600;
        }
        
        /* 状态标签颜色 - 与订单卡片保持一致 */
        .order-tab[data-status="pending"].active {
           background: linear-gradient(135deg, #fff3cd 0%, #fff8e0 100%);
           color: #92400e;
        }
        
        .order-tab[data-status="paid"].active {
            background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
            color: #1e40af;
        }
        
        .order-tab[data-status="processing"].active {
           background: linear-gradient(135deg, #cce5ff 0%, #e6f2ff 100%);
            color:#004085;
        }
        
.order-tab[data-status="completed"].active {
    background: linear-gradient(135deg, #d4edda 0%, #e2f0e6 100%);
    color: #000;
}
        
        .order-tab[data-status="cancelled"].active {
            background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
            color: #fff;
        }
        
        .order-tab[data-status="refunded"].active {
            background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
            color: #721c24;
        }
        
        .order-tab .count {
            background: rgba(0,0,0,0.1);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
            margin-left: 6px;
        }
        .jw-layout{display: block;}
        
        /* 统计卡片 */
        .order-stats {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 12px;
            margin-bottom: 24px;
        }
        
        @media (max-width: 1200px) {
            .order-stats {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .order-stats {
                display: none;
            }
        }
        
        .stat-card {
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
.stat-card.active {
    border-color: #facc15;
    background: #facc15;
}
        
        .stat-card.info { border-left: 4px solid #3b82f6; }
        .stat-card.urgent { border-left: 4px solid #f59e0b; }
        .stat-card.warning { border-left: 4px solid #8b5cf6; }
        .stat-card.success { border-left: 4px solid #10b981; }
        
        .stat-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }
        
        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        
        .stat-card.info .stat-icon { background: #dbeafe; color: #2563eb; }
        .stat-card.urgent .stat-icon { background: #fef3c7; color: #d97706; }
        .stat-card.warning .stat-icon { background: #ede9fe; color: #7c3aed; }
        .stat-card.success .stat-icon { background: #d1fae5; color: #059669; }
        
        .stat-value {
            font-size: 24px;
            font-weight: 700;
            color: #111827;
        }
        
        .stat-label {
            font-size: 14px;
            color: #6b7280;
            margin-top: 4px;
        }
        
        @media (max-width: 768px) {
            .order-stats {
                display: none;
            }
            
            .stat-card {
                padding: 16px;
            }
            
            .stat-value {
                font-size: 20px;
            }
        }
        
        /* 订单卡片列表 */
        .order-cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }
        
        @media (max-width: 1024px) {
            .order-cards {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        .order-card {
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            overflow: visible;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .order-card:hover {
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        /* 微信通知跳转定位：目标订单高亮闪烁 */
        @-webkit-keyframes order-card-highlight-pulse {
            0%, 100% {
                background-color: #fff;
                box-shadow: 0 0 0 0 rgba(204, 237, 80, 0.55);
            }
            50% {
                background-color: #fefce8;
                box-shadow: 0 0 0 8px rgba(204, 237, 80, 0.35);
            }
        }
        @keyframes order-card-highlight-pulse {
            0%, 100% {
                background-color: #fff;
                box-shadow: 0 0 0 0 rgba(204, 237, 80, 0.55);
            }
            50% {
                background-color: #fefce8;
                box-shadow: 0 0 0 8px rgba(204, 237, 80, 0.35);
            }
        }
        .order-card-highlight {
            border: 2px solid #CCED50 !important;
            -webkit-animation: order-card-highlight-pulse 0.7s ease-in-out 5;
            animation: order-card-highlight-pulse 0.7s ease-in-out 5;
        }
        
        /* 定位扫光：光带从左到右扫过卡片一次（配合高亮闪烁） */
        @-webkit-keyframes order-card-sweep-shine {
            0% { left: -60%; }
            100% { left: 120%; }
        }
        @keyframes order-card-sweep-shine {
            0% { left: -60%; }
            100% { left: 120%; }
        }
        
        /* 订单过期遮罩层 */
.order-expired-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(136 140 149 / 50%);
    border-radius: 12px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex
;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 10;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(8px);
}

        .order-expired-content {
            text-align: center;
            padding: 20px;
            color: #fff; 
            background: rgb(136 140 149 / 90%);
            border-radius: 12px;
        }
        
        .order-expired-icon {
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            -ms-flex-pack: center;
            justify-content: center;
            -webkit-box-align: center;
            -webkit-align-items: center;
            -ms-flex-align: center;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .order-expired-text {
            font-size: 14px;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        
        .order-expired-buttons {
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            gap: 12px;
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            -ms-flex-pack: center;
            justify-content: center;
        }
        
        .order-expired-btn {
            padding: 8px 20px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            -webkit-transition: all 0.3s ease;
            transition: all 0.3s ease;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }
        
        .order-expired-btn-confirm {
            background: #cc3355;
            color: #fff;
        }
        
        .order-expired-btn-confirm:hover {
            background: #a82a47;
        }
        
        .order-expired-btn-cancel {
            background: #94a3b8;
            color: #fff;
        }
        
        .order-expired-btn-cancel:hover {
            background: #64748b;
        }
        
        /* 订单卡片状态背景色 - 根据状态设置不同的背景色 */
        
        /* 订单卡片背景图标容器 */
        .order-card-bg-icon {
            position: absolute;
            bottom: 20px;
            right: 20px;
            width: 120px;
            height: 120px;
            z-index: 0;
            opacity: 0.08;
            pointer-events: none;
        }
        
        .order-card-bg-icon svg,
        .order-card-bg-icon-secondary svg {
            width: 100%;
            height: 100%;
        }
        
        .order-card-bg-icon-secondary svg {
            stroke-width: 2.5;
        }
        
        /* 待确认状态 - 黄色渐变 + 时钟图标 */
        .order-card.status-pending,
        .order-card.status-submit_order {
            background: linear-gradient(135deg, #fff3cd 0%, #fff8e0 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-pending .order-card-bg-icon,
        .order-card.status-submit_order .order-card-bg-icon {
            color: rgba(133, 100, 4, 0.5);
        }
        
        /* 已支付状态 - 浅蓝渐变 + 对勾图标 */
        .order-card.status-paid {
            background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
            position: relative;
            overflow: visible;
        }
        
        .order-card.status-paid .order-card-bg-icon {
            color: rgba(25, 118, 210, 0.5);
        }
        
        /* 已确认状态 - 浅蓝渐变 + 对勾图标 */
        .order-card.status-confirmed,
        .order-card.status-confirm_order {
            background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-confirmed .order-card-bg-icon,
        .order-card.status-confirm_order .order-card-bg-icon {
            color: rgba(25, 118, 210, 0.5);
        }

        /* 处理中状态 - 蓝色渐变 + 齿轮图标 */
        .order-card.status-processing {
            background: linear-gradient(135deg, #cce5ff 0%, #e6f2ff 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-processing .order-card-bg-icon {
            color: rgba(0, 64, 133, 0.3);
            opacity: 0.2;
            animation: rotateGear1 3s linear infinite;
        }

.order-card.status-processing .order-card-bg-icon-secondary {
    position: absolute;
    bottom: 116px;
    right: 89px;
    width: 60px;
    height: 60px;
    z-index: 0;
    opacity: 0.15;
    color: rgba(0, 64, 133, 0.3);
    animation: rotateGear2 2.23s linear infinite reverse;
}

        /* 准备中状态 - 橙色渐变 + 包裹图标 */
        .order-card.status-preparing {
            background: linear-gradient(135deg, #cce5ff 0%, #e6f2ff 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-preparing .order-card-bg-icon {
            color: rgba(0, 64, 133, 0.5);
        }

        @keyframes rotateGear1 {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes rotateGear2 {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* 运送中状态 - 琥珀色渐变 + 卡车图标 */
        .order-card.status-shipping,
        .order-card.status-delivery {
            background: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-shipping .order-card-bg-icon,
        .order-card.status-delivery .order-card-bg-icon {
            color: rgba(33, 37, 41, 0.5);
        }
        
        /* 已完成状态 - 绿色渐变 + 对勾图标 */
        .order-card.status-completed,
        .order-card.status-complete {
            background: linear-gradient(135deg, #d4edda 0%, #e2f0e6 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-completed .order-card-bg-icon,
        .order-card.status-complete .order-card-bg-icon {
            color: rgba(21, 87, 36,0.5);
        }

        /* 已取消状态 - 灰色渐变 + X图标 */
        .order-card.status-cancelled {
            background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-cancelled .order-card-bg-icon {
            color: rgba(102, 102, 102,0.5);
        }
        
        /* 退款中状态 - 紫色渐变 */
        .order-card.status-refunding {
            background: linear-gradient(135deg, #e2d4f0 0%, #d4c4e0 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-refunding .order-card-bg-icon {
            color: rgba(102, 51, 153, 0.5);
            z-index: 0;
        }

        /* 已拒绝状态 - 紫色渐变 */
        .order-card.status-refund_rejected {
            background: linear-gradient(135deg, #e2d4f0 0%, #d4c4e0 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-refund_rejected .order-card-bg-icon {
            color: rgba(102, 51, 153, 0.5);
            z-index: 0;
        }

        /* 已退款状态 - 紫色渐变 + 货币图标 */
        .order-card.status-refunded {
            background: linear-gradient(135deg, #e2d4f0 0%, #d4c4e0 100%);
            position: relative;
            overflow: visible;
        }

        .order-card.status-refunded .order-card-bg-icon {
            color: rgba(102, 51, 153, 0.5);
            z-index: 0;
        }
        
        .order-card.selected {
            border-color: #facc15;
            background: #fefce8;
        }
        
        /* 已支付状态标签 - yzf.png */
.order-paid-badge {
    position: absolute;
    top: 0px;
    right: 156px;
    width: 80px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}
        
        @media (max-width: 768px) {
.order-paid-badge {
    right: 0px;
    width: 150px;
    top: 50px;
}
        }
        
        .order-card-header {
            padding: 16px; 
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .order-card-info {
            display: flex;
            align-items: center;
            gap: 12px;
			z-index: 10;
        }
        
        .order-checkbox {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
        
        .order-no {
            font-weight: 600;
            color: #374151;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .order-date {
            font-size: 12px;
            color: #6b7280;
        }

        /* 复制订单号按钮样式 */
        .copy-order-btn {
            cursor: pointer;
            color: #007bff;
            font-size: 12px;
            padding: 2px 4px;
            border-radius: 3px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
        }

        .copy-order-btn:hover {
            color: #0056b3;
            background-color: rgba(0, 123, 255, 0.1);
            transform: scale(1.1);
        }

        .copy-order-btn:active {
            transform: scale(0.95);
        }

        .copy-order-btn.copied {
            color: #28a745;
        }
        
.urgent-badge {
    position: absolute;
    top: -10px;
    right: -2px;
    z-index: 10;
}

.urgent-badge img { 
    height: 35px;
    object-fit: contain;
}
        
        .order-card-body {
            padding: 16px;
        }
        
        .order-products {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .product-thumbnails {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .product-thumb {
            width: 75px;
            height: 75px;
            border-radius: 8px;
            object-fit: cover;
            border: 1px dashed #ddd;
            cursor: pointer;
            transition: transform 0.2s, opacity 0.3s;
            opacity: 0;
        }
        
        .product-thumb.loaded {
            opacity: 1;
        }
        
        .product-thumb:hover {
            transform: scale(1.05);
        }
        
        /* 骨架屏加载动画 */
.product-thumb-skeleton {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    background: linear-gradient(46deg, #f0f0f0 25%, #ffffff 50%, #efefef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    position: absolute;
    border: 2px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    top: 0;
    left: 0;
}
        
        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .product-thumb-wrapper {
            position: relative;
            width: 75px;
            height: 75px;
            display: inline-block;
            margin-right: 4px;
            margin-bottom: 4px;
        }
        
        .product-thumb.more {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f3f4f6;
            color: #6b7280;
            font-size: 14px;
            font-weight: 600;
            width: 49px;
            height: 75px;
        }
        
        .order-specs {
            flex: 1;
            min-width: 0;
        }
        
        .spec-item {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px dashed #e5e7eb;
            font-size: 13px;
        }
        
        .spec-item:last-child {
            border-bottom: none;
        }
        
        .spec-label {
            color: #6b7280;
        }
        
        .spec-value {
            color: #374151;
            font-weight: 500;
        }
        
        /* 订单产品信息 - 与 my_orders.html 保持一致 */
        .order-product-info {
            flex: 1;
            min-height: 75px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .order-product-name {
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 4px;
            font-size: 14px;
        }
        
        .order-product-spec {
            font-size: 13px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .order-product-meta {
            display: flex;
            gap: 16px;
            font-size: 13px;
            color: #666;
            margin-top: 4px;
        }
        
        .order-card-footer {
            padding: 12px 16px; 
            display: flex;
            justify-content: space-between;
            position: relative;
            z-index: 1;
            align-items: center;
        }
        
        .order-amount {
            font-size: 18px;
            font-weight: 700;
            color: #dc2626;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .order-amount .amount-icon {
            font-size: 16px;
            font-weight: 700;
            color: #dc2626;
            margin-right: 2px;
        }
        
        .order-header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .header-amount {
            font-size: 16px;
            font-weight: 700;
            color: #dc2626;
        }
        
        .order-actions {
            display: flex;
            gap: 8px;
        }
        
        .order-action-btn {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .order-action-btn.primary {
            background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
            color: #000;
        }
        
        .order-action-btn.primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
        }
        
        .order-action-btn.secondary {
            background: #f3f4f6;
            color: #374151;
        }
        
        .order-action-btn.secondary:hover {
            background: #e5e7eb;
        }
        
        .order-action-btn.danger {
            background: #fee2e2;
            color: #dc2626;
        }

        .order-action-btn.danger:hover {
            background: #fecaca;
        }

        .order-action-btn.refund {
            background: #1890ff;
            color: white;
        }

        .order-action-btn.refund:hover {
            background: #40a9ff;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(24, 144, 255, 0.4);
        }
        
        /* 订单倒计时样式 */
        .order-action-btn .countdown {
            margin-left: 4px;
            font-size: 13px;
            font-weight: 600;
            color: #dc2626;
            font-family: 'Courier New', monospace;
        }
        
        .order-action-btn.primary .countdown {
            color: #7c2d12;
        }
        
        @media (max-width: 768px) {
            .order-cards {
                grid-template-columns: 1fr !important;
            }
            
            .order-products {
                flex-direction: column;
            }
            
            .product-thumbnails {
                justify-content: flex-start;
            }
        }
        
        /* 订单详情弹窗样式 */
        .order-detail-content {
            padding: 0;
        }
        
.detail-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    /* margin-bottom: 20px; */
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
}
        
        .detail-header-left {
            flex: 1;
        }
        
        .detail-header-right {
            text-align: center;
            padding-left: 20px;
        }
        
        .detail-info-row {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            font-size: 14px;
        }
        
        .detail-info-label {
            color: #6b7280;
            min-width: 80px;
        }
        
        .detail-info-value {
            color: #111827;
            font-weight: 500;
        }
        
        .detail-order-no {
            font-family: monospace;
            font-size: 16px;
            font-weight: 700;
            color: #111827;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .detail-order-no .urgent-icon-inline {
            width: 40px;
            height: 20px;
            object-fit: contain;
        }
        
        .urgent-icon-on-qr {
            position: absolute;
            top: -15px;
            right: -15px;
            width: 60px;
            height: 30px;
            object-fit: contain;
            z-index: 20;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
        }
        
.urgent-badge-on-header {
    position: absolute;
    top: 16px;
    right: 60px;
    z-index: 100;
}

        .urgent-badge-on-header img {
            width: 48px;
            height: 24px;
            object-fit: contain;
        }
        
        .qr-code-area {
            text-align: center;
        }
        
        .qr-refresh-overlay {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #cc3355;
            border-radius: 6px;
            transition: background 0.2s ease;
        }
        
        .qr-refresh-overlay:hover {
            background: #fdf2f4;
        }
        
        .qr-code-placeholder {
            width: 80px;
            height: 80px;
            background: #fff;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            border: 1px solid #e5e7eb;
            color: #9ca3af;
        }
        
        .qr-text {
            font-size: 12px;
            color: #6b7280;
        }
        
        .detail-section {
            margin-bottom: 16px;
        }
        
        .detail-section-title {
            font-size: 16px;
            font-weight: 700;
            color: #111827; 
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* 状态流程 */
        .status-flow {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 8px;
        }
        
        .status-flow-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 6px 12px;
            border-radius: 8px;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            min-width: 70px;
        }
        
        .status-flow-item-content {
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            gap: 4px;
        }
        
        /* 各环节已完成状态颜色 - 与原系统统一 */
        .status-flow-item.active.pending-active,
        .status-flow-item.active.submit_order-active {
            background: linear-gradient(135deg, #fff3cd 0%, #fff8e0 100%);
            color: #856404;
            border-color: #ffc107;
        }
        
        .status-flow-item.active.confirmed-active,
        .status-flow-item.active.confirm_order-active {
            background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
            color: #1976d2;
            border-color: #1976d2;
        }
        
        .status-flow-item.active.processing-active {
            background: linear-gradient(135deg, #cce5ff 0%, #e6f2ff 100%);
            color: #004085;
            border-color: #004085;
        }
        
        .status-flow-item.active.shipping-active,
        .status-flow-item.active.delivery-active {
            background: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%);
            color: #856404;
            border-color: #ffc107;
        }
        
        .status-flow-item.active.completed-active,
        .status-flow-item.active.complete-active {
            background: linear-gradient(135deg, #d4edda 0%, #e2f0e6 100%);
            color: #155724;
            border-color: #28a745;
        }
        
        /* 当前状态颜色 */
.status-flow-item.current {
    /* background: #1976d2; */
    /* color: white; */
    /* border-color: #1976d2; */
    background: linear-gradient(135deg, #cce5ff 0%, #e6f2ff 100%);
    color: #004085;
    border-color: #004085;
}
        
.status-flow-item.current .status-flow-time {
    /* color: rgba(255, 255, 255, 0.8); */
}
        
        /* 运送中当前状态特殊样式 */
        .status-flow-item.current.shipping-current {
            background: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%);
            color: #856404;
            border-color: #ffc107;
            box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
        }
        
        /* 已取消状态 */
        .status-flow-item.cancelled {
            background: #dc3545;
            color: white;
            border-color: #dc3545;
        }
        
        .status-flow-item.cancelled .status-flow-time {
            color: rgba(255, 255, 255, 0.8);
        }
        
        .status-flow-icon {
            font-size: 14px;
            flex-shrink: 0;
        }
        
        .status-flow-text {
            font-size: 13px;
            font-weight: 500;
        }
        
        .status-flow-time {
            font-size: 10px;
            color: #6b7280;
            margin-top: 2px;
        }
        
        .status-flow-arrow {
            color: #9ca3af;
            font-size: 14px;
        }
        
        /* 退款节点样式 */
        .status-flow-item.refunding-current .status-flow-text {
            color: #faad14;
            font-weight: 600;
        }
        
        .status-flow-item.refund-success .status-flow-text {
            color: #52c41a;
            font-weight: 600;
        }
        
        .status-flow-item.refund-rejected .status-flow-text,
        .status-flow-item.refund-failed .status-flow-text {
            color: #ff4d4f;
            font-weight: 600;
        }
        
        /* 退款中动画效果 */
        .status-flow-item.refunding-current .status-flow-icon {
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        /* 订单商品表格 */
        .order-items-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        
        .order-items-table th,
        .order-items-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .order-items-table th {
            background: #f9fafb;
            font-weight: 600;
            color: #374151;
        }
        
        .order-items-table tbody tr {
            transition: background-color 0.2s ease;
        }
        
        .order-items-table tbody tr:hover {
            background-color: #f0f7ff;
        }
        
.order-items-table .thumbnail-cell {
    padding: 8px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    font-size: 13px;
    color: #333;
    width: 80px;
}
        
.order-item-thumbnail {
    width: 80px;
    max-width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
}
        
        .no-thumbnail {
            width: 80px;
            height: 80px;
            background: #f3f4f6;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            font-size: 12px;
             margin: 8px;
        }
        
        .table-cell-left {
            text-align: left;
        }
        
        .subtotal-cell {
            font-weight: 600;
            color: #dc2626;
        }
        
        /* 支付信息 */
        .payment-info-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            padding: 16px;
            background: #f9fafb;
            border-radius: 8px;
        }
        
.payment-info-item {
    display: flex
;
    flex-direction: row;
    align-content: flex-start;
}
        
        .payment-label {
            font-size: 12px;
            color: #6b7280;
            margin-bottom: 4px;
        }
        
        .payment-value {
            font-size: 12px;
            font-weight: 500;
            color: #111827;
        }
        
        /* 订单总计 */
        .order-total-section {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
            border-radius: 8px;
            margin: 16px 20px 20px;
        }
        
        .total-label {
            font-size: 14px;
            color: #6b7280;
            margin-right: 12px;
        }
        
        .total-amount {
            font-size: 24px;
            font-weight: 700;
            color: #dc2626;
        }
        
        @media (max-width: 768px) {
            .detail-header-section {
                flex-direction: column;
            }
            
            .detail-header-right {
                padding-left: 0;
                padding-top: 16px;
                width: 100%;
                display: flex;
                justify-content: center;
            }
            
            .status-flow {
                justify-content: flex-start;
            }
            
            .payment-info-row {
                grid-template-columns: 1fr;
            }
            
            .order-items-table {
                font-size: 12px;
                display: block;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .order-items-table th {
                padding: 8px 6px;
                white-space: nowrap;
                font-size: 11px;
            }

            .order-items-table td {
                padding: 8px 6px;
                white-space: normal;
                word-break: break-word;
                line-height: 1.4;
            }

            .order-items-table .thumbnail-cell {
                width: 70px;
                min-width: 70px;
                padding: 6px;
            }

            .order-items-table .order-item-thumbnail {
                width: 56px;
                height: 56px;
            }

            .order-items-table .index-cell {
                width: 40px;
                min-width: 40px;
                text-align: center;
            }

            .order-items-table th:nth-child(3),
            .order-items-table td:nth-child(3) {
                min-width: 70px;
            }

            .order-items-table th:nth-child(4),
            .order-items-table td:nth-child(4) {
                min-width: 100px;
                max-width: 150px;
            }

            .order-items-table th:nth-child(5),
            .order-items-table td:nth-child(5) {
                min-width: 80px;
            }

            .order-items-table th:nth-child(6),
            .order-items-table td:nth-child(6) {
                min-width: 80px;
            }

            .order-items-table .subtotal-cell {
                min-width: 70px;
                font-size: 12px;
            }

            /* 移动端状态流转改为垂直布局 */
            .status-flow {
                flex-direction: column;
                align-items: center;
                gap: 4px;
            }

            .status-flow-arrow {
                transform: rotate(90deg);
            }
        }
        
        /* 搜索区域 */
        .search-box {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
            align-items: center;
        }

        .search-input {
            flex: 1;
            min-width: 120px;
            padding: 10px 14px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #facc15;
            box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
        }

        .search-select {
            padding: 10px 14px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 14px;
            background: #fff;
            min-width: 120px;
            cursor: pointer;
        }

        .search-select:focus {
            outline: none;
            border-color: #facc15;
        }

        /* 搜索按钮 */
        .search-box .jw-btn {
            padding: 10px 20px;
            white-space: nowrap;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* 搜索行 - 状态下拉+搜索+重置 */
        .search-row {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .search-row .search-select {
            flex: 1;
        }

        /* 表格容器 */
        .table-box {
            width: 100%; 
            -webkit-overflow-scrolling: touch;
            background: #fff; 
            border-radius: 8px;
            position: relative;
            min-height: 300px;
        }

        /* 表格内加载状态 */
        .table-loading-state {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: #fff;
            z-index: 10;
        }

        .table-loading-state .loading-icon {
            width: 80px;
            height: 80px;
            background: #f3f4f6;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            color: #9ca3af;
        }

        .table-loading-state .loading-text {
            font-size: 14px;
            color: #6b7280;
        }

        /* 订单表格 */
        .order-table {
            width: 100%;
            min-width: 800px;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 14px;
        }

        .order-table th,
        .order-table td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid #e5e7eb;
            white-space: nowrap;
            background: #fff;
        }

        .order-table th {
            background: #f9fafb;
            font-weight: 600;
            color: #374151;
            position: sticky;
            top: 0;
            z-index: 20;
        }

        .order-table tr:hover td {
            background: #f9fafb;
        }

        /* 第一列固定 */
        .order-table th:first-child,
        .order-table td:first-child {
            position: sticky;
            left: 0;
            z-index: 30;
            background: #fff;
            border-right: 1px solid #e5e7eb;
        }

        .order-table th:first-child {
            background: #f9fafb;
            z-index: 40;
        }

        /* 移动端适配 */
        @media screen and (max-width: 768px) {
            .jw-card-header {
                display: none;
            }
            
            .jw-card {
                overflow: inherit;
                border-radius: var(--border-radius-xl);
                background: center;
                box-shadow: none;
                border: none;
            }
            
            .jw-card-body {
                padding: inherit;
            }
            
            .jw-content {
                background-color: var(--tw-ring-offset-color);
            }
            
            .header-amount {
                display: none;
            }
            
            .order-tabs {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }

            .order-tab {
                padding: 10px 8px;
                font-size: 13px;
                text-align: center;
                justify-content: center;
            }

            /* 移动端隐藏订单标签图标 */
            .order-tab .order-tab-icon {
                display: none;
            }

            .search-box {
                flex-direction: row;
                align-items: stretch;
                width: 100%;
                gap: 8px;
            }

            .search-input {
                width: 100%; 
                flex: 1;
            }

            .search-row {
                width: auto;
                flex-shrink: 0;
            }

            .search-row .search-select,
            .search-row .jw-btn-primary {
                display: none;
            }

            .order-table {
                min-width: 700px;
                font-size: 13px;
            }

            .order-table th,
            .order-table td {
                padding: 10px 12px;
            }
        }

        @media screen and (max-width: 480px) {
            .order-table {
                min-width: 600px;
                font-size: 12px;
            }

            .order-table th,
            .order-table td {
                padding: 8px 10px;
            }

            /* 移动端隐藏状态图标 */
            .status-tag .status-icon {
                display: none;
            }
        }

        @media screen and (max-width: 375px) {
            .order-table {
                min-width: 550px;
                font-size: 11px;
            }

            .order-table th,
            .order-table td {
                padding: 6px 8px;
            }
        }
        
        /* 状态标签 */
        .status-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .status-pending,
        .status-submit_order {
            background: #fef3c7;
            color: #92400e;
        }

        .status-confirmed,
        .status-confirm_order {
            background: #dbeafe;
            color: #1e40af;
        }

        .status-processing {
            background: #cce5ff;
            color: #004085;
        }

        .status-preparing {
            background: #cce5ff; color: #004085;
        }

        .status-shipping,
        .status-delivery {
            background: #fff3e0;
            color: #e65100;
        }
        
        .status-completed,
        .status-complete {
            background: #d1fae5;
            color: #065f46;
        }
        
        .status-cancelled {
            background: #fee2e2;
            color: #991b1b;
        }
        
        .status-unknown {
            background: #f3f4f6;
            color: #6b7280;
        }
        
        /* 操作按钮 */
    .action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    flex-direction: row;
}
        
        .btn-sm {
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .btn-view {
            background: #f3f4f6;
            color: #374151;
        }
        
        .btn-view:hover {
            background: #e5e7eb;
        }
        
        .btn-pay {
            background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
            color: #fff;
        }
        
        .btn-pay:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
        }
        
        .btn-cancel {
            background: #fee2e2;
            color: #dc2626;
        }
        
        .btn-cancel:hover {
            background: #fecaca;
        }

        /* 退款按钮样式 */
        .jw-btn-refund {
            background: #1890ff;
            color: white;
        }

        .jw-btn-refund:hover {
            background: #40a9ff;
        }

        /* 分页 */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 32px;
            padding-bottom: 20px;
        }

        .page-btn {
            padding: 10px 16px;
            border: 1px solid #e5e7eb;
            background: #fff;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 500;
            color: #6b7280;
        }

        .page-btn:hover:not(:disabled) {
            border-color: #facc15;
            color: #000;
        }

        .page-btn.active {
            background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
            border-color: transparent;
            color: #000;
            font-weight: 600;
        }

        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* 分页移动端适配 */
        @media (max-width: 768px) {
            .pagination {
                gap: 4px;
                margin-top: 20px;
            }

            .page-btn {
                padding: 8px 12px;
                font-size: 13px;
            }
        }
        
        /* 订单详情 */
.detail-section {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 2fr)); */
    gap: 20px;
    margin-bottom: 0px;
    align-items: start;
    padding: 20px 20px 0px 20px;
}
        
        .detail-item {
            background: #f9fafb;
            padding: 20px;
            border-radius: 12px;
            border-left: 4px solid #facc15;
        }
        
        .detail-label {
            font-size: 12px;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        
        .detail-value {
            font-size: 16px;
            font-weight: 600;
            color: #111827;
        }
        
        .detail-value.price {
            font-size: 24px;
            color: #dc2626;
        }
        
        /* 价格轨迹 */
        .timeline {
            position: relative;
            padding-left: 24px;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 6px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(180deg, #facc15, #eab308);
        }
        
        .timeline-item {
            position: relative;
            padding: 16px 20px;
            background: #f9fafb;
            border-radius: 12px;
            margin-bottom: 12px;
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -20px;
            top: 20px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #facc15;
            border: 2px solid #fff;
            box-shadow: 0 0 0 2px #facc15;
        }
        
        .timeline-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .timeline-title {
            font-weight: 600;
            color: #111827;
        }
        
        .timeline-time {
            font-size: 12px;
            color: #9ca3af;
        }
        
        .timeline-price {
            font-size: 18px;
            font-weight: 700;
            color: #dc2626;
        }
        
        /* 隐藏/显示 */
        .hidden { display: none !important; }
        
        /* 微信支付满屏金额显示 */
.wechat-pay-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    z-index: 9999;
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    animation: fadeIn 0.3s ease;
}
        
        .wechat-pay-fullscreen.hidden {
            display: none !important;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .wechat-pay-amount {
            font-size: 50px;
            font-weight: 500;
            color: #111827;
            margin-bottom: 5px;
            text-align: center;
        }
        
        .wechat-pay-amount-label {
            font-size: 18px;
            color: #6b7280;
            margin-bottom: 0px;
            margin-top: 30px;
            text-align: center;
        }
        
        .wechat-pay-status {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }
        
        /* 移动端余额卡片隐藏 */
        @media (max-width: 768px) {
            .jw-balance-card {
                display: none !important;
            }
        }
        
        /* 支付成功对勾 */
        .payment-success-icon {
            width: 60px;
            height: 60px;
            color: #22c55e;
            animation: checkmark 0.5s ease 0.3s both;
        }
        
        @keyframes checkmark {
            0% { transform: scale(0) rotate(-45deg); opacity: 0; }
            50% { transform: scale(1.2) rotate(0deg); }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }
        
        .payment-success-text {
            font-size: 22px;
            font-weight: 700;
            color: #22c55e;
            animation: fadeInUp 0.5s ease 0.5s both;
        }
        
        @keyframes fadeInUp {
            from { 
                opacity: 0; 
                transform: translateY(20px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }
        
        /* 加载动画 */
        .wechat-pay-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            width: 60px;
            height: 60px;
            margin-top: 25px;
        }
        
        .wechat-pay-spinner {
            width: 60px;
            height: 60px;
            border: 4px solid #e5e7eb;
            border-top-color: #22c55e;
            border-right-color: #22c55e;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            position: absolute;
            transition: all 0.5s ease;
        }

        .wechat-pay-spinner.success {
            animation: spin 0.3s linear, completeCircle 0.3s ease 0.3s forwards;
        }

        @keyframes completeCircle {
            to {
                border-left-color: #22c55e;
                border-bottom-color: #22c55e;
            }
        }

        .wechat-pay-success-icon {
            position: absolute;
            width: 32px;
            height: 32px;
            color: #22c55e;
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s ease;
        }

        .wechat-pay-success-icon.show {
            opacity: 1;
            transform: scale(1);
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .wechat-pay-loading-text {
            font-size: 16px;
            color: #6b7280;
        }
