/* 产品详情页面重新设计样式 */

/* 产品详情主容器 */
.product-detail-container {
    /* max-width: 145rem; */
    margin: 0 auto;
    padding: 0;
    /* background: #fff; */
}

/* 产品信息区域 */
.product-info-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 6rem;
    align-items: unset;
    justify-content: space-between;
}

/* 左侧图片区域 */
.product-images-area {
    flex: 0 0 72.5rem;
    display: flex;
    gap: 1.2rem;
    /* background: #fff; */
}

/* 细节图片列 */
.detail-images-column {
    flex: 0 0 17.3rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: flex-start;
    /* background: #fff; */
}

.detail-image-item {
    width: 17.3rem;
    height: 17.3rem;
    /* border: 2px solid #e5e5e5; */
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.detail-image-item:nth-child(n+4) {
    display: none;
}
.detail-image-item {}

.detail-image-item:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.detail-image-item.active {
    /* border-color: #007bff; */
    /* box-shadow: 0 0 10px rgba(0, 123, 255, 0.3); */
}

.detail-image-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.detail-image-item:hover img {
    transform: scale(1.1);
}

/* 主图区域 */
.main-image-area {
    flex: 0 0 54rem;
    position: relative;
    background: #fff;
    /* width: 54rem; */
    height: 54rem;
}

.main-image-container {
    width: 100%;
    height: 100%;
    /* border: 2px solid #e5e5e5; */
    /* border-radius: 12px; */
    overflow: hidden;
    /* background: #f8f9fa; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* 图片放大功能 */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-zoom-overlay.active {
    display: flex;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

/* 右侧产品信息区域 */
.product-info-area {
    flex: 1;
    padding: 2.3rem 4.5rem;
    background: #fff;
}

.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 5rem;
}

.product-title:after,.product-title:before {
    content: "";
    display: block;
    height: 2px;
    background: #0552C4;
    width: 17rem;
    margin: 0;
    position: absolute;
    z-index: 1;
    bottom: 2.5rem;
    left: 0;
}
.product-title:after{
    background: #f3f3f3;
    z-index: 0;
    width: 100%;
    height: 1px;
}
.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description p:last-child {
    margin-bottom: 0;
}

/* 产品操作按钮 */
.product-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.btn-online-message,
.btn-contact-us {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    /* flex: auto; */
    justify-content: center;
}

.product-action-buttons a {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e5e5e5;
}

.btn-online-message:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-action-buttons a:hover {
    background: #0552C4;
    color: white;
    border: 1px solid #0552C4;
}

.btn-contact-us:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-online-message i,
.btn-contact-us i {
    font-size: 16px;
    font-style: normal;
    display: flex;
    align-items: center;
    position: relative;
}

.btn-online-message i {
    top: 2px;
}

.btn-online-message i svg,
.btn-contact-us i svg {
    width: 16px;
    height: 16px;
    fill: #6A6A6A;
    transition: fill 0.3s ease;
}

.btn-online-message:hover i * {
    fill: #ffffff;
}

.btn-contact-us:hover i svg {
    fill: #ffffff;
}

/* 产品规格预览 */
.product-specs-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.specs-preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.specs-preview-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.spec-preview-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.spec-preview-item:last-child {
    border-bottom: none;
}

.spec-preview-label {
    font-weight: 500;
    color: #666;
}

.spec-preview-value {
    color: #333;
    font-weight: 600;
}

/* 下载按钮 */
.download-section {
    margin-top: 30px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.download-btn i {
    width: 20px;
    height: 20px;
}

/* Tab切换区域 */
.product-tabs-section {
    margin-top: 60px;
    background: #fff;
    padding: 5rem;
}

.tabs-navigation {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-button {
    padding: 2rem 3rem;
    background: none;
    border: none;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-button:first-child {
    border-right: 1px solid #eee;
    /* border-left: 1px solid #eee; */
}

.tab-button:first-child.active {
    border-left: 1px solid #eee;
}

.tab-button.active:last-child {
    border-right: 1px solid #eee;
}

.tab-button.active:before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 3;
}

.tab-button:hover {
    color: #333;
    background: #f8f9fa;
}

.tab-button.active {
    color: #0552C4;
    background: #fff;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -1px;
    right: 0;
    height: 2px;
    background: #0552C4;
    width: calc(100% + 2px);
}

.tab-content {
    display: none;
    padding: 30px 0;
}

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

/* Product Features内容 */
.product-features-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.product-features-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.product-features-content h3:first-child {
    margin-top: 0;
}

.product-features-content p {
    margin-bottom: 15px;
}

.btn_inquire {
    color: #fff;
    background: #0552C4;
    border-radius: 5px 26px 5px 5px;
    padding: 1.2rem 3rem;
    margin: 2rem 0 4rem;
    display: inline-block;
}

.product-features-content ul,
.product-features-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.product-features-content li {
    margin-bottom: 8px;
}

/* Specification内容 */
.specification-content {
    font-size: 16px;
    line-height: 1.6;
}

.specification-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.specification-table th,
.specification-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.specification-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

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

.specification-table tr:hover {
    background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-info-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-images-area {
        flex: none;
        width: 100%;
    }
    
    .product-info-area {
        flex: none;
        width: 100%;
        padding-left: 0;
        padding: 16px;
    }
    
    .detail-images-column {
        flex: 0 0 100px;
    }
    
    .detail-image-item {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 20px 0;
    }
    
    .product-images-area {
        flex-direction: column;
        gap: 15px;
        display: block;
    }
    
    .detail-images-column {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    0 0
        contain-intrinsic-block-size: auto 100px;
        margin-bottom: 20px;
    }
    
    .detail-image-item {
        width: 80px;
        height: 80px;
        padding: 10px;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .product-title {
        font-size: 24px;
        padding: 0;
        text-align: center;
        font-size: 20px !important;
    }
    
    .product-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-online-message,
    .btn-contact-us {
        width: 100%;
        justify-content: center;
    }
    
    .specs-preview-list {
        grid-template-columns: 1fr;
    }
    
    .tabs-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .tab-button.active::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        /* padding: 15px 10px; */
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .main-image-container {
        height: 250px;
    }
    
    .detail-image-item {
        width: 60px;
        height: 60px;
    }
    
    .specification-table th,
    .specification-table td {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-info-section {
    animation: fadeIn 0.6s ease-out;
}

.tab-content {
    animation: fadeIn 0.4s ease-out;
}

/* 加载状态 */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* HTML格式规格表格样式 */
.specification-html {
    overflow-x: auto;
}

.specification-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 1px 3px 3px rgba(0, 0, 0, 0.1);
    max-width: calc(100% - 4px);
    margin-left: 2px;
    border: 1px solid #ffffff5c;
}

.specification-html table th,
.specification-html table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.specification-html table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #e5e5e5;
}

.specification-html table tr:last-child td {
    border-bottom: none;
}

.specification-html table tr:hover {
    background: #f8f9fa;
}

/* 规格预览HTML样式 */
.specs-preview-html {
    overflow-x: auto;
}

.specs-preview-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.specs-preview-html table th,
.specs-preview-html table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.specs-preview-html table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

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

.specs-preview-html table tr:hover {
    background: #f8f9fa;
}
