/* 产品详情页面样式 */

/* 页面标题 */
.page-header {
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 4rem 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 产品详情 */
.product-section {
    padding: 4rem 20px;
    display: none;
}

.product-section.active {
    display: block;
}

.recommended-products {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 产品画廊 */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--light-color);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.thumbnail-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail-grid img:hover {
    transform: scale(1.05);
}

/* 产品规格 */
.product-specs {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.product-specs h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.product-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

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

.product-specs ul li strong {
    color: var(--dark-color);
}

/* 产品信息 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
}

.product-info h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin: 0;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.product-description {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* 产品视频 */
.product-video {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.product-video h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-video video {
    width: 100%;
    border-radius: var(--border-radius);
}

/* 应用场景 */
.product-scenarios {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.product-scenarios h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-scenarios ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-scenarios li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

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

/* 产品操作按钮 */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.product-actions .btn {
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .main-image {
        height: 300px;
    }

    .product-info h3 {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }
}
