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

body {
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* iOS 动态视口高度 */
    overflow: hidden;
    overflow-x: hidden;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #1a0a10;
    /* iOS 安全区域 */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* 视频容器 */
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease;
}

/* 场景元素 */
#scene-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        #a8d8ea 0%,
        #d4ecff 20%,
        #fff5f5 50%,
        #ffe4e1 80%,
        #ffd4d4 100%
    );
    opacity: 0;
    transition: opacity 2s ease;
    /* iOS 安全区域 */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

#scene-elements.show {
    opacity: 1;
}

/* 太阳 */
#sun {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #fff9c4 0%, #ffeb3b 30%, #ffc107 60%, #ff9800 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 60px #ffeb3b,
        0 0 120px #ffc107,
        0 0 200px rgba(255, 193, 7, 0.5);
    opacity: 0;
    transform: scale(0.5);
}

#sun.rise {
    opacity: 1;
    transform: scale(1);
    animation: sunGlow 4s ease-in-out infinite;
}

@keyframes sunGlow {
    0%, 100% { box-shadow: 0 0 60px #ffeb3b, 0 0 120px #ffc107, 0 0 200px rgba(255, 193, 7, 0.5); }
    50% { box-shadow: 0 0 80px #ffeb3b, 0 0 150px #ffc107, 0 0 250px rgba(255, 193, 7, 0.6); }
}

#sun.setting {
    animation: sunSet 4s ease-in forwards;
}

@keyframes sunSet {
    0% {
        top: 8%;
        right: 12%;
        transform: scale(1);
        background: radial-gradient(circle, #fff9c4 0%, #ffeb3b 30%, #ffc107 60%, #ff9800 100%);
        box-shadow: 0 0 60px #ffeb3b, 0 0 120px #ffc107;
    }
    50% {
        top: 40%;
        right: 45%;
        transform: scale(1.3);
        background: radial-gradient(circle, #ff9800 0%, #ff6347 30%, #ff4500 60%, #dc143c 100%);
        box-shadow: 0 0 100px #ff6347, 0 0 180px #ff4500;
    }
    100% {
        top: 50%;
        right: 50%;
        transform: translateX(50%) scale(0);
        opacity: 0;
        background: radial-gradient(circle, #dc143c 0%, #8b0000 100%);
        box-shadow: 0 0 50px #dc143c;
    }
}

/* 樱花树 */
#sakura-tree {
    position: absolute;
    bottom: 5%;
    left: 5%;
    width: 300px;
    height: 450px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.5s ease;
}

#scene-elements.show #sakura-tree {
    opacity: 1;
    transform: translateY(0);
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 200px;
    background: linear-gradient(90deg, #3e2723 0%, #5d4037 30%, #6d4c41 50%, #5d4037 70%, #3e2723 100%);
    border-radius: 5px 5px 10px 10px;
}

.tree-branch {
    position: absolute;
    background: linear-gradient(90deg, #4e342e, #5d4037, #4e342e);
    border-radius: 5px;
    transform-origin: left center;
}

.tree-branch-1 { bottom: 180px; left: 50%; width: 80px; height: 12px; transform: rotate(-25deg); }
.tree-branch-2 { bottom: 200px; left: 48%; width: 100px; height: 10px; transform: rotate(20deg); }
.tree-branch-3 { bottom: 220px; left: 52%; width: 60px; height: 8px; transform: rotate(-35deg); }
.tree-branch-4 { bottom: 160px; left: 45%; width: 70px; height: 9px; transform: rotate(30deg); }

.tree-flower-cluster {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 30%, #fff0f5 0%, #ffc0cb 25%, #ffb6c1 50%, #fa8072 75%, transparent 100%);
}

.cluster-1 { bottom: 180px; left: 55%; width: 120px; height: 100px; animation: flowerPulse 3s ease-in-out infinite; }
.cluster-2 { bottom: 200px; left: 20%; width: 100px; height: 80px; animation: flowerPulse 3.5s ease-in-out infinite 0.5s; }
.cluster-3 { bottom: 230px; left: 50%; width: 140px; height: 110px; animation: flowerPulse 2.8s ease-in-out infinite 0.3s; }
.cluster-4 { bottom: 170px; left: 30%; width: 90px; height: 75px; animation: flowerPulse 3.2s ease-in-out infinite 0.8s; }
.cluster-5 { bottom: 150px; left: 60%; width: 80px; height: 65px; animation: flowerPulse 2.5s ease-in-out infinite 1s; }
.cluster-6 { bottom: 260px; left: 45%; width: 110px; height: 90px; animation: flowerPulse 3.8s ease-in-out infinite 0.2s; }

@keyframes flowerPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* 人物 */
#character {
    position: absolute;
    bottom: 3%;
    left: 18%;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1.2s ease 0.5s;
}

#scene-elements.show #character {
    opacity: 1;
    transform: translateX(0);
}

.character-hair {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 45px;
    background: linear-gradient(135deg, #2c1810 0%, #3d2314 50%, #1a0f0a 100%);
    border-radius: 50% 50% 40% 40%;
}

.character-hair::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -5px;
    width: 60px;
    height: 25px;
    background: linear-gradient(to bottom, #2c1810, #3d2314);
    border-radius: 0 0 50% 50%;
}

.character-head {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 50px;
    background: linear-gradient(135deg, #ffefd5 0%, #ffe4c4 50%, #ffdab9 100%);
    border-radius: 45% 45% 50% 50%;
    z-index: 1;
}

.character-eyes {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 8px;
    display: flex;
    justify-content: space-between;
}

.character-eye {
    width: 8px;
    height: 8px;
    background: #2c1810;
    border-radius: 50%;
    position: relative;
}

.character-eye::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
}

.character-blush {
    position: absolute;
    top: 28px;
    width: 8px;
    height: 5px;
    background: rgba(255, 150, 150, 0.5);
    border-radius: 50%;
}

.character-blush.left { left: 5px; }
.character-blush.right { right: 5px; }

.character-mouth {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 4px;
    border-bottom: 2px solid #e57373;
    border-radius: 0 0 50% 50%;
}

.character-body {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 75px;
    background: linear-gradient(135deg, #ffb6c1 0%, #ff91a4 50%, #ff69b4 100%);
    border-radius: 30px 30px 15px 15px;
}

.character-body::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.character-arm {
    position: absolute;
    width: 12px;
    height: 40px;
    background: linear-gradient(135deg, #ffefd5 0%, #ffe4c4 100%);
    border-radius: 6px;
    bottom: 45px;
}

.character-arm.left { left: 2px; transform: rotate(15deg); }
.character-arm.right { right: 2px; transform: rotate(-15deg); }

.character-legs {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 25px;
    display: flex;
    justify-content: space-between;
}

.character-leg {
    width: 18px;
    height: 25px;
    background: linear-gradient(to bottom, #ffefd5, #ffe4c4);
    border-radius: 0 0 8px 8px;
}

/* 气泡 */
.speech-bubble {
    position: absolute;
    bottom: 170px;
    left: 70px;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 18px;
    color: #444;
    max-width: 280px;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.3);
    z-index: 10;
    border: 2px solid rgba(255, 182, 193, 0.5);
}

.speech-bubble.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 35px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 18px solid rgba(255, 255, 255, 0.98);
}

/* 樱花画布 */
#sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* 烟花画布 */
#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

/* 月亮 */
#moon {
    position: fixed;
    top: 5%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #fffde7 0%, #fff9c4 40%, #f0e68c 100%);
    border-radius: 50%;
    box-shadow:
        0 0 40px rgba(255, 253, 231, 0.8),
        0 0 80px rgba(255, 249, 196, 0.5),
        inset -15px -10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0) translateY(50px);
    transition: all 1s ease-out;
    z-index: 5;
}

#moon.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: moonGlow 3s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 253, 231, 0.8), 0 0 80px rgba(255, 249, 196, 0.5); }
    50% { box-shadow: 0 0 60px rgba(255, 253, 231, 0.9), 0 0 100px rgba(255, 249, 196, 0.6); }
}

/* 星星 */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: 4;
}

