/* 产品详情页面样式 */
.product-detail-main {
    background: #fff;
    min-height: 100vh;
    padding-top: 80px;
}

.product-detail-content-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.product-detail-container {
    display: flex;
    max-width: 1400px;
    /* margin: 0 auto; */
    gap: 2rem;
    padding: 2rem;
}

/* 左侧侧边栏 - 复用产品页面样式 */
.detail-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: fit-content;
}

/* 侧边栏部分样式 */
.sidebar-section {
    border-bottom: 1px solid #e9ecef;
    padding: 0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    background: #000;
    color: #fff;
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 0!important;
}

/* 分类列表样式 */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #f1f3f4;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-link:hover {
    background: #f8f9fa;
    color: #000;
}

.category-link.active {
    background: #f8f9fa;
    color: #000;
    border-left-color: #000;
    font-weight: 500;
}

/* 推荐产品样式 */
.recommended-products {
    padding: 1rem;
}

.recommended-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.recommended-item:hover {
    background: #f8f9fa;
}

.recommended-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: linear-gradient(45deg, #ddd, #eee);
    object-fit: cover;
    flex-shrink: 0;
}

.recommended-name {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* 产品详情内容区域 */
.product-detail-content {
    flex: 1;
    display: flex;
    gap: 0;
}

/* 产品展示区域 */
.product-showcase {
    flex:3;
    /* background: #fff; */

    /* padding: 2rem; */
}

.product-main-image {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e9ecef;
    padding: 10px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    background: linear-gradient(45deg, #f0f0f0, #f8f8f8);
}

/* 产品缩略图导航 */
.product-thumbnails {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail-nav {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 1rem;
}

.thumbnail-nav:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

.thumbnail-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumbnails-container {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    overflow: hidden;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail-item.active {
    border-color: #000;
}

.thumbnail-item:hover {
    border-color: #666;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(45deg, #f0f0f0, #f8f8f8);
}

/* 产品信息区域 */
.product-info {
    /* width: 350px; */
    flex:2;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;

    padding: 2rem;
}

.product-names {
    font-size: 1.8rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.xinghao {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.product-description {
    margin-top: 0.5rem;
}

.description-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 产品标签页容器 */
.product-tabs-container {
    width: 100%;
    margin: 2rem 0 0 0;
    padding: 0;
}

.product-tabs {
    display: flex;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    background: #f8f9fa;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.tab-btn.active {
    background: #000;
    color: #fff;
    border-bottom-color: #000;
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
    color: #333;
}

/* 标签页内容 */
.tab-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 1rem;
    min-height: 260px;
}

.tab-panel.active {
    display: block;
}

/* 产品详情内容 */
.detail-content {
    max-width: 100%;
}

.features-content {
    max-width: 100%;
}

.specifications-content {
    max-width: 100%;
}

.specifications-features {
    margin-bottom: 3rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #000;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.feature-item img {
    width: 100%;
}

.specifications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* 技术图纸样式 */
.technical-drawings {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.drawings-container {
    display: flex;
    justify-content: center;
}

.drawing-item {
    text-align: center;
    position: relative;
}

.drawing-image {
    width: 300px;
    height: 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.drawing-dimensions {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.drawing-caption {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
    font-style: italic;
}

/* 光分布图样式 */
.light-distribution {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.distribution-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-image {
    width: 100%;
    height: 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    object-fit: contain;
}

.chart-data {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.distribution-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.distribution-table th,
.distribution-table td {
    padding: 0.8rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.distribution-table th {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.distribution-table td {
    color: #333;
    font-weight: 500;
}

.distribution-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.distribution-table tr:hover td {
    background: #e3f2fd;
}

.distribution-table tr:last-child td {
    border-bottom: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-bullet {
    color: #333;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.feature-text {
    color: #666;
    font-size: 0.95rem;
}

/* 产品图片展示 */
.product-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-image-item {
    text-align: center;
}

.product-image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(45deg, #f0f0f0, #f8f8f8);
    margin-bottom: 1rem;
}

.image-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 产品参数内容 */
.parameters-content {
    max-width: 100%;
}

.parameters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.parameter-section {
    min-height: 400px;
}

.technical-diagram,
.specifications-table {
    margin-bottom: 2rem;
}

.diagram-image,
.specs-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: linear-gradient(45deg, #f0f0f0, #f8f8f8);
    border: 1px solid #e9ecef;
}

.diagram-image {
    min-height: 300px;
    object-fit: contain;
}

.specs-image {
    min-height: 200px;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-detail-container {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .product-detail-content {
        gap: 0;
    }
    
    .product-info {
        width: 300px;
    }
    
    .tab-panel {
        padding: 2rem;
    }
    
    .parameters-grid {
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .product-detail-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .detail-sidebar {
        width: 100%;
        order: 3;
    }
    
    /* .product-detail-content {
        flex-direction: column;
        order: 1;
    } */
    
    .product-info {
        width: 100%;
        order: 2;
    }
    
    .product-showcase {
        order: 1;
    }
    
    .parameters-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .specifications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .drawings-container {
        flex-direction: column;
        align-items: center;
    }
    
    .product-tabs-container {
        margin-top: 1rem;
        padding: 0 1rem;
    }
    
    .product-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-main-image {
        height: 300px;
    }
    
    .product-name {
        font-size: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-panel {
        padding: 1.5rem;
    }
    
    .thumbnails-container {
        gap: 0.3rem;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail-nav {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-showcase {
        /* padding: 1.5rem; */
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        padding: 0.5rem;
    }
    
    .product-showcase,
    .product-info {
        /* padding: 1rem; */
        border-radius: 0;
    }
    
    .detail-sidebar {
        border-radius: 0;
    }
    
    .product-main-image {
        height: 250px;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
    
    .product-tabs-container {
        padding: 0 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .tab-panel {
        padding: 1rem;
    }
    
    .product-tabs {
        border-radius: 0;
    }
    
    .tab-content {
        border-radius: 0;
    }
    
    .feature-item {
        gap: 0.5rem;
    }
    
    .product-images {
        gap: 1.5rem;
    }
    
    .product-image-item img {
        height: 200px;
    }
}

/* 动画效果 */
.tab-panel {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thumbnail-item {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 加载状态 */
.product-showcase.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-showcase.loading .product-main-image {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 图片切换动画 */
.product-main-image.changing {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.thumbnail-item.changing {
    transform: scale(0.95);
    transition: transform 0.2s ease;
} 