/* ========================================
   产品详情页面样式
   ======================================== */
:root {
    --primary: #444444;
    --primary-light: #555555;
    --secondary: #e62129;
    --secondary-light: #ed656a;
    --accent: #e62129 --dark: #444444;
    --gray-900: #2D3748;
    --gray-700: #4A5568;
    --gray-500: #718096;
    --gray-300: #CBD5E0;
    --gray-100: #F7FAFC;
    --white: #FFFFFF;
    --success: #48BB78;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --transition: all 0.3sease;
}
.product-specs p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}
/* Product Hero Section */
.product-hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.product-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-specs {
    margin: 30px 0;
    padding: 25px;
    background: var(--gray-100);
    border-radius: 12px;
}

.product-specs h3 {
    margin-bottom: 15px;
}


.main-image {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumbnail-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-list img:hover,
.thumbnail-list img.active {
    border-color: #FF0000;
    transform: scale(1.1);
}

/* Product Info */
.product-hero-info {
    padding: 2rem 0;
}

.product-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #FF0000;
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-hero-info h1 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-tagline {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-highlights {
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--dark-gray);
}

.highlight-item i {
    color: #FF0000;
    font-size: 1.2rem;
}

.product-quick-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.spec-item {
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.spec-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.product-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #FF0000;
    color: #FF0000;
}

.btn-outline:hover {
    background: #FF0000;
    color: var(--white);
}

/* Product Tabs Section */
.product-tabs-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #FF0000;
}

.tab-btn.active {
    color: #FF0000;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #FF0000;
}

.tabs-content {
    max-width: 1400px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview Tab */
.overview-content {
    display: grid;
    /*grid-template-columns: 1.5fr 1fr;*/
    gap: 3rem;
    align-items: start;
}

.overview-text h2 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.overview-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.overview-text h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.advantage-list {
    list-style: none;
    padding: 0;
}

.advantage-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.advantage-list li i {
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #FF0000;
}

.overview-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Specs Table */
.specs-table-container h2 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 2rem;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.specs-table tr:nth-child(even) {
    background: #f8f9fa;
}

.specs-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.specs-table .spec-label {
    font-weight: 600;
    color: var(--dark-blue);
    width: 30%;
}

.specs-table .spec-value {
    color: var(--dark-gray);
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.application-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.application-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-icon i {
    font-size: 2rem;
    color: var(--white);
}

.application-card h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.application-card p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.certificate-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.certificate-card h4 {
    padding: 1.5rem;
    font-size: 1.1rem;
    color: var(--dark-blue);
    text-align: center;
}

/* Related Products Section */
.related-products-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.related-products-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.related-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer Enhancements for Product Detail Page */
.footer-section ul li i {
    margin-right: 0.5rem;
    color: #FF0000;
    width: 16px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 2rem 1rem;
        padding-top:8rem;
    }
    .overview-content img{width:100%}
    .product-hero-info h1 {
        font-size: 2rem;
    }
    
    .product-quick-specs {
        grid-template-columns: 1fr;
    }
    
    .product-cta {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        text-align: center;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .applications-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}


 /* 应用场景样式 */
        .applications-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            padding: 20px;
            max-width: 1400px;
            margin: 0 auto;
        }
        .application-item {
            text-align: center;
            padding: 15px;
            background: #fff;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .application-item img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: 4px;
            margin-bottom: 12px;
        }
        .application-item h4 {
            margin: 0 0 8px;
            font-size: 16px;
        }
        .application-item p {
            font-size: 14px;
            color: #666;
            margin: 0;
        }
        @media (max-width: 992px) {
            .applications-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 576px) {
            .applications-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 相关产品轮播 主容器宽度1400px */
        .related-products-section {
            padding: 60px 0;
            background: #f8f9fa;
        }
        .section-title {
            text-align: center;
            margin-bottom: 40px;
        }
        .section-title h2 {
            font-size: 28px;
            color: #222;
            margin-bottom: 10px;
        }
        .section-title p {
            color: #666;
            font-size: 15px;
        }
        .carousel-wrap {
            position: relative;
            max-width: 1400px;
            margin: 0 auto;
            overflow: hidden;
            padding: 0 60px;
        }
        .carousel-list {
            display: flex;
            transition: transform 0.4s ease;
        }
        /* 一屏固定4个完整产品，不裁切 */
        .carousel-item {
            flex: 0 0 25%;
            padding: 0 12px;
            box-sizing: border-box;
        }
        .product-card {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            height: 100%;
        }
        .product-card a {
            text-decoration: none;
            color: inherit;
            display: block;
        }
        .product-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
        }
        .product-card h3 {
            font-size: 16px;
            padding: 15px 15px 5px;
            margin: 0;
            color: #222;
        }
        .product-card p {
            font-size: 14px;
            color: #666;
            padding: 0 15px 15px;
            margin: 0;
            line-height: 1.5;
        }

        /* 轮播箭头 加深样式，提升可视性 */
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #333;
            border: 1px solid #222;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }
        .carousel-btn:hover {
            background: #555;
        }
        .prev-btn {
            left: 10px;
        }
        .next-btn {
            right: 10px;
        }

        /* 移动端适配 */
        @media (max-width: 992px) {
            .carousel-item {
                flex: 0 0 50%;
            }
        }
        @media (max-width: 576px) {
            .carousel-item {
                flex: 0 0 100%;
            }
        }
        
        .product-cta a {
  text-decoration: none;
}
