/**
 * FitMate - Landing Page Styles
 * 首页/落地页专用样式
 */

/* ========================================
   Landing Container
   ======================================== */
.landing-container {
    min-height: 100vh;
    background: var(--background);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    position: relative;
    overflow: hidden;
}

/* 背景装饰 - 左上角装饰圆 */
.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 背景装饰 - 右下角装饰圆 */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 浮动装饰元素 */
.hero-float-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-float-deco.deco-1 {
    width: 12px;
    height: 12px;
    background: var(--primary);
    opacity: 0.15;
    top: 22%;
    left: 18%;
    animation: floatDeco 6s ease-in-out infinite;
}

.hero-float-deco.deco-2 {
    width: 8px;
    height: 8px;
    background: var(--success);
    opacity: 0.2;
    top: 35%;
    right: 22%;
    animation: floatDeco 5s ease-in-out infinite 1s;
}

.hero-float-deco.deco-3 {
    width: 6px;
    height: 6px;
    background: var(--primary);
    opacity: 0.25;
    bottom: 30%;
    left: 25%;
    animation: floatDeco 7s ease-in-out infinite 0.5s;
}

@keyframes floatDeco {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.1); }
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    max-width: 1200px;
    margin: 20px auto 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: sticky;
    top: 20px;
    z-index: 100;
    transition: box-shadow 0.2s ease;
}

.hero-nav:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 4px var(--spacing-2xl);
    align-items: center;
    min-height: calc(100vh - 100px);
}

.hero-text {
    /* GSAP 会接管动画，此处不设置 */
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 装饰 — 已移除同心圆 */

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
}

.hero-visual {
    position: relative;
    /* GSAP 会接管动画，此处不设置 */
}

.hero-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-level3);
    padding: var(--spacing-xl);
    max-width: 380px;
    margin: 0 auto 60px;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.hero-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-progress {
    margin-bottom: var(--spacing-lg);
}

.hero-progress .progress-bar {
    height: 10px;
    margin-bottom: var(--spacing-sm);
}

.hero-progress-text {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-stat i {
    font-size: 16px;
}

.hero-ai-bubble {
    position: absolute;
    bottom: -30px;
    left: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--surface);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-level2);
    max-width: 320px;
}

.ai-avatar-small {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.hero-ai-bubble p {
    margin: 0;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ========================================
   Features Section - 左右交错图文布局
   ======================================== */
.features-section {
    padding: 100px 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

/* Features section decorative element */
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 96px;
    padding: 0 24px;
}

.section-title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 功能行 — 左右交错 */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto 120px;
    padding: 0 48px;
    position: relative;
}

.feature-row::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.feature-row > * {
    position: relative;
    z-index: 1;
}

.feature-row:last-child {
    margin-bottom: 0;
}

/* 反向行：文字在左，图标在右 */
.feature-row-reverse {
    direction: rtl;
}

.feature-row-reverse .feature-visual,
.feature-row-reverse .feature-content {
    direction: ltr;
}

/* 图标视觉块 */
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-block {
    width: 180px;
    height: 180px;
    background: var(--primary-light);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 64px;
    opacity: 0.7;
}

/* 功能文字区 */
.feature-content {
    max-width: 420px;
}

.feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.feature-content h3 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

/* ========================================
   Banner Strip
   ======================================== */
.banner-strip {
    background: var(--primary);
    padding: 6px 0;
}

.banner-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.banner-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.banner-brand i {
    font-size: 18px;
}

.banner-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.banner-text {
    font-size: 17px;
    font-weight: 500;
    color: white;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-card {
        margin: 0 auto;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 32px;
        text-align: center;
    }

    .feature-row-reverse {
        direction: ltr;
    }

    .feature-visual {
        justify-content: center;
    }

    .feature-content {
        max-width: 100%;
    }

    .feature-icon-block {
        width: 140px;
        height: 140px;
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hero-nav {
        padding: var(--spacing-md);
    }

    .hero-content {
        padding: var(--spacing-lg);
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-ai-bubble {
        position: relative;
        margin-top: var(--spacing-lg);
        left: 0;
        max-width: 100%;
    }

    .section-title {
        font-size: 32px;
    }

    .feature-row {
        padding: 0 20px;
        margin-bottom: 64px;
    }

    .feature-content h3 {
        font-size: 24px;
    }

    .feature-icon-block {
        width: 100px;
        height: 100px;
        font-size: 36px;
    }

    /* Banner */
    .banner-content {
        padding: 0 20px;
        gap: 16px;
    }

    .banner-text {
        font-size: 16px;
    }
}