#stars.show {
    opacity: 1;
}

#stars::before, #stars::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 350px 50px, #fff, transparent),
        radial-gradient(2px 2px at 420px 180px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 500px 90px, #fff, transparent),
        radial-gradient(2px 2px at 580px 130px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 650px 60px, #fff, transparent),
        radial-gradient(2px 2px at 720px 200px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 80px 200px, #fff, transparent),
        radial-gradient(2px 2px at 150px 280px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 250px 320px, #fff, transparent),
        radial-gradient(2px 2px at 380px 250px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 480px 350px, #fff, transparent),
        radial-gradient(2px 2px at 600px 300px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 700px 380px, #fff, transparent),
        radial-gradient(2px 2px at 100px 400px, rgba(255, 255, 255, 0.8), transparent);
    background-repeat: repeat;
    background-size: 800px 450px;
    animation: twinkle 4s ease-in-out infinite;
}

#stars::after {
    background-size: 600px 350px;
    animation-delay: -2s;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 太阳转月亮动画 */
@keyframes sunToMoon {
    0% {
        top: 8%;
        right: 12%;
        transform: scale(1) rotate(0deg);
        background: radial-gradient(circle, #fff9c4 0%, #ffeb3b 30%, #ffc107 60%, #ff9800 100%);
        box-shadow: 0 0 60px #ffeb3b, 0 0 120px #ffc107;
        border-radius: 50%;
        opacity: 1;
    }
    50% {
        top: 40%;
        right: 45%;
        transform: translateX(50%) scale(1.5) rotate(180deg);
        background: radial-gradient(circle, #ffa726 0%, #ff7043 50%, #ff5722 100%);
        box-shadow: 0 0 80px #ff9800;
        border-radius: 50%;
        opacity: 1;
    }
    100% {
        top: 5%;
        right: 15%;
        transform: scale(0) rotate(360deg);
        background: radial-gradient(circle, #fffde7 0%, #fff9c4 40%, #f0e68c 100%);
        box-shadow: 0 0 40px rgba(255, 253, 231, 0.8), 0 0 80px rgba(255, 249, 196, 0.5);
        border-radius: 50%;
        opacity: 0;
        visibility: hidden;
    }
}

/* 问题容器 */
#question-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 650px;
    /* 确保不被遮挡 */
    max-height: 80vh;
    overflow-y: auto;
}

#intro-text {
    margin-bottom: 50px;
}

#intro-text p {
    font-size: 28px;
    color: #fff;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8);
    margin: 20px 0;
    opacity: 0;
    transition: all 0.8s ease;
    transform: translateY(20px);
}

#intro-text p.show {
    opacity: 1;
    transform: translateY(0);
}

/* 问题卡片 */
.question {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 35px 30px;
    margin: 25px auto;
    width: 100%;
    max-width: 550px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.question.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}

.question-text {
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 选项容器 */
.options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 18px 40px;
    font-size: 22px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 140px;
}

/* 是/可以 按钮 - 粉红色 */
.option-btn.positive {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(255, 105, 180, 0.5);
}

.option-btn.positive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s;
}

.option-btn.positive:hover::before {
    left: 100%;
}

.option-btn.positive:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.6);
}

/* 不是/不可以 按钮 - 蓝色 */
.option-btn.negative {
    background: linear-gradient(135deg, #87ceeb 0%, #4169e1 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(65, 105, 225, 0.5);
}

.option-btn.negative::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s;
}

.option-btn.negative:hover::before {
    left: 100%;
}

.option-btn.negative:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(65, 105, 225, 0.6);
}

