:root {
    --candy-pink: #FF69B4;
    --sunny-yellow: #FFD93D;
    --sky-blue: #6BCBFF;
    --mint-green: #4ECDC4;
    --lavender: #C9B1FF;
    --coral: #FF6B6B;
    --peach: #FFEAA7;
    --cream: #FFF5E1;
    --text-dark: #5D4E6D;
    --shadow-soft: rgba(93, 78, 109, 0.15);
    --shadow-medium: rgba(93, 78, 109, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Nunito', 'Comic Neue', 'Fredoka', sans-serif;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F4FF 50%, #FFE4E1 100%);
    color: var(--text-dark);
    position: relative;
}

/* 星星和气泡容器 */
.stars-container,
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    font-size: 18px;
    animation: twinkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.3));
    border: 2px solid rgba(255,255,255,0.5);
    animation: float 5s ease-in-out infinite;
    box-shadow: 0 5px 15px var(--shadow-soft);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 主容器 - 确保占满整个视口并居中 */
.presentation-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 6px;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-3deg); }
}

/* 内容区 - 左右两栏 */
.content-wrapper {
    display: flex;
    width: 100%;
    max-width: 800px;
    gap: 6px;
}

.left-panel,
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 演讲内容块 */
.speech-block {
    background: white;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 15px var(--shadow-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cream);
    flex-shrink: 0;
}

.speech-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--candy-pink), var(--lavender), var(--sky-blue));
    border-radius: 12px 12px 0 0;
}

.block-icon {
    font-size: 20px;
    margin-bottom: 3px;
    animation: wiggle 2s ease-in-out infinite;
}

.block-title {
    font-size: 14px;
    color: var(--candy-pink);
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 5px;
}

/* 句子样式 */
.sentence-group {
    margin-bottom: 5px;
}

.sentence {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 3px;
    font-family: 'Comic Neue', cursive;
    white-space: pre-wrap;
}

.word {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.word:hover {
    background: var(--sunny-yellow);
    transform: scale(1.05);
}

.word.highlight {
    background: linear-gradient(135deg, var(--sunny-yellow), #FFD700);
    color: var(--text-dark);
    font-weight: 700;
}

.word.blue {
    color: var(--sky-blue);
    font-weight: 700;
}

.word.red {
    color: var(--coral);
    font-weight: 700;
}

.translation {
    font-size: 10px;
    color: var(--lavender);
    background: rgba(201,177,255,0.1);
    padding: 3px 8px;
    border-radius: 8px;
    margin-bottom: 4px;
    display: inline-block;
    border-left: 2px solid var(--lavender);
}

/* 颜色盒子 */
.color-boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}

.color-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--shadow-medium);
    border: 1px solid white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-box:hover {
    transform: scale(1.1);
}

.color-box.blue {
    background: linear-gradient(135deg, var(--sky-blue), #4AA8D8);
}

.color-box.red {
    background: linear-gradient(135deg, var(--coral), #E85555);
}

/* 图标组 */
.icon-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 16px;
}

.icon-group span {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 彩带效果 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 2.5s ease-out forwards;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (min-width: 500px) {
    .presentation-container {
        padding: 12px;
        gap: 8px;
    }
    
    .content-wrapper {
        gap: 8px;
    }
    
    .speech-block {
        padding: 12px 14px;
    }
    
    .block-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .sentence {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 4px;
    }
    
    .word {
        padding: 3px 8px;
        border-radius: 6px;
    }
    
    .translation {
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 5px;
    }
}

@media (min-width: 700px) {
    .presentation-container {
        padding: 16px;
        gap: 10px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .speech-block {
        padding: 14px 18px;
    }
    
    .block-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .sentence {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .word {
        padding: 4px 10px;
        border-radius: 8px;
    }
    
    .translation {
        font-size: 14px;
        padding: 5px 12px;
        margin-bottom: 6px;
    }
}