/* ==================== 产品详情页专用样式 ==================== */

/* 面包屑导航 */
.breadcrumb-section {
    margin-top: 0;
    padding: 12px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #0066cc;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0052a3;
}

.breadcrumb .separator {
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 产品详情主体 */
.product-detail-section {
    padding: 60px 0;
    background: #fff;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* 产品图片画廊 */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    margin-bottom: 20px;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
}

.thumbnail:hover {
    border-color: #0066cc;
}

.thumbnail.active {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 产品信息面板 */
.product-info-panel {
    margin-bottom: 8px;
}

.product-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.product-code {
    color: #999;
    font-size: 14px;
    margin-bottom: 25px;
}

.product-price {
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-label {
    font-size: 16px;
    color: #666;
}

.price-value {
    font-size: 36px;
    color: #e74c3c;
    font-weight: bold;
}

.price-unit {
    font-size: 16px;
    color: #999;
}

.product-brief {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #666;
}

/* 快速规格 */
.product-specs-quick {
    background: #f8f9fa;
    padding: 8px 0px;
    border-radius: 10px;
    /* margin-bottom: 8px; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 20px; */
    column-gap: 0;
}

.spec-item {
    display: flex;
    padding: 10px 5px;
    background: transparent;
    border-radius: 0;
    border: none;
    position: relative;
}

.spec-item:nth-child(odd):not(:nth-last-child(-n+1))::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1em;
    background: #999;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    flex: 0 0 80px;
    color: #666;
    font-weight: 500;
}

.spec-value {
    color: #333;
    font-weight: 600;
}

/* 产品操作区 */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.quantity-selector label {
    font-weight: 500;
    color: #666;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

#quantity {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
}

.btn-add-cart {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart {
    background: #0066cc;
    color: #fff;
}

.btn-add-cart:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* 产品特点 */
.product-features {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.product-features h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: 8px 0;
    color: #666;
    line-height: 1.6;
}

/* 产品标签页 */
.product-tabs-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.tabs-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tab-buttons {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 18px 30px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

.tab-btn.active {
    color: #0066cc;
    background: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0066cc;
}

.tab-content {
    padding: 40px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 25px;
}

.tab-panel h3 {
    font-size: 20px;
    color: #2c3e50;
    margin: 25px 0 15px;
}

.description-content {
    line-height: 1.8;
    color: #666;
}

.description-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.description-content li {
    margin-bottom: 12px;
}

.product-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.product-images-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* 技术参数表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table th,
.specs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.specs-table tr:hover {
    background: #f8f9fa;
}

/* 应用场景 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.application-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.application-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.application-item h3 {
    padding: 20px 20px 10px;
    font-size: 18px;
    color: #2c3e50;
}

.application-item p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* 认证资质 */
.certifications-content {
    line-height: 1.8;
    color: #666;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.cert-item {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.cert-item img {
    width: 100%;
    max-width: 120px;
    margin: 0 auto 15px;
}

.cert-item h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cert-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 相关产品推荐 */
.related-products-section {
    padding: 60px 0;
    background: #fff;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.related-products-grid .product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-products-grid .product-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.related-products-grid .product-image {
    height: 250px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.related-products-grid .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-products-grid .product-info {
    padding: 20px;
    text-align: center;
}

.related-products-grid .product-info h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.related-products-grid .product-info .price {
    font-size: 20px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-view {
    display: block;
    padding: 10px 20px;
    background: #0066cc;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: #0052a3;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 50%;
    }
    
    .applications-grid,
    .related-products-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        justify-content: center;
    }
}