.option-btn:active {
    transform: scale(0.95) !important;
}

.option-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

/* 回答气泡 */
.answer-bubble {
    font-size: 22px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin: 25px auto;
    padding: 18px 28px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.35) 0%, rgba(255, 105, 180, 0.25) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: scale(0.85) translateY(15px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-height: 30px;
    max-width: 500px;
}

.answer-bubble.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 眼泪 */
.tear {
    position: fixed;
    width: 10px;
    height: 14px;
    background: linear-gradient(135deg, #e0ffff, #87ceeb);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.85;
    animation: tearFall 2.5s ease-in forwards;
    z-index: 15;
}

@keyframes tearFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
    50% { transform: translateY(50vh) rotate(180deg); opacity: 0.7; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* 结束语 */
#ending {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

#ending.show {
    opacity: 1;
    transform: translateY(0);
}

#ending p {
    font-size: 28px;
    color: #fff;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8);
}

/* 黑屏 */
#black-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 3s ease;
}

#black-overlay.show {
    opacity: 1;
}

/* 响应式 - 平板和手机 */
@media (max-width: 768px), (max-height: 600px) {
    /* 强制全屏 */
    html, body {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* 调整问题容器位置 */
    #question-container {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: none;
        max-height: 85vh;
        padding-bottom: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 缩小开场文字 */
    #intro-text {
        margin-bottom: 20px;
    }

    #intro-text p {
        font-size: 18px !important;
        margin: 12px 0 !important;
        white-space: normal !important;
    }

    /* 问题卡片优化 */
    .question {
        padding: 20px 15px !important;
        margin: 15px auto !important;
        border-radius: 20px !important;
    }

    .question-text {
        font-size: 16px !important;
        margin-bottom: 20px !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    /* 选项按钮优化 */
    .option-btn {
        padding: 12px 25px !important;
        font-size: 16px !important;
        min-width: 100px !important;
        border-radius: 40px !important;
    }

    .options {
        gap: 10px !important;
    }

    /* 回答气泡优化 */
    .answer-bubble {
        font-size: 16px !important;
        padding: 12px 18px !important;
        margin: 15px auto !important;
        white-space: normal !important;
    }

    /* 太阳缩小 */
    #sun {
        width: 50px !important;
        height: 50px !important;
        top: 3% !important;
        right: 5% !important;
    }

    /* 樱花树缩小并调整位置 */
    #sakura-tree {
        left: -5% !important;
        width: 140px !important;
        height: 200px !important;
        bottom: 2% !important;
    }

    .tree-trunk { width: 18px !important; height: 90px !important; }
    .tree-branch { height: 6px !important; }
    .tree-branch-1 { width: 50px !important; bottom: 120px !important; }
    .tree-branch-2 { width: 60px !important; bottom: 130px !important; }
    .tree-branch-3 { width: 40px !important; bottom: 140px !important; }
    .tree-branch-4 { width: 45px !important; bottom: 105px !important; }
    .cluster-1 { width: 55px !important; height: 45px !important; bottom: 120px !important; }
    .cluster-2 { width: 45px !important; height: 35px !important; bottom: 130px !important; }
    .cluster-3 { width: 60px !important; height: 50px !important; bottom: 145px !important; }
    .cluster-4 { width: 40px !important; height: 35px !important; bottom: 110px !important; }
    .cluster-5 { width: 35px !important; height: 30px !important; bottom: 95px !important; }
    .cluster-6 { width: 50px !important; height: 40px !important; bottom: 160px !important; }

    /* 人物缩小 */
    #character {
        left: 18% !important;
        transform: scale(0.5) !important;
        bottom: 0 !important;
    }

    #scene-elements.show #character {
        transform: scale(0.5) !important;
    }

    /* 气泡缩小 */
    .speech-bubble {
        left: 30px !important;
        bottom: 90px !important;
        padding: 10px 15px !important;
        font-size: 12px !important;
        max-width: 150px !important;
        border-radius: 20px !important;
    }

    .speech-bubble::after {
        border-top-width: 12px !important;
        border-left-width: 10px !important;
        border-right-width: 10px !important;
        bottom: -10px !important;
    }

    /* 结束语 */
    #ending {
        margin-top: 20px !important;
    }

    #ending p {
        font-size: 18px !important;
    }
}

