/* ============================================
   CSS变量系统 - 手绘草稿风H5作品集
   项目：我的4份广告脑洞出逃计划
   ============================================ */

:root {
    /* 主色调：暖黄色系（手绘草稿感） */
    --color-bg: #FFF5E6;
    --color-bg-light: #FFFAF0;
    --color-paper: #FFF9EF;
    --color-paper-dark: #F5E6D3;

    /* 4个房间主题色 */
    --color-room1: #FFB347;
    --color-room1-light: #FFD699;
    --color-room1-dark: #E69A2E;
    --color-room2: #9B59B6;
    --color-room2-light: #BB8FCE;
    --color-room2-dark: #7D3C98;
    --color-room3: #5DADE2;
    --color-room3-light: #85C1E9;
    --color-room3-dark: #2E86C1;
    --color-room4: #E74C3C;
    --color-room4-light: #F1948A;
    --color-room4-dark: #C0392B;

    /* 文字色 */
    --color-text-primary: #333333;
    --color-text-secondary: #666666;
    --color-text-light: #999999;
    --color-text-white: #FFFFFF;

    /* 辅助色 */
    --color-border: #D4C4A8;
    --color-border-light: #E8DCC8;
    --color-success: #27AE60;
    --color-warning: #F39C12;
    --color-danger: #E74C3C;

    /* 边框圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 999px;

    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;

    /* 字体 */
    --font-title: 'ZCOOL KuaiLe', cursive;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

    /* 字号 */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    --font-size-title: 40px;

    /* 阴影 */
    --shadow-sm: 2px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 4px 4px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 6px 6px 0 rgba(0, 0, 0, 0.15);

    /* 动画时长 */
    --duration-fast: 0.2s;
    --duration-normal: 0.35s;
    --duration-slow: 0.5s;

    /* 最大宽度 */
    --max-width: 480px;
}

/* ============================================
   全局样式重置
   ============================================ */

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

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

body {
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: normal;
    line-height: 1.3;
}

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
}

button:active {
    transform: scale(0.98);
}

a {
    text-decoration: none;
    color: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ============================================
   页面容器基础样式
   ============================================ */

.app-container {
    width: 100%;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg);
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.page-active {
    display: block;
}

.page-inner {
    width: 100%;
    min-height: 100%;
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================
   页面切换过渡动画
   ============================================ */

.fade-in {
    animation: fadeIn var(--duration-normal) ease-out forwards;
}

.fade-out {
    animation: fadeOut var(--duration-normal) ease-in forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    60% {
        transform: translateY(-4px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
}

.bounce-in {
    animation: bounceIn var(--duration-slow) cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   通用按钮样式
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-md);
    font-weight: 500;
    transition: all var(--duration-fast) ease;
    min-height: 48px;
    min-width: 140px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-text-primary);
    color: var(--color-text-white);
    border-color: var(--color-text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

.btn-outline:hover {
    background-color: var(--color-text-primary);
    color: var(--color-text-white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text-secondary);
    border: none;
}

.btn-ghost:hover {
    color: var(--color-text-primary);
}

.btn-large {
    min-height: 56px;
    font-size: var(--font-size-lg);
    padding: var(--space-md) var(--space-xl);
}

.btn-start {
    margin-top: var(--space-xl);
    font-size: var(--font-size-lg);
    min-height: 56px;
}

/* ============================================
   封面页样式
   ============================================ */

.page-cover {
    overflow: hidden;
}

.page-cover .page-inner {
    justify-content: center;
    text-align: center;
    gap: var(--space-lg);
    position: relative;
    z-index: 10;
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-paper);
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(255, 179, 71, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(231, 76, 60, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 196, 168, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(212, 196, 168, 0.15) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 3px 3px, 30px 30px, 30px 30px;
    z-index: 1;
}

.cover-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(212, 196, 168, 0.05) 40px, rgba(212, 196, 168, 0.05) 41px),
        repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(212, 196, 168, 0.04) 60px, rgba(212, 196, 168, 0.04) 61px);
    pointer-events: none;
}

.cover-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 179, 71, 0.1) 0%, transparent 15%),
        radial-gradient(circle at 90% 80%, rgba(155, 89, 182, 0.08) 0%, transparent 12%),
        radial-gradient(circle at 30% 85%, rgba(93, 173, 226, 0.07) 0%, transparent 10%),
        radial-gradient(circle at 70% 15%, rgba(231, 76, 60, 0.06) 0%, transparent 10%);
    pointer-events: none;
}

.cover-mascots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.mascot {
    position: absolute;
    font-size: 52px;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.1));
    animation: mascotFloat 4s ease-in-out infinite;
}

.mascot-toast {
    font-size: 56px;
    animation-delay: 0s;
    animation-duration: 3.5s;
}

.mascot-headphone {
    font-size: 48px;
    animation-delay: 0.8s;
    animation-duration: 4.2s;
}

.mascot-cloud {
    font-size: 60px;
    animation-delay: 1.5s;
    animation-duration: 3.8s;
}

.mascot-ticket {
    font-size: 50px;
    animation-delay: 0.5s;
    animation-duration: 4.5s;
}

@keyframes mascotFloat {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.cover-floaters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.floater {
    position: absolute;
    font-size: 28px;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.08));
}

.floater:hover {
    transform: scale(1.2);
}

.floater.floating {
    animation: floaterFloat 3s ease-in-out infinite;
}

.floater.popping {
    animation: popAway 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes floaterFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-12px) rotate(5deg);
    }
}

@keyframes popAway {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.pop-burst {
    position: absolute;
    pointer-events: none;
    font-size: 24px;
    animation: burstFade 0.5s ease-out forwards;
    margin-left: -12px;
    margin-top: -12px;
}

@keyframes burstFade {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(var(--burst-x, 0px), var(--burst-y, -30px)) scale(1.2);
        opacity: 0;
    }
}

.cover-title-wrap {
    position: relative;
    z-index: 10;
    margin-bottom: var(--space-md);
}

.cover-title {
    font-family: var(--font-title);
    font-size: var(--font-size-title);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 2px;
}

.title-accent {
    color: var(--color-room1);
    margin: 0 4px;
}

.title-main {
    color: var(--color-room4);
    position: relative;
}

.title-main::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 5%;
    width: 90%;
    height: 10px;
    background-color: var(--color-room1-light);
    z-index: -1;
    border-radius: 5px;
    transform: rotate(-1deg);
}

.cover-subtitle {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    opacity: 0.85;
}

.cover-easter {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-top: var(--space-sm);
    font-style: italic;
    opacity: 0.7;
}

.btn-door {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    color: var(--color-text-white);
    background-color: var(--color-text-primary);
    border: 3px solid var(--color-text-primary);
    border-radius: var(--radius-lg);
    box-shadow: 4px 4px 0 var(--color-room1-dark);
    transition: all 0.15s ease;
    cursor: pointer;
    min-height: 56px;
    z-index: 10;
    overflow: hidden;
}

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

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

.btn-door:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 var(--color-room1-dark);
}

.btn-door:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 2px 2px 0 var(--color-room1-dark);
}

.door-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.btn-door:hover .door-icon {
    transform: translateX(-3px) rotate(-10deg);
}

.btn-door:active .door-icon {
    transform: translateX(3px) rotate(10deg);
}

.door-text {
    letter-spacing: 2px;
}

.door-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-text-primary);
    z-index: 100;
    transform: scaleX(0);
    transform-origin: center;
    pointer-events: none;
}

.door-transition.opening {
    animation: doorOpen 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes doorOpen {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    30% {
        transform: scaleX(1);
        opacity: 1;
    }
    70% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

/* ============================================
   返回大厅门牌按钮
   ============================================ */

.back-lobby-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-paper);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    transform: rotate(-2deg);
}

