/* ============================================================
   产品详情标签页 - 左右锚点切换样式
   ============================================================ */

/* 主容器 */
.product-detail-tabs {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.tabs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

/* 左侧锚点导航 */
.tabs-nav {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.tab-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: .9375rem;
    font-weight: 500;
    transition: all .25s ease;
    cursor: pointer;
}

.tab-nav-item:hover {
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
}

.tab-nav-item.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
}

.tab-nav-item svg {
    flex-shrink: 0;
}

.tab-nav-item.active svg {
    stroke: #fff;
}

/* 右侧内容区域 */
.tabs-content {
    min-width: 0;
}

.tab-content-item {
    display: none;
    animation: tabFadeIn .35s ease;
}

.tab-content-item.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.tab-content-header .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 产品描述内容优化 */
.tab-content-item .product-description-content {
    font-size: .9375rem;
    line-height: 1.8;
    color: var(--text);
}

.tab-content-item .product-description-content p {
    margin-bottom: 16px;
}

.tab-content-item .product-description-content img {
    border-radius: var(--radius);
    margin: 16px 0;
    max-width: 100%;
    height: auto;
}

/* 规格参数表优化 */
.tab-content-item .specs-table-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tab-content-item .spraydryer-specs {
    width: 100%;
    border-collapse: collapse;
}

.tab-content-item .spraydryer-specs tr {
    border-bottom: 1px solid var(--border);
}

.tab-content-item .spraydryer-specs tr:last-child {
    border-bottom: none;
}

.tab-content-item .spraydryer-specs tr:nth-child(even) {
    background: var(--bg-alt);
}

.tab-content-item .spraydryer-specs td {
    padding: 14px 20px;
    font-size: .9375rem;
    border-right: 1px solid var(--border);
}

.tab-content-item .spraydryer-specs td:last-child {
    border-right: none;
}

.tab-content-item .spraydryer-specs .spec-label {
    width: 35%;
    color: var(--text-light);
    background: var(--gray-50);
    font-weight: 500;
    text-align: left;
    padding-left: 24px;
    padding-right: 16px;
    border-right: 2px solid var(--primary-light);
}

.tab-content-item .spraydryer-specs .spec-value {
    color: var(--dark);
    font-weight: 600;
    padding-left: 24px;
}

/* 供应商星级显示 */
.supplier-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.stars-display {
    display: inline-flex;
    gap: 2px;
}

.stars-display .star {
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1;
}

.stars-display .star.filled {
    color: #f59e0b;
}

.stars-display .star.half {
    background: linear-gradient(to right, #f59e0b 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #f59e0b;
}

.rating-score {
    font-size: .9375rem;
    font-weight: 700;
    color: #f59e0b;
}

.rating-count {
    font-size: .8125rem;
    color: var(--text-light);
}

/* 相关产品推荐栏优化 */
.related-products-section {
    margin-top: 60px;
    padding-top: 48px;
    border-top: 2px solid var(--border);
}

.related-products-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.related-products-section .section-title {
    margin-bottom: 0;
}

.related-products-section .products-grid {
    gap: 24px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .tabs-layout {
        grid-template-columns: 200px 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .tabs-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tabs-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 12px;
    }

    .tab-nav-item {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: .875rem;
    }

    .tab-nav-item svg {
        width: 16px;
        height: 16px;
    }
}
