/**
 * 套餐/产品详情页样式
 * 适用于: combo/detail, tool/detail, video/detail
 */

/* Hero区域 */
.combo-hero {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 24px;
    box-shadow: var(--shadow-sm);
}

.combo-gallery {
    width: 400px;
    flex-shrink: 0;
}

.combo-main-img {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--c1);
    margin-bottom: 12px;
}

.combo-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combo-thumbs {
    display: flex;
    gap: 8px;
}

.combo-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.combo-thumb.on {
    border-color: var(--b);
}

.combo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combo-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.combo-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--c9);
    margin-bottom: 12px;
    line-height: 1.3;
}

.combo-subtitle {
    font-size: var(--text-md);
    color: var(--c6);
    margin-bottom: 16px;
}

.combo-price-box {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.combo-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.combo-current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--r);
}

.combo-original-price {
    font-size: var(--text-lg);
    color: var(--c5);
    text-decoration: line-through;
}

.combo-discount {
    background: var(--r);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
}

.combo-sales {
    margin-top: 8px;
    font-size: var(--text-sm);
    color: var(--c6);
}

.combo-specs {
    margin-bottom: 16px;
}

.spec-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--c2);
}

.spec-label {
    width: 80px;
    font-size: var(--text-md);
    color: var(--c5);
    flex-shrink: 0;
}

.spec-value {
    flex: 1;
    font-size: var(--text-md);
    color: var(--c7);
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-tag {
    padding: 4px 12px;
    background: var(--c1);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--c6);
    cursor: pointer;
    border: 1px solid var(--c2);
}

.spec-tag:hover,
.spec-tag.on {
    background: var(--bb);
    color: var(--b);
    border-color: var(--b);
}

.combo-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.combo-btn-buy {
    flex: 1;
    padding: 14px;
    background: var(--r);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
}

.combo-btn-buy:hover {
    background: #B91C1C;
}

.combo-btn-cart {
    flex: 1;
    padding: 14px;
    background: var(--b);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
}

.combo-btn-cart:hover {
    background: var(--bd);
}

/* 内容区 */
.combo-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.combo-tabs {
    display: flex;
    border-bottom: 1px solid var(--c2);
    background: var(--c0);
}

.combo-tab {
    padding: 14px 24px;
    font-size: var(--text-md);
    color: var(--c6);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.combo-tab:hover {
    color: var(--b);
}

.combo-tab.on {
    color: var(--b);
    font-weight: 600;
    border-bottom-color: var(--b);
}

.combo-tab-content {
    padding: 24px;
}

.combo-tab-panel {
    display: none;
}

.combo-tab-panel.on {
    display: block;
}

/* 详情内容 */
.detail-content {
    font-size: 15px;
    color: var(--c7);
    line-height: 2;
}

.detail-content h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--c9);
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--b);
}

.detail-content p {
    margin-bottom: 12px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.detail-content th,
.detail-content td {
    border: 1px solid var(--c2);
    padding: 12px;
    text-align: left;
}

.detail-content th {
    background: var(--c1);
    font-weight: 600;
}

/* 服务保障 */
.guarantee-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.guarantee-item {
    text-align: center;
    padding: 20px;
    background: var(--c0);
    border-radius: var(--radius-md);
}

.guarantee-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--bb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-icon svg {
    width: 24px;
    height: 24px;
    color: var(--b);
}

.guarantee-name {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--c9);
    margin-bottom: 4px;
}

.guarantee-desc {
    font-size: var(--text-sm);
    color: var(--c5);
}

/* 用户评价 */
.review-summary {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--c0);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.review-score {
    text-align: center;
    padding: 0 24px;
    border-right: 1px solid var(--c2);
}

.review-score-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--y);
}

.review-score-text {
    font-size: var(--text-sm);
    color: var(--c5);
}

.review-bars {
    flex: 1;
}

.review-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.review-bar-label {
    width: 60px;
    font-size: var(--text-sm);
    color: var(--c6);
}

.review-bar-track {
    flex: 1;
    height: 8px;
    background: var(--c2);
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: var(--y);
    border-radius: 4px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    padding: 16px;
    background: var(--c0);
    border-radius: var(--radius-md);
}

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

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b);
    font-weight: 600;
}

.review-name {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--c9);
}

.review-date {
    font-size: var(--text-sm);
    color: var(--c5);
}

.review-stars {
    color: var(--y);
    font-size: var(--text-lg);
}

.review-text {
    font-size: var(--text-md);
    color: var(--c7);
    line-height: 1.7;
}

/* 响应式 */
@media (max-width: 992px) {
    .combo-hero {
        flex-direction: column;
    }
    
    .combo-gallery {
        width: 100%;
    }
    
    .combo-main-img {
        height: 250px;
    }
    
    .guarantee-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .combo-actions {
        flex-direction: column;
    }
    
    .review-summary {
        flex-direction: column;
    }
    
    .review-score {
        border-right: none;
        border-bottom: 1px solid var(--c2);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
}
