        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        /* ==================== Landing Page 全螢幕啟動頁 ==================== */
        .landing-page {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(180deg,
                    #5BC4F1 0%,
                    #7DD4F5 30%,
                    #A8E4F8 60%,
                    #C5EFFC 100%);
            cursor: pointer;
            overflow: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .landing-page.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .landing-page picture {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .landing-page img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

        /* GIF 動畫疊加層 - 預設隱藏 */
        .landing-gif-overlay {
            display: none;
        }

        /* 桌面版顯示 GIF 動畫在左下角 */
        @media (min-width: 769px) {
            .landing-gif-overlay {
                display: block;
                position: absolute;
                bottom: 0;
                left: 0;
                width: auto;
                height: auto;
                max-width: 250px;
                max-height: 250px;
                object-fit: contain;
                z-index: 10;
            }
        }

        /* 點擊提示動畫 */
        .landing-tap-hint {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: #5C4033;
            font-size: 14px;
            font-weight: 600;
            padding: 12px 24px;
            background: rgba(255, 255, 255, 0.9);
            border: 4px solid #5C4033;
            border-radius: 25px;
            animation: landingBounce 1.5s ease-in-out infinite;
            box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
            white-space: nowrap;
        }

        @keyframes landingBounce {

            0%,
            100% {
                transform: translateX(-50%) translateY(0);
            }

            50% {
                transform: translateX(-50%) translateY(-10px);
            }
        }

        /* ==================== End Landing Page ==================== */

        body {
            font-family: 'Press Start 2P', -apple-system,
                BlinkMacSystemFont,
                'Segoe UI',
                'PingFang TC',
                'Microsoft JhengHei',
                sans-serif;
            overflow-x: hidden;
            overflow-y: hidden;
            height: 100vh;
            position: relative;
            background: #87CEEB;
        }

        /* 獨立背景層 - 使用像素風格背景圖片 */
        .app-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('/img/pixel-background.jpg');
            background-size: contain;
            background-position: center bottom;
            background-repeat: no-repeat;
            background-color: #87CEEB;
            z-index: 0;
        }

        /* 寬螢幕使用不同的背景圖片 */
        @media (min-width: 769px) {
            .app-background {
                background-image: url('/img/pixel-background-desktop.jpg');
                background-size: 100% auto;
                background-position: center bottom;
            }
        }

        /* 像素雲朵裝飾 - 扁平像素風格 */
        .bg-orb {
            position: fixed;
            z-index: 3;
            pointer-events: none;
            opacity: 1;
        }

        /* 雲朵1 - 左上（大）- 扁平多層次 */
        .bg-orb.orb-1 {
            width: 20px;
            height: 12px;
            background: #FFFFFF;
            top: 8%;
            left: 3%;
            box-shadow:
                /* 主體層 - 寬扁形狀 */
                20px 0 0 0 #FFFFFF,
                40px 0 0 0 #FAFAFA,
                60px 0 0 0 #FAFAFA,
                80px 0 0 0 #FAFAFA,
                100px 0 0 0 #FFFFFF,
                120px 0 0 0 #FFFFFF,
                /* 頂層突起 */
                30px -12px 0 0 #FFFFFF,
                50px -12px 0 0 #FFFFFF,
                70px -12px 0 0 #FFFFFF,
                90px -12px 0 0 #FFFFFF,
                /* 底部陰影 */
                20px 12px 0 0 #E8E8E8,
                40px 12px 0 0 #E0E0E0,
                60px 12px 0 0 #D8D8D8,
                80px 12px 0 0 #E0E0E0,
                100px 12px 0 0 #E8E8E8;
            animation: floatCloud 12s ease-in-out infinite;
        }

        /* 雲朵2 - 右上（中）- 扁平 */
        .bg-orb.orb-2 {
            width: 16px;
            height: 10px;
            background: #FFFFFF;
            top: 12%;
            left: 75%;
            box-shadow:
                /* 主體層 */
                16px 0 0 0 #FFFFFF,
                32px 0 0 0 #FAFAFA,
                48px 0 0 0 #FAFAFA,
                64px 0 0 0 #FFFFFF,
                80px 0 0 0 #FFFFFF,
                /* 頂層突起 */
                24px -10px 0 0 #FFFFFF,
                40px -10px 0 0 #FFFFFF,
                56px -10px 0 0 #FFFFFF,
                /* 底部陰影 */
                16px 10px 0 0 #E8E8E8,
                32px 10px 0 0 #DEDEDE,
                48px 10px 0 0 #DEDEDE,
                64px 10px 0 0 #E8E8E8;
            animation: floatCloud 14s ease-in-out infinite;
            animation-delay: -4s;
        }

        /* 雲朵3 - 左中（大）- 扁平 */
        .bg-orb.orb-3 {
            width: 18px;
            height: 10px;
            background: #FFFFFF;
            top: 35%;
            left: 2%;
            box-shadow:
                /* 主體層 */
                18px 0 0 0 #FFFFFF,
                36px 0 0 0 #FAFAFA,
                54px 0 0 0 #F8F8F8,
                72px 0 0 0 #FAFAFA,
                90px 0 0 0 #FFFFFF,
                108px 0 0 0 #FFFFFF,
                /* 頂層突起 */
                27px -10px 0 0 #FFFFFF,
                45px -10px 0 0 #FFFFFF,
                63px -10px 0 0 #FFFFFF,
                81px -10px 0 0 #FFFFFF,
                /* 底部陰影 */
                18px 10px 0 0 #E6E6E6,
                36px 10px 0 0 #DCDCDC,
                54px 10px 0 0 #D4D4D4,
                72px 10px 0 0 #DCDCDC,
                90px 10px 0 0 #E6E6E6;
            animation: floatCloud 16s ease-in-out infinite;
            animation-delay: -7s;
        }

        /* 雲朵4 - 右中（特大）- 扁平 */
        .bg-orb.orb-4 {
            width: 20px;
            height: 12px;
            background: #FFFFFF;
            top: 45%;
            left: 70%;
            box-shadow:
                /* 主體層 - 更寬 */
                20px 0 0 0 #FFFFFF,
                40px 0 0 0 #FAFAFA,
                60px 0 0 0 #F6F6F6,
                80px 0 0 0 #F6F6F6,
                100px 0 0 0 #FAFAFA,
                120px 0 0 0 #FFFFFF,
                140px 0 0 0 #FFFFFF,
                /* 頂層突起 */
                30px -12px 0 0 #FFFFFF,
                50px -12px 0 0 #FFFFFF,
                70px -12px 0 0 #FFFFFF,
                90px -12px 0 0 #FFFFFF,
                110px -12px 0 0 #FFFFFF,
                /* 底部陰影 */
                20px 12px 0 0 #E4E4E4,
                40px 12px 0 0 #D8D8D8,
                60px 12px 0 0 #D0D0D0,
                80px 12px 0 0 #D0D0D0,
                100px 12px 0 0 #D8D8D8,
                120px 12px 0 0 #E4E4E4;
            animation: floatCloud 13s ease-in-out infinite;
            animation-delay: -2s;
        }

        /* 雲朵5 - 底部左（小）- 扁平 */
        .bg-orb.orb-5 {
            width: 14px;
            height: 8px;
            background: #FFFFFF;
            top: 60%;
            left: 8%;
            box-shadow:
                /* 主體層 */
                14px 0 0 0 #FFFFFF,
                28px 0 0 0 #FAFAFA,
                42px 0 0 0 #FFFFFF,
                56px 0 0 0 #FFFFFF,
                /* 頂層突起 */
                21px -8px 0 0 #FFFFFF,
                35px -8px 0 0 #FFFFFF,
                /* 底部陰影 */
                14px 8px 0 0 #E6E6E6,
                28px 8px 0 0 #DCDCDC,
                42px 8px 0 0 #E6E6E6;
            animation: floatCloud 15s ease-in-out infinite;
            animation-delay: -5s;
        }

        /* 雲朵6 - 底部右（中）- 扁平 */
        .bg-orb.orb-6 {
            width: 16px;
            height: 10px;
            background: #FFFFFF;
            top: 55%;
            left: 60%;
            box-shadow:
                /* 主體層 */
                16px 0 0 0 #FFFFFF,
                32px 0 0 0 #FAFAFA,
                48px 0 0 0 #F8F8F8,
                64px 0 0 0 #FAFAFA,
                80px 0 0 0 #FFFFFF,
                96px 0 0 0 #FFFFFF,
                /* 頂層突起 */
                24px -10px 0 0 #FFFFFF,
                40px -10px 0 0 #FFFFFF,
                56px -10px 0 0 #FFFFFF,
                72px -10px 0 0 #FFFFFF,
                /* 底部陰影 */
                16px 10px 0 0 #E4E4E4,
                32px 10px 0 0 #D8D8D8,
                48px 10px 0 0 #D0D0D0,
                64px 10px 0 0 #D8D8D8,
                80px 10px 0 0 #E4E4E4;
            animation: floatCloud 11s ease-in-out infinite;
            animation-delay: -3s;
        }

        /* 雲朵7 - 頂部中間（小）- 扁平 */
        .bg-orb.orb-7 {
            width: 14px;
            height: 8px;
            background: #FFFFFF;
            top: 5%;
            left: 45%;
            box-shadow:
                /* 主體層 */
                14px 0 0 0 #FFFFFF,
                28px 0 0 0 #FAFAFA,
                42px 0 0 0 #FAFAFA,
                56px 0 0 0 #FFFFFF,
                70px 0 0 0 #FFFFFF,
                /* 頂層突起 */
                21px -8px 0 0 #FFFFFF,
                35px -8px 0 0 #FFFFFF,
                49px -8px 0 0 #FFFFFF,
                /* 底部陰影 */
                14px 8px 0 0 #E6E6E6,
                28px 8px 0 0 #DCDCDC,
                42px 8px 0 0 #DCDCDC,
                56px 8px 0 0 #E6E6E6;
            animation: floatCloud 17s ease-in-out infinite;
            animation-delay: -8s;
        }

        @keyframes floatCloud {

            0%,
            100% {
                transform: translateX(0);
            }

            50% {
                transform: translateX(20px);
            }
        }

        /* Logo 固定定位 - 像素鵝圖片 */
        .logo {
            position: fixed;
            top: 15px;
            left: 15px;
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .logo img {
            width: 85px;
            height: auto;
            image-rendering: pixelated;
            image-rendering: crisp-edges;
        }

        .logo-text {
            font-size: 28px;
            font-weight: 900;
            color: #5C4033;
            text-shadow:
                2px 2px 0 #F5E6D3,
                -2px -2px 0 #F5E6D3,
                2px -2px 0 #F5E6D3,
                -2px 2px 0 #F5E6D3,
                3px 3px 0 rgba(0, 0, 0, 0.15);
            letter-spacing: 1px;
        }

        /* 進度指示器 - 藏寶圖樣式 */
        .progress-indicator {
            position: fixed;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .progress-dot {
            width: 16px;
            height: 16px;
            border-radius: 0;
            background: #F5E6D3;
            border: 4px solid #5C4033;
            transition: all 0.2s steps(2);
            cursor: pointer;
            box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
        }

        .progress-dot:hover {
            background: #FF8C42;
            border-color: #5C4033;
        }

        .progress-dot.active {
            background: #FF8C42;
            border-color: #5C4033;
            height: 32px;
            border-radius: 0;
            box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
        }

        /* 主容器 */
        .container {
            height: 100vh;
            overflow-y: scroll;
            scroll-snap-type: y mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            position: relative;
            z-index: 10;
        }

        /* 每個頁面 */
        .page {
            height: 100vh;
            width: 100vw;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        /* 歡迎頁面 - 藏寶圖風格 */
        .welcome-page {
            background: transparent;
            flex-direction: column;
            text-align: center;
            color: #5C4033;
            z-index: 1;
        }

        .welcome-icon {
            width: 120px;
            height: auto;
            margin-bottom: 30px;
            animation: characterJump 0.8s ease-in-out infinite;
            filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.2));
            image-rendering: pixelated;
            image-rendering: crisp-edges;
        }

        @keyframes characterJump {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-20px);
            }
        }

        .welcome-title {
            font-size: 38px;
            font-weight: 900;
            margin-bottom: 15px;
            color: #5C4033;
            text-shadow:
                5px 5px 0 #F5E6D3,
                -4px -4px 0 #F5E6D3,
                4px -4px 0 #F5E6D3,
                -4px 4px 0 #F5E6D3,
                0 5px 0 #F5E6D3,
                5px 0 0 #F5E6D3,
                0 -5px 0 #F5E6D3,
                -5px 0 0 #F5E6D3,
                8px 8px 0 rgba(92, 64, 51, 0.3);
            letter-spacing: 4px;
        }

        .welcome-subtitle {
            font-size: 16px;
            margin-bottom: 40px;
            color: #8B4513;
            text-shadow: 2px 2px 0 #F5E6D3;
            animation: fadeInUp 1.2s ease;
        }

        .start-hint {
            font-size: 14px;
            color: #5C4033;
            animation: blink 0.8s steps(2) infinite;
            padding: 16px 28px;
            border: 6px solid #5C4033;
            background: #F5E6D3;
            box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        .scroll-indicator {
            position: absolute;
            bottom: 50px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounceDown 1s ease-in-out infinite;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .scroll-arrow {
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 28px solid #FFFFFF;
            filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.4));
        }

        /* 問題頁面 */
        .question-page {
            background: transparent;
            z-index: 1;
        }

        .question-page:nth-child(even) {
            background: transparent;
        }

        .question-page:nth-child(3n) {
            background: transparent;
        }

        /* 問題卡片 - 像素鋸齒藏寶圖風格 */
        .question-card {
            background: linear-gradient(135deg, #F5E6D3 0%, #E8D4BE 50%, #DCC8AC 100%);
            padding: 45px 35px;
            max-width: 500px;
            width: 90%;
            position: relative;
            animation: cardPop 0.3s steps(4);
        }

        /* 像素鋸齒外框 - 使用 clip-path 實現 */
        .question-card::before {
            content: '';
            position: absolute;
            top: -12px;
            left: -12px;
            right: -12px;
            bottom: -12px;
            background: #5C4033;
            z-index: -2;
            clip-path: polygon(0 8px, 8px 8px, 8px 0,
                    16px 0, 16px 8px, 24px 8px, 24px 0,
                    calc(100% - 24px) 0, calc(100% - 24px) 8px, calc(100% - 16px) 8px, calc(100% - 16px) 0,
                    calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
                    100% 16px, calc(100% - 8px) 16px, calc(100% - 8px) 24px, 100% 24px,
                    100% calc(100% - 24px), calc(100% - 8px) calc(100% - 24px), calc(100% - 8px) calc(100% - 16px), 100% calc(100% - 16px),
                    100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
                    calc(100% - 16px) 100%, calc(100% - 16px) calc(100% - 8px), calc(100% - 24px) calc(100% - 8px), calc(100% - 24px) 100%,
                    24px 100%, 24px calc(100% - 8px), 16px calc(100% - 8px), 16px 100%,
                    8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px),
                    0 calc(100% - 16px), 8px calc(100% - 16px), 8px calc(100% - 24px), 0 calc(100% - 24px),
                    0 24px, 8px 24px, 8px 16px, 0 16px);
        }

        /* 內層邊框 */
        .question-card::after {
            content: '';
            position: absolute;
            top: 8px;
            left: 8px;
            right: 8px;
            bottom: 8px;
            border: 6px solid #8B7355;
            pointer-events: none;
        }

        @keyframes cardPop {
            from {
                opacity: 0;
                transform: scale(0.8);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .question-badge {
            position: absolute;
            top: -24px;
            right: 20px;
            background: #FF8C42;
            color: #fff;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 22px;
            border: 6px solid #5C4033;
            box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

        .question-icon {
            width: 110px;
            height: 110px;
            text-align: center;
            margin: 0 auto 25px;
            animation: iconBounce 1s ease-in-out infinite;
            filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.2));
        }

        .question-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            image-rendering: pixelated;
            image-rendering: crisp-edges;
        }

        @keyframes iconBounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .question-text {
            font-size: 20px;
            font-weight: 600;
            color: #5C4033;
            text-align: center;
            line-height: 1.8;
            margin-bottom: 25px;
        }

        .tap-hint {
            text-align: center;
            font-size: 14px;
            color: #8B4513;
            padding: 14px 24px;
            background: #F5E6D3;
            border: 5px solid #5C4033;
            box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
        }

        /* 答案容器 - 像素遊戲風格更粗 */
        .answer-container {
            position: fixed;
            bottom: -100%;
            left: 0;
            width: 100%;
            background: #fff;
            border-top: 10px solid #1E5AA8;
            box-shadow: 0 -10px 0 rgba(30, 90, 168, 0.3);
            transition: bottom 0.3s steps(6);
            max-height: 70vh;
            display: flex;
            flex-direction: column;
            z-index: 900;
        }

        .answer-container.show {
            bottom: 0;
        }

        .answer-handle {
            width: 80px;
            height: 8px;
            background: #1E5AA8;
            margin: 15px auto 20px;
        }

        .answer-scroll-wrapper {
            flex: 1;
            overflow-y: auto;
            padding: 0 20px 30px;
        }

        .answer-content {
            font-size: 15px;
            line-height: 1.8;
            color: #333;
        }

        .answer-content h2 {
            font-size: 20px;
            font-weight: 700;
            margin: 25px 0 15px 0;
            color: #1E5AA8;
            border-bottom: 6px solid #1E5AA8;
            padding-bottom: 10px;
        }

        .answer-content h3 {
            font-size: 17px;
            font-weight: 600;
            margin: 20px 0 12px 0;
            color: #2E7AD1;
        }

        .answer-content h4 {
            font-size: 15px;
            font-weight: 600;
            margin: 15px 0 10px 0;
            color: #4A90D9;
        }

        .answer-content p {
            margin-bottom: 14px;
            line-height: 1.8;
            color: #444;
        }

        .answer-content ul,
        .answer-content ol {
            margin-left: 25px;
            margin-bottom: 15px;
            padding-left: 5px;
        }

        .answer-content li {
            margin-bottom: 10px;
            line-height: 1.7;
            color: #444;
        }

        .answer-content strong {
            font-weight: 600;
            color: #1E5AA8;
        }

        .answer-content em {
            font-style: italic;
            color: #2E7AD1;
        }

        .answer-content code {
            background: #E8F4FD;
            padding: 4px 10px;
            font-family: monospace;
            font-size: 13px;
            color: #1E5AA8;
            border: 4px solid #1E5AA8;
        }

        .answer-content pre {
            background: #f5f5f5;
            padding: 18px;
            overflow-x: auto;
            margin-bottom: 18px;
            border: 5px solid #1E5AA8;
        }

        .answer-content blockquote {
            border-left: 8px solid #1E5AA8;
            padding: 15px 15px 15px 20px;
            margin: 18px 0;
            color: #555;
            background: #E8F4FD;
        }

        .answer-content hr {
            border: none;
            border-top: 6px solid #1E5AA8;
            margin: 25px 0;
        }

        .answer-content a {
            color: #1E5AA8;
            text-decoration: none;
            border-bottom: 2px solid #1E5AA8;
            transition: all 0.2s ease;
        }

        .answer-content a:hover {
            color: #FFD700;
            background: #1E5AA8;
            padding: 2px 4px;
        }

        .close-answer {
            flex-shrink: 0;
            text-align: center;
            padding: 14px;
            background: #fff;
            cursor: pointer;
            font-size: 14px;
            color: #1E5AA8;
            border-bottom: 5px solid #1E5AA8;
            transition: all 0.1s steps(2);
            z-index: 10;
        }

        .close-answer:hover {
            background: #E8F4FD;
        }

        /* 動畫 */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-20px);
            }
        }

        @keyframes bounceDown {

            0%,
            100% {
                transform: translate(-50%, 0);
            }

            50% {
                transform: translate(-50%, 10px);
            }
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.6;
            }
        }

        /* 響應式設計 */
        @media (max-width: 768px) {
            .welcome-title {
                font-size: 32px;
            }

            .welcome-subtitle {
                font-size: 16px;
            }

            .welcome-icon {
                width: 100px;
            }

            .question-card {
                padding: 35px 25px;
            }

            .question-text {
                font-size: 20px;
            }

            .question-icon {
                width: 90px;
                height: 90px;
            }

            .logo {
                top: 10px;
                left: 10px;
            }

            .logo img {
                width: 60px;
            }

            .logo-text {
                font-size: 18px;
            }

            /* 手機版雲朵 - 縮小並調整位置 */
            .bg-orb {
                transform: scale(0.7);
            }

            .bg-orb.orb-1 {
                top: 8%;
                left: -5%;
            }

            .bg-orb.orb-2 {
                top: 15%;
                left: 55%;
            }

            .bg-orb.orb-3 {
                top: 35%;
                left: -8%;
            }

            .bg-orb.orb-4 {
                top: 45%;
                left: 60%;
            }

            .bg-orb.orb-5 {
                top: 60%;
                left: -5%;
            }

            .bg-orb.orb-6 {
                top: 55%;
                left: 50%;
            }

            .bg-orb.orb-7 {
                top: 3%;
                left: 25%;
            }

            /* 手機版：隱藏卡片內的角色圖示 */
            .question-card .question-icon,
            .input-card .question-icon,
            .full-version-card .question-icon {
                display: none;
            }

            /* 手機版：調整卡片內距（因為角色被移走了） */
            .question-card {
                padding-top: 25px;
            }
        }

        /* ==================== 手機版卡片上方角色 ==================== */
        /* 預設隱藏（桌面版不顯示） */
        .card-character {
            display: none;
        }

        @media (max-width: 768px) {

            /* 手機版：顯示卡片上方的角色 */
            .card-character {
                display: block;
                position: absolute;
                top: -85px;
                /* 站在卡片上方 */
                left: 15px;
                /* 靠近數字標號的左側 */
                width: 80px;
                height: 80px;
                z-index: 15;
                /* 比數字標號高一點 */
                pointer-events: none;
            }

            .card-character img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                image-rendering: pixelated;
                image-rendering: crisp-edges;
                filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.2));
                animation: cardCharacterBounce 1s ease-in-out infinite;
            }

            @keyframes cardCharacterBounce {

                0%,
                100% {
                    transform: translateY(0);
                }

                50% {
                    transform: translateY(-6px);
                }
            }

            /* 確保問題卡片有足夠空間放角色 */
            .question-card,
            .input-card,
            .full-version-card {
                position: relative;
                margin-top: 60px;
                /* 給角色留空間 */
            }
        }

        /* 載入動畫 - 像素遊戲風格 */
        .loading {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2000;
        }

        .loading-spinner {
            width: 56px;
            height: 56px;
            border: 8px solid #E8F4FD;
            border-top: 8px solid #1E5AA8;
            border-right: 8px solid #FFD700;
            animation: spin 0.5s steps(8) infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* 按鈕樣式 - 橘色藏寶圖風格 */
        .action-button {
            background: linear-gradient(180deg, #FF9F58 0%, #FF8C42 50%, #E87A30 100%);
            color: #fff;
            border: 6px solid #5C4033;
            border-radius: 30px;
            padding: 18px 36px;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
            transition: all 0.05s steps(2);
            margin-top: 20px;
            text-transform: uppercase;
            text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
        }

        .action-button:hover {
            transform: translate(-3px, -3px);
            box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.35);
        }

        .action-button:active {
            transform: translate(3px, 3px);
            box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
        }

        /* 自訂問題輸入卡片 - 像素鋸齒藏寶圖風格 */
        .input-card {
            background: linear-gradient(135deg, #F5E6D3 0%, #E8D4BE 50%, #DCC8AC 100%);
            padding: 45px 35px;
            max-width: 500px;
            width: 90%;
            position: relative;
            animation: cardPop 0.3s steps(4);
        }

        /* 像素鋸齒外框 */
        .input-card::before {
            content: '';
            position: absolute;
            top: -12px;
            left: -12px;
            right: -12px;
            bottom: -12px;
            background: #5C4033;
            z-index: -2;
            clip-path: polygon(0 8px, 8px 8px, 8px 0,
                    16px 0, 16px 8px, 24px 8px, 24px 0,
                    calc(100% - 24px) 0, calc(100% - 24px) 8px, calc(100% - 16px) 8px, calc(100% - 16px) 0,
                    calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
                    100% 16px, calc(100% - 8px) 16px, calc(100% - 8px) 24px, 100% 24px,
                    100% calc(100% - 24px), calc(100% - 8px) calc(100% - 24px), calc(100% - 8px) calc(100% - 16px), 100% calc(100% - 16px),
                    100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
                    calc(100% - 16px) 100%, calc(100% - 16px) calc(100% - 8px), calc(100% - 24px) calc(100% - 8px), calc(100% - 24px) 100%,
                    24px 100%, 24px calc(100% - 8px), 16px calc(100% - 8px), 16px 100%,
                    8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px),
                    0 calc(100% - 16px), 8px calc(100% - 16px), 8px calc(100% - 24px), 0 calc(100% - 24px),
                    0 24px, 8px 24px, 8px 16px, 0 16px);
        }

        /* 內層邊框 */
        .input-card::after {
            content: '';
            position: absolute;
            top: 8px;
            left: 8px;
            right: 8px;
            bottom: 8px;
            border: 6px solid #8B7355;
            pointer-events: none;
        }

        .input-card .question-icon {
            width: 90px;
            height: 90px;
            margin: 0 auto 25px;
            filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.25));
        }

        .input-card .question-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            image-rendering: pixelated;
            image-rendering: crisp-edges;
        }

        .input-card h3 {
            font-size: 22px;
            font-weight: 800;
            color: #5C4033;
            text-align: center;
            margin-bottom: 25px;
        }

        .input-card textarea {
            width: 100%;
            min-height: 130px;
            padding: 18px;
            border: 6px solid #5C4033;
            background: #FFF8F0;
            font-size: 15px;
            font-family: inherit;
            color: #333;
            resize: vertical;
            transition: all 0.1s steps(2);
            margin-bottom: 25px;
        }

        .input-card textarea::placeholder {
            color: #A08060;
        }

        .input-card textarea:focus {
            outline: none;
            border-color: #FF8C42;
            background: #fff;
            box-shadow: inset 0 0 0 3px #FF8C42;
        }

        .input-card button:not(.voice-button) {
            width: 100%;
            background: linear-gradient(180deg, #FF9F58 0%, #FF8C42 50%, #E87A30 100%);
            color: #fff;
            border: 6px solid #5C4033;
            border-radius: 30px;
            padding: 18px;
            font-size: 18px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.05s steps(2);
            box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
            text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
        }

        .input-card button:not(.voice-button):hover {
            transform: translate(-3px, -3px);
            box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.3);
        }

        .input-card button:not(.voice-button):active {
            transform: translate(3px, 3px);
            box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
        }

        .input-hint {
            text-align: center;
            font-size: 13px;
            color: #8B4513;
            margin-top: 15px;
        }

        /* 語音輸入按鈕容器 */
        .voice-input-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            margin: 25px 0;
        }

        /* 語音輸入按鈕 - 紅色圓點風格 */
        .voice-button {
            width: 56px;
            height: 56px;
            background: #FF3B3B;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0;
            color: transparent;
            box-shadow: 0 4px 12px rgba(255, 59, 59, 0.4);
            transition: all 0.2s ease;
            position: relative;
        }

        .voice-button::after {
            content: '';
            display: none;
        }

        .voice-button:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(255, 59, 59, 0.5);
        }

        .voice-button:active {
            transform: scale(0.95);
            box-shadow: 0 2px 8px rgba(255, 59, 59, 0.4);
        }

        /* 錄音中狀態 */
        .voice-button.recording {
            background: #FF1A1A;
            animation: recordPulse 1s ease-in-out infinite;
        }

        .voice-button.recording::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid rgba(255, 59, 59, 0.6);
            animation: ripple 1.2s ease-out infinite;
        }

        @keyframes recordPulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.15);
            }
        }

        @keyframes ripple {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            100% {
                transform: scale(2);
                opacity: 0;
            }
        }

        /* 錄音狀態文字 */
        .recording-status {
            font-size: 14px;
            font-weight: 600;
            color: #FF4444;
            display: none;
            align-items: center;
            gap: 10px;
        }

        .recording-status.active {
            display: flex;
        }

        .recording-time {
            font-family: monospace;
            font-size: 16px;
            color: #1E5AA8;
            background: #E8F4FD;
            padding: 4px 8px;
            border: 2px solid #1E5AA8;
        }

        .recording-dot {
            width: 12px;
            height: 12px;
            background: #FF4444;
            animation: blink 0.5s step-end infinite;
        }

        .voice-hint {
            text-align: center;
            font-size: 12px;
            color: #2E7AD1;
        }

        /* 處理中狀態 */
        .voice-button.processing {
            background: #888;
            cursor: not-allowed;
        }

        .voice-button.processing::after {
            content: '';
            display: block;
            width: 20px;
            height: 20px;
            border: 3px solid #fff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }


        /* 完整版引導卡片 - 像素鋸齒藏寶圖風格 */
        .full-version-card {
            background: linear-gradient(135deg, #F5E6D3 0%, #E8D4BE 50%, #DCC8AC 100%);
            padding: 55px 35px;
            max-width: 500px;
            width: 90%;
            position: relative;
            animation: cardPop 0.3s steps(4);
            text-align: center;
        }

        /* 像素鋸齒外框 */
        .full-version-card::before {
            content: '';
            position: absolute;
            top: -12px;
            left: -12px;
            right: -12px;
            bottom: -12px;
            background: #5C4033;
            z-index: -2;
            clip-path: polygon(0 8px, 8px 8px, 8px 0,
                    16px 0, 16px 8px, 24px 8px, 24px 0,
                    calc(100% - 24px) 0, calc(100% - 24px) 8px, calc(100% - 16px) 8px, calc(100% - 16px) 0,
                    calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
                    100% 16px, calc(100% - 8px) 16px, calc(100% - 8px) 24px, 100% 24px,
                    100% calc(100% - 24px), calc(100% - 8px) calc(100% - 24px), calc(100% - 8px) calc(100% - 16px), 100% calc(100% - 16px),
                    100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
                    calc(100% - 16px) 100%, calc(100% - 16px) calc(100% - 8px), calc(100% - 24px) calc(100% - 8px), calc(100% - 24px) 100%,
                    24px 100%, 24px calc(100% - 8px), 16px calc(100% - 8px), 16px 100%,
                    8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px),
                    0 calc(100% - 16px), 8px calc(100% - 16px), 8px calc(100% - 24px), 0 calc(100% - 24px),
                    0 24px, 8px 24px, 8px 16px, 0 16px);
        }

        /* 內層邊框 */
        .full-version-card::after {
            content: '';
            position: absolute;
            top: 8px;
            left: 8px;
            right: 8px;
            bottom: 8px;
            border: 6px solid #8B7355;
            pointer-events: none;
        }

        .full-version-card .question-icon {
            width: 110px;
            height: 110px;
            margin: 0 auto 25px;
            filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.25));
            animation: characterJump 0.6s steps(4) infinite;
        }

        .full-version-card .question-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            image-rendering: pixelated;
            image-rendering: crisp-edges;
        }

        .full-version-card h3 {
            font-size: 26px;
            font-weight: 900;
            margin-bottom: 18px;
            color: #5C4033;
            text-shadow: 4px 4px 0 #F5E6D3;
        }

        .full-version-card p {
            font-size: 15px;
            color: #5C4033;
            line-height: 1.8;
            margin-bottom: 35px;
        }

        .full-version-card .features {
            text-align: left;
            margin-bottom: 35px;
        }

        .full-version-card .feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            font-size: 14px;
            color: #5C4033;
            padding: 14px 18px;
            background: #FFF8F0;
            border-left: 8px solid #FF8C42;
        }

        .full-version-card .feature-item span {
            margin-right: 14px;
            font-size: 22px;
        }

        .full-version-card button {
            width: 100%;
            background: linear-gradient(180deg, #FF9F58 0%, #FF8C42 50%, #E87A30 100%);
            color: #fff;
            border: 6px solid #5C4033;
            border-radius: 30px;
            padding: 20px;
            font-size: 18px;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.05s steps(2);
            box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
            text-transform: uppercase;
            letter-spacing: 3px;
            text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
        }

        .full-version-card button:hover {
            transform: translate(-3px, -3px);
            box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.35);
            background: linear-gradient(180deg, #FFAD6B 0%, #FF9955 50%, #F08840 100%);
        }

        .full-version-card button:active {
            transform: translate(3px, 3px);
            box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
        }
