/* Product Details 样式 */
.product-details {
    padding: 80px 0;
    background: white;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* 产品图片区域 */
.product-images {
    position: sticky;
    top: 20px;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.thumbnail-images {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #007bff;
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品信息区域 */
.product-info h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.product-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 产品特性 */
.product-features h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    padding: 10px 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features i {
    color: #28a745;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 产品规格 */
.product-specs h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.spec-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.spec-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.spec-value {
    display: block;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

/* 相关产品 */
.related-products {
    padding: 80px 0;
    background: #f8f9fa;
}

.related-products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 600;
    position: relative;
}

.related-products h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 20px 20px 10px;
    font-weight: 600;
}

.product-card p {
    color: #6c757d;
    margin: 0 20px 20px;
    line-height: 1.6;
}

.product-card .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    justify-content: center;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #007bff;
    border-color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-content {
        gap: 40px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-details {
        padding: 60px 0;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-images {
        position: static;
    }
    
    .product-info h2 {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .related-products {
        padding: 60px 0;
    }
    
    .related-products h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-details {
        padding: 40px 0;
    }
    
    .product-info h2 {
        font-size: 1.8rem;
    }
    
    .product-description {
        font-size: 1rem;
    }
    
    .product-features h3,
    .product-specs h3 {
        font-size: 1.3rem;
    }
    
    .related-products {
        padding: 40px 0;
    }
    
    .related-products h2 {
        font-size: 1.8rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .spec-item {
        padding: 12px;
    }
}