/* 极小屏幕 */
@media (max-width: 400px) {
    .option-btn {
        padding: 10px 18px !important;
        font-size: 14px !important;
        min-width: 80px !important;
    }

    .question-text {
        font-size: 14px !important;
    }

    #intro-text p {
        font-size: 16px !important;
    }
}

/* ==================== 抖音开屏动画 ==================== */
#douyin-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.douyin-logo {
    position: relative;
    width: 200px;
    height: 200px;
    transition: transform 0.3s ease;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 200, 100, 0.6));
}

/* 踹动画 - logo被踢飞 */
.douyin-logo.kick-1 {
    animation: kickAway1 0.4s ease-out forwards;
}

.douyin-logo.kick-2 {
    animation: kickAway2 0.4s ease-out forwards;
}

.douyin-logo.kick-3 {
    animation: kickAway3 0.5s ease-out forwards;
}

@keyframes kickAway1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(-50px, 30px) rotate(-15deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes kickAway2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(60px, -40px) rotate(20deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes kickAway3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-80px, 50px) rotate(-25deg); }
    40% { transform: translate(100px, -60px) rotate(30deg); }
    60% { transform: translate(-120px, 70px) rotate(-35deg); }
    80% { transform: translate(140px, -80px) rotate(40deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* 撕碎效果 */
.douyin-logo.shatter {
    animation: shatter 0.8s ease-out forwards;
}

.logo-fragment {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('大气logo6.jpg') no-repeat;
    background-size: 200px 200px;
    opacity: 0;
    pointer-events: none;
}

.logo-fragment.active {
    opacity: 1;
    animation: fragmentFly 1s ease-out forwards;
}

.fragment-1 {
    clip-path: polygon(0 0, 50% 0, 30% 50%, 0 40%);
    background-position: 0 0;
}

.fragment-2 {
    clip-path: polygon(50% 0, 100% 0, 100% 45%, 60% 50%);
    background-position: -100px 0;
}

.fragment-3 {
    clip-path: polygon(0 40%, 30% 50%, 25% 100%, 0 80%);
    background-position: 0 -50px;
}

.fragment-4 {
    clip-path: polygon(60% 50%, 100% 45%, 100% 80%, 70% 100%);
    background-position: -100px -50px;
}

.fragment-5 {
    clip-path: polygon(30% 50%, 50% 55%, 45% 80%, 25% 75%);
    background-position: -50px -30px;
}

.fragment-6 {
    clip-path: polygon(50% 55%, 60% 50%, 70% 100%, 45% 80%);
    background-position: -30px -70px;
}

.fragment-7 {
    clip-path: polygon(0 80%, 25% 100%, 40% 100%);
    background-position: -80px -120px;
}

.fragment-8 {
    clip-path: polygon(70% 100%, 100% 80%, 100% 100%);
    background-position: -120px -120px;
}

@keyframes fragmentFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--fly-x, 100px), var(--fly-y, -100px)) rotate(var(--fly-r, 720deg)) scale(0.3);
    }
}

