/* ========== 购物车页面样式 ========== */
.cart-section {
    padding: 60px 0;
}

.cart-section .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.cart-section .section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.cart-section .section-header p {
    font-size: 16px;
    color: #718096;
}

.cart-section .section-header p span {
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

/* ========== 购物车项目 ========== */
.cart-items {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: rgba(102, 126, 234, 0.02);
    border-radius: 12px;
    padding-left: 15px;
    padding-right: 15px;
}

.item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
    margin-right: 20px;
}

.item-info {
    flex: 1;
    margin-right: 20px;
}

.item-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.item-info > p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 8px;
}

.item-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.item-price {
    margin-right: 20px;
    text-align: right;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.original-price {
    font-size: 14px;
    color: #cbd5e0;
    text-decoration: line-through;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.btn-delete {
    width: 40px;
    height: 40px;
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #f56565;
    color: white;
}

/* ========== 空购物车 ========== */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.empty-cart i {
    font-size: 80px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 10px;
}

.empty-cart > p {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
}

/* ========== 订单摘要 ========== */
.cart-summary {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-row span:first-child {
    color: #718096;
}

.summary-row span:last-child {
    color: #2d3748;
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
}

.summary-total span:first-child {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.summary-total span:last-child {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.checkout-notice {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #718096;
}

.checkout-notice i {
    color: #48bb78;
}

/* ========== 推荐服务 ========== */
.recommend-section {
    padding: 60px 0;
    background: #f7fafc;
}

.recommend-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.recommend-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.recommend-section .section-header p {
    font-size: 16px;
    color: #718096;
}

.recommend-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.recommend-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.recommend-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.recommend-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.recommend-card > p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
}

.recommend-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.btn-recommend {
    display: inline-block;
    padding: 10px 30px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-recommend:hover {
    background: #667eea;
    color: white;
}

/* ========== 响应式 ========== */
@media (max-width: 991px) {
    .cart-section {
        padding: 40px 0;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .item-price {
        width: 100%;
        text-align: left;
        margin-right: 0;
        margin-top: 15px;
    }
    
    .item-actions {
        margin-top: 15px;
    }
    
    .cart-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .cart-section .section-header h2 {
        font-size: 28px;
    }
    
    .cart-items,
    .cart-summary,
    .empty-cart {
        border-radius: 15px;
        padding: 20px;
    }
    
    .item-image {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .item-info h4 {
        font-size: 16px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .summary-total span:last-child {
        font-size: 24px;
    }
    
    .recommend-card {
        margin-bottom: 30px;
    }
}