/* 全局样式 - 马卡龙色系儿童友好设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Trebuchet MS', cursive, sans-serif;
    background: linear-gradient(135deg, #FFFEF7 0%, #FFF0F5 100%);
    color: #4A4A4A;
    line-height: 1.6;
    min-height: 100vh;
}

/* 马卡龙色系变量 */
:root {
    --macaron-pink: #FFB6C1;
    --macaron-mint: #98FB98;
    --macaron-blue: #87CEEB;
    --macaron-yellow: #FFFACD;
    --macaron-purple: #E6E6FA;
    --macaron-peach: #FFDAB9;
    --cream-white: #FFFEF7;
    --soft-gray: #4A4A4A;
    --warm-white: #FFF8F0;
}

/* Header 样式 */
.header {
    background: linear-gradient(90deg, var(--macaron-pink), var(--macaron-purple));
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    border-radius: 0 0 20px 20px;
}

.logo h1 {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.nav-link {
    background: var(--warm-white);
    color: var(--soft-gray);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: var(--macaron-yellow);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    background: var(--warm-white);
    padding: 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--soft-gray);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.demo-badge {
    background: linear-gradient(45deg, var(--macaron-yellow), var(--macaron-peach));
    padding: 1rem 1.5rem;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 218, 185, 0.4);
    animation: gentle-pulse 2s ease-in-out infinite;
}

.demo-badge span {
    font-weight: bold;
    color: var(--soft-gray);
    font-size: 1.1rem;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-image {
    flex: 1;
    text-align: center;
}

.island-illustration {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Features Section */
.features {
    margin-bottom: 3rem;
}

.features-title {
    text-align: center;
    font-size: 2rem;
    color: var(--soft-gray);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--warm-white);
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 25px 25px 0 0;
}

.story-card::before {
    background: linear-gradient(90deg, var(--macaron-pink), var(--macaron-purple));
}

.riddle-card::before {
    background: linear-gradient(90deg, var(--macaron-mint), var(--macaron-blue));
}

.generator-card::before {
    background: linear-gradient(90deg, var(--macaron-yellow), var(--macaron-peach));
}

.learning-card::before {
    background: linear-gradient(90deg, var(--macaron-blue), var(--macaron-mint));
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.feature-title {
    font-size: 1.4rem;
    color: var(--soft-gray);
    margin-bottom: 1rem;
    font-weight: bold;
}

.feature-description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.feature-badge {
    background: var(--macaron-pink);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.4);
}

/* Voice Interaction Hint */
.voice-hint {
    text-align: center;
    background: linear-gradient(135deg, var(--macaron-mint), var(--macaron-blue));
    padding: 2rem;
    border-radius: 25px;
    color: white;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
}

.microphone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.voice-hint p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.voice-hint small {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--macaron-purple);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -4px 15px rgba(230, 230, 250, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}
