/* 产品详情页面样式 */

/* 面包屑导航 */
.breadcrumb {
    padding: 100px 0 20px;
    background: var(--light-gray);
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

/* 产品概览 */
.product-overview {
    padding: 40px 0 80px;
    background: var(--light-gray);
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

.product-info {
    padding: 20px 0;
}

.product-badge {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
}

.product-info h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.product-highlights {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.product-highlights h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-highlights ul {
    list-style: none;
}

.product-highlights li {
    padding: 8px 0;
    color: #555;
    font-size: 15px;
}

.product-actions {
    display: flex;
    gap: 15px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 产品详情标签页 */
.product-details {
    padding: 80px 0;
    background: var(--white);
}

.detail-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.detail-tabs .tab-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-tabs .tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.detail-tabs .tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

.tab-panel h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* 技术规格 */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.spec-item {
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.spec-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* 功能特性 */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    padding: 30px;
    background: var(--light-gray);
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* 应用场景 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.application-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.application-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.application-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.application-item h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
    color: var(--text-color);
}

.application-item p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 技术支持 */
.support-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.support-item {
    padding: 30px;
    background: var(--light-gray);
    border-radius: 15px;
}

.support-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.support-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.support-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.support-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* 相关产品 */
.related-products {
    padding: 80px 0;
    background: var(--light-gray);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s;
}

.related-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-item h3 {
    padding: 20px;
    font-size: 18px;
    color: var(--text-color);
}

.btn-view {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

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

    .product-gallery {
        position: static;
    }

    .main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 90px 0 15px;
    }

    .product-main {
        padding: 25px;
    }

    .product-info h1 {
        font-size: 28px;
    }

    .product-subtitle {
        font-size: 16px;
    }

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

    .btn-large {
        width: 100%;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .thumbnail {
        height: 70px;
    }

    .specs-grid,
    .features-list,
    .applications-grid,
    .support-content,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-info h1 {
        font-size: 24px;
    }

    .main-image {
        height: 250px;
    }

    .thumbnail {
        height: 60px;
    }

    .detail-tabs {
        gap: 8px;
    }

    .detail-tabs .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