.back-lobby-btn.show {
    display: inline-flex;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.back-lobby-btn:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.12);
}

.back-lobby-btn:active {
    transform: rotate(0deg) translateY(1px) scale(0.97);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.back-lobby-icon {
    font-size: 18px;
}

.back-lobby-text {
    letter-spacing: 1px;
}

/* ============================================
   大厅页样式
   ============================================ */

.page-lobby {
    overflow: hidden;
}

.page-lobby .page-inner {
    justify-content: flex-start;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    gap: var(--space-lg);
    position: relative;
    z-index: 10;
}

.lobby-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-paper);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(255, 179, 71, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 30%, rgba(155, 89, 182, 0.08) 0%, transparent 35%),
        radial-gradient(ellipse at 30% 80%, rgba(93, 173, 226, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 75%, rgba(231, 76, 60, 0.07) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 196, 168, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(212, 196, 168, 0.12) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 4px 4px, 35px 35px, 35px 35px;
    z-index: 1;
}

.lobby-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(212, 196, 168, 0.04) 50px, rgba(212, 196, 168, 0.04) 51px),
        repeating-linear-gradient(-45deg, transparent, transparent 70px, rgba(212, 196, 168, 0.03) 70px, rgba(212, 196, 168, 0.03) 71px);
    pointer-events: none;
}

.lobby-floaters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.lobby-header {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.lobby-title {
    font-size: var(--font-size-title);
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.lobby-title::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 8%;
    width: 84%;
    height: 12px;
    background-color: var(--color-room1-light);
    z-index: -1;
    border-radius: 6px;
    transform: rotate(-1.5deg);
}

.lobby-subtitle {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    opacity: 0.85;
    letter-spacing: 1px;
}

/* ============================================
   4扇门 - 通用样式
   ============================================ */

.lobby-doors {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    position: relative;
    z-index: 10;
}

.door-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
}

.door-plate {
    font-family: var(--font-title);
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    padding: 2px 10px;
    background: var(--color-paper-dark);
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-border);
    transform: rotate(-1deg);
}

.door {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    perspective: 800px;
}

.door:active {
    transform: translateY(4px) scale(0.97);
}

.door-face {
    width: 100%;
    height: 100%;
    border-radius: 16px 16px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 10px;
    position: relative;
    border: 3px solid;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    overflow: hidden;
}

.door:hover .door-face {
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.4), 6px 6px 0 rgba(0, 0, 0, 0.15), inset 0 0 25px rgba(255, 255, 255, 0.25);
}

.door:active .door-face {
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.door-top-deco {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
}

.door-emoji {
    font-size: 32px;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.15));
}

.door-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 2px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.door-subtitle {
    font-size: 10px;
    text-align: center;
    opacity: 0.85;
    margin-bottom: 8px;
    line-height: 1.3;
}

.door-handle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #B8860B);
    border: 2px solid #8B6914;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.door-bottom-deco {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.door-tag {
    display: inline-block;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.door-completed-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--color-paper);
    border: 2px solid var(--color-success);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
    z-index: 5;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.door.completed .door-completed-badge {
    display: flex;
}

.door.completed .door-face {
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.3), 4px 4px 0 rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.door-quip {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-style: italic;
    opacity: 0.75;
    text-align: center;
    transform: rotate(-0.5deg);
    font-family: var(--font-title);
}

/* ============================================
   门1：吐司放映厅 - 橙黄色系
   ============================================ */

.door-toast .door-face {
    background: linear-gradient(180deg, #FFD699 0%, #FFB347 50%, #E69A2E 100%);
    border-color: #CC8822;
}

.door-toast .door-title {
    color: #8B4513;
}

.door-toast .door-subtitle {
    color: #A0522D;
}

.door-toast .door-tag {
    color: #8B4513;
    background: rgba(255, 248, 220, 0.5);
    border-color: rgba(139, 69, 19, 0.3);
}

.door-wrap-toast .door-plate {
    background: #FFE4B5;
    border-color: #DEB887;
    color: #8B4513;
}

.door-toast:hover .door-face {
    box-shadow: 0 0 25px rgba(255, 179, 71, 0.6), 6px 6px 0 rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ============================================
   门2：电台录音棚 - 紫粉色系
   ============================================ */

.door-studio .door-face {
    background: linear-gradient(180deg, #E8DAEF 0%, #BB8FCE 50%, #9B59B6 100%);
    border-color: #7D3C98;
}

.door-studio .door-title {
    color: #4A235A;
}

.door-studio .door-subtitle {
    color: #6C3483;
}

.door-studio .door-tag {
    color: #4A235A;
    background: rgba(245, 238, 248, 0.5);
    border-color: rgba(74, 35, 90, 0.3);
}

.door-wrap-studio .door-plate {
    background: #F5EEF8;
    border-color: #D7BDE2;
    color: #6C3483;
}

.door-studio:hover .door-face {
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.5), 6px 6px 0 rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.25);
}

/* ============================================
   门3：云存画室 - 蓝白色系
   ============================================ */

.door-studio2 .door-face {
    background: linear-gradient(180deg, #EBF5FB 0%, #85C1E9 50%, #5DADE2 100%);
    border-color: #2E86C1;
}

.door-studio2 .door-title {
    color: #1B4F72;
}

.door-studio2 .door-subtitle {
    color: #2471A3;
}

.door-studio2 .door-tag {
    color: #1B4F72;
    background: rgba(235, 245, 251, 0.6);
    border-color: rgba(27, 79, 114, 0.3);
}

.door-wrap-studio2 .door-plate {
    background: #EBF5FB;
    border-color: #AED6F1;
    color: #2471A3;
}

.door-studio2:hover .door-face {
    box-shadow: 0 0 25px rgba(93, 173, 226, 0.5), 6px 6px 0 rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ============================================
   门4：好运文创铺 - 红金色系
   ============================================ */

.door-shop .door-face {
    background: linear-gradient(180deg, #FADBD8 0%, #F1948A 50%, #E74C3C 100%);
    border-color: #C0392B;
}

.door-shop .door-title {
    color: #7B241C;
}

.door-shop .door-subtitle {
    color: #A93226;
}

.door-shop .door-tag {
    color: #7B241C;
    background: rgba(253, 237, 236, 0.6);
    border-color: rgba(123, 36, 28, 0.3);
}

.door-wrap-shop .door-plate {
    background: #FADBD8;
    border-color: #F5B7B1;
    color: #A93226;
}

.door-shop:hover .door-face {
    box-shadow: 0 0 25px rgba(231, 76, 60, 0.5), 6px 6px 0 rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.25);
}

/* ============================================
   开门动画
   ============================================ */

.door.opening .door-face {
    animation: doorOpenAnim 0.6s ease-in-out forwards;
    transform-origin: left center;
}

@keyframes doorOpenAnim {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(-60deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

.door.glow-pulse .door-face {
    animation: glowPulse 0.4s ease-out;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 rgba(255, 179, 71, 0), 4px 4px 0 rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 179, 71, 0.8), 4px 4px 0 rgba(0, 0, 0, 0.15);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 179, 71, 0.3), 4px 4px 0 rgba(0, 0, 0, 0.15);
    }
}

/* ============================================
   进度条样式（新版）
   ============================================ */

.lobby-progress {
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: var(--space-sm);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.progress-label {
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.progress-text {
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background-color: var(--color-paper-dark);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--color-border);
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-room1), var(--color-room2), var(--color-room3), var(--color-room4));
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: var(--radius-full) var(--radius-full) 0 0;
}

.progress-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    pointer-events: none;
}

.progress-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.btn-back-cover {
    margin-top: var(--space-xs);
}

