/* product-detail.css - 产品详情页面专用样式 */

/* 产品详情页面 Hero 区域 */
.detail-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1573164713988-8665fc963095?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 50px;
    margin-top: 0;
}

.detail-hero-content h1 {
    color: white;
    font-size: 2.8rem;
    margin: 20px 0 15px;
}

.detail-hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    opacity: 0.9;
    margin-bottom: 0;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.breadcrumb a, .breadcrumb span {
    color: #ddd;
}

.breadcrumb a:hover {
    color: #3498db;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 0.8rem;
}

.breadcrumb span {
    color: #3498db;
    font-weight: 500;
}

/* 产品详情主区域 */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* 产品图片区域 */
.detail-images {
    position: sticky;
    top: 100px;
    align-self: start;
}

.main-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: #3498db;
    transform: translateY(-3px);
}

.thumbnail.active {
    border-color: #3498db;
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* 产品信息区域 */
.product-highlights {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
}

.product-highlights h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.highlight-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
}

.highlight-item i {
    color: #3498db;
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
}

.highlight-item span {
    color: #5a6c7d;
    font-size: 0.95rem;
}

.product-description {
    margin-bottom: 30px;
}

.product-description h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.product-description p {
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 25px;
}

.description-features h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.description-features ul {
    list-style: none;
    padding-left: 0;
}

.description-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #5a6c7d;
    position: relative;
    padding-left: 25px;
}

.description-features li:last-child {
    border-bottom: none;
}

.description-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* 技术规格区域 */
.specs-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.specs-table {
    overflow-x: auto;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specs-table th, .specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.specs-table tr:hover {
    background-color: #f5f7fa;
}

.specs-notes {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.note-box {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.note-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.note-box h3 i {
    color: #3498db;
    margin-right: 10px;
}

.note-box p, .note-box li {
    color: #5a6c7d;
    line-height: 1.6;
}

.note-box ul {
    list-style: none;
    padding-left: 0;
}

.note-box li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.note-box li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* 对比表格区域 */
.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table th, .comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.comparison-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.comparison-table tr:hover {
    background-color: #f5f7fa;
}

.rating {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.rating.excellent {
    background-color: #d4edda;
    color: #155724;
}

.rating.good {
    background-color: #d1ecf1;
    color: #0c5460;
}

.rating.fair {
    background-color: #fff3cd;
    color: #856404;
}

.rating.poor {
    background-color: #f8d7da;
    color: #721c24;
}

/* 相关产品区域 */
.related-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.related-product {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.related-product:hover {
    transform: translateY(-10px);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-product:hover .related-image img {
    transform: scale(1.05);
}

.related-info {
    padding: 20px;
}

.related-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.related-info p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* CTA区域 */
.detail-cta-container {
    background-color: #3498db;
    color: white;
    padding: 60px;
    border-radius: 8px;
    text-align: center;
}

.detail-cta-container h2 {
    color: white;
    margin-bottom: 15px;
}

.detail-cta-container p {
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.detail-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.detail-cta-buttons .btn-primary {
    background-color: white;
    color: #3498db;
    border-color: white;
}

.detail-cta-buttons .btn-primary:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.detail-cta-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.detail-cta-buttons .btn-secondary:hover {
    background-color: white;
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .detail-images {
        position: static;
    }
    
    .specs-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .detail-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .highlight-list {
        grid-template-columns: 1fr;
    }
    
    .detail-cta-container {
        padding: 40px 20px;
    }
    
    .detail-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .detail-hero {
        padding: 80px 0 30px;
    }
    
    .detail-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-products {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
}