/* 详情页样式 */

/* 产品详情页 */
.product-detail-page {
    padding: 60px 0;
    background: var(--bg-light);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* 产品图片画廊 */
.product-gallery {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.product-gallery-main {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-gallery-main .image-placeholder i {
    font-size: 150px;
    color: var(--primary-color);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-thumb {
    height: 80px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--secondary-color);
}

.gallery-thumb .thumb-placeholder i {
    font-size: 32px;
    color: var(--primary-color);
}

/* 产品信息 */
.product-info-section {
    padding: 20px 0;
}

.product-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.highlight-item i {
    color: var(--secondary-color);
    font-size: 20px;
}

.highlight-item span {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-large i {
    margin-right: 8px;
}

.product-contact {
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-contact p {
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

.product-contact i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

/* 产品详情标签页 */
.product-detail-tabs {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.product-tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.product-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.product-tab-btn:hover,
.product-tab-btn.active {
    color: var(--secondary-color);
}

.product-tab-btn.active::after {
    transform: scaleX(1);
}

.tabs-content {
    padding: 40px;
}

.product-tab-content {
    display: none;
}

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

.product-tab-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* 技术参数表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.specs-table th {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

.specs-table tr:nth-child(even) {
    background: var(--bg-light);
}

.specs-table tr:hover {
    background: #e2e8f0;
}

/* 产品特点 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--white);
}

.feature-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 应用领域 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.application-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.application-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.application-icon i {
    font-size: 32px;
    color: var(--white);
}

.application-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.application-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 资料下载 */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s;
}

.download-item:hover {
    box-shadow: var(--shadow);
}

.download-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon i {
    font-size: 28px;
    color: var(--secondary-color);
}

.download-info {
    flex: 1;
}

.download-info h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.download-info p {
    font-size: 13px;
    color: var(--text-light);
}

/* 相关产品 */
.related-products {
    margin-top: 60px;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 相关产品卡片样式 */
.related-products .product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.related-products .product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* 相关产品封面图样式 */
.related-products .product-card .product-image {
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 50%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.related-products .product-card .product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(26, 54, 93, 0.1) 100%);
}

.related-products .product-card .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.related-products .product-card .image-placeholder i {
    font-size: 64px;
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.related-products .product-card:hover .image-placeholder i {
    transform: scale(1.1);
    opacity: 1;
}

/* 相关产品信息区域 */
.related-products .product-card .product-info {
    padding: 25px;
}

.related-products .product-card .product-info h3 {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.related-products .product-card .product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.related-products .product-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-products .product-card .read-more:hover {
    color: var(--primary-color);
    gap: 12px;
}

.related-products .product-card .read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.related-products .product-card:hover .read-more i {
    transform: translateX(4px);
}

/* 新闻详情页 */
.news-detail-page {
    padding: 60px 0;
    background: var(--bg-light);
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.news-detail-main {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.news-category-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
}

.news-detail-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-meta i {
    color: var(--secondary-color);
}

.news-detail-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.news-detail-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 25px 0 10px;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.news-detail-content li {
    margin-bottom: 8px;
}

.news-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.news-detail-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-light);
    font-style: italic;
}

/* 分享按钮 */
.news-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.news-share h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.twitter { background: #1da1f2; }

/* 上一篇/下一篇 */
.news-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.news-nav-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s;
}

.news-nav-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.news-nav-item.prev {
    text-align: left;
}

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

.news-nav-item span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.news-nav-item a {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.news-nav-item:hover a {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .news-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 24px;
    }
    
    .product-highlights {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .product-tab-btn {
        flex: 1 1 50%;
        padding: 15px;
        font-size: 14px;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    .specs-table {
        font-size: 13px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px 5px;
    }
    
    .features-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products .products-grid {
        grid-template-columns: 1fr;
    }
    
    .news-detail-main {
        padding: 25px;
    }
    
    .news-detail-title {
        font-size: 22px;
    }
    
    .news-navigation {
        grid-template-columns: 1fr;
    }
    
    .news-nav-item.next {
        text-align: left;
    }
}
