/* ========== 产品详情页专属样式 ========== */
/* 面包屑导航 */
.product-breadcrumb {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0052cc;
}

.breadcrumb span {
    color: #0052cc;
    font-weight: 500;
}

/* 产品详情主体区 */
.product-detail {
    padding: 40px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 40px;
}

/* 左侧产品图片区 */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-img {
    position: relative;
    background-color: #f8f9fa;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background-color: #0052cc;
    color: #fff;
    border-color: #0052cc;
}

/* 缩略图导航 */
.product-thumbnails {
    display: flex;
    align-items: center;
    gap: 15px;
}

.thumb-nav {
    width: 30px;
    height: 30px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumb-nav:hover {
    background-color: #0052cc;
    color: #fff;
    border-color: #0052cc;
}

.thumbnails-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    flex: 1;
    scrollbar-width: thin;
}

.thumbnails-wrapper::-webkit-scrollbar {
    height: 4px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 2px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    padding: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-item.active {
    border-color: #0052cc;
}

.thumbnail-item:hover {
    border-color: #0052cc;
    opacity: 0.9;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧产品信息区 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-category {
    font-size: 14px;
    text-transform: uppercase;
    color: #0052cc;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
}

.product-short-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 产品特性图标 */
.product-features {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-width: 100%;
    height: auto;
}

.feature-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    line-height: 1.3;
}

/* 产品规格选择 */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.spec-select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.spec-select:focus {
    border-color: #0052cc;
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.primary-btn {
    background-color: #0052cc;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.primary-btn:hover {
    background-color: #0047b3;
}

.secondary-btn {
    background-color: #fff;
    color: #0052cc;
    border: 1px solid #0052cc;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: #0052cc;
    color: #fff;
}

.action-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-icon:hover {
    background-color: #0052cc;
    color: #fff;
    border-color: #0052cc;
}

/* 产品详情标签页 */
.product-tabs {
    padding: 30px 0 50px;
    border-top: 1px solid #eee;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #0052cc;
    border-bottom-color: #0052cc;
}

.tab-btn:hover:not(.active) {
    color: #0052cc;
    border-bottom-color: #eee;
}

.tabs-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-content-inner {
    display: grid;
    grid-template-columns:1fr;
    gap: 30px;
}

/* 描述标签内容 */
.description-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desc-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.desc-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desc-features li {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.desc-features li i {
    color: #0052cc;
    margin-top: 3px;
}

/* 定制方案卡片 */
.custom-solution-card {
    background-color: #f0f7ff;
    padding: 20px;
    border-left: 3px solid #0052cc;
    margin-top: 10px;
}

.custom-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px 0;
}

.custom-card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.custom-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #0052cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.custom-card-link:hover {
    gap: 8px;
    text-decoration: underline;
}

/* 规格表 */
.specs-table-container {
    background-color: #f8f9fa;
    padding: 20px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.spec-label-cell {
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    width: 40%;
}

.spec-value-cell {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

/* 相关产品区 */
.related-products {
    padding: 40px 0 60px;
    background-color: #f8f9fa;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 30px 0;
    text-align: center;
}

.related-products-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.slider-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
}

.slider-nav:hover {
    background-color: #0052cc;
    color: #fff;
    border-color: #0052cc;
}

/* .products-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    flex: 1;
    scrollbar-width: thin;
}
 */


.products-wrapper {
   display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:10px;
}

/* .related-product-card  {
    width: calc(25% - 15px);   
    box-sizing: border-box;
}
 */
@media (max-width:768px){
    .products-wrapper{
        grid-template-columns:repeat(2,1fr);
    }
}



.products-wrapper::-webkit-scrollbar {
    height: 6px;
}

.products-wrapper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.related-product-card {
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #eee;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.product-card-img {
    background-color: #f8f9fa;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.2;
}

.product-card-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.product-card-link {
    font-size: 12px;
    font-weight: 600;
    color: #0052cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    transition: gap 0.3s ease;
}

.product-card-link:hover {
    gap: 8px;
    text-decoration: underline;
}

/* 产品优势区 */
.product-benefits {
    background-color: #0052cc;
    color: #fff;
    padding: 50px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.benefit-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.benefit-desc {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

/* ========== 响应式适配（产品页专属） ========== */
@media (max-width: 1200px) {
    .product-detail-container {
        grid-template-columns: 55% 45%;
        gap: 30px;
    }
    .benefits-grid {
        gap: 20px;
    }
    .tab-content-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    .product-features {
        flex-wrap: wrap;
    }
    .feature-item {
        flex: 1 1 45%;
        margin-bottom: 10px;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 28px;
    }



    .product-features {
        /* flex-direction: column; */
        align-items: flex-start;
    }



    .feature-item {
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        text-align: left;
    }



    .feature-icon {
        margin-bottom: 0;
    }
    .tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    .tab-btn {
        white-space: nowrap;
    }
    .related-product-card {
        min-width: 180px;
    }
    .slider-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 24px;
    }
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .specs-table-container {
        padding: 10px;
    }
    .spec-label-cell, .spec-value-cell {
        padding: 8px 0;
        font-size: 13px;
    }
    .custom-solution-card {
        padding: 15px;
    }
    .related-product-card {
        min-width: calc(100% - 30px);
    }
}