.btn-portfolio {
    margin-top: var(--space-md);
    width: 100%;
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    min-height: 56px;
    background: linear-gradient(135deg, var(--color-room1) 0%, var(--color-room2) 50%, var(--color-room4) 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: portfolioGlow 2s ease-in-out infinite;
}

@keyframes portfolioGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(255, 179, 71, 0.4);
    }
    50% {
        box-shadow: 0 6px 24px rgba(255, 179, 71, 0.6), 0 0 30px rgba(155, 89, 182, 0.3);
    }
}

.btn-portfolio:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-portfolio:active {
    transform: translateY(1px) scale(0.98);
}

/* ============================================
   房间页通用样式
   ============================================ */

.page-room .page-inner {
    justify-content: flex-start;
    padding-top: var(--space-xl);
    gap: var(--space-lg);
}

.room-header {
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-md);
}

.room-badge {
    display: inline-block;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    font-family: var(--font-title);
}

.room-title {
    font-size: var(--font-size-xxl);
}

.room-content {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.room-placeholder {
    text-align: center;
    padding: var(--space-xl);
}

.placeholder-doodle {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
}

.doodle-small {
    width: 100%;
    height: 100%;
}

.placeholder-text {
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.placeholder-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.room-footer {
    width: 100%;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    margin-top: auto;
    padding-bottom: var(--space-lg);
}

.room-footer .btn {
    flex: 1;
}

.page-room1 .room-title {
    color: var(--color-room1-dark);
}

.page-room2 .room-title {
    color: var(--color-room2-dark);
}

.page-room3 .room-title {
    color: var(--color-room3-dark);
}

.page-room4 .room-title {
    color: var(--color-room4-dark);
}

/* ============================================
   房间漂浮装饰元素
   ============================================ */

.room-floaters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.room-floaters .floater {
    position: absolute;
    font-size: 24px;
    opacity: 0.5;
    animation: floaterFloat 4s ease-in-out infinite;
}

/* ============================================
   房间内容布局
   ============================================ */

.room-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
    z-index: 10;
}

/* ============================================
   【房间导览卡】任务卡样式
   ============================================ */

.task-card {
    width: 100%;
    position: relative;
    transform: rotate(-1deg);
}

.task-card-inner {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%);
    border: 2px solid #E6D5A8;
    border-radius: 4px;
    padding: var(--space-lg) var(--space-md);
    position: relative;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1), inset 0 0 30px rgba(255, 200, 100, 0.1);
}

.task-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(200, 180, 140, 0.15) 24px, rgba(200, 180, 140, 0.15) 25px);
    pointer-events: none;
    border-radius: 4px;
}

.task-card-title {
    font-family: var(--font-title);
    font-size: var(--font-size-xl);
    text-align: center;
    margin-bottom: var(--space-md);
    color: #8B6914;
    position: relative;
    z-index: 1;
}

.task-card-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.task-card-item:last-child {
    margin-bottom: 0;
}

.task-label {
    font-size: var(--font-size-sm);
    color: #A0826D;
    font-family: var(--font-title);
}

.task-value {
    font-size: var(--font-size-md);
    color: #5D4E37;
    font-weight: 500;
    line-height: 1.5;
}

.task-card-pin {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #FF6B6B, #C0392B);
    border-radius: 50%;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), inset -2px -2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.task-card-pin::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* ============================================
   【脑洞诞生碎片墙】便利贴样式
   ============================================ */

.idea-wall {
    width: 100%;
    position: relative;
}

