/* ==================== 软件产品展示页专属样式 ==================== */

/* 页面标题 Hero */
.products-hero {
    position: relative;
    padding: 7rem 0 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #eef2ff 100%);
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -8%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.products-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.products-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.products-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.875rem;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.875rem;
    letter-spacing: 0.02em;
}

.products-hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.products-hero-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero-desc {
    font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* ==================== 产品展示区 ==================== */
.products-section {
    background: var(--bg-soft);
    padding: 3rem 0 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 产品卡片 */
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

/* 产品图片 */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-soft);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 产品内容区 */
.product-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.05));
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.product-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.875rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 产品特性列表 */
.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    list-style: none;
}

.product-features li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1rem;
    line-height: 1.5;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
}

/* 价格标签 */
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.875rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(14, 165, 233, 0.04));
    border-radius: var(--radius);
    text-align: center;
    letter-spacing: 0.02em;
}

/* 按钮样式 */
.product-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

/* 底部 CTA */
.products-cta {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.products-cta-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.products-cta .btn-outline {
    min-width: 200px;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .products-hero {
        padding: 9rem 0 4rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 480px;
        margin: 0 auto;
    }

    .products-hero {
        padding: 8rem 0 3rem;
    }

    .products-hero-title {
        font-size: 2rem;
    }

    .products-section {
        padding: 3rem 0 4rem;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .products-cta {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }

    .products-cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-content {
        padding: 1.25rem;
    }

    .product-content h3 {
        font-size: 1.25rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 1.25rem;
    }
}
