/* ==================== 订单查询区域 ==================== */
.orders-section {
    padding: 40px 0 80px;
    background: var(--bg-secondary);
    min-height: 600px;
}

/* 查询卡片 */
.search-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.search-header h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.search-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input {
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* 订单列表 */
.orders-list {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.orders-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.orders-header h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

/* 订单卡片 */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-id {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.order-status.paid {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
}

.order-status.pending {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.order-status.cancelled {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

/* 订单商品 */
.order-products {
    padding: 20px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

.product-item:last-child {
    border-bottom: none;
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-icon i {
    font-size: 28px;
    color: white;
}

.product-details {
    flex: 1;
}

.product-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.product-details p {
    font-size: 13px;
    color: var(--text-secondary);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #f5576c;
}

/* 订单底部 */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.order-total {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.order-total span:first-child {
    font-size: 14px;
    color: var(--text-secondary);
}

.order-total .price {
    font-size: 24px;
    font-weight: 700;
    color: #f5576c;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 64px;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .search-card {
        padding: 25px;
    }

    .orders-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .order-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .order-footer {
        flex-direction: column;
        gap: 15px;
    }

    .order-actions {
        width: 100%;
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
    }

    .product-item {
        flex-wrap: wrap;
    }

    .product-price {
        width: 100%;
        text-align: right;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .search-header h2 {
        font-size: 22px;
    }

    .order-id {
        font-size: 14px;
    }

    .order-total .price {
        font-size: 20px;
    }

    .empty-icon {
        width: 100px;
        height: 100px;
    }

    .empty-icon i {
        font-size: 48px;
    }
}