.fragment-1.active { --fly-x: -300px; --fly-y: -200px; --fly-r: -1080deg; }
.fragment-2.active { --fly-x: 350px; --fly-y: -250px; --fly-r: 1260deg; }
.fragment-3.active { --fly-x: -400px; --fly-y: 100px; --fly-r: -900deg; }
.fragment-4.active { --fly-x: 450px; --fly-y: 150px; --fly-r: 1100deg; }
.fragment-5.active { --fly-x: -200px; --fly-y: -300px; --fly-r: 720deg; }
.fragment-6.active { --fly-x: 300px; --fly-y: -400px; --fly-r: -1440deg; }
.fragment-7.active { --fly-x: -350px; --fly-y: 300px; --fly-r: 1080deg; }
.fragment-8.active { --fly-x: 250px; --fly-y: 350px; --fly-r: -900deg; }

/* 脚印效果 */
.footprints {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.footprints.show {
    opacity: 1;
}

.footprint {
    position: absolute;
    width: 30px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
}

.footprint.active {
    animation: footprintAppear 0.5s ease-out forwards;
}

.fp-1 { transform: translate(-80px, 0) rotate(-20deg); }
.fp-2 { transform: translate(50px, 20px) rotate(15deg); }
.fp-3 { transform: translate(-20px, 40px) rotate(-5deg); }

@keyframes footprintAppear {
    0% { opacity: 0; transform: scale(0) rotate(-20deg); }
    50% { opacity: 0.8; transform: scale(1.2) rotate(0deg); }
    100% { opacity: 0.3; transform: scale(1) rotate(-20deg); }
}

/* 踹字效果 */
.kick-text {
    position: absolute;
    font-size: 48px;
    font-weight: bold;
    color: #FE2C55;
    text-shadow: 0 0 20px rgba(254, 44, 85, 0.8), 0 0 40px rgba(254, 44, 85, 0.5);
    opacity: 0;
    pointer-events: none;
}

.kick-text.show {
    animation: kickTextAppear 0.6s ease-out forwards;
}

@keyframes kickTextAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }
    30% {
        opacity: 1;
        transform: scale(1.3) translateY(-20px);
    }
    60% {
        opacity: 1;
        transform: scale(1) translateY(-40px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-80px);
    }
}

/* 大脚丫子 */
.big-foot {
    position: absolute;
    width: 280px;
    height: 350px;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.big-foot.show {
    animation: footKick 0.5s ease-out forwards;
}

.big-foot.kick-right {
    right: 10%;
    top: 30%;
}

.big-foot.kick-left {
    left: 10%;
    top: 30%;
}

.foot-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(255, 150, 100, 0.8));
}

@keyframes footKick {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-30deg) translateY(100px);
    }
    30% {
        opacity: 1;
        transform: scale(1.4) rotate(-15deg) translateY(-30px);
    }
    50% {
        opacity: 1;
        transform: scale(1.6) rotate(-5deg) translateY(-60px);
    }
    70% {
        opacity: 1;
        transform: scale(1.4) rotate(5deg) translateY(-100px);
    }
    85% {
        opacity: 0.8;
        transform: scale(1.2) rotate(15deg) translateY(-150px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(25deg) translateY(-200px);
    }
}

/* 脚丫子出现特效 - 冲击波 */
.big-foot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255, 200, 150, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.big-foot.show::before {
    animation: footImpact 0.5s ease-out forwards;
}

@keyframes footImpact {
    0% {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* 开屏消失 */
#douyin-splash.fade-out {
    animation: splashFadeOut 1s ease-out forwards;
}

@keyframes splashFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

