/* 产品详情页独立样式 */
.product-detail-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 30px 0;
    border-bottom: 1px solid #ecf0f1;
}

.breadcrumb {
    color: #7f8c8d;
    font-size: 14px;
}

.breadcrumb a {
    color: #1e40af;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-main {
    padding: 60px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 产品图片区域 */
.main-image-container {
    width: 100%;
    height: 400px;
    background: #ecf0f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
    margin-bottom: 20px;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail-item {
    width: 100%;
    height: 80px;
    background: #ecf0f1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 12px;
    cursor: pointer;
    transition: border 0.3s ease;
}

.thumbnail-item.active {
    border: 2px solid #1e40af;
}

/* 产品信息区域 */
.product-info-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.category-tag {
    background: #e1e8ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.product-price {
    font-size: 28px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-description {
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 30px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
}

.spec-value {
    color: #7f8c8d;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.consult-btn {
    background: #1e40af;
    color: white;
    flex: 1;
}

.consult-btn:hover {
    background: #1a369e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.download-btn {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    flex: 1;
}

.download-btn:hover {
    background: #1e40af;
    color: white;
}

/* 页面版权信息 */
.page-copyright {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0;
    font-size: 14px;
    color: #7f8c8d;
}

.page-copyright h5 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-copyright p {
    margin: 5px 0;
}

/* 上下篇文章导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
}

.nav-box {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.nav-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-box.prev-post {
    text-align: left;
}

.nav-box.next-post {
    text-align: right;
}

.nav-box a {
    text-decoration: none;
    color: inherit;
}

.nav-info small {
    color: #7f8c8d;
    display: block;
    margin-bottom: 5px;
}

.nav-info p {
    margin: 0;
    color: #1e40af;
    font-weight: 600;
    font-size: 16px;
}

/* 相关产品区域 */
.related-products {
    margin-top: 80px;
}

.related-title {
    text-align: center;
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-product {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-product:hover {
    transform: translateY(-3px);
}

.related-image {
    width: 100%;
    height: 120px;
    background: #ecf0f1;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.related-name {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.4;
}

.related-category {
    color: #7f8c8d;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    /* 在移动设备上调整导航样式 */
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-box.prev-post,
    .nav-box.next-post {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .main-image-container {
        height: 250px;
    }
}