/* ==========================================
   订单页样式
   ========================================== */

/* 订单状态筛选 */
.order-tabs {
    position: sticky;
    position: -webkit-sticky; /* Safari */
    top: 0px;
    display: flex;
    background: #fff;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
    margin-top: -3px; /* 消除顶部间隔 */
    border-bottom: none; /* 移除底部边框 */
    box-shadow: none; /* 移除阴影避免间隔感 */
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.order-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab-item {
    flex: 0 0 auto;
    min-width: 80px;
    text-align: center;
    padding: 15px 12px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin: 0 2px;
    white-space: nowrap;
}

.tab-item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
}

.tab-item.active {
    color: #667eea;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.tab-item:active {
    transform: scale(0.95) translateY(0);
}

/* 订单列表 */
.order-list {
    padding: 16px;
    min-height: calc(100vh - 200px);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px) + 120px);
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    margin-bottom: 120px; /* 为固定底部的分页控件(约50px)和底部导航栏(60px)留出空间 */
}

.order-item {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.order-item:nth-child(1) { animation-delay: 0.05s; }
.order-item:nth-child(2) { animation-delay: 0.1s; }
.order-item:nth-child(3) { animation-delay: 0.15s; }
.order-item:nth-child(4) { animation-delay: 0.2s; }
.order-item:nth-child(5) { animation-delay: 0.25s; }
.order-item:nth-child(6) { animation-delay: 0.3s; }
.order-item:nth-child(7) { animation-delay: 0.35s; }
.order-item:nth-child(8) { animation-delay: 0.4s; }
.order-item:nth-child(9) { animation-delay: 0.45s; }
.order-item:nth-child(10) { animation-delay: 0.5s; }

.order-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-item:hover {
    transform: translateY(-3px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 28px rgba(102, 126, 234, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.order-item:hover::before {
    opacity: 1;
}

.order-item:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 
        0 4px 16px rgba(102, 126, 234, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.order-no {
    font-size: 11px;
    color: #555;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-left: 20px;
    transition: all 0.2s ease;
}

.order-no:hover {
    color: #667eea;
}

.order-no::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.order-no::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.order-no:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.15) rotate(5deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.order-no:hover::after {
    opacity: 1;
}

.order-header:hover .order-no::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
}

.order-status {
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.order-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.order-status:hover::before {
    left: 100%;
}

/* 0=待付款 */
.order-status.pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #b8860b;
    border: 1.5px solid rgba(184, 134, 11, 0.3);
    box-shadow: 
        0 3px 10px rgba(184, 134, 11, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 1=交易完成, 3=强制完成 */
.order-status.completed,
.order-status.forced-completed {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    color: #1b5e20;
    border: 1.5px solid rgba(27, 94, 32, 0.3);
    box-shadow: 
        0 3px 10px rgba(27, 94, 32, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 2=用户取消, 4=强制取消 */
.order-status.cancelled,
.order-status.forced-cancelled {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    color: #b71c1c;
    border: 1.5px solid rgba(183, 28, 28, 0.3);
    box-shadow: 
        0 3px 10px rgba(183, 28, 28, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 5=交易冻结 */
.order-status.frozen {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    color: #e65100;
    border: 1.5px solid rgba(230, 81, 0, 0.35);
    box-shadow: 
        0 3px 10px rgba(230, 81, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 订单内容 */
.order-content {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
    padding: 10px;
    background: linear-gradient(135deg, #fffef0 0%, #fffbe6 100%);
    border-radius: 10px;
    border: 1px solid rgba(250, 219, 20, 0.15);
}

.order-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: #f5f5f5;
    position: relative;
}

.order-image::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.order-item:hover .order-image {
    transform: scale(1.06);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.order-item:hover .order-image::after {
    opacity: 1;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.order-item:hover .order-image img {
    transform: scale(1.08);
}

.order-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.order-quantity {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.quantity-label {
    color: #666;
    font-weight: 500;
}

.quantity-value {
    color: #667eea;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-quantity.data-inconsistent {
    border-color: rgba(255, 152, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, rgba(255, 87, 34, 0.08) 100%);
}

.quantity-warning {
    display: inline-block;
    margin-left: 6px;
    color: #ff9800;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
}

.order-price {
    cursor: help;
}

.price-note {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    color: #999;
    font-style: italic;
    vertical-align: baseline;
}

.order-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.unit-price {
    font-size: 13px;
    color: #888;
    opacity: 0.8;
}

.order-price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-top: 2px;
    line-height: 1.2;
}

.order-title {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}

.order-commission {
    font-size: 13px;
    color: #d97706;
    margin-top: 6px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    padding: 6px 14px;
    border-radius: 12px;
    display: inline-block;
    border: 1.5px solid rgba(217, 119, 6, 0.25);
    box-shadow: 
        0 3px 10px rgba(217, 119, 6, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
    position: relative;
}

.order-commission::before {
    content: '💰';
    margin-right: 5px;
    font-size: 14px;
}

.order-commission:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(217, 119, 6, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(217, 119, 6, 0.35);
}

/* 订单底部 */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-top: 6px;
    border-top: 2px solid transparent;
    background: linear-gradient(135deg, #fffef8 0%, #fff9e6 50%, #fffef8 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.order-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.2) 20%, 
        rgba(245, 124, 0, 0.3) 50%, 
        rgba(102, 126, 234, 0.2) 80%, 
        transparent 100%);
    border-radius: 2px 2px 0 0;
}

.order-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(245, 124, 0, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(102, 126, 234, 0.02) 2px,
            rgba(102, 126, 234, 0.02) 4px
        );
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.order-footer > * {
    position: relative;
    z-index: 1;
}

.order-item:hover .order-footer {
    background: linear-gradient(135deg, #fffef8 0%, #fff9e6 50%, #fffef8 100%);
}

.order-item:hover .order-footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.3) 20%, 
        rgba(245, 124, 0, 0.4) 50%, 
        rgba(102, 126, 234, 0.3) 80%, 
        transparent 100%);
}

.order-item:hover .order-footer::after {
    opacity: 0.8;
}

.order-time {
    font-size: 11px;
    color: #777;
    font-weight: 600;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.order-time::before {
    content: '🕐';
    font-size: 11px;
    opacity: 0.8;
    filter: grayscale(0.2);
}

.order-time:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.order-time:hover::before {
    opacity: 1;
    filter: grayscale(0);
}

.order-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 倒计时显示 */
.order-countdown {
    padding: 10px 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 50%, #fff3cd 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.order-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 193, 7, 0.5) 50%, 
        transparent 100%);
}

.countdown-label {
    color: #856404;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-label::before {
    content: '⏰';
    font-size: 14px;
}

.countdown-time {
    color: #667eea;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    min-width: 70px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.countdown-time.urgent {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    animation: pulse-urgent 1s infinite;
}

.countdown-time.expired {
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

@keyframes pulse-urgent {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(244, 67, 54, 0);
    }
}

/* 处理时间显示 */
.order-processing-time {
    padding: 10px 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e3f2fd 100%);
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.order-processing-time::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(33, 150, 243, 0.5) 50%, 
        transparent 100%);
}

.processing-label {
    color: #1565c0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.processing-label::before {
    content: '⏳';
    font-size: 14px;
}

.processing-time {
    color: #1976d2;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    min-width: 80px;
    text-align: center;
}

.action-btn {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.action-btn:active::before {
    width: 200px;
    height: 200px;
}

.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.action-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn-primary:hover::after {
    left: 100%;
}

.action-btn-primary:hover {
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.action-btn-success {
    background: linear-gradient(135deg, #f0f9f4 0%, #d9f7be 100%);
    color: #389e0d;
    border: 1px solid rgba(56, 158, 13, 0.2);
    box-shadow: 0 1px 4px rgba(56, 158, 13, 0.12);
}

.action-btn-success:hover {
    background: linear-gradient(135deg, #d9f7be 0%, #b7eb8f 100%);
    box-shadow: 0 2px 6px rgba(56, 158, 13, 0.15);
    transform: translateY(-1px);
}

.action-btn-warning {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
    color: #d46b08;
    border: 1px solid rgba(212, 107, 8, 0.2);
    box-shadow: 0 1px 4px rgba(212, 107, 8, 0.12);
}

.action-btn-warning:hover {
    background: linear-gradient(135deg, #ffe7ba 0%, #ffd591 100%);
    box-shadow: 0 2px 6px rgba(212, 107, 8, 0.15);
    transform: translateY(-1px);
}

.action-btn-default {
    background: #f5f5f5;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.action-btn-default:hover {
    background: #e8e8e8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: scale(0.96);
}

/* 加载占位 */
.loading-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.loading-placeholder .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top-color: #667eea;
    border-right-color: #764ba2;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.loading-placeholder p {
    font-size: 15px;
    color: #667eea;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* 骨架屏加载效果 */
.order-skeleton {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-line.medium {
    width: 60%;
}

.skeleton-line.long {
    width: 100%;
}

.skeleton-content {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.skeleton-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: skeleton-shimmer 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-text {
    flex: 1;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    animation: fadeInUp 0.5s ease-out;
}

.empty-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 30px;
    color: #ddd;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.empty-state img {
    width: 150px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 17px;
    color: #999;
    font-weight: 500;
    margin-top: 20px;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 提交订单弹窗 */
.upload-area {
    margin-bottom: 15px;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: #f5f5f5;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-placeholder:hover {
    border-color: #667eea;
    background: #f0f5ff;
}

.upload-placeholder img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.upload-placeholder p {
    font-size: 13px;
    color: #999;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ==========================================
   订单信息栏和分页控件样式
   ========================================== */

/* 订单信息栏 */
.order-info-bar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    padding: 14px 18px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    margin: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.order-info-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.order-info-text span:first-child {
    color: #495057;
    font-weight: 500;
}

.order-count {
    color: #667eea;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
    font-size: 13px;
}

/* 分页控件 - 紧凑版 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: fixed;
    bottom: 60px; /* 显示在底部导航栏(60px高度)之上 */
    left: 0;
    right: 0;
    z-index: 99998; /* 在底部导航栏(99999)之下，但在其他内容之上 */
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06), 0 -1px 4px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
    gap: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    height: 32px;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}


/* 页码按钮容器 - 简约风格 */
.pagination-pages {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.pagination-pages::-webkit-scrollbar {
    display: none;
}

/* 页码按钮 - 简约风格 */
.page-number-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

.page-number-btn:hover:not(:disabled):not(.active) {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.page-number-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
    font-weight: 600;
}

.page-number-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 省略号 - 简约风格 */
.page-ellipsis {
    min-width: 20px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    padding: 0 2px;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .pagination {
        padding: 6px 10px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pagination-btn {
        padding: 5px 10px;
        font-size: 11px;
        flex: 0 0 auto;
        border-radius: 4px;
        height: 28px;
    }
    
    .pagination-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .pagination-pages {
        order: 3;
        width: 100%;
        margin-top: 6px;
        justify-content: center;
        padding: 0;
        gap: 2px;
    }
    
    .page-number-btn {
        min-width: 26px;
        height: 26px;
        font-size: 11px;
        padding: 0 4px;
        border-radius: 4px;
    }
    
    .page-ellipsis {
        min-width: 20px;
        height: 28px;
        font-size: 12px;
    }
    
    
    .order-info-bar {
        padding: 10px 12px;
    }
    
    .order-info-text {
        font-size: 12px;
    }
}

