/* 产品详情页专用样式 */

/* ========== 面包屑导航 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6) 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-brand);
}

.breadcrumb-separator {
    color: var(--color-gray-400);
}

.breadcrumb-current {
    color: var(--color-text);
    font-weight: 500;
}

/* ========== 产品详情主区域 ========== */
.product-detail-section {
    padding: var(--space-8) 0 var(--space-16);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-3xl);
    align-items: start;
}

/* 产品画廊 */
.product-gallery {
    position: sticky;
    top: 80px;
    display: flex;
    gap: var(--gap-md);
    flex-direction: row-reverse;
}

.product-main-image {
    flex: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-gray-100);
    margin-bottom: 0;
}

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

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    width: calc(20% - (var(--gap-md) / 2));
    flex-shrink: 0;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.thumbnail.active {
    border-color: var(--color-brand);
}

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

/* 产品信息 */
.product-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.product-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

/* 产品颜色 */
.product-colors {
    margin-bottom: var(--space-6);
}

.colors-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.colors-options {
    display: flex;
    gap: var(--space-3);
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    cursor: pointer;
}

.color-option.active {
    border-color: var(--color-brand);
}

/* 产品认证 */
.product-certifications {
    margin-bottom: var(--space-8);
}

.cert-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.cert-icons {
    display: flex;
    gap: var(--space-2);
}

.cert-badge {
    padding: var(--space-2) var(--space-3);
    background: var(--color-gray-100);
    color: var(--color-text);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    gap: var(--space-4);
}

.btn-quote-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    background: var(--color-brand);
    color: #ffffff;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.btn-quote-primary:hover {
    background: var(--color-brand-dark);
    color: #ffffff;
}

.btn-outline-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    background: transparent;
    color: var(--color-brand);
    border: 2px solid var(--color-brand);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.btn-outline-primary:hover {
    background: var(--color-brand);
    color: #ffffff;
}

/* ========== 产品详情标签页 ========== */
.product-tabs-section {
    padding: var(--space-16) 0;
    background: var(--color-gray-50);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    border-bottom: 2px solid var(--color-gray-200);
}

.tab-btn {
    padding: var(--space-4) var(--space-8);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
}

.tab-btn.active {
    color: var(--color-brand);
    border-bottom-color: var(--color-brand);
}

.tab-content {
    display: none;

    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.detail-content h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-8) 0 var(--space-4);
}

.detail-content h2:first-child {
    margin-top: 0;
}

.detail-content p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
}

.detail-list li {
    padding: var(--space-2) 0;
    padding-left: var(--space-6);
    position: relative;
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

.detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-brand);
    font-weight: 700;
}

.detail-list strong {
    color: var(--color-text);
}

/* 规格表格 */
.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--color-gray-200);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    width: 30%;
    padding: var(--space-4);
    background: var(--color-gray-100);
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    font-size: var(--text-sm);
}

.specs-table td {
    padding: var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* 认证信息 */
.certs-content h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.certs-content p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
}

.cert-item {
    padding: var(--space-6);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--color-brand-light);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
}

.cert-item .cert-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.cert-item .cert-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ========== 相关产品 ========== */
.related-products-section {
    padding: var(--space-16) 0;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-10);
    color: var(--color-text);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-lg);
}

/* 产品卡片样式 */
.related-products-section .product-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.related-products-section .product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-gray-100);
}

.related-products-section .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-products-section .product-card-info {
    padding: var(--space-4);
    text-align: center;
}

.related-products-section .product-card-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.related-products-section .product-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-xl);
    }

    .product-gallery {
        position: static;
        flex-direction: column;
    }

    .product-thumbnails {
        width: 100%;
        flex-direction: row;
        order: 2;
    }

    .product-main-image {
        order: 1;
    }

    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: var(--text-2xl);
    }

    .product-actions {
        flex-direction: column;
    }

    .product-tabs {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .tab-btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }

    .certs-grid {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-md);
    }

    .specs-table th,
    .specs-table td {
        padding: var(--space-3);
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .product-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-2);
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }
}
