/* 产品详情页样式 */

/* 为固定导航栏留出空间 */
main {
    margin-top: 120px; /* 主导航栏高度(80px) + 额外间距 */
}

/* 产品详情区域 */
.product-detail {
    padding-bottom: 50px;
}

/* 产品介绍 */
.product-intro {
    background-color: #f8f9fa;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

.product-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}



/* 主图容器 */
.main-image-container {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

/* 放大按钮 */
.zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background-color: #fff;
    border-color: #0066cc;
    color: #0066cc;
}

/* 缩略图轮播 */
.thumbnail-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-btn {
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.thumbnails-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

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

.thumbnail:hover {
    border-color: #0066cc;
}

.thumbnail.active {
    border-color: #0066cc;
    background-color: #f0f7ff;
}

/* 右侧内容区域 */
.content-container {
    flex: 1;
    min-width: 400px;
}

/* 右侧：产品轮播图 - 右浮动 */
.image-viewer {
    float: right !important;
    width: 50% !important;
    min-width: 300px !important;
    max-width: 500px !important;
    display: block !important;
    padding-left: 20px;
    box-sizing: border-box;
}

/* 主容器样式 - 已移除上下布局，允许左右浮动布局 */
.product-main {
    /* 删除flex布局，让子元素使用左右浮动 */
}

/* 上半部分：产品标题简介 + 轮播图 */
.product-header-section {
    display: block !important;
    width: 100%;
    min-height: 500px;
    overflow: auto; /* 清除浮动 */
}

/* 左侧：产品标题和简介 - 左浮动 */
.product-intro-section {
    float: left !important;
    width: 50% !important;
    min-width: 300px;
    display: block !important;
    padding-right: 20px;
    box-sizing: border-box;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.product-intro-summary {
    margin-bottom: 30px;
}

.product-intro-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* 产品核心信息概览 */
.product-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #0066cc;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.summary-value {
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

/* 下半部分：产品详细介绍 */
.product-details-section {
    width: 800px;
}

/* 原有样式保持不变 */
.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* 特性内容样式 */
.params-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.params-left,
.params-right {
    flex: 1;
    min-width: 200px;
}

.params-left ul,
.params-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.params-left li,
.params-right li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.params-left li:before,
.params-right li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-size: 20px;
    line-height: 1;
}

/* 特性内容中的图片居中样式 */
.features-content img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 更多细节内容样式 */
.details-content {
    line-height: 1.8;
}

.details-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
}

.circuit-diagram {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.diagram-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
}

.applications {
    margin-top: 30px;
}

.applications h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.applications li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #555;
}

.applications li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-size: 20px;
    line-height: 1;
}

/* 图片放大弹窗样式 */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.zoom-modal-content {
    position: relative;
    width: 90%;
    max-width: 1600px;
    height: 85vh;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.zoomed-image {
    flex: 1;
    max-width: 100%;
    max-height: calc(100% - 120px);
    object-fit: contain;
    margin: 60px auto 40px;
    padding: 20px;
}

.modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-action-btn {
    padding: 6px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-action-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #333;
}

.modal-sidebar {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 5;
}

.modal-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.modal-thumbnail:hover {
    border-color: #0066cc;
}

.modal-thumbnail.active {
    border-color: #0066cc;
    background-color: #e3f2fd;
}

.modal-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.modal-tab-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.modal-tab-btn:hover {
    color: #0066cc;
}

.modal-tab-btn.active {
    color: #0066cc;
    font-weight: 600;
    border-bottom-color: #0066cc;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-main {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .product-header-section {
        overflow: auto;
    }
    
    /* 调整浮动元素宽度 */
    .product-intro-section {
        width: 48% !important;
    }
    
    .image-viewer {
        width: 48% !important;
    }
}

@media (max-width: 768px) {
    .breadcrumb .container {
        flex-wrap: wrap;
        font-size: 12px;
    }
    
    /* 小屏幕上取消浮动，切换为上下布局 */
    .product-header-section {
        display: block !important;
    }
    
    .product-intro-section,
    .image-viewer {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin-bottom: 30px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-intro-text {
        font-size: 16px;
    }
    
    .params-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .image-center-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-image {
        max-width: 90%;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .features-images {
        padding: 20px;
    }
    
    .product-summary {
        padding: 20px;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 0;
    }
    
    .summary-label {
        font-size: 13px;
    }
    
    .summary-value {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .product-main {
        display: flex;
        flex-direction: column;
        padding: 0 10px;
        gap: 30px;
    }
    
    .thumbnail-carousel {
        flex-direction: column;
    }
    
    .thumbnails-wrapper {
        width: 100%;
    }
    
    .thumbnails-container {
        justify-content: center;
    }
    
    .feature-image {
        max-width: 100%;
    }
}