/* 仅由 index.html 加载。.app-card / .header / .app-arrow 等 class 选择器未做命名空间隔离。 */
.header {
    padding: 88px 24px 40px;
    text-align: center;
}
.hero-emoji {
    display: block;
    font-size: 72px;
    line-height: 1;
    margin-bottom: 20px;
    animation: hero-float 3s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.header h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.header p {
    font-size: 18px;
    color: var(--text-sub);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}
.hero-scroll-hint {
    display: inline-block;
    margin-top: 36px;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.hero-scroll-hint:hover {
    color: var(--green);
    transform: translateY(2px);
}

.app-grid {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.app-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.app-card:hover::before {
    opacity: 1;
}

.app-card.belief::before {
    background: linear-gradient(90deg, var(--green), #4ECDC4);
}
.app-card.belief .app-icon {
    background: var(--green-light);
    color: var(--green);
}
.app-card.belief .tag {
    background: var(--green-light);
    color: var(--green);
}

.app-card.anki::before {
    background: linear-gradient(90deg, var(--blue), #5B9CF6);
}
.app-card.anki .app-icon {
    background: var(--blue-light);
    color: var(--blue);
}
.app-card.anki .tag {
    background: var(--blue-light);
    color: var(--blue);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}
.app-meta h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.app-meta .app-tagline {
    font-size: 14px;
    color: var(--text-sub);
}

.app-desc {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 20px;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-arrow {
    position: absolute;
    top: 36px;
    right: 32px;
    font-size: 20px;
    color: #CCC;
    transition: all 0.3s ease;
}
.app-card:hover .app-arrow {
    color: var(--text);
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .header { padding: 56px 20px 24px; }
    .hero-emoji { font-size: 56px; margin-bottom: 16px; }
    .header h1 { font-size: 30px; letter-spacing: -0.5px; }
    .header p { font-size: 16px; }
    .hero-scroll-hint { margin-top: 24px; font-size: 13px; }
    .app-grid { padding: 0 16px; margin: 24px auto 40px; gap: 20px; }
    .app-card { padding: 28px 24px; }
    .app-icon { width: 52px; height: 52px; font-size: 26px; }
    .app-meta h2 { font-size: 18px; }
}
