﻿/* 订单页面专属样式 */

/* 订单容器 */
.orders-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px 0;
    background-attachment: fixed;
}

/* 容器最大宽度限制 */
.container {
    max-width: 1400px;
}

/* 页面标题区域 */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f3e5ab);
    border-radius: 3px;
}

/* 订单卡片 */
.order-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s;
}

.order-card:hover::before {
    left: 100%;
}

/* 订单头部 */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.1);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.order-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.order-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 订单项目 */
.order-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.order-item-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.order-item-info {
    flex: 1;
    margin-left: 20px;
}

.order-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* 订单摘要 */
.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.5) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.order-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #d4af37;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.order-actions {
    display: flex;
    gap: 12px;
}

/* 按钮样式 */
.btn-order-detail {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.2);
}

.btn-order-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
    color: white;
}

.btn-order-pay {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a192f;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-order-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: #0a192f;
}

/* 状态标签样式 */
.status-pending {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.status-completed {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.status-cancelled {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
}

.status-refunding {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    color: white;
}

.status-refunded {
    background: linear-gradient(135deg, #6f42c1 0%, #59339d 100%);
    color: white;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.luxury-nav-link {
    background: rgba(255, 255, 255, 0.8);
    color: #212529;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.luxury-nav-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.luxury-nav-link.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a192f;
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #212529;
}

.empty-state i {
    font-size: 4rem;
    color: #d4af37;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 会员权益卡片 */
.benefit-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 8px;
    margin-top: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.2s ease;
    max-width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden; /* 防止内容溢出 */
}

.benefit-card:hover {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.benefit-card .card-body {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    flex-wrap: nowrap;
}

.benefit-icon {
    font-size: 1rem;
    opacity: 0.8;
    min-width: 18px;
    text-align: center;
}

.benefit-text {
    flex: 1;
    min-width: 0;
}

.benefit-text h5 {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 1px 0;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.benefit-text p {
    font-size: 0.75rem;
    color: #495057;
    line-height: 1.25;
    margin: 0;
    padding-right: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-upgrade {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 5px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 会员中心特定样式 */
.membership-title {
    color: #2c3e50 !important;
    font-weight: 700;
}

.membership-subtitle {
    color: #212529 !important;
}

.price-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.price-display {
    margin: 20px 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #d4af37;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.price-period {
    font-size: 1rem;
    color: #212529;
    vertical-align: top;
}

.current-member-status h4 {
    color: #2c3e50 !important;
    font-weight: 700;
}

.current-member-status small {
    color: #212529 !important;
}

.member-status-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a192f;
    font-size: 1.5rem;
}

/* 会员权益总览样式 */
.benefit-item h6 {
    color: #2c3e50 !important;
    font-weight: 700;
}

.benefit-item p {
    color: #212529 !important;
}

.benefit-item .small {
    color: #212529 !important;
}

/* 会员等级对比表 */
.membership-comparison {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: 30px;
}

.membership-comparison h4 {
    color: #2c3e50 !important;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a192f;
    padding: 15px;
    text-align: center;
    font-weight: 700;
}

.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-table tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.comparison-table tr:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* 升级按钮样式 */
.upgrade-btn-table {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a192f;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    display: inline-block;
}

.upgrade-btn-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    color: #0a192f;
    text-decoration: none;
}

/* 会员升级说明样式 */
.upgrade-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: 30px;
}

.upgrade-info-card h4 {
    color: #2c3e50 !important;
    font-weight: 700;
    margin-bottom: 25px;
}

.upgrade-info-card h6 {
    color: #2c3e50 !important;
    font-weight: 700;
    margin-bottom: 10px;
}

.upgrade-info-card ul {
    color: #212529 !important;
    padding-left: 20px;
}

.upgrade-info-card ul li {
    color: #212529 !important;
    margin-bottom: 8px;
}

.upgrade-info-card .alert {
    background: rgba(13, 110, 253, 0.1) !important;
    border: 1px solid rgba(13, 110, 253, 0.2) !important;
    color: #0d6efd !important;
    border-radius: 10px;
    padding: 15px;
}

/* 会员权益对比表 - 卡片式布局 */
.membership-benefits-section {
    margin-top: 30px;
    padding: 20px 0;
}

.membership-benefits-section h4 {
    color: #2c3e50 !important;
    font-weight: 700;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.basic-card {
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.basic-card::before {
    background: linear-gradient(90deg, #6c757d, #5a6268);
}

.silver-card {
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.silver-card::before {
    background: linear-gradient(90deg, #c0c0c0, #a9a9a9);
}

.gold-card {
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.gold-card::before {
    background: linear-gradient(90deg, #d4af37, #b8860b);
}

.diamond-card {
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.diamond-card::before {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.level-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    border: 3px solid rgba(212, 175, 55, 0.3);
}

.price-display {
    margin: 15px 0;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #d4af37;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.price-period {
    font-size: 0.9rem;
    color: #212529;
    vertical-align: top;
}

.upgrade-button-container {
    margin-top: 20px;
}

.btn-upgrade-card {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a192f;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    display: inline-block;
}

.btn-upgrade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    color: #0a192f;
    text-decoration: none;
}

.btn-renew-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    display: inline-block;
}

.btn-renew-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
    color: white;
    text-decoration: none;
}

.btn-login-card {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.feature-icon {
    color: #d4af37;
    opacity: 0.8;
}

.btn-upgrade {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a192f;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: #0a192f;
}

/* 分页样式 */
.luxury-pagination {
    margin-bottom: 0;
}

.luxury-pagination-link {
    background: rgba(255, 255, 255, 0.8);
    color: #212529;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.luxury-pagination-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: #d4af37;
    border-color: rgba(212, 175, 55, 0.3);
}

.luxury-pagination-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.page-item.active .luxury-pagination-link {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a192f;
    border-color: #d4af37;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.page-item.disabled .luxury-pagination-link {
    background: rgba(248, 249, 250, 0.5);
    color: #212529;
    border-color: rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .benefit-card .card-body {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
    }
    
    .luxury-nav-link {
        width: 100%;
        text-align: center;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-item-info {
        margin-left: 0;
        width: 100%;
    }
    
    .order-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-order-detail,
    .btn-order-pay {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .benefit-card .card-body {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* 修正卡片对齐问题 */
    .membership-details-row {
        display: flex;
        flex-wrap: wrap;
        margin-right: -12px;
        margin-left: -12px;
    }
    
    .membership-details-row .col-md-6 {
        display: flex;
        flex-direction: column;
        padding-right: 12px;
        padding-left: 12px;
    }
    
    .membership-details-row .price-card, .membership-details-row .benefit-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .membership-details-row .price-card .card-body, .membership-details-row .benefit-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    /* 确保按钮在底部 */
    .price-card .upgrade-button-container {
        margin-top: auto;
        padding-top: 15px;
    }
}

/* 强制对齐样式 */
.membership-details-row {
    display: flex !important;
    align-items: stretch;
}

/* 分页样式 */
.pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.page-link {
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 0.1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
    background-color: #fff;
    min-width: 36px;
    text-align: center;
}

.page-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.page-link.luxury-pagination-link {
    color: #2c3e50;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-link.luxury-pagination-link:hover {
    color: #007bff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.page-item.active .page-link.luxury-pagination-link {
    background: linear-gradient(135deg, #007bff 0%, #0069d9 100%);
    border-color: #0062cc;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 响应式分页 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        font-size: 0.9rem;
    }
    
    .page-link {
        padding: 0.4rem 0.6rem;
        min-width: 32px;
    }
}
