/* 产品详情页样式 */


/* 为固定导航栏留出空间 */
main {
    margin-top: 80px; /* 主导航栏高度(80px) + 额外间距 */
}
/* 产品详情区域 */
.product-detail {
    padding-bottom: 50px;
}

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

.product-description {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
    margin: 0;
}

.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;
}

/* 左侧图片查看器 */
.image-viewer {
    width: 40%;
    min-width: 300px;
}

/* 主图容器 */
.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;
}

.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;
}

/* Tab切换样式 */
.tab-container {
    margin-top: 20px;
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.tab-btn:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.tab-btn:hover {
    background-color: #e8e8e8;
    color: #333;
}

.tab-btn.active {
    background-color: #fff;
    color: #0066cc;
    font-weight: 600;
    border-color: #0066cc;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

/* Tab内容 */
.tab-content {
    display: none;
    padding: 20px 0;
}

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

/* 特性内容样式 */
.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;
}

/* 更多细节内容样式 */
.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) {
    .main-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .image-viewer {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .content-container {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .breadcrumb .container {
        flex-wrap: wrap;
        font-size: 12px;
    }
    
    .intro-content h1 {
        font-size: 28px;
    }
    
    .product-description {
        font-size: 16px;
    }
    
    .params-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-radius: 4px;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 5px;
    }
    
    .tab-btn:last-child {
        border-left: 1px solid #e0e0e0;
        margin-bottom: 0;
    }
    
    .tab-btn.active {
        margin-bottom: 5px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .circuit-diagram {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .thumbnail-carousel {
        flex-direction: column;
    }
    
    .thumbnails-wrapper {
        width: 100%;
    }
    
    .thumbnails-container {
        justify-content: center;
    }
}