.wall-title {
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.sticky-notes {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sticky-note {
    width: 100%;
    min-height: 100px;
    padding: var(--space-md);
    position: relative;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.sticky-note[data-rotate="-3"] {
    transform: rotate(-3deg);
}

.sticky-note[data-rotate="-2"] {
    transform: rotate(-2deg);
}

.sticky-note[data-rotate="-1"] {
    transform: rotate(-1deg);
}

.sticky-note[data-rotate="1"] {
    transform: rotate(1deg);
}

.sticky-note[data-rotate="2"] {
    transform: rotate(2deg);
}

.sticky-note[data-rotate="3"] {
    transform: rotate(3deg);
}

.sticky-note:hover {
    transform: scale(1.02) rotate(0deg) !important;
    z-index: 10;
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(0, 0, 0, 0.05) 22px, rgba(0, 0, 0, 0.05) 23px);
    pointer-events: none;
}

.note-header {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.note-content {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    color: #333;
}

/* 粉色便利贴（废弃脑洞） */
.note-trash {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFCCCC 100%);
    border-left: 4px solid #FF6B6B;
}

.note-trash .note-header {
    color: #C0392B;
}

/* 黄色便利贴（核心创意） */
.note-star {
    background: linear-gradient(135deg, #FFFACD 0%, #FFE66D 100%);
    border-left: 4px solid #FFD700;
}

.note-star .note-header {
    color: #B8860B;
}

/* 蓝色便利贴（踩坑实录） */
.note-pit {
    background: linear-gradient(135deg, #E8F4FD 0%, #B8D4E3 100%);
    border-left: 4px solid #5DADE2;
}

.note-pit .note-header {
    color: #2471A3;
}

/* ============================================
   【互动物料体验区】样式
   ============================================ */

.interactive-area {
    width: 100%;
    border: 3px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    position: relative;
}

.interactive-area::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed var(--color-border-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.area-title {
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.area-content {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-placeholder {
    text-align: center;
    color: var(--color-text-light);
}

.placeholder-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: var(--space-sm);
    opacity: 0.6;
}

.area-placeholder p {
    font-size: var(--font-size-sm);
    font-family: var(--font-title);
}

/* ============================================
   【创作心路小剧场】漫画气泡样式
   ============================================ */

.story-theater {
    width: 100%;
    position: relative;
}

.theater-title {
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.comic-bubbles {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.bubble {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    max-width: 90%;
}

.bubble-q {
    align-self: flex-start;
}

.bubble-a {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bubble-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-paper-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 2px solid var(--color-border);
}

.bubble-text {
    position: relative;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.bubble-q .bubble-text {
    background: #F0F0F0;
    color: #333;
    border-bottom-left-radius: 4px;
}

.bubble-q .bubble-text::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #F0F0F0;
}

.bubble-a .bubble-text {
    background: var(--color-room1-light);
    color: #333;
    border-bottom-right-radius: 4px;
}

.bubble-a .bubble-text::before {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--color-room1-light);
}

/* 每个房间不同的气泡颜色 */
.page-room2 .bubble-a .bubble-text {
    background: var(--color-room2-light);
}

.page-room2 .bubble-a .bubble-text::before {
    border-left-color: var(--color-room2-light);
}

.page-room3 .bubble-a .bubble-text {
    background: var(--color-room3-light);
}

.page-room3 .bubble-a .bubble-text::before {
    border-left-color: var(--color-room3-light);
}

.page-room4 .bubble-a .bubble-text {
    background: var(--color-room4-light);
}

.page-room4 .bubble-a .bubble-text::before {
    border-left-color: var(--color-room4-light);
}

/* ============================================
   房间主题背景
   ============================================ */

.page-room1 {
    background: linear-gradient(180deg, #FFF5E6 0%, #FFE8CC 100%);
}

.page-room2 {
    background: linear-gradient(180deg, #F5EEF8 0%, #E8DAEF 100%);
}

.page-room3 {
    background: linear-gradient(180deg, #EBF5FB 0%, #D6EAF8 100%);
}

.page-room4 {
    background: linear-gradient(180deg, #FDF2F0 0%, #FADBD8 100%);
}

.page-room .page-inner {
    position: relative;
    z-index: 5;
}

/* ============================================
   完成页通用样式
   ============================================ */

.page-complete .page-inner {
    text-align: center;
    gap: var(--space-md);
}

.complete-icon {
    font-size: 80px;
    margin-bottom: var(--space-md);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.complete-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.complete-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.complete-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.stat-value {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    font-family: var(--font-title);
}

.page-complete1 .stat-value {
    color: var(--color-room1);
}

.page-complete2 .stat-value {
    color: var(--color-room2);
}

.page-complete3 .stat-value {
    color: var(--color-room3);
}

.page-complete4 .stat-value {
    color: var(--color-room4);
}

/* ============================================
   总完成页样式
   ============================================ */

.page-final-complete .page-inner {
    text-align: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-xxl);
}

/* ---------- 图标汇聚动画 ---------- */

.complete-icons-gather {
    width: 100%;
    height: 180px;
    position: relative;
    margin-bottom: var(--space-sm);
}

.gather-icon {
    position: absolute;
    font-size: 48px;
    opacity: 0;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
    z-index: 2;
}

.gather-icon.gathered {
    animation: iconGather 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.gather-toast { top: 10%; left: 10%; animation-delay: 0.1s; }
.gather-headphone { top: 8%; right: 12%; animation-delay: 0.3s; }
.gather-cloud { bottom: 15%; left: 8%; animation-delay: 0.5s; }
.gather-ticket { bottom: 12%; right: 10%; animation-delay: 0.7s; }

@keyframes iconGather {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(15deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translate(-50%, -50%) rotate(0deg);
        top: 35%;
        left: 50%;
    }
}

.gather-center-text {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    opacity: 0;
    white-space: nowrap;
    line-height: 1.4;
}

.gather-center-text.show {
    animation: centerTextIn 0.6s ease-out 1.2s forwards;
}

@keyframes centerTextIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.final-title {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--space-xs);
}

.final-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

/* ---------- 四格漫画 ---------- */

.comic-section {
    width: 100%;
}

.comic-title {
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.comic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.comic-cell {
    background: var(--color-paper);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.comic-cell:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.comic-cell-1 { background: linear-gradient(135deg, #FFF3CD 0%, #FFE699 100%); border-color: #E6B800; }
.comic-cell-2 { background: linear-gradient(135deg, #E8DAEF 0%, #D2B4DE 100%); border-color: #9B59B6; }
.comic-cell-3 { background: linear-gradient(135deg, #D6EAF8 0%, #AED6F1 100%); border-color: #3498DB; }
.comic-cell-4 { background: linear-gradient(135deg, #FADBD8 0%, #F5B7B1 100%); border-color: #E74C3C; }

.comic-emoji {
    font-size: 36px;
    line-height: 1;
}

.comic-text {
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    font-weight: bold;
}

.comic-label {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-family: var(--font-title);
    opacity: 0.8;
}

/* ---------- 便签墙 ---------- */

.sticky-wall-section {
    width: 100%;
}

.sticky-wall-title {
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.sticky-wall-notes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.wall-note {
    width: calc(50% - 8px);
    min-height: 80px;
    padding: var(--space-sm) var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.wall-note:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

.wall-note[data-rotate="-4"] { transform: rotate(-4deg); }
.wall-note[data-rotate="-2"] { transform: rotate(-2deg); }
.wall-note[data-rotate="3"] { transform: rotate(3deg); }
.wall-note[data-rotate="5"] { transform: rotate(5deg); }

.wall-note-1 { background: linear-gradient(135deg, #FFFACD 0%, #FFE66D 100%); }
.wall-note-2 { background: linear-gradient(135deg, #FFE5E5 0%, #FFB3B3 100%); }
.wall-note-3 { background: linear-gradient(135deg, #E8F4FD 0%, #B3D9F2 100%); }
.wall-note-4 { background: linear-gradient(135deg, #D5F5E3 0%, #82E0AA 100%); }

.wall-note-text {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    font-family: var(--font-title);
}

/* ---------- 徽章区 ---------- */

.badges-section {
    width: 100%;
}

.badges-title {
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.badges-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.badge-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm);
    background: var(--color-paper);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.badge-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.badge-btn:active {
    transform: translateY(0) scale(0.95);
}

.badge-1 { border-color: var(--color-room1); background: var(--color-room1-light); }
.badge-2 { border-color: var(--color-room2); background: #E8DAEF; }
.badge-3 { border-color: var(--color-room3); background: #D6EAF8; }
.badge-4 { border-color: var(--color-room4); background: #FADBD8; }

.badge-icon {
    font-size: 32px;
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.15));
}

.badge-name {
    font-size: 11px;
    font-family: var(--font-title);
    color: var(--color-text-primary);
    white-space: nowrap;
}

/* ============================================
   收尾页样式
   ============================================ */

.page-ending {
    background: linear-gradient(180deg, var(--color-paper) 0%, #F8F0E3 50%, #FFF5E6 100%);
    overflow: hidden;
}

.page-ending .page-inner {
    text-align: center;
    gap: var(--space-md);
    position: relative;
    z-index: 2;
    padding-top: 20%;
    padding-bottom: var(--space-xxl);
}

/* ---------- 漂浮元素 ---------- */

.ending-floaters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ending-floater {
    position: absolute;
    font-size: 48px;
    background: none;
    border: none;
    cursor: pointer;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
    pointer-events: auto;
    transition: transform 0.2s ease;
    z-index: 3;
}

.ending-floater:hover {
    transform: scale(1.2);
}

.ending-floater:active {
    transform: scale(0.9);
}

.ending-bread { animation: float1 4s ease-in-out infinite; }
.ending-headphone { animation: float2 5s ease-in-out infinite; }
.ending-cloud { animation: float3 4.5s ease-in-out infinite; }
.ending-ticket { animation: float4 5.5s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-20px) rotate(-8deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) rotate(10deg); }
    50% { transform: translateY(-18px) rotate(-10deg); }
}

/* ---------- 弹出框 ---------- */

.ending-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: var(--space-lg);
}

.ending-popup.hidden {
    display: none;
}

.ending-popup-inner {
    background: var(--color-paper);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    max-width: 300px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: popupIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popupIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ending-popup-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-paper);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ending-popup-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.ending-popup-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
}

.ending-popup-text {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    line-height: 1.6;
}

/* ---------- 标题区 ---------- */

.ending-title-wrap {
    margin-bottom: var(--space-sm);
}

.ending-title {
    font-family: var(--font-title);
    font-size: var(--font-size-xxl);
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.ending-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ---------- 提示 ---------- */

.ending-hint {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-family: var(--font-title);
    animation: hintBounce 2s ease-in-out infinite;
}

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

.hint-icon {
    font-size: 18px;
}

.ending-spacer {
    height: 80px;
}

/* ---------- 底部 ---------- */

.ending-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 2px dashed var(--color-border);
}

.footer-line {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-bottom: 4px;
}

.footer-name {
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ============================================
   通用工具类
   ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-xs {
    margin-top: var(--space-xs);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-xs {
    margin-bottom: var(--space-xs);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

/* ============================================
   【吐司放映厅】专属样式
   ============================================ */

.toast-interactive .area-content {
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
}

/* ---------- 视频播放器样式 ---------- */

.toast-video-player {
    width: 100%;
    background: linear-gradient(145deg, #2C1810 0%, #1A0F0A 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid #4A2C1A;
}

.video-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    color: #FFD699;
    text-align: center;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 60vh;
    background: linear-gradient(180deg, #FFE4B5 0%, #FFB347 50%, #E69A2E 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #8B4513;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.real-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    background-color: #333;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    z-index: 2;
    background: linear-gradient(180deg, #FFE4B5 0%, #FFB347 50%, #E69A2E 100%);
}

.toast-bounce {
    font-size: 64px;
    animation: toastBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

@keyframes toastBounce {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.video-hint {
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: #8B4513;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.video-playing {
    width: 100%;
    height: 100%;
    position: relative;
}

.bread-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.bread-piece {
    position: absolute;
    font-size: 24px;
    animation: breadFall linear forwards;
    opacity: 0.8;
}

@keyframes breadFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.toast-scene {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    gap: var(--space-md);
}

.sun-icon {
    font-size: 40px;
    animation: sunPulse 2s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 200, 50, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 200, 50, 0.8));
    }
}

.toast-plate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 36px;
    animation: plateFloat 3s ease-in-out infinite;
}

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

.plate-toast {
    animation: toastWiggle 1s ease-in-out infinite;
    animation-delay: 0s;
}

.plate-egg {
    animation: toastWiggle 1s ease-in-out infinite;
    animation-delay: 0.2s;
}

.plate-milk {
    animation: toastWiggle 1s ease-in-out infinite;
    animation-delay: 0.4s;
}

@keyframes toastWiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

.scene-text {
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: #8B4513;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    animation: textFade 3s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.8);
    padding-left: 4px;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 179, 71, 0.8);
}

.video-screen.playing .play-btn {
    opacity: 0;
    pointer-events: none;
}

.video-screen:hover .play-btn {
    opacity: 1;
    pointer-events: auto;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    padding: 0 var(--space-xs);
}

.progress-bar-wrap {
    flex: 1;
}

.video-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.video-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFB347, #FFD699);
    border-radius: var(--radius-full);
    transition: width 0.1s linear;
    position: relative;
}

.video-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.video-time {
    font-size: var(--font-size-xs);
    color: #FFD699;
    font-family: var(--font-title);
    white-space: nowrap;
    opacity: 0.9;
}

/* ---------- 胶片分镜样式 ---------- */

.film-strip-section {
    width: 100%;
}

.film-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.film-strip-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-md) 0;
    cursor: grab;
}

.film-strip-wrap:active {
    cursor: grabbing;
}

.film-strip-wrap::-webkit-scrollbar {
    display: none;
}

.film-strip {
    display: flex;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
    position: relative;
}

.film-strip::before,
.film-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    background-image: 
        radial-gradient(circle, #1a1a1a 3px, transparent 3px);
    background-size: 100% 16px;
    background-repeat: repeat-y;
    z-index: 2;
}

.film-strip::before {
    left: 0;
}

.film-strip::after {
    right: 0;
}

.film-frame {
    flex-shrink: 0;
    width: 120px;
    background: linear-gradient(180deg, #2C2C2C 0%, #1A1A1A 100%);
    border-radius: 4px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid #3D3D3D;
}

.film-frame::before,
.film-frame::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 6px;
    background-image: 
        radial-gradient(circle, #1a1a1a 2px, transparent 2px);
    background-size: 12px 100%;
    background-repeat: repeat-x;
}

.film-frame::before {
    top: 2px;
}

.film-frame::after {
    bottom: 2px;
}

.frame-pic {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #FFE4B5 0%, #FFB347 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid #8B4513;
    margin-top: 4px;
}

.frame-note {
    font-size: 11px;
    color: #FFD699;
    text-align: center;
    font-family: var(--font-title);
    line-height: 1.4;
    padding: 2px 4px;
    margin-bottom: 4px;
}

.film-hint {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    font-family: var(--font-title);
    margin-top: var(--space-xs);
    opacity: 0.7;
}

/* ---------- 彩蛋按钮样式 ---------- */

.easter-toast {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    animation: easterFloat 3s ease-in-out infinite;
    z-index: 5;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s ease;
}

.easter-toast:hover {
    transform: scale(1.15);
}

.easter-toast:active {
    transform: scale(0.95);
}

@keyframes easterFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

/* ---------- 彩蛋弹窗样式 ---------- */

.easter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
}

.easter-popup-inner {
    width: 100%;
    max-width: 340px;
    background: linear-gradient(145deg, #FFF9E6 0%, #FFE8CC 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.4);
    border: 3px solid #DEB887;
    animation: popupBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popupBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.easter-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFB347;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #E69A2E;
    transition: all 0.2s ease;
    font-weight: bold;
}

.easter-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #E69A2E;
}

.easter-icon {
    text-align: center;
    font-size: 56px;
    margin-bottom: var(--space-sm);
    animation: iconWiggle 2s ease-in-out infinite;
}

@keyframes iconWiggle {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

.easter-title {
    font-family: var(--font-title);
    font-size: var(--font-size-xl);
    text-align: center;
    color: #8B4513;
    margin-bottom: var(--space-md);
    position: relative;
}

.easter-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: #FFD699;
    border-radius: 2px;
}

.easter-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.easter-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    border-left: 4px solid #FFB347;
}

.easter-label {
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: #E69A2E;
    flex-shrink: 0;
    min-width: 50px;
}

.easter-value {
    font-size: var(--font-size-sm);
    color: #5D4E37;
    line-height: 1.5;
    flex: 1;
}

.easter-footer {
    text-align: center;
    font-size: var(--font-size-xs);
    color: #A0826D;
    font-style: italic;
    font-family: var(--font-title);
    opacity: 0.8;
}

/* ---------- 房间漂浮元素点击提示 ---------- */

.room-floater-tip {
    position: absolute;
    padding: 6px 12px;
    background: rgba(139, 69, 19, 0.9);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-family: var(--font-title);
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    animation: tipFade 1.5s ease-out forwards;
    transform: translate(-50%, -100%);
}

@keyframes tipFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -80%);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -100%);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120%);
    }
}

.room-floaters .floater {
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease;
}

.room-floaters .floater:hover {
    transform: scale(1.3);
}

/* ============================================
   响应式适配
   ============================================ */

@media (max-width: 375px) {
    :root {
        --font-size-title: 32px;
        --font-size-xxl: 26px;
        --font-size-xl: 20px;
    }

    .page-inner {
        padding: var(--space-lg) var(--space-md);
    }

    .mascot {
        font-size: 42px;
    }

    .mascot-toast {
        font-size: 46px;
    }

    .mascot-headphone {
        font-size: 38px;
    }

    .mascot-cloud {
        font-size: 48px;
    }

    .mascot-ticket {
        font-size: 40px;
    }

    .floater {
        font-size: 24px;
    }

    .btn-door {
        font-size: var(--font-size-md);
        padding: var(--space-sm) var(--space-lg);
        min-height: 50px;
    }

    .door-icon {
        font-size: 20px;
    }

    .room-icon {
        font-size: 36px;
    }

    .door-emoji {
        font-size: 26px;
    }

    .door-title {
        font-size: var(--font-size-sm);
    }

    .door-subtitle {
        font-size: 9px;
    }

    .door-handle {
        width: 10px;
        height: 10px;
        right: 8px;
    }

    .door-tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    .door-plate {
        font-size: 10px;
    }

    .door-quip {
        font-size: 10px;
    }

    .back-lobby-btn {
        top: 12px;
        left: 12px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .back-lobby-icon {
        font-size: 16px;
    }
}

/* ============================================
   【电台录音棚】专属样式
   ============================================ */

.studio-interactive .area-content {
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
}

/* ---------- 复古收音机播放器样式 ---------- */

.vintage-radio {
    width: 100%;
}

.radio-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.radio-body {
    background: linear-gradient(145deg, #8B4513 0%, #654321 50%, #4A2C1A 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: 0 8px 32px rgba(74, 44, 26, 0.4), inset 0 2px 0 rgba(255, 200, 100, 0.2);
    border: 3px solid #3D2314;
}

.radio-wood-frame {
    background: linear-gradient(180deg, #D2691E 0%, #A0522D 50%, #8B4513 100%);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    display: flex;
    gap: var(--space-sm);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 -2px 4px rgba(255, 200, 100, 0.2);
    border: 2px solid #654321;
}

.radio-speaker-left,
.radio-speaker-right {
    width: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-grill {
    width: 100%;
    aspect-ratio: 1;
    background: 
        radial-gradient(circle at 50% 50%, #2C1810 30%, transparent 31%),
        repeating-linear-gradient(0deg, #1A0F0A 0px, #1A0F0A 2px, #2C1810 2px, #2C1810 4px),
        repeating-linear-gradient(90deg, #1A0F0A 0px, #1A0F0A 2px, #2C1810 2px, #2C1810 4px);
    border-radius: 50%;
    border: 3px solid #3D2314;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.radio-dial-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.dial-window {
    background: linear-gradient(180deg, #F5E6D3 0%, #E8D5B7 100%);
    border-radius: 8px;
    padding: var(--space-sm);
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #8B6914;
    overflow: hidden;
}

.dial-scale {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #654321;
    font-family: var(--font-title);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.dial-scale span {
    position: relative;
}

.dial-scale span::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 6px;
    background: #8B6914;
}

.dial-needle {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, #E74C3C 0%, #C0392B 100%);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-20deg);
    z-index: 2;
    border-radius: 1px;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.dial-needle.playing {
    animation: needleSwing 3s ease-in-out infinite;
}

@keyframes needleSwing {
    0%, 100% {
        transform: translateX(-50%) rotate(-15deg);
    }
    50% {
        transform: translateX(-50%) rotate(15deg);
    }
}

.dial-frequency {
    text-align: center;
    font-size: 12px;
    color: #654321;
    font-family: var(--font-title);
    font-weight: bold;
    margin-top: 8px;
}

.waveform-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    background: #1A0F0A;
    border-radius: 6px;
    padding: 8px;
    border: 2px solid #3D2314;
}

.wave-bar {
    width: 4px;
    height: var(--height);
    background: linear-gradient(180deg, #9B59B6 0%, #E74C3C 100%);
    border-radius: 2px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.waveform-display.playing .wave-bar {
    opacity: 1;
    animation: waveBounce 0.8s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes waveBounce {
    0%, 100% {
        height: 20%;
    }
    50% {
        height: 100%;
    }
}

.radio-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding: 0 var(--space-xs);
}

.knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.big-knob {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #D2691E 0%, #8B4513 50%, #654321 100%);
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 200, 100, 0.3);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.knob-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #A0522D 0%, #654321 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

.knob-indicator {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.knob-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.knob-marks span {
    position: absolute;
    width: 2px;
    height: 4px;
    background: rgba(255, 215, 0, 0.4);
    top: 4px;
    left: 50%;
    transform-origin: center calc(50% - 4px + 26px);
}

.knob-marks span:nth-child(1) { transform: translateX(-50%) rotate(-45deg); }
.knob-marks span:nth-child(2) { transform: translateX(-50%) rotate(-30deg); }
.knob-marks span:nth-child(3) { transform: translateX(-50%) rotate(-15deg); }
.knob-marks span:nth-child(4) { transform: translateX(-50%) rotate(0deg); }
.knob-marks span:nth-child(5) { transform: translateX(-50%) rotate(15deg); }
.knob-marks span:nth-child(6) { transform: translateX(-50%) rotate(30deg); }
.knob-marks span:nth-child(7) { transform: translateX(-50%) rotate(45deg); }
.knob-marks span:nth-child(8) { transform: translateX(-50%) rotate(60deg); }
.knob-marks span:nth-child(9) { transform: translateX(-50%) rotate(-60deg); }
.knob-marks span:nth-child(10) { transform: translateX(-50%) rotate(-75deg); }

.knob-center {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4A2C1A 0%, #2C1810 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.knob-icon {
    font-size: 14px;
}

.knob-label {
    font-size: 11px;
    color: #FFD699;
    font-family: var(--font-title);
}

.play-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.radio-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #9B59B6 0%, #7D3C98 100%);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    border: 3px solid #6C3483;
    transition: all 0.2s ease;
    padding-left: 3px;
}

.radio-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.5);
}

.radio-play-btn:active {
    transform: scale(0.95);
}

.play-icon {
    line-height: 1;
}

.radio-timer {
    font-size: 11px;
    color: #FFD699;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

/* ---------- 歌词滚动配音脚本样式 ---------- */

.lyrics-script {
    width: 100%;
}

.script-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.script-container {
    background: linear-gradient(180deg, rgba(155, 89, 182, 0.1) 0%, rgba(155, 89, 182, 0.05) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 2px solid #D7BDE2;
    height: 180px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.script-container::-webkit-scrollbar {
    display: none;
}

.script-lines {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 20px 0;
}

.script-line {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.script-line.active {
    opacity: 1;
    background: linear-gradient(90deg, rgba(155, 89, 182, 0.2) 0%, rgba(155, 89, 182, 0.05) 100%);
    transform: scale(1.02);
}

.script-line.active .line-text {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--color-room2-dark);
}

.line-time {
    font-size: 11px;
    color: var(--color-room2);
    font-family: var(--font-title);
    flex-shrink: 0;
    min-width: 45px;
    padding-top: 2px;
}

.line-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.script-hint {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    font-family: var(--font-title);
    margin-top: var(--space-xs);
    opacity: 0.7;
}

/* ---------- 趣味小测试样式 ---------- */

.quiz-section {
    width: 100%;
}

.quiz-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.quiz-question {
    text-align: center;
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    font-weight: 500;
    margin-bottom: var(--space-md);
    font-family: var(--font-title);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: linear-gradient(135deg, #F5EEF8 0%, #E8DAEF 100%);
    border: 2px solid #D7BDE2;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.quiz-option:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, #E8DAEF 0%, #D7BDE2 100%);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.2);
}

.quiz-option:active {
    transform: translateX(2px) scale(0.98);
}

.option-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #9B59B6 0%, #7D3C98 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    flex-shrink: 0;
}

.option-text {
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    font-family: var(--font-title);
}

/* ---------- 趣味结果弹窗样式 ---------- */

.quiz-result-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
}

.result-card {
    width: 100%;
    max-width: 340px;
    background: linear-gradient(145deg, #F5EEF8 0%, #E8DAEF 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    box-shadow: 0 20px 60px rgba(155, 89, 182, 0.4);
    border: 3px solid #BB8FCE;
    animation: popupBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

.result-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #9B59B6;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #7D3C98;
    transition: all 0.2s ease;
    font-weight: bold;
}

.result-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #7D3C98;
}

.result-emoji {
    font-size: 72px;
    margin-bottom: var(--space-sm);
    animation: iconWiggle 2s ease-in-out infinite;
}

.result-title {
    font-family: var(--font-title);
    font-size: var(--font-size-xl);
    color: var(--color-room2-dark);
    margin-bottom: var(--space-xs);
}

.result-scene {
    font-size: var(--font-size-sm);
    color: var(--color-room2);
    font-family: var(--font-title);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.result-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-room2);
    text-align: left;
}

.result-retry {
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(145deg, #9B59B6 0%, #7D3C98 100%);
    color: #fff;
    border-radius: var(--radius-full);
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    cursor: pointer;
    border: 2px solid #6C3483;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
    transition: all 0.2s ease;
}

.result-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 89, 182, 0.4);
}

.result-retry:active {
    transform: translateY(0);
}

/* ---------- 房间2漂浮元素点击提示 ---------- */

.page-room2 .room-floater-tip {
    background: rgba(123, 36, 143, 0.9);
}

/* ============================================
   【云存画室】专属样式
   ============================================ */

.gallery-interactive .area-content {
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
}

/* ---------- 隐藏互动：云朵彩蛋 ---------- */

.cloud-easter {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 52px;
    height: 52px;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    animation: cloudFloat 3.5s ease-in-out infinite;
    z-index: 10;
    filter: drop-shadow(2px 2px 4px rgba(46, 134, 193, 0.3));
    transition: transform 0.2s ease;
}

.cloud-easter:hover {
    transform: scale(1.15);
}

.cloud-easter:active {
    transform: scale(0.95);
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* ---------- 云朵弹窗样式 ---------- */

.cloud-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
}

.cloud-popup-inner {
    width: 100%;
    max-width: 320px;
    background: linear-gradient(145deg, #EBF5FB 0%, #D6EAF8 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    box-shadow: 0 20px 60px rgba(46, 134, 193, 0.35);
    border: 3px solid #AED6F1;
    animation: popupBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

.cloud-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-room3);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--color-room3-dark);
    transition: all 0.2s ease;
    font-weight: bold;
}

.cloud-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--color-room3-dark);
}

.cloud-popup-icon {
    font-size: 56px;
    margin-bottom: var(--space-sm);
    animation: iconWiggle 2s ease-in-out infinite;
}

.cloud-popup-title {
    font-family: var(--font-title);
    font-size: var(--font-size-xl);
    color: var(--color-room3-dark);
    margin-bottom: var(--space-md);
    position: relative;
}

.cloud-popup-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: var(--color-room3-light);
    border-radius: 2px;
}

.cloud-popup-text {
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-room3);
    font-style: italic;
}

.cloud-popup-footer {
    font-size: var(--font-size-xs);
    color: var(--color-room3-dark);
    font-style: italic;
    font-family: var(--font-title);
    opacity: 0.8;
}

/* ---------- 趣味问答样式 ---------- */

.quiz-section {
    width: 100%;
    padding: var(--space-md) 0;
}

.quiz-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.quiz-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px dashed var(--color-primary);
}

.quiz-question {
    margin-bottom: var(--space-md);
}

.question-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: center;
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.quiz-option {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--color-primary);
    background: rgba(66, 153, 225, 0.1);
    transform: translateX(4px);
}

.quiz-option.selected {
    border-color: var(--color-primary);
    background: rgba(66, 153, 225, 0.2);
}

.quiz-option.correct {
    border-color: #27AE60;
    background: rgba(39, 174, 96, 0.2);
    color: #27AE60;
}

.quiz-option.wrong {
    border-color: #E74C3C;
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
}

.quiz-result {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: linear-gradient(135deg, #87CEEB 0%, #4DA6FF 100%);
    border-radius: var(--radius-md);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.result-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.result-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: white;
}

.quiz-hint {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: var(--space-xs);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-section {
    width: 100%;
}

.gallery-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.single-poster-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--space-sm) 0;
}

.single-poster-card {
    width: 85%;
    aspect-ratio: 3 / 4;
}

.gallery-track {
    display: flex;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    cursor: grab;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gallery-track:active {
    cursor: grabbing;
}

.poster-card {
    flex-shrink: 0;
    width: 70%;
    aspect-ratio: 3 / 4;
}

.poster-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #8B7355 0%, #6B4423 50%, #4A3728 100%);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.15);
    border: 3px solid #5D4037;
    position: relative;
}

.poster-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    pointer-events: none;
}

.poster-content {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    position: relative;
    overflow: hidden;
}

.poster-1 {
    background: linear-gradient(180deg, #85C1E9 0%, #3498DB 50%, #2471A3 100%);
}

.poster-2 {
    background: linear-gradient(135deg, #AED6F1 0%, #5DADE2 50%, #2E86C1 100%);
}

.poster-3 {
    background: linear-gradient(180deg, #EBF5FB 0%, #85C1E9 60%, #3498DB 100%);
}

.poster-4 {
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 50%, #5DADE2 100%);
}

.poster-main {
    background: linear-gradient(180deg, #87CEEB 0%, #4DA6FF 40%, #2563EB 70%, #1E40AF 100%);
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.poster-emoji-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.poster-emoji-big {
    font-size: 56px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

.poster-emoji-huge {
    font-size: 64px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

.poster-emoji-medium {
    font-size: 36px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

.poster-emoji-small {
    font-size: 28px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

.poster-emoji-cloud {
    font-size: 40px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

.poster-emoji-tiny {
    font-size: 20px;
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.2));
}

.poster-title-text {
    font-family: var(--font-title);
    font-size: 22px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.poster-subtitle {
    font-family: var(--font-title);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.poster-deco {
    font-size: 16px;
    margin-top: 4px;
    opacity: 0.8;
}

/* ---------- 画廊指示器 ---------- */

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-sm);
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-room3-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--color-room3);
}

.gallery-dot.active {
    background: var(--color-room3-dark);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(46, 134, 193, 0.5);
}

.gallery-hint {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    font-family: var(--font-title);
    margin-top: var(--space-xs);
    opacity: 0.7;
}

/* ---------- 海报放大弹窗 ---------- */

.poster-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
}

.poster-popup-inner {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    animation: popupBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.poster-popup-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--color-room3);
    z-index: 10;
    transition: all 0.2s ease;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.poster-popup-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--color-room3);
    color: #fff;
}

.poster-popup-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #8B7355 0%, #6B4423 50%, #4A3728 100%);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.15);
    border: 4px solid #5D4037;
    position: relative;
}

.poster-popup-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    pointer-events: none;
}

.poster-popup-content {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

.poster-popup-note {
    width: 100%;
    background: linear-gradient(145deg, #EBF5FB 0%, #D6EAF8 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 2px solid #AED6F1;
    box-shadow: 0 4px 12px rgba(46, 134, 193, 0.2);
}

.note-label {
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: var(--color-room3-dark);
    margin-bottom: var(--space-xs);
}

.note-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    line-height: 1.6;
}

/* ---------- 调色对比样式 ---------- */

.compare-section {
    width: 100%;
}

.compare-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.compare-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
}

.label-draft {
    color: #E74C3C;
    padding: 2px 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: var(--radius-full);
    border: 1.5px solid #E74C3C;
}

.label-arrow {
    color: var(--color-text-secondary);
    font-size: 18px;
}

.label-final {
    color: #27AE60;
    padding: 2px 10px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: var(--radius-full);
    border: 1.5px solid #27AE60;
}

.compare-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--color-room3);
    box-shadow: 0 6px 20px rgba(46, 134, 193, 0.25);
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}

.compare-side {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
}

.compare-draft {
    left: 0;
    width: 50%;
    z-index: 2;
}

.compare-final {
    left: 0;
    width: 100%;
    z-index: 1;
}

.compare-scene {
    width: 100%;
    height: 100%;
    position: relative;
}

.compare-draft .compare-scene {
    background: linear-gradient(135deg, #FADBD8 0%, #F5B7B1 50%, #E74C3C 100%);
}

.compare-final .compare-scene {
    background: linear-gradient(180deg, #EBF5FB 0%, #D6EAF8 50%, #85C1E9 100%);
}

/* 初稿杂乱元素 */
.draft-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 320px;
}

.draft-emoji {
    position: absolute;
    font-size: 32px;
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.2));
    animation: draftWiggle 2s ease-in-out infinite;
}

.draft-text {
    position: absolute;
    font-family: var(--font-title);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

@keyframes draftWiggle {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* 定稿简约元素 */
.final-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 320px;
}

.final-cloud {
    font-size: 64px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
    animation: finalFloat 3s ease-in-out infinite;
}

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

.final-title {
    font-family: var(--font-title);
    font-size: 24px;
    color: var(--color-room3-dark);
    letter-spacing: 4px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.final-subtitle {
    font-family: var(--font-title);
    font-size: 14px;
    color: var(--color-room3);
    letter-spacing: 2px;
    opacity: 0.8;
}

.final-deco {
    font-size: 20px;
    margin-top: 4px;
    animation: sparkle 2s ease-in-out infinite;
}

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

/* 对比滑块 */
.compare-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--color-room3);
    cursor: ew-resize;
}

.slider-icon {
    font-size: 14px;
    color: var(--color-room3-dark);
    font-weight: bold;
    letter-spacing: -2px;
}

.compare-footer {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-family: var(--font-title);
    margin-top: var(--space-sm);
    font-style: italic;
    opacity: 0.8;
}

/* ---------- 房间3漂浮元素点击提示 ---------- */

.page-room3 .room-floater-tip {
    background: rgba(27, 79, 114, 0.9);
}

/* ============================================
   【好运文创铺】专属样式
   ============================================ */

.lottery-interactive .area-content {
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
}

.redpacket-easter {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 52px;
    height: 52px;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    animation: redpacketFloat 3.5s ease-in-out infinite;
    z-index: 10;
    filter: drop-shadow(2px 2px 4px rgba(192, 57, 43, 0.3));
    transition: transform 0.2s ease;
}

.redpacket-easter:hover {
    transform: scale(1.15);
}

.redpacket-easter:active {
    transform: scale(0.95);
}

@keyframes redpacketFloat {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

.redpacket-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
}

.redpacket-popup-inner {
    width: 100%;
    max-width: 320px;
    background: linear-gradient(145deg, #FDF2F0 0%, #FADBD8 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    box-shadow: 0 20px 60px rgba(192, 57, 43, 0.35);
    border: 3px solid #F5B7B1;
    animation: popupBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

.redpacket-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-room4);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--color-room4-dark);
    transition: all 0.2s ease;
    font-weight: bold;
}

.redpacket-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--color-room4-dark);
}

.redpacket-popup-icon {
    font-size: 56px;
    margin-bottom: var(--space-sm);
    animation: iconWiggle 2s ease-in-out infinite;
}

.redpacket-popup-title {
    font-family: var(--font-title);
    font-size: var(--font-size-xl);
    color: var(--color-room4-dark);
    margin-bottom: var(--space-md);
    position: relative;
}

.redpacket-popup-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: var(--color-room4-light);
    border-radius: 2px;
}

.redpacket-popup-text {
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-room4);
    font-style: italic;
}

.redpacket-popup-footer {
    font-size: var(--font-size-xs);
    color: var(--color-room4-dark);
    font-style: italic;
    font-family: var(--font-title);
    opacity: 0.8;
}

.poster-gallery-section {
    width: 100%;
}

.poster-gallery-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.single-lottery-poster-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--space-sm) 0;
}

.single-lottery-poster-card {
    width: 85%;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.poster-gallery-track {
    display: flex;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    cursor: grab;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.poster-gallery-track:active {
    cursor: grabbing;
}

.lottery-poster-card {
    flex-shrink: 0;
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.lottery-poster-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #B8860B 0%, #8B6914 50%, #6B4423 100%);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 215, 0, 0.2);
    border: 3px solid #8B6914;
    position: relative;
}

.lottery-poster-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

.lottery-poster-content {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    position: relative;
    overflow: hidden;
}

.lottery-poster-1 {
    background: linear-gradient(180deg, #F1948A 0%, #E74C3C 50%, #C0392B 100%);
}

.lottery-poster-2 {
    background: linear-gradient(135deg, #FADBD8 0%, #E74C3C 50%, #B8860B 100%);
}

.lottery-poster-3 {
    background: linear-gradient(180deg, #FDEDEC 0%, #F1948A 60%, #E74C3C 100%);
}

.lottery-poster-4 {
    background: linear-gradient(135deg, #C0392B 0%, #E74C3C 50%, #F39C12 100%);
}

.lottery-poster-main {
    background: linear-gradient(180deg, #F1948A 0%, #E74C3C 40%, #C0392B 70%, #922B21 100%);
}

.lottery-poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.lottery-poster-emoji-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.lottery-poster-emoji-big {
    font-size: 56px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
}

.lottery-poster-emoji-medium {
    font-size: 36px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
}

.lottery-poster-title-text {
    font-family: var(--font-title);
    font-size: 22px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.lottery-poster-subtitle {
    font-family: var(--font-title);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.lottery-poster-deco {
    font-size: 16px;
    margin-top: 4px;
    opacity: 0.9;
}

.lottery-poster-slogan {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-room4-dark);
    font-family: var(--font-title);
    line-height: 1.5;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-room4);
    border-right: 3px solid var(--color-room4);
}

.lottery-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-sm);
}

.lottery-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-room4-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--color-room4);
}

.lottery-gallery-dot.active {
    background: var(--color-room4-dark);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
}

.lottery-gallery-page {
    text-align: center;
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    color: var(--color-room4-dark);
    margin-top: var(--space-xs);
    opacity: 0.8;
}

.lottery-gallery-hint {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    font-family: var(--font-title);
    margin-top: var(--space-xs);
    opacity: 0.7;
}

.lottery-game-section {
    width: 100%;
}

.lottery-game-title {
    font-family: var(--font-title);
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.lottery-game-desc {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-family: var(--font-title);
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

.lottery-game-area {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #FDF2F0 0%, #FADBD8 100%);
    border-radius: var(--radius-lg);
    border: 3px solid #F5B7B1;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(192, 57, 43, 0.1);
}

.lottery-game-tip {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: rgba(192, 57, 43, 0.9);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-family: var(--font-title);
    z-index: 10;
    white-space: nowrap;
}

.lottery-tickets-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lottery-ticket {
    position: absolute;
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    animation: ticketFloat 3s ease-in-out infinite;
}

.lottery-ticket:hover {
    transform: scale(1.2);
}

.lottery-ticket:active {
    transform: scale(0.9);
}

.lottery-ticket.popping {
    animation: ticketPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes ticketFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes ticketPop {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.lottery-heart-burst {
    position: absolute;
    pointer-events: none;
    font-size: 24px;
    animation: heartBurst 0.6s ease-out forwards;
    margin-left: -12px;
    margin-top: -12px;
    z-index: 20;
}

@keyframes heartBurst {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(var(--burst-x, 0px), var(--burst-y, -40px)) scale(1.3);
        opacity: 0;
    }
}

.lottery-complete {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    background: rgba(253, 242, 240, 0.95);
    z-index: 30;
    animation: fadeIn 0.5s ease-out;
}

.lottery-complete-icon {
    font-size: 64px;
    animation: heartbeat 1.2s ease-in-out infinite;
}

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

.lottery-complete-text {
    font-family: var(--font-title);
    font-size: var(--font-size-lg);
    color: var(--color-room4-dark);
    text-align: center;
}

.lottery-restart-btn {
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(145deg, #E74C3C 0%, #C0392B 100%);
    color: #fff;
    border-radius: var(--radius-full);
    font-family: var(--font-title);
    font-size: var(--font-size-sm);
    cursor: pointer;
    border: 2px solid #A93226;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transition: all 0.2s ease;
}

.lottery-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.lottery-restart-btn:active {
    transform: translateY(0);
}

.lottery-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    pointer-events: none;
}

.lottery-toast-text {
    padding: 12px 20px;
    background: rgba(192, 57, 43, 0.95);
    color: #fff;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-family: var(--font-title);
    text-align: center;
    max-width: 280px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.4);
    border: 2px solid #E74C3C;
    animation: toastBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.page-room4 .room-floater-tip {
    background: rgba(123, 36, 28, 0.9);
}

/* ============================================
   响应式适配
   ============================================ */

@media (max-width: 375px) {
    .big-knob {
        width: 52px;
        height: 52px;
    }

    .radio-play-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .radio-speaker-left,
    .radio-speaker-right {
        width: 40px;
    }
}

@media (min-width: 768px) {
    .app-container {
        border-left: 1px solid var(--color-border);
        border-right: 1px solid var(--color-border);
    }
}
