 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', 'PingFang SC', 'Comic Neue', 'Segoe UI Emoji', cursive, sans-serif;
        }

        body {
            background: linear-gradient(145deg, #FFF9F5 0%, #FFF0E8 30%, #FFE8F0 60%, #FFFAF0 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 16px;
            overflow-x: hidden;
            position: relative;
        }

        /* 漂浮棉花糖粒子 */
        #particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }
        .particle {
            position: absolute;
            width: 18px;
            height: 18px;
            background: radial-gradient(circle, #FFE0C0, #FFD6B0);
            border-radius: 60% 40% 50% 50%;
            animation: floatParticle 20s infinite ease-in-out;
            opacity: 0.5;
            filter: blur(2px);
        }
        @keyframes floatParticle {
            0%,100%{ transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.4; }
            30%{ transform: translateY(-90px) translateX(40px) rotate(12deg); opacity: 0.7; }
            70%{ transform: translateY(-40px) translateX(-30px) rotate(-8deg); opacity: 0.5; }
        }

        /* 主容器 - 绘本画纸质感 */
        .game-container {
            width: 100%;
            max-width: 460px;
            min-height: 780px;
            background: #FFFEF8;
            border-radius: 68px;
            box-shadow: 
                0 30px 40px -20px rgba(0, 0, 0, 0.15),
                0 0 0 12px #FFFFFF,
                0 0 0 16px #FFDAB9,
                inset 0 2px 8px rgba(255,255,240,0.8);
            overflow: hidden;
            position: relative;
            z-index: 2;
            transition: all 0.3s ease;
        }

        /* 手绘纹理 */
        .game-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                repeating-linear-gradient(45deg, rgba(255,218,185,0.08) 0px, rgba(255,218,185,0.08) 2px, transparent 2px, transparent 8px);
            pointer-events: none;
            border-radius: inherit;
        }

        /* 屏幕区域 */
        .screen {
            width: 100%;
            height: 100%;
            position: relative;
            overflow-y: auto;
            overflow-x: hidden;
            z-index: 3;
            background: rgba(255, 252, 245, 0.6);
            backdrop-filter: blur(2px);
            padding: 20px 16px 40px;
        }
        .screen::-webkit-scrollbar {
            width: 6px;
        }
        .screen::-webkit-scrollbar-track {
            background: #FFF0E6;
            border-radius: 10px;
        }
        .screen::-webkit-scrollbar-thumb {
            background: #FFCDB0;
            border-radius: 10px;
        }

        /* ========== 千千问角色三视图系统 ========== */
        .character-3d-container {
            position: relative;
            width: 220px;
            height: 220px;
            margin: 0 auto 20px;
            perspective: 1000px;
            transform-style: preserve-3d;
        }

        .character-image {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            transition: transform 0.5s ease, opacity 0.4s ease;
            object-fit: contain;
            cursor: pointer;
            filter: drop-shadow(0 12px 24px rgba(255, 182, 193, 0.4));
        }

        /* 主形象（正面） */
        .character-image.front {
            transform: translateZ(0px) rotateY(0deg);
            z-index: 10;
        }

        /* 左侧视角 */
        .character-image.left {
            transform: translateZ(-50px) rotateY(-15deg);
            opacity: 0;
            z-index: 5;
        }

        /* 右侧视角 */
        .character-image.right {
            transform: translateZ(-50px) rotateY(15deg);
            opacity: 0;
            z-index: 5;
        }

        /* 悬停/交互效果 */
        .character-3d-container:hover .character-image.front {
            transform: translateZ(10px) scale(1.05);
        }

        .character-3d-container:hover .character-image.left {
            opacity: 0.3;
            transform: translateZ(-30px) rotateY(-8deg);
        }

        .character-3d-container:hover .character-image.right {
            opacity: 0.3;
            transform: translateZ(-30px) rotateY(8deg);
        }

        /* 旋转动画 */
        @keyframes gentleRotate {
            0%, 100% { transform: translateZ(0) rotateY(0deg); }
            25% { transform: translateZ(5px) rotateY(3deg); }
            75% { transform: translateZ(5px) rotateY(-3deg); }
        }

        .character-image.front.animate {
            animation: gentleRotate 4s ease-in-out infinite;
        }

        /* 交互反馈光环 */
        .character-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 209, 220, 0.4) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
            z-index: 1;
        }

        .character-3d-container:hover .character-glow {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.2);
        }

        /* 点击波纹效果 */
        .click-ripple {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 182, 193, 0.6), transparent);
            animation: rippleExpand 0.6s ease-out forwards;
            pointer-events: none;
            z-index: 20;
        }

        @keyframes rippleExpand {
            0% {
                width: 100px;
                height: 100px;
                opacity: 0.8;
            }
            100% {
                width: 300px;
                height: 300px;
                opacity: 0;
            }
        }

        /* 游戏中的角色形象 */
        .game-character-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 15px 0 25px;
            position: relative;
        }

        .game-character-wrapper .character-3d-container {
            width: 180px;
            height: 180px;
        }

        /* 角色名字标签 */
        .character-name-label {
            text-align: center;
            margin-top: 15px;
            position: relative;
        }

        .character-name-label .name {
            font-size: 28px;
            font-weight: 900;
            color: #E8A87C;
            text-shadow: 3px 3px 0 white, 4px 4px 0 #FFE0C0;
            background: rgba(255, 250, 240, 0.9);
            padding: 10px 30px;
            border-radius: 50px;
            display: inline-block;
            backdrop-filter: blur(6px);
            border: 3px solid #FFDAB9;
            box-shadow: 0 8px 16px rgba(255, 182, 193, 0.3);
        }

        .character-name-label .subtitle {
            font-size: 14px;
            color: #D99E6E;
            margin-top: 8px;
            font-weight: 600;
        }

        /* ========== 小小画家板块优化 ========== */
        .painter-section {
            text-align: center;
            padding: 20px;
        }

        .painter-intro {
            background: linear-gradient(135deg, #FFFBF8, #FFF5F0);
            border-radius: 52px;
            padding: 24px;
            margin-bottom: 28px;
            border: 4px solid #FFDAB9;
            box-shadow: 0 10px 20px rgba(255, 180, 140, 0.15);
        }

        .painter-intro .bubble-text {
            background: linear-gradient(145deg, #FFF8F0, #FFF4E8);
            border-radius: 40px;
            padding: 18px 28px;
            border: 3px solid #FFE0C0;
            color: #C27E5A;
            font-size: 18px;
            font-weight: 700;
            display: inline-block;
            max-width: 90%;
            margin-bottom: 12px;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
            text-shadow: 1px 1px 0 #FFE0C0;
        }

        /* 画作选择 */
        .artwork-selector {
            margin: 25px 0;
        }

        .artwork-selector-label {
            color: #E8A87C;
            font-size: 20px;
            font-weight: 900;
            margin-bottom: 18px;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
            text-shadow: 1px 1px 0 #FFE0C0;
        }

        .artwork-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .artwork-card {
            background: linear-gradient(145deg, #FFFBF8, #FFF5F0);
            border: 3px solid #FFE0C0;
            border-radius: 45px;
            padding: 22px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 6px 15px rgba(255, 180, 140, 0.1);
        }

        .artwork-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 183, 178, 0.15), rgba(255, 218, 185, 0.15));
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: inherit;
        }

        .artwork-card:hover::before {
            opacity: 1;
        }

        .artwork-card:hover {
            transform: translateY(-6px) scale(1.02);
            box-shadow: 0 15px 30px rgba(255, 180, 140, 0.25);
            border-color: #FFB7B2;
        }

        .artwork-card.selected {
            border-color: #FFB7B2;
            background: linear-gradient(135deg, #FFE8F0, #FFD4E8);
            transform: scale(1.06);
            box-shadow: 0 12px 25px rgba(255, 150, 130, 0.35);
        }

        .artwork-card.selected::after {
            content: '✓';
            position: absolute;
            top: 10px;
            right: 10px;
            width: 32px;
            height: 32px;
            background: #FFB7B2;
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
        }

        .artwork-card .artwork-icon {
            font-size: 60px;
            margin-bottom: 12px;
            display: block;
            filter: drop-shadow(2px 3px 4px rgba(255, 180, 140, 0.15));
        }

        .artwork-card .artwork-name {
            color: #C27E5A;
            font-size: 17px;
            font-weight: 800;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
        }

        /* 画布预览 */
        .canvas-preview {
            background: white;
            border: 4px solid #FFE0C0;
            border-radius: 48px;
            padding: 24px;
            margin: 25px 0;
            box-shadow: 0 8px 16px rgba(0,0,0,0.08);
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .canvas-preview .art-display {
            width: 100%;
            height: 280px;
            border-radius: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transition: all 0.5s ease;
        }

        .canvas-preview .art-display .main-element {
            font-size: 100px;
            position: absolute;
            animation: elementFloat 3s ease-in-out infinite;
        }

        .canvas-preview .art-display .secondary-element {
            font-size: 70px;
            position: absolute;
            animation: elementFloat 4s ease-in-out infinite;
            animation-delay: 0.5s;
        }

        @keyframes elementFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .canvas-preview .stars {
            position: absolute;
            top: 10px;
            right: 10px;
        }

        .canvas-preview .stars .star {
            position: absolute;
            font-size: 20px;
            animation: twinkle 2s infinite;
        }

        /* AI生成图片样式 */
        .canvas-preview .ai-generated-image {
            width: 100%;
            height: 100%;
            border-radius: 36px;
            object-fit: cover;
            animation: imageFadeIn 0.8s ease;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        @keyframes imageFadeIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .canvas-preview .loading-spinner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .canvas-preview .loading-spinner .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid #FFE0C0;
            border-top: 4px solid #FFB7B2;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .canvas-preview .loading-spinner .loading-text {
            color: #E8A87C;
            font-size: 16px;
            font-weight: 600;
        }

        /* 哄睡环节 - 云朵按钮 */
        .sleep-cloud-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
            margin: 25px 0;
        }

        .cloud-button {
            background: linear-gradient(135deg, #FFFFFF, #F5F5F5);
            border: 3px solid #FFDAB9;
            border-radius: 50px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .cloud-button::before {
            content: '';
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 40px;
            opacity: 0.8;
        }

        .cloud-button.whale::before { content: '☁️'; }
        .cloud-button.story::before { content: '📖'; }
        .cloud-button.riddle::before { content: '🤔'; }
        .cloud-button.songs::before { content: '🎶'; }

        .cloud-button:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 12px 24px rgba(255, 182, 193, 0.3);
            border-color: #FFB7B2;
        }

        .cloud-button:active {
            transform: translateY(0) scale(0.98);
        }

        .cloud-button .cloud-label {
            color: #B67B5E;
            font-size: 15px;
            font-weight: 700;
            margin-top: 15px;
            display: block;
        }

        .cloud-button .cloud-desc {
            color: #D99E6E;
            font-size: 12px;
            margin-top: 5px;
            display: block;
        }

        /* 睡前内容展示 */
        .sleep-content-display {
            background: linear-gradient(145deg, #FFE8F0, #FFF0E8);
            border: 3px solid #FFE0C0;
            border-radius: 48px;
            padding: 24px;
            margin: 20px 0;
            box-shadow: 0 8px 16px rgba(255, 182, 193, 0.2);
            animation: contentFadeIn 0.5s ease;
        }

        @keyframes contentFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .sleep-content-display .content-title {
            color: #E8A87C;
            font-size: 18px;
            font-weight: 900;
            margin-bottom: 15px;
            text-align: center;
        }

        .sleep-content-display .content-text {
            color: #8B6B4A;
            font-size: 16px;
            line-height: 1.8;
            text-align: center;
            white-space: pre-line;
        }

        /* 操作按钮 */
        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 25px 0;
            flex-wrap: wrap;
        }

        /* ========== 绘本风格按键系统 ========== */
        /* 基础按钮 - 圆润可爱，间隙舒适 */
        .cute-button {
            background: linear-gradient(135deg, #FFE8F0, #FFD4E8);
            color: #C27E5A;
            border: 3px solid #FFB7B2;
            padding: 18px 36px;
            border-radius: 70px;
            font-size: 22px;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 10px 0 #FF9F9A, 0 14px 25px rgba(255, 150, 130, 0.2);
            transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            letter-spacing: 2px;
            margin: 14px 12px;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
            text-shadow: 1px 1px 0 #FFE0C0;
        }
        .cute-button:active {
            transform: translateY(6px);
            box-shadow: 0 4px 0 #FF9F9A, 0 8px 18px rgba(255, 150, 130, 0.3);
        }
        /* 主要按钮 - 珊瑚粉 */
        .cute-button.primary {
            background: linear-gradient(135deg, #FFB7B2, #FF9F9A);
            color: white;
            text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
            box-shadow: 0 10px 0 #C26E6A, 0 14px 25px rgba(255, 120, 100, 0.25);
            border: 3px solid #FF9F9A;
        }
        /* 次要按钮 - 薄荷蓝 */
        .cute-button.secondary {
            background: linear-gradient(135deg, #B8E4F0, #9CD4E8);
            color: #3D6B7A;
            box-shadow: 0 10px 0 #6F9EAF, 0 14px 25px rgba(100, 170, 200, 0.2);
            border: 3px solid #8FBDD8;
            text-shadow: 1px 1px 0 #FFFFFF;
        }
        /* 辅助按钮 - 奶油黄 */
        .cute-button.tertiary {
            background: linear-gradient(135deg, #FFF0B5, #FFE699);
            color: #A67B3C;
            box-shadow: 0 10px 0 #D4A84B, 0 14px 25px rgba(200, 150, 50, 0.2);
            border: 3px solid #E6C880;
            text-shadow: 1px 1px 0 #FFFFFF;
        }
        /* 特殊大按钮（开始） */
        .start-btn {
            background: linear-gradient(135deg, #FFB7B2, #FF9F9A);
            color: white;
            border: 4px solid #FF9F9A;
            padding: 28px 64px;
            border-radius: 90px;
            font-size: 36px;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 16px 0 #C26E6A, 0 20px 35px rgba(255, 120, 100, 0.3);
            transition: all 0.3s ease;
            margin: 30px auto;
            display: inline-block;
            letter-spacing: 8px;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
            text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
        }
        .start-btn:active {
            transform: translateY(10px);
            box-shadow: 0 6px 0 #C26E6A, 0 12px 24px rgba(255, 120, 100, 0.4);
        }

        /* 情绪标签 - 有趣的不规则圆角 */
        .emotion-tag {
            background: linear-gradient(135deg, #FFFBF8, #FFF5F0);
            padding: 16px 28px;
            border-radius: 52px;
            color: #C27E5A;
            border: 3px solid #FFDAB9;
            font-size: 18px;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            min-width: 130px;
            backdrop-filter: blur(6px);
            box-shadow: 0 6px 15px rgba(255, 180, 140, 0.1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 10px 12px;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
            text-shadow: 1px 1px 0 #FFE0C0;
        }
        .emotion-tag.selected {
            background: linear-gradient(135deg, #FFE8F0, #FFD4E8);
            color: #C27E5A;
            border-color: #FFB7B2;
            transform: scale(1.05) translateY(-4px);
            box-shadow: 0 10px 20px rgba(255, 150, 130, 0.3);
        }

        /* 任务卡片 - 绘本元素 */
        .task-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            padding: 20px 26px;
            background: linear-gradient(145deg, #FFFBF8, #FFF5F0);
            border: 3px solid #FFDAB9;
            border-radius: 52px;
            margin-bottom: 22px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 0 #FFE8DC, 0 10px 20px rgba(255, 180, 140, 0.15);
        }
        .task-item:active {
            transform: translateY(6px);
            box-shadow: 0 3px 0 #FFE8DC;
        }
        .task-item.completed {
            opacity: 0.75;
            background: linear-gradient(145deg, #F5F0E8, #EFE8DC);
            filter: grayscale(0.15);
            transform: scale(0.98);
        }
        .task-emoji {
            width: 75px;
            height: 75px;
            background: linear-gradient(145deg, #FFF5F0, #FFE8DC);
            border-radius: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 46px;
            border: 3px solid #FFDAB9;
            box-shadow: 0 4px 10px rgba(255, 180, 140, 0.15);
        }

        /* 共鸣光球 - 软绵绵 */
        .resonance-ball {
            width: 200px;
            height: 200px;
            background: radial-gradient(circle at 35% 35%, #FFDAB9, #FFB7B2);
            border-radius: 50%;
            margin: 20px auto;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 38px;
            font-weight: bold;
            border: 8px solid white;
            transition: all 0.3s ease;
            box-shadow: 0 18px 30px rgba(255, 150, 130, 0.3);
        }
        .resonance-ball:active {
            transform: scale(0.97);
        }

        /* 内心独白气泡 - 手绘感 */
        .inner-monologue {
            background: #FFFFFFE6;
            border: 4px solid #FFDAB9;
            border-radius: 56px 56px 56px 32px;
            padding: 24px 28px;
            margin: 20px 0;
            color: #B67B5E;
            font-size: 18px;
            line-height: 1.8;
            box-shadow: 0 12px 20px rgba(0,0,0,0.05);
            position: relative;
        }
        .inner-monologue::before {
            content: '';
            position: absolute;
            bottom: -18px;
            left: 35px;
            width: 28px;
            height: 28px;
            background: #FFFFFF;
            border-right: 4px solid #FFDAB9;
            border-bottom: 4px solid #FFDAB9;
            transform: rotate(45deg);
            border-radius: 0 0 12px 0;
        }

        /* 状态栏 */
        .status-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 24px;
            background: linear-gradient(135deg, rgba(255, 250, 240, 0.95), rgba(255, 245, 235, 0.95));
            backdrop-filter: blur(12px);
            border-radius: 48px;
            margin-bottom: 20px;
            border: 3px solid #FFDAB9;
            box-shadow: 0 8px 20px rgba(255, 180, 140, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.8);
        }
        .time-icon {
            background: linear-gradient(135deg, #FFF5E8, #FFE4D4);
            padding: 12px 24px;
            border-radius: 40px;
            border: 2px solid #FFDAB9;
            font-size: 14px;
            font-weight: 600;
            color: #C5764E;
            box-shadow: 0 4px 12px rgba(255, 180, 140, 0.2);
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }
        .time-icon:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(255, 180, 140, 0.3);
        }
        #timeDisplay {
            background: linear-gradient(135deg, #FFE8F0, #FFF0E8);
            padding: 10px 18px;
            border-radius: 40px;
            font-size: 14px;
            font-weight: 700;
            color: #D99468;
            box-shadow: 0 4px 12px rgba(255, 182, 193, 0.2);
            border: 2px solid #FFE0C0;
            transition: all 0.3s ease;
        }
        #timeDisplay:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(255, 182, 193, 0.3);
        }

        /* 章节标题 */
        .chapter-title {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin: 25px 0 20px;
            color: #D99E6E;
            font-size: 24px;
            font-weight: 800;
        }
        .chapter-title .line {
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, transparent, #FFDAB9, #FFB7B2, transparent);
            border-radius: 4px;
        }

        /* 品牌标识 */
        .brand-tag {
            background: #FFFFFFCC;
            backdrop-filter: blur(8px);
            padding: 8px 20px;
            border-radius: 40px;
            font-size: 13px;
            color: #C48A62;
            border: 2px solid #FFDAB9;
            display: inline-block;
            margin-top: 12px;
        }

        /* 其他通用卡片 */
        .card, .slider-container, .emotion-tip, .solution-modal, .user-avatar {
            background: linear-gradient(145deg, #FFFBF8, #FFF5F0);
            border: 4px solid #FFDAB9;
            border-radius: 56px;
            padding: 28px 24px;
            margin-bottom: 28px;
            box-shadow: 0 10px 20px rgba(255, 180, 140, 0.12);
        }
        .solution-content {
            white-space: pre-line;
            text-align: center;
            font-size: 18px;
            line-height: 2.0;
            color: #C27E5A;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
        }
        .tip-title {
            color: #E8A87C;
            font-size: 22px;
            font-weight: 900;
            margin-bottom: 18px;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
            text-shadow: 1px 1px 0 #FFE0C0;
        }
        input[type=range] {
            width: 100%;
            height: 10px;
            background: #FFE0C0;
            border-radius: 20px;
        }
        input[type=range]::-webkit-slider-thumb {
            width: 32px;
            height: 32px;
            background: #FFB7B2;
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            cursor: pointer;
        }
        .slogan-main {
            background: linear-gradient(135deg, #FFE8F0, #FFD4E8);
            color: #C27E5A;
            padding: 22px 28px;
            border-radius: 60px;
            font-size: 24px;
            font-weight: 900;
            margin: 20px auto;
            border: 4px solid #FFB7B2;
            box-shadow: 0 12px 20px rgba(255, 150, 130, 0.15);
            max-width: 90%;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
            text-shadow: 1px 1px 0 #FFE0C0;
        }
        .slogan-ending {
            background: linear-gradient(145deg, #FFE8F0, #FFD4E8);
            border-radius: 64px;
            padding: 32px 24px;
            margin: 20px auto;
            border: 4px solid #FFB7B2;
            box-shadow: 0 12px 25px rgba(255, 150, 130, 0.2);
        }
        .ending-quote {
            background: linear-gradient(145deg, #FFFBF8, #FFF5F0);
            border-radius: 56px;
            padding: 40px 45px;
            font-size: 20px;
            line-height: 2.2;
            border: 4px solid #FFDAB9;
            box-shadow: 0 15px 30px rgba(255, 180, 140, 0.2), inset 0 2px 6px rgba(255, 255, 255, 0.9);
            max-width: 92%;
            margin: 25px auto;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
        }
        .ending-quote p {
            margin: 0;
            text-align: center;
        }
        .restart-btn {
            background: linear-gradient(135deg, #FFE8F0, #FFD4E8);
            border: 3px solid #FFB7B2;
            padding: 18px 45px;
            border-radius: 65px;
            font-size: 22px;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 8px 0 #FF9F9A;
            margin: 20px auto;
            display: inline-block;
            color: #C27E5A;
            text-shadow: 1px 1px 0 #FFE0C0;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
        }
        .restart-btn:active {
            transform: translateY(6px);
            box-shadow: 0 3px 0 #FF9F9A;
        }
        .music-btn {
            width: 48px;
            height: 48px;
            background: white;
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            border: 3px solid #FFDAB9;
            cursor: pointer;
            box-shadow: 0 5px 10px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }
        .music-btn.playing {
            background: #FFE0C0;
            animation: musicPulse 2s ease-in-out infinite;
        }
        @keyframes musicPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        .music-btn:hover {
            transform: scale(1.1);
        }
        .hidden { display: none !important; }
        @keyframes gentleWobble {
            0%,100%{ transform: rotate(0deg) translateY(0); }
            50%{ transform: rotate(2deg) translateY(-6px); }
        }
        @keyframes noteFloat {
            0% { transform: translateY(0) rotate(0deg); opacity: 1; }
            100% { transform: translateY(-120px) rotate(15deg); opacity: 0; }
        }
        .note {
            position: fixed;
            font-size: 28px;
            pointer-events: none;
            z-index: 1000;
            animation: noteFloat 2.5s ease-out forwards;
        }
        .close-solution {
            position: absolute;
            top: 12px;
            right: 18px;
            width: 32px;
            height: 32px;
            background: #FFCDB0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            font-weight: bold;
        }
        .user-emotion {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
            margin: 20px 0;
        }
        .user-avatar {
            display: inline-flex;
            align-items: center;
            gap: 18px;
            padding: 12px 28px;
        }
        .avatar {
            width: 56px;
            height: 56px;
            background: #FFE8DC;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
        }
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255,209,180,0.5), transparent);
            transform: scale(0);
            animation: rippleEffect 0.6s linear;
            pointer-events: none;
        }
        @keyframes rippleEffect {
            to { transform: scale(4); opacity: 0; }
        }
        .star {
            position: absolute;
            animation: twinkle 2s infinite;
        }
        @keyframes twinkle {
            0%,100%{ opacity: 0.6; } 50%{ opacity: 1; }
        }

        /* ========== 睡前故事板块样式 ========== */
        .character-sleep-section {
            text-align: center;
            margin-bottom: 20px;
        }

        @keyframes gentleBreath {
            0%, 100% { transform: scale(1) translateY(0px); }
            50% { transform: scale(1.02) translateY(-5px); }
        }

        .cloud-buttons-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin: 30px 0 25px;
        }

        .cloud-btn {
            background: linear-gradient(145deg, #FFFBF8, #FFF5F0);
            backdrop-filter: blur(6px);
            width: 145px;
            padding: 22px 14px 20px;
            border-radius: 68px;
            text-align: center;
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
            border: 4px solid #FFE0B5;
            box-shadow: 0 15px 25px -8px rgba(255, 180, 140, 0.15), inset 0 2px 6px rgba(255, 255, 255, 0.8);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .cloud-btn:hover {
            transform: translateY(-12px) scale(1.06);
            border-color: #FFB7B2;
            box-shadow: 0 20px 30px -6px rgba(255, 150, 130, 0.4);
            background: linear-gradient(145deg, #FFFBF8, #FFF5F0);
        }

        .cloud-btn:active {
            transform: translateY(-3px) scale(1.02);
        }

        .cloud-emoji {
            font-size: 58px;
            display: block;
            margin-bottom: 12px;
            filter: drop-shadow(2px 6px 10px rgba(0,0,0,0.1));
            transition: transform 0.2s;
        }

        .cloud-btn:hover .cloud-emoji {
            transform: scale(1.08) rotate(2deg);
        }

        .cloud-label {
            font-size: 20px;
            font-weight: 900;
            color: #C27E5A;
            letter-spacing: 2px;
            background: linear-gradient(145deg, #FFF8F0, #FFF2E8);
            display: inline-block;
            padding: 6px 18px;
            border-radius: 42px;
            margin-top: 8px;
            line-height: 1.4;
            text-align: center;
            white-space: nowrap;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
            text-shadow: 1px 1px 0 #FFE0C0;
        }

        .cloud-desc {
            font-size: 13px;
            color: #D99468;
            margin-top: 10px;
            font-weight: 700;
            line-height: 1.5;
            text-align: center;
            font-family: 'LXGW WenKai Mono TC', 'Noto Sans SC', cursive, sans-serif;
        }

        .story-cloud-display {
            background: linear-gradient(145deg, #FFFBF8, #FFF5F0);
            border-radius: 68px;
            padding: 32px 28px;
            margin: 18px 0 28px;
            border: 4px solid #FFE2BD;
            box-shadow: 0 12px 30px rgba(160, 100, 60, 0.15), inset 0 2px 8px rgba(255,255,240,0.9);
            animation: fadeSlideUp 0.5s ease;
            position: relative;
        }

        @keyframes fadeSlideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 小夜灯滑块样式 */
        input[type=range] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 6px;
            background: #FFE0C0;
            border-radius: 20px;
            outline: none;
        }

        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 32px;
            height: 32px;
            background: #FFB7B2;
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            cursor: pointer;
        }

        /* ========== 苏醒黑屏动画层 ========== */
        .awakening-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000000;
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            pointer-events: none;
        }

        .awakening-glow {
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, rgba(255,200,150,0) 0%, rgba(0,0,0,1) 80%);
            animation: breathLight 2.4s ease-out forwards;
        }

        @keyframes breathLight {
            0% {
                background: radial-gradient(circle at center, rgba(255,200,150,0) 0%, #000000 100%);
            }
            30% {
                background: radial-gradient(circle at center, rgba(255,180,120,0.2) 20%, #000000 90%);
            }
            60% {
                background: radial-gradient(circle at center, rgba(255,210,160,0.5) 40%, #1a0e05 85%);
            }
            100% {
                background: radial-gradient(circle at center, rgba(255,235,200,0.9) 70%, #3e2a1f 100%);
            }
        }

        .awakening-character {
            position: absolute;
            width: 200px;
            height: 200px;
            bottom: 25%;
            left: 50%;
            transform: translateX(-50%) scale(0.6);
            opacity: 0;
            filter: blur(8px);
            animation: characterReveal 2s ease-out forwards;
            pointer-events: none;
        }

        @keyframes characterReveal {
            0% {
                opacity: 0;
                transform: translateX(-50%) scale(0.5);
                filter: blur(12px);
            }
            50% {
                opacity: 0.5;
                transform: translateX(-50%) scale(0.8);
                filter: blur(5px);
            }
            100% {
                opacity: 1;
                transform: translateX(-50%) scale(1);
                filter: blur(0px);
            }
        }

        .awakening-ripple {
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,220,180,0.2) 0%, transparent 70%);
            animation: rippleFade 2s ease-out forwards;
            pointer-events: none;
        }

        @keyframes rippleFade {
            0% { opacity: 0; transform: scale(0.8); }
            40% { opacity: 0.6; transform: scale(1.2); }
            100% { opacity: 0; transform: scale(2); }
        }

        body.awakening-start .game-container {
            filter: blur(3px);
            transform: scale(0.98);
        }

        body.awakening-end .game-container {
            filter: blur(0px);
            transform: scale(1);
        }