/* 产品详情页样式 */

/* 新版产品详情布局 */
.product-detail-wrap {
    width: 100%;
}

.w-com-content {
    width: 100%;
    background: white;
}

.w-breadcrumbs {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.w-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.w-breadcrumbs a:hover {
    text-decoration: underline;
}

.w-breadcrumbs span {
    color: #666;
}

.product-detail-top1 {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.product-detail-images {
    width: 100%;
}

.product-detail-images-in {
    width: 100%;
}

.product-detail-image-big {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-detail-image-big img {
    width: 100%;
    height: auto;
    display: block;
}

.rotatePicbox-tel {
    width: 100%;
    margin-top: 15px;
}

.imgSlideMain {
    width: 100%;
}

.imgSlide {
    width: 100%;
    overflow: hidden;
}

.imgSlide ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.imgSlide ul li {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.imgSlide ul li:hover {
    border-color: var(--primary-color);
}

.imgSlide ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navSlideBox {
    margin-top: 10px;
    text-align: center;
}

.navSlide {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.i_point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.i_point.active {
    background: var(--primary-color);
}

.product-detail-info {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.product-detail-info-in {
    width: 100%;
}

.prd_detInfo_con {
    margin-bottom: 20px;
}

.product-title h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
}

.product-properies-groups {
    margin-top: 20px;
}

.product-description p {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.product-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-description ul li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid #e9ecef;
}

.product-description ul li:last-child {
    border-bottom: none;
}

.product-maincon {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.product-maincon-in {
    width: 100%;
}

.product-descons {
    margin-bottom: 30px;
}

.descon_item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.news-others {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pre-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.news-prev, .news-next {
    color: #666;
}

.news-prev a, .news-next a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 8px;
}

.news-prev a:hover, .news-next a:hover {
    text-decoration: underline;
}

.prddetail_foot_fixed {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    border-radius: 8px;
}

.contact-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.clear {
    clear: both;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.g-cover {
    object-fit: cover;
}

/* 产品详情主容器 */
.product-detail-container {
    padding: 40px 0 80px 0;
    background: white;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* 左侧分类导航 - 复用产品中心的样式 */
.product-sidebar {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.category-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-nav li {
    border-bottom: 1px solid #e9ecef;
}

.category-nav li:last-child {
    border-bottom: none;
}

.category-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-nav a:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.category-nav .active {
    background-color: var(--background-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* 右侧详情内容 */
.product-detail-main {
    flex: 1;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #6c757d;
}

/* 简化的产品详情布局 */
.simple-product-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 产品主图和标题区域 */
.product-main-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-main-image {
    flex: 1;
    max-width: 400px;
}

.product-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-main-title {
    flex: 1;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.product-main-title h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* 产品参数区域 */
.product-parameter-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.product-parameter-section h2 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-weight: 600;
    text-align: center;
}

.product-parameter-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 产品详情顶部 */
.product-detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* 产品图片区域 */
.product-detail-images {
    position: sticky;
    top: 20px;
}

.product-detail-image-main {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-detail-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.product-detail-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.product-detail-thumbs img:hover {
    border-color: var(--primary-color);
}

/* 产品信息区域 */
.product-detail-info {
    padding: 20px;
}

.product-title h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.product-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.product-description {
    margin-bottom: 25px;
}

.product-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.product-features {
    margin-bottom: 25px;
}

.product-features h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.product-features li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 产品主要内容 */
.product-main-content {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.product-content-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-content-item p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.product-content-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-weight: 600;
}

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

.specifications-table th,
.specifications-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.specifications-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.specifications-table td {
    font-size: 14px;
    color: #555;
}

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

/* 上下页导航 */
.product-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.nav-prev, .nav-next {
    color: #666;
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-prev a, .nav-next a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.nav-prev a:hover, .nav-next a:hover {
    text-decoration: underline;
}

/* 简化布局响应式设计 */
@media (max-width: 768px) {
    .simple-product-detail {
        padding: 15px;
    }
    
    .product-main-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .product-main-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .product-main-image img {
        height: 300px;
    }
    
    .product-main-title {
        padding-left: 0;
        justify-content: center;
    }
    
    .product-main-title h1 {
        font-size: 24px;
    }
    
    .product-parameter-section {
        padding: 20px 15px;
    }
    
    .product-parameter-section h2 {
        font-size: 18px;
    }
    
    .product-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-next {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .simple-product-detail {
        padding: 10px;
    }
    
    .product-main-section {
        padding: 15px;
        gap: 15px;
    }
    
    .product-main-image {
        max-width: 250px;
    }
    
    .product-main-image img {
        height: 250px;
    }
    
    .product-main-title h1 {
        font-size: 20px;
    }
    
    .product-parameter-section {
        padding: 15px 10px;
    }
    
    .product-parameter-section h2 {
        font-size: 16px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 新版布局响应式设计 */
@media (max-width: 1024px) {
    .product-detail-top1 {
        grid-template-columns: 1fr 250px 1fr;
        gap: 20px;
    }
    
    .product-detail-image-big {
        max-width: 350px;
    }
    
    .product-title h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .product-detail-top1 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail-images {
        order: 1;
    }
    
    .rotatePicbox-tel {
        order: 2;
    }
    
    .product-detail-info {
        order: 3;
        margin-top: 20px;
    }
    
    .product-detail-image-big {
        max-width: 300px;
    }
    
    .product-title h2 {
        font-size: 18px;
    }
    
    .w-breadcrumbs {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .product-maincon {
        padding: 20px 15px;
    }
    
    .pre-next {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .imgSlide ul li {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .product-detail-image-big {
        max-width: 280px;
    }
    
    .product-title h2 {
        font-size: 16px;
    }
    
    .product-description p {
        font-size: 14px;
    }
    
    .product-description ul li {
        font-size: 13px;
        padding: 6px 0;
    }
    
    .descon_item h3 {
        font-size: 18px;
    }
    
    .product-maincon {
        padding: 15px 10px;
    }
    
    .imgSlide ul li {
        width: 50px;
        height: 50px;
    }
    
    .imgSlide ul {
        gap: 8px;
    }
}

/* 原版响应式设计 */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .product-detail-top {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-sidebar {
        position: static;
        order: -1;
    }
    
    .product-detail-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail-images {
        position: static;
    }
    
    .product-title h1 {
        font-size: 24px;
    }
    
    .product-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        padding: 30px 0 50px 0;
    }
    
    .product-detail-info {
        padding: 15px;
    }
    
    .product-title h1 {
        font-size: 22px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .sidebar-header h3 {
        font-size: 16px;
    }
    
    .category-nav a {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* 图片切换功能 */
function changeImage(clickedImg) {
    const mainImage = document.getElementById('mainImage');
    if (mainImage && clickedImg) {
        mainImage.src = clickedImg.src;
        mainImage.alt = clickedImg.alt;
        
        // 移除其他缩略图的active状态
        const thumbs = document.querySelectorAll('.product-detail-thumbs img');
        thumbs.forEach(thumb => thumb.classList.remove('active'));
        
        // 给当前点击的缩略图添加active状态
        clickedImg.classList.add('active');
    }
}

/* 缩略图active状态样式 */
.product-detail-thumbs img.active {
    border-color: var(--primary-color);
    opacity: 0.8;
}

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-modal-caption {
    color: white;
    margin-top: 15px;
    font-size: 16px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 表格响应式包装器 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 产品特点动画 */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 应用领域卡片点击效果 */
.app-item.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 产品比较按钮 */
.comparison-toggle {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.comparison-toggle:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* 简化布局主图点击提示 */
.product-main-image {
    cursor: pointer;
    position: relative;
}

.product-main-image:hover::after {
    content: "点击放大";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0.9;
}

.product-main-image img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}