/* 官网首页专属样式 */
/* 配合 theme-common.css 使用 */

/* ========== Hero 区域 ========== */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(168, 85, 247, 0.1));
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--purple-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    line-height: 1.1;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* ========== 统计数据 ========== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-tertiary);
    font-size: 1rem;
}

/* ========== 功能特性 ========== */
.features {
    margin: 5rem 0;
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

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

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-2xl);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.2));
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ========== 产品展示 ========== */
.products {
    margin: 5rem 0;
    padding: 4rem 0;
}

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

.product-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-2xl);
}

.product-header {
    padding: 2.5rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.03) 0%, transparent 100%);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.2));
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 800;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.product-footer {
    padding: 2rem 2.5rem;
    background: var(--bg-secondary);
    margin-top: auto;
}

.product-footer a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.product-footer a:hover {
    color: var(--purple-600);
    transform: translateX(4px);
}

/* ========== 页脚 ==========  */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-600);
}

.footer-bottom {
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .hero {
        padding-top: 6rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}