/* ============================================
   Product Page — 产品详情页通用样式
   ============================================ */

/* ---- 产品Hero ---- */
.product-hero {
    background: var(--gradient-hero);
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.product-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.product-hero-content {
    max-width: 560px;
}

.product-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 188, 212, 0.12);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.product-hero h1 {
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    color: var(--color-text-light);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.product-hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-light-2);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2xl);
}

.product-hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.product-hero-visual {
    position: relative;
}

.product-hero-screenshot {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--color-bg-dark-3);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.product-hero-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-hero-screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--color-text-light-3);
}

.product-hero-screenshot-placeholder .icon {
    font-size: 64px;
    opacity: 0.4;
}

.product-hero-screenshot-placeholder span {
    font-size: var(--text-sm);
    opacity: 0.5;
}

/* ---- 产品概述 ---- */
.product-overview {
    padding: var(--space-5xl) 0;
}

.product-overview-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.product-overview h2 {
    margin-bottom: var(--space-lg);
}

.product-overview p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

.product-overview-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-bg-light-2);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-tertiary);
}

/* ---- 核心功能 ---- */
.product-features {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-light-2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-2xl);
    background: var(--color-bg-light);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    margin-bottom: var(--space-lg);
}

.feature-card h4 {
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: var(--text-sm);
}

/* ---- 产品演示视频 ---- */
.product-demo {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-dark);
}

.product-demo .section-header .section-label {
    color: var(--color-accent);
}

.product-demo .section-header h2 {
    color: var(--color-text-light);
}

.product-demo .section-header p {
    color: var(--color-text-light-2);
}

.demo-video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- 下载区 ---- */
.product-download {
    padding: var(--space-5xl) 0;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 680px;
    margin: 0 auto;
}

.download-item-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: #FFFFFF;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.download-item-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
    color: #FFFFFF;
}

.download-meta {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    justify-content: center;
}

.download-meta a {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.download-meta a:hover {
    color: var(--color-primary);
}

/* ---- 许可与价格 ---- */
.license-section {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-light-2);
}

.price-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.price-image img {
    width: 100%;
    height: auto;
    display: block;
}

.license-actions {
    margin-top: var(--space-2xl);
    text-align: center;
}

.license-actions .license-desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.license-actions .btn {
    min-width: 200px;
}

.license-note {
    margin-top: var(--space-xl);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

/* ---- 相关产品 ---- */
.related-products {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-light-2);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .product-hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .product-hero-visual {
        order: -1;
    }

    .product-hero h1 {
        font-size: var(--text-4xl);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-overview-inner {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding-top: calc(var(--header-height) + var(--space-2xl));
        padding-bottom: var(--space-2xl);
    }

    .product-hero h1 {
        font-size: var(--text-3xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
