/* ========================================
   Anya & Kimo - Landing Page（首页）样式
   
   包含：导航栏滚动效果、Hero 区域、头像动画、
   模块卡片网格、关于区域、技术栈标签。
   不包含：navbar / footer / 粒子背景（这些在 core/ components/ 中）。
   ======================================== */

/* ========================================
   导航栏滚动效果
   ======================================== */

/* 滚动后导航栏加深背景 + 阴影 */
.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Hero 区域（首屏）
   ======================================== */

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 700px;
}

/* 头像发光环 */
.avatar-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--accent-blue));
    padding: 4px;
    animation: ring-glow 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes ring-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--glow-pink), 0 0 40px var(--glow-purple);
    }
    50% {
        box-shadow: 0 0 30px var(--glow-pink), 0 0 60px var(--glow-purple), 0 0 80px var(--glow-purple);
    }
}

/* 头像内部 */
.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    animation: bounce-subtle 2s ease-in-out infinite;
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 打字机标题 */
.typewriter {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--pink) 50%, var(--purple) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s linear infinite;
    min-height: 1.2em;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hero 副标题 */
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    min-height: 1.5em;
}

/* Hero 统计数字 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(-10px); opacity: 1; }
}

/* ========================================
   区块标题（带装饰线）
   ======================================== */

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-decoration {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    border-radius: 2px;
}

/* ========================================
   模块卡片网格
   ======================================== */

.modules {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ========================================
   关于区域
   ======================================== */

.about-section {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--pink);
}

.about-text code {
    background: rgba(255, 158, 205, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--accent-cute);
    font-size: 0.95em;
}

/* 技术栈标签 */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tech-tag {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    border-color: var(--purple);
    color: var(--text);
    background: rgba(196, 77, 255, 0.1);
}

/* ========================================
   响应式布局
   ======================================== */

@media (max-width: 768px) {
    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

    .section-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .title-decoration {
        width: 24px;
    }

    .modules {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .avatar-ring {
        width: 90px;
        height: 90px;
    }

    .avatar {
        font-size: 2.5rem;
    }

    .typewriter {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}