/* 治愈花园页面样式 */

/* 全局治愈系色彩变量 - 优化版 */
:root {
    --healing-primary: #6BB6FF;     /* 清新蓝 */
    --healing-secondary: #FF9A9E;   /* 温柔粉 */
    --healing-accent: #A8E6CF;      /* 薄荷绿 */
    --healing-warm: #FFD93D;        /* 阳光黄 */
    --healing-purple: #C7A2FF;      /* 梦幻紫 */
    --healing-bg: #F8FFFE;          /* 纯净白 */
    --healing-white: #FFFFFF;
    --healing-text: #2C3E50;        /* 深蓝灰 */
    --healing-text-light: #7F8C8D;  /* 浅灰文字 */
    --healing-border: #E8F4FD;      /* 淡蓝边框 */
    --healing-shadow: rgba(107, 182, 255, 0.15);
    --healing-shadow-hover: rgba(107, 182, 255, 0.25);
    --healing-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --healing-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --healing-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --healing-gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* 页面主体样式 - 优化版 */
.healing-main {
    background: linear-gradient(135deg, 
        rgba(248, 255, 254, 0.95) 0%, 
        rgba(232, 244, 253, 0.95) 50%,
        rgba(255, 248, 250, 0.95) 100%);
    background-image: url('../images/back.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
}

.healing-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(107, 182, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 154, 158, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(168, 230, 207, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 页面标题区域 - 优化版 */
.healing-hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, 
        rgba(107, 182, 255, 0.9) 0%, 
        rgba(255, 154, 158, 0.9) 50%,
        rgba(168, 230, 207, 0.9) 100%);
    color: white;
    margin-bottom: 40px;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 15px 40px var(--healing-shadow), 
                0 5px 15px rgba(107, 182, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.healing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/background.svg') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
    animation: slowPulse 15s ease-in-out infinite;
}

.healing-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 25px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
    letter-spacing: 2px;
}

.healing-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    opacity: 0.95;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: subtitleFade 4s ease-in-out infinite;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

@keyframes titleGlow {
    0%, 100% { 
        transform: translateY(0); 
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.5);
    }
    50% { 
        transform: translateY(-10px); 
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.7);
    }
}

@keyframes subtitleFade {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 0.8; }
}

@keyframes slowPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.05); opacity: 0.2; }
}

/* 页面整体动画效果 */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

/* 增强的卡片动画 */
.game-card,
.story-card {
    animation: gentleFloat 6s ease-in-out infinite;
}

.game-card:nth-child(2n) {
    animation-delay: -2s;
}

.game-card:nth-child(3n) {
    animation-delay: -4s;
}

/* 标题渐变动画 */
.section-title::before {
    background: linear-gradient(90deg, 
        transparent, 
        var(--healing-primary), 
        var(--healing-secondary), 
        var(--healing-accent),
        transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* 悬浮效果增强 */
.notes-section,
.gallery-section,
.ai-chat-section,
.games-section {
    transition: all 0.3s ease;
}

.notes-section:hover,
.gallery-section:hover,
.ai-chat-section:hover,
.games-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px var(--healing-shadow-hover);
}

/* 按钮脉冲效果 */
.add-note-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-note-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 旧音乐播放器样式已移除，现在使用统一的音乐播放器样式 */

/* 主容器样式 - 优化版 */
.healing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

@media (min-width: 768px) {
    .healing-container {
        padding: 0 30px;
    }
}

@media (min-width: 1200px) {
    .healing-container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

/* 游戏区域样式 - 优化版 */
.games-section {
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(107, 182, 255, 0.1);
}

.games-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 区域标题样式 - 优化版 */
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--healing-text);
    text-align: center;
    margin-bottom: 35px;
    font-weight: 600;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: 0.5px;
    background: var(--healing-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--healing-primary), var(--healing-secondary), transparent);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 12px;
    background: linear-gradient(90deg, var(--healing-primary), var(--healing-secondary));
    border-radius: 6px;
    filter: blur(4px);
    opacity: 0.6;
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; width: 40px; }
    50% { opacity: 0.8; width: 60px; }
}

/* 游戏网格布局 - 优化版 */
.games-section {
    margin-bottom: 50px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    animation: fadeInUp 0.6s ease-out;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .healing-container {
        padding: 0 15px;
    }
    
    .healing-hero {
        padding: 60px 15px 40px;
        margin-bottom: 25px;
        border-radius: 0 0 25px 25px;
    }
    
    .healing-title {
        font-size: 2rem;
    }
    
    .healing-subtitle {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .game-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .story-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .story-selection {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .games-section,
    .notes-section,
    .gallery-section,
    .ai-chat-section {
        margin: 20px 0;
        padding: 30px 0;
        border-radius: 16px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    
    .ai-chat-container {
        margin: 0 15px;
        border-radius: 20px;
    }
    
    .notes-wall {
        padding: 20px;
        min-height: 300px;
    }
    
    .sticky-note {
        width: 150px;
        min-height: 100px;
        padding: 12px;
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px var(--healing-shadow), 
                0 3px 10px rgba(107, 182, 255, 0.1);
    border: 1px solid var(--healing-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    z-index: 1;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--healing-shadow-hover), 
                0 5px 15px rgba(107, 182, 255, 0.15);
    border-color: var(--healing-primary);
}

.game-card:hover::before {
    opacity: 0.8;
}

.game-card h3 {
    color: var(--healing-text);
    margin-bottom: 22px;
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.game-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--healing-primary), var(--healing-secondary), transparent);
    border-radius: 3px;
    transform: scaleX(0.7);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.game-card:hover h3::after {
    transform: scaleX(1);
    opacity: 1;
}

/* 泡泡游戏样式 */
.bubble-game {
    position: relative;
    margin-bottom: 15px;
}

#bubbleCanvas {
    border: 2px solid var(--healing-border);
    border-radius: 15px;
    background: linear-gradient(135deg, #F0F8FF 0%, #E6F3FF 100%);
    cursor: pointer;
}

.game-score {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--healing-primary);
    font-weight: 500;
}

/* 涂鸦板样式 */
.drawing-tools {
    margin-bottom: 15px;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover,
.color-option.active {
    border-color: var(--healing-text);
    transform: scale(1.1);
}

.brush-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brush-controls label {
    font-size: 0.9rem;
    color: var(--healing-text);
}

#brushSize {
    width: 80px;
}

.tool-btn {
    background: var(--healing-accent);
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: var(--healing-primary);
    transform: translateY(-2px);
}

#drawingCanvas {
    border: 2px solid var(--healing-border);
    border-radius: 15px;
    background: white;
    cursor: crosshair;
}

/* 植物养成游戏样式 */
.plant-container {
    margin-bottom: 20px;
}

.plant-display {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border: 3px solid var(--healing-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0FFF0 0%, #E6FFE6 100%);
    position: relative;
    overflow: hidden;
}

.plant-img {
    max-width: 80%;
    max-height: 80%;
    transition: all 0.5s ease;
}

.plant-info {
    text-align: center;
    margin-bottom: 15px;
}

.plant-info p {
    margin: 5px 0;
    color: var(--healing-text);
    font-size: 0.9rem;
}

.plant-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#plantSelect {
    padding: 8px 12px;
    border: 2px solid var(--healing-border);
    border-radius: 8px;
    background: white;
    color: var(--healing-text);
    cursor: pointer;
}

.game-btn {
    background: linear-gradient(135deg, var(--healing-primary), var(--healing-secondary));
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--healing-shadow);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 励志纸条墙样式 - 优化版 */
.notes-section {
    margin-bottom: 50px;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--healing-border);
    box-shadow: 0 6px 25px var(--healing-shadow);
}

.notes-controls {
    text-align: center;
    margin-bottom: 35px;
}

.add-note-btn {
    background: var(--healing-gradient-3);
    border: none;
    border-radius: 30px;
    padding: 14px 32px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
    letter-spacing: 0.5px;
}

.add-note-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
    filter: brightness(1.1);
}

.notes-wall {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #FFFAF0 0%, #FFF8DC 100%);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid var(--healing-border);
    overflow: hidden;
}

.sticky-note {
    position: absolute;
    width: 180px;
    min-height: 120px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--healing-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    transform-origin: center;
    animation: noteAppear 0.6s ease-out;
}

.sticky-note:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 8px 25px var(--healing-shadow);
}

.sticky-note.shake {
    animation: noteShake 0.5s ease-in-out;
}

@keyframes noteAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(var(--rotation));
    }
}

@keyframes noteShake {
    0%, 100% { transform: rotate(var(--rotation)) translateX(0); }
    25% { transform: rotate(var(--rotation)) translateX(-5px); }
    75% { transform: rotate(var(--rotation)) translateX(5px); }
}

/* 图片画廊样式 - 优化版 */
.gallery-section {
    margin-bottom: 50px;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--healing-border);
    box-shadow: 0 6px 25px var(--healing-shadow);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--healing-shadow);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px var(--healing-shadow);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--healing-white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: var(--healing-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--healing-primary);
}

.quote-options {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.quote-option {
    background: linear-gradient(135deg, var(--healing-bg), white);
    border: 2px solid var(--healing-border);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
}

.quote-option:hover {
    background: linear-gradient(135deg, var(--healing-primary), var(--healing-secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--healing-shadow);
}

.image-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-btn {
    background: var(--healing-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--healing-secondary);
    transform: scale(1.1);
}

/* AI对话功能样式 - 优化版 */
.ai-chat-section {
    margin: 50px 0;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--healing-border);
    box-shadow: 0 6px 25px var(--healing-shadow);
}

.ai-chat-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 12px 35px var(--healing-shadow);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--healing-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.ai-chat-container:hover {
    box-shadow: 0 15px 40px var(--healing-shadow-hover);
    transform: translateY(-2px);
}

.chat-header {
    background: linear-gradient(135deg, var(--healing-primary) 0%, var(--healing-secondary) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    animation: avatarPulse 2s ease-in-out infinite;
}

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

.ai-info h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.ai-status {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(to bottom, #fafafa 0%, #f0f8ff 100%);
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--healing-border);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--healing-primary);
    border-radius: 3px;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: messageSlideIn 0.3s ease-out;
}

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

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, var(--healing-primary), var(--healing-secondary));
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--healing-accent), var(--healing-warm));
    color: white;
    margin-right: 0;
    margin-left: 12px;
}

.message-content {
    max-width: 70%;
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.ai-message .message-content {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    border: 1px solid var(--healing-primary);
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--healing-accent) 0%, var(--healing-warm) 100%);
    color: white;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid var(--healing-border);
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--healing-border);
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
}

#chatInput:focus {
    border-color: var(--healing-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.send-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--healing-primary), var(--healing-secondary));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-replies {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-reply-btn {
    padding: 8px 12px;
    border: 1px solid var(--healing-border);
    border-radius: 20px;
    background: white;
    color: var(--healing-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: var(--healing-primary);
    color: white;
    border-color: var(--healing-primary);
    transform: translateY(-2px);
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f0f0f0;
    border-radius: 18px;
    margin-bottom: 10px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--healing-primary);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* 沉浸式减压故事区域 */
.healing-stories-section {
    margin: 3rem 0;
    text-align: center;
}

.healing-stories-section h2 {
    color: var(--healing-text);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--healing-primary), var(--healing-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: var(--healing-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.8;
}

/* 沉浸式故事样式 - 优化版 */
.story-selection {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--healing-border);
    box-shadow: 0 8px 32px var(--healing-shadow);
    margin-bottom: 50px;
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.story-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--healing-border);
    border-radius: 18px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 6px 20px var(--healing-shadow);
    text-align: center;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px var(--healing-shadow-hover);
    border-color: var(--healing-primary);
    background: rgba(255, 255, 255, 0.98);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.story-card h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.story-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    font-style: italic;
}

.card-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.story-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    overflow: hidden;
}

/* 星空漂流瓶样式 */
.starfield-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.space-station {
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 400px;
    height: 300px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border-radius: 20px;
    border: 2px solid #3498db;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
}

.station-interior {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.radar-console {
    background: #1a252f;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #3498db;
}

.radar-screen {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #0a4d0a 0%, #001100 70%);
    border-radius: 50%;
    position: relative;
    border: 2px solid #00ff00;
    margin: 0 auto 10px;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 75px;
    background: linear-gradient(to top, transparent, #00ff00);
    transform-origin: bottom;
    transform: translate(-50%, -100%);
}

@keyframes radarSweep {
    0% { transform: translate(-50%, -100%) rotate(0deg); }
    100% { transform: translate(-50%, -100%) rotate(360deg); }
}

.radar-blip {
    position: absolute;
    top: 30%;
    right: 25%;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.console-text {
    color: #3498db;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.station-ai {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #3498db, #2980b9);
    border-radius: 50%;
    position: relative;
}

.ai-avatar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.ai-dialogue {
    color: #ecf0f1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.floating-bottle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-bottle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes bottleFloat {
    0%, 100% { transform: translate(-50%, -50%) rotateY(0deg) rotateX(5deg); }
    50% { transform: translate(-50%, -50%) rotateY(180deg) rotateX(-5deg); }
}

.bottle-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3), transparent);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

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

.bottle-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 15px 15px 25px 25px;
    border: 2px solid rgba(255,255,255,0.5);
    position: relative;
}

.bottle-message {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    height: 60px;
    background: rgba(255,255,255,0.8);
    border-radius: 5px;
    opacity: 0.7;
}

/* 水晶解谜场景样式 */
.crystal-puzzle-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.message-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
}

.message-scroll {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid #f39c12;
}

.message-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    font-family: serif;
}

.message-text {
    color: #34495e;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
}

.message-signature {
    text-align: right;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.crystal-workspace {
    flex: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.shattered-crystals {
    width: 40%;
    height: 300px;
    position: relative;
    border: 2px dashed rgba(255,255,255,0.5);
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
}

.crystal-fragment {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 15px currentColor;
}

.crystal-fragment:hover {
    transform: scale(1.1);
    z-index: 10;
}

.crystal-fragment:active {
    cursor: grabbing;
}

.crystal-target {
    width: 200px;
    height: 200px;
    border: 3px solid #f39c12;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.2), transparent);
    transition: all 0.3s ease;
}

.target-outline {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed rgba(243, 156, 18, 0.5);
    border-radius: 50%;
    animation: targetPulse 2s ease-in-out infinite;
}

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

.completion-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #f39c12;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.puzzle-instructions {
    text-align: center;
    color: #fff;
    padding: 1rem;
}

.progress-indicator {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #f39c12;
}

/* 传输场景样式 */
.transmission-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000428 0%, #004e92 100%);
    display: flex;
    flex-direction: column;
}

.telescope-view {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.earth-view {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4a90e2, #2c5aa0, #1a365d);
    position: relative;
    box-shadow: 0 0 50px rgba(74, 144, 226, 0.5);
    overflow: hidden;
}

.earth-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,30 Q40,20 60,35 T90,40 L90,100 L0,100 Z" fill="%23228B22" opacity="0.7"/></svg>');
    background-size: cover;
}

.city-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 60% 70%, rgba(255,255,0,0.3) 2px, transparent 3px),
                radial-gradient(circle at 40% 60%, rgba(255,255,0,0.3) 1px, transparent 2px),
                radial-gradient(circle at 80% 50%, rgba(255,255,0,0.3) 1px, transparent 2px);
    animation: cityTwinkle 3s ease-in-out infinite;
}

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

.target-window {
    position: absolute;
    top: 60%;
    left: 55%;
    width: 20px;
    height: 15px;
    background: rgba(255,255,0,0.8);
    border-radius: 2px;
    transition: all 0.5s ease;
}

.window-light {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(255,255,0,0.8), transparent);
    border-radius: 50%;
    animation: windowGlow 2s ease-in-out infinite;
}

@keyframes windowGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

.girl-silhouette {
    position: absolute;
    top: -10px;
    left: 5px;
    width: 10px;
    height: 15px;
    background: #333;
    border-radius: 50% 50% 0 0;
}

.transmission-controls {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
}

.hope-beam-generator {
    text-align: center;
}

.beam-emitter {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #3498db, #2980b9);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 1rem;
    transition: all 0.5s ease;
}

.beam-emitter.active {
    box-shadow: 0 0 50px #3498db;
    animation: beamPulse 1s ease-in-out infinite;
}

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

.beam-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.beam-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.beam-emitter.active .beam-particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 45%;
    width: 10px;
    height: 200%;
    background: linear-gradient(to top, #3498db, transparent);
    animation: beamShoot 2s ease-out infinite;
}

@keyframes beamShoot {
    0% { transform: translateY(100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

.transmission-btn, .blessing-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.transmission-btn:hover, .blessing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.blessing-input-area {
    max-width: 300px;
}

.blessing-input-area h3 {
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

#blessing-text {
    width: 100%;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    font-family: inherit;
    resize: none;
    margin-bottom: 1rem;
}

#blessing-text::placeholder {
    color: rgba(255,255,255,0.6);
}

.transmission-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #f39c12;
}

.success-message h2 {
    color: #f39c12;
    margin-bottom: 1rem;
}

.success-message p {
    color: #fff;
    margin-bottom: 2rem;
}

.crystal-reflection {
    background: linear-gradient(45deg, #3498db, #9b59b6);
    padding: 1rem;
    border-radius: 10px;
    color: #fff;
    font-style: italic;
    margin-bottom: 2rem;
}

.return-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.return-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* 雨夜茶屋样式 */
.teahouse-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    overflow: hidden;
}

#rain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.teahouse-interior {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.rain-window {
    width: 200px;
    height: 300px;
    background: linear-gradient(to bottom, #87ceeb 0%, #4682b4 100%);
    border: 10px solid #8b4513;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rain-window:hover {
    box-shadow: 0 0 30px rgba(135, 206, 235, 0.5);
}

.window-frame {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #8b4513;
}

.window-frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 2px;
    height: 100px;
    background: #8b4513;
    transform: translateX(-50%);
}

.rain-drops {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="%2387ceeb" opacity="0.7"/><circle cx="60" cy="20" r="1" fill="%2387ceeb" opacity="0.5"/><circle cx="80" cy="60" r="1" fill="%2387ceeb" opacity="0.8"/></svg>');
    animation: rainDrop 2s linear infinite;
}

@keyframes rainDrop {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

.window-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.3), transparent);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rain-window:hover .window-glow {
    opacity: 1;
}

.tea-master-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.tea-master {
    width: 150px;
    height: 200px;
    position: relative;
}

.master-silhouette {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #2c3e50, #34495e);
    border-radius: 50% 50% 0 0;
    position: relative;
}

.master-veil {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: rgba(255,255,255,0.3);
    border-radius: 50% 50% 0 0;
    transition: opacity 3s ease;
}

.master-hands {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: #d4af37;
    border-radius: 50%;
    transition: all 1s ease;
}

.master-hands.palm-up {
    transform: translateX(-50%) rotateX(45deg);
}

.master-hands.circle {
    border-radius: 50%;
    animation: handCircle 2s ease-in-out;
}

@keyframes handCircle {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2) rotate(180deg); }
}

.master-hands.sweep {
    animation: handSweep 1.5s ease-in-out;
}

@keyframes handSweep {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px) rotateZ(45deg); }
    100% { transform: translateX(-50%) translateY(0); }
}

.master-dialogue {
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    max-width: 250px;
}

.dialogue-text {
    color: #ecf0f1;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.tea-ceremony-area {
    background: rgba(139, 69, 19, 0.3);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(139, 69, 19, 0.5);
}

.tea-set {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.teapot {
    width: 80px;
    height: 100px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease;
}

.pot-body {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
}

.pot-spout {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 20px;
    height: 8px;
    background: #8b4513;
    border-radius: 0 50% 50% 0;
}

.pot-handle {
    position: absolute;
    top: 15px;
    left: -10px;
    width: 15px;
    height: 30px;
    border: 3px solid #8b4513;
    border-right: none;
    border-radius: 50% 0 0 50%;
}

.steam {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: linear-gradient(to top, rgba(255,255,255,0.7), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: steamRise 2s ease-in-out infinite;
}

@keyframes steamRise {
    0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.7; }
    100% { transform: translateX(-50%) translateY(-20px) scale(1.5); opacity: 0; }
}

.teapot:hover .steam {
    opacity: 1;
}

.tea-cup {
    width: 60px;
    height: 60px;
    position: relative;
    cursor: pointer;
}

.cup-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f4f4f4, #e0e0e0);
    border-radius: 0 0 50% 50%;
    border: 2px solid #ccc;
    position: relative;
    overflow: hidden;
}

.tea-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, #8b4513, #a0522d);
    transition: height 1s ease;
}

.stress-sediment {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    overflow: visible;
}

.stress-bubble {
    position: absolute;
    padding: 2px 6px;
    background: rgba(255,0,0,0.7);
    color: white;
    border-radius: 10px;
    font-size: 0.7rem;
    animation: bubbleFloat 3s ease-in-out infinite;
    transition: all 0.5s ease;
}

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

.stress-bubble.purified {
    background: rgba(0,255,0,0.7);
    animation: bubblePurify 1s ease-out;
}

@keyframes bubblePurify {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.purification-jar {
    width: 50px;
    height: 70px;
    position: relative;
    cursor: pointer;
}

.jar-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #daa520, #b8860b);
    border-radius: 10px 10px 20px 20px;
    border: 2px solid #8b7355;
    position: relative;
    overflow: hidden;
}

.healing-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.healing-petal {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff69b4;
    border-radius: 50% 0;
    animation: petalFall 4s ease-in-out infinite;
}

@keyframes petalFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100px) rotate(360deg); opacity: 0; }
}

@keyframes jarShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.ceremony-instructions {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.teahouse-completion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #27ae60;
    max-width: 500px;
}

.completion-message h2 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.completion-message p {
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.final-wisdom {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.final-wisdom p {
    color: #fff;
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}

#return-to-stories {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#return-to-stories:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* 治愈文案浮动效果 */
.healing-quote-float {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-style: italic;
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s ease;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    max-width: 80vw;
    text-align: center;
}

/* 时光蒲公英样式 */
.dandelion-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
}

.time-river {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.8), rgba(155, 89, 182, 0.8));
    border-radius: 50% 50% 0 0;
    overflow: hidden;
}

.river-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.1) 20px,
        rgba(255,255,255,0.1) 40px
    );
    animation: riverFlow 10s linear infinite;
}

@keyframes riverFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.memory-bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.3));
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bubbleFloat 6s ease-in-out infinite;
}

.memory-bubble:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
}

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

.bubble-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.memory-bubble:hover .bubble-content {
    opacity: 1;
}

.bubble-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.memory-bubble:hover .bubble-text {
    opacity: 1;
}

.magnetic-pointer {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80px;
    height: 120px;
    cursor: grab;
    transition: all 0.3s ease;
}

.magnetic-pointer:active {
    cursor: grabbing;
}

.pointer-rod {
    width: 8px;
    height: 80px;
    background: linear-gradient(to bottom, #8b4513, #a0522d);
    border-radius: 4px;
    margin: 0 auto;
    position: relative;
}

.pointer-magnet {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.magnetic-field {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dashed rgba(231, 76, 60, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: magneticPulse 2s ease-in-out infinite;
}

.magnetic-pointer:hover .magnetic-field {
    opacity: 1;
}

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

.analysis-station {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 400px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border-radius: 15px;
    border: 2px solid #3498db;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
    padding: 20px;
}

.station-screen {
    width: 100%;
    height: 200px;
    background: #000;
    border-radius: 10px;
    border: 2px solid #00ff00;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.memory-preview {
    width: 100%;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px 0 0 8px;
}

.preview-text {
    position: absolute;
    top: 50%;
    left: 70px;
    right: 10px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.3;
}

.shell-peeling-area {
    width: 100%;
    height: 100px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border: 2px dashed rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.shell-peeling-area.active {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.memory-shell {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
}

.shell-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #c0392b, #8b0000);
    border-radius: 50%;
    transition: all 1s ease;
    overflow: hidden;
}

.shell-cracks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,10 L80,90 M80,10 L20,90 M50,0 L50,100 M0,50 L100,50" stroke="%23fff" stroke-width="1" opacity="0.3"/></svg>');
    opacity: 0;
    transition: opacity 0.5s ease;
}

.shell-outer.cracking .shell-cracks {
    opacity: 1;
}

.shell-inner {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, #f39c12, #e67e22);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 1s ease;
}

.shell-outer.peeled .shell-inner {
    opacity: 1;
    transform: scale(1);
}

.shell-outer.peeled {
    opacity: 0.3;
    transform: scale(1.2);
}

.word-reconstruction-area {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.original-sentence {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
    font-style: italic;
}

.word-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 10px;
}

.word-slot {
    min-width: 60px;
    height: 30px;
    border: 2px dashed rgba(255,255,255,0.5);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    transition: all 0.3s ease;
}

.word-slot.filled {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
}

.alternative-words {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.word-option {
    background: rgba(52, 152, 219, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.word-option:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-2px);
}

.word-option.used {
    opacity: 0.5;
    cursor: not-allowed;
}

.reconstructed-sentence {
    color: #2ecc71;
    font-size: 0.9rem;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reconstructed-sentence.visible {
    opacity: 1;
}

.dandelion-garden {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: linear-gradient(to top, rgba(34, 139, 34, 0.3), transparent);
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.dandelion-pot {
    width: 80px;
    height: 100px;
    position: relative;
}

.pot-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-radius: 0 0 30px 30px;
    border: 2px solid #654321;
}

.pot-soil {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 10px;
    background: #3e2723;
    border-radius: 50%;
}

.dandelion-plant {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    opacity: 0;
    transition: all 2s ease;
}

.dandelion-plant.growing {
    opacity: 1;
}

.plant-stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(to top, #228b22, #32cd32);
    border-radius: 2px;
    transition: height 1s ease;
}

.dandelion-plant.growing .plant-stem {
    height: 40px;
}

.plant-leaves {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.dandelion-plant.growing .plant-leaves {
    opacity: 1;
}

.leaf {
    position: absolute;
    width: 15px;
    height: 8px;
    background: #228b22;
    border-radius: 50% 0;
}

.leaf:nth-child(1) {
    top: 0;
    left: 0;
    transform: rotate(-30deg);
}

.leaf:nth-child(2) {
    top: 0;
    right: 0;
    transform: rotate(30deg);
}

.leaf:nth-child(3) {
    bottom: 0;
    left: 5px;
    transform: rotate(-60deg);
}

.leaf:nth-child(4) {
    bottom: 0;
    right: 5px;
    transform: rotate(60deg);
}

.dandelion-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #fff, #f0f0f0);
    border-radius: 50%;
    opacity: 0;
    transition: all 1s ease 1s;
}

.dandelion-plant.growing .dandelion-head {
    opacity: 1;
}

.seed-crown {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: visible;
}

.seed {
    position: absolute;
    width: 2px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform-origin: bottom center;
}

.seed::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
}

.dandelion-head.ready-to-blow .seed {
    animation: seedSway 2s ease-in-out infinite;
}

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

.flying-seed {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.flying-seed::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -4px;
    width: 12px;
    height: 8px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.6), transparent);
    border-radius: 50%;
}

.flying-seed.floating {
    opacity: 1;
    animation: seedFly 8s ease-out forwards;
}

@keyframes seedFly {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.completion-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #9b59b6;
    max-width: 500px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.completion-message.visible {
    opacity: 1;
}

.completion-message h2 {
    color: #9b59b6;
    margin-bottom: 1rem;
}

.completion-message p {
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.transformation-summary {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.transformation-summary p {
    color: #fff;
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}

.dandelion-instructions {
    position: absolute;
    top: 5%;
    left: 5%;
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    max-width: 250px;
}

.instructions-title {
    color: #f39c12;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.instructions-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    line-height: 1.4;
}

.progress-tracker {
    position: absolute;
    top: 5%;
    right: 50%;
    transform: translateX(50%);
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    text-align: center;
}

.progress-title {
    color: #3498db;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.progress-steps {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.progress-step {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.progress-step.completed {
    background: #2ecc71;
    border-color: #27ae60;
}

.progress-step.active {
    background: #f39c12;
    border-color: #e67e22;
    animation: stepPulse 1s ease-in-out infinite;
}

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

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .healing-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card {
        padding: 20px;
    }
    
    .healing-stories-section h2 {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .healing-stories-section {
        padding: 2rem 1rem;
    }
    
    .story-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .story-card {
        padding: 1.5rem;
    }
    
    .space-station {
        width: 300px;
        height: 200px;
        bottom: 20px;
        left: 20px;
    }
    
    .crystal-puzzle-container {
        padding: 1rem;
    }
    
    .crystal-workspace {
        flex-direction: column;
        gap: 2rem;
    }
    
    .shattered-crystals {
        width: 100%;
        height: 200px;
    }
    
    .earth-view {
        width: 250px;
        height: 250px;
    }
    
    .transmission-controls {
        flex-direction: column;
        gap: 2rem;
    }
    
    .teahouse-interior {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }
    
    .rain-window {
        width: 150px;
        height: 200px;
    }
    
    .tea-ceremony-area {
        padding: 1rem;
    }
    
    .healing-quote-float {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .music-player {
        bottom: 10px;
        right: 10px;
        min-width: 250px;
    }
    
    .player-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .volume-control {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .notes-wall {
        padding: 20px;
        min-height: 300px;
    }
    
    .sticky-note {
        width: 150px;
        min-height: 100px;
        padding: 12px;
        font-size: 0.8rem;
    }
    
    /* AI对话移动端适配 */
    .ai-chat-section {
        padding: 0 10px;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .ai-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 10px;
    }
    
    .ai-info h3 {
        font-size: 1.2rem;
    }
    
    .chat-messages {
        height: 300px;
        padding: 15px;
    }
    
    .message-content {
        max-width: 85%;
        padding: 10px 14px;
    }
    
    .quick-replies {
        gap: 6px;
    }
    
    .quick-reply-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .healing-container {
        padding: 0 15px;
    }
    
    .healing-hero {
        padding: 40px 15px;
    }
    
    .healing-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .music-player {
        min-width: 220px;
        padding: 12px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
    }
    
    .volume-slider {
        width: 60px;
    }
}

/* 黑暗模式样式 */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .healing-main {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode .healing-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark-mode .healing-title,
body.dark-mode .healing-subtitle {
    color: #e0e0e0;
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .game-card {
    background: #2d2d2d;
    border: 1px solid #444;
    color: #e0e0e0;
}

body.dark-mode .game-card h3 {
    color: #e0e0e0;
}

body.dark-mode .music-player {
    background: #2d2d2d;
    border: 1px solid #444;
    color: #e0e0e0;
}

body.dark-mode .current-song {
    color: #b0b0b0;
}

body.dark-mode .sticky-note {
    background: #3a3a3a;
    border: 1px solid #555;
    color: #e0e0e0;
}

body.dark-mode .gallery-item img {
    border: 2px solid #444;
}

body.dark-mode .lightbox {
    background: rgba(0, 0, 0, 0.9);
}

body.dark-mode .lightbox-content {
    background: #2d2d2d;
    border: 1px solid #444;
}

body.dark-mode .close {
    color: #e0e0e0;
}

body.dark-mode .close:hover {
    color: #fff;
}

body.dark-mode header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid #444;
}

body.dark-mode .nav-links li a,
body.dark-mode .nav-icons a {
    color: #e0e0e0;
}

body.dark-mode .nav-links li a:hover {
    color: #87CEEB;
}

body.dark-mode footer {
    background: #1a1a1a;
    border-top: 1px solid #444;
}

body.dark-mode .footer-section h4 {
    color: #e0e0e0;
}

body.dark-mode .footer-section ul li a {
    color: #b0b0b0;
}

body.dark-mode .footer-section ul li a:hover {
    color: #87CEEB;
}

body.dark-mode .copyright {
    color: #888;
    border-top: 1px solid #444;
}

/* 浮动按钮样式 */
.floating-buttons {
    position: fixed;
    bottom: 35px;
    right: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 1000;
}

.floating-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.95), rgba(255, 182, 193, 0.95));
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(135, 206, 235, 1), rgba(255, 182, 193, 1));
}

.floating-btn:hover::before {
    opacity: 1;
}

.floating-btn:active {
    transform: translateY(-3px) scale(1.1);
    transition: all 0.1s ease;
}

/* 音乐播放器美化样式 */
.developer-music-player {
    width: 380px !important;
    max-height: 480px !important;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.95) 0%, rgba(255, 182, 193, 0.95) 100%) !important;
    backdrop-filter: blur(30px) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 20px 60px rgba(135, 206, 235, 0.3), 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    animation: playerSlideIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.developer-music-player .music-player-header {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.9) 0%, rgba(255, 182, 193, 0.9) 100%) !important;
    padding: 15px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    min-height: 55px !important;
    position: relative !important;
}

.developer-music-player .music-player-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    animation: shimmer 3s infinite !important;
    z-index: 0 !important;
}

.developer-music-player .player-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    flex: 1 !important;
    min-width: 0 !important;
    z-index: 1 !important;
    position: relative !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.developer-music-player .player-title i {
    font-size: 16px !important;
    color: #ffd700 !important;
    flex-shrink: 0 !important;
    animation: leafFloat 2s ease-in-out infinite !important;
}

.developer-music-player .player-controls {
    display: flex !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
    position: relative !important;
}

.developer-music-player .control-btn {
    width: 30px !important;
    height: 30px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.developer-music-player .control-btn:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.developer-music-player .control-btn.close-btn:hover {
    background: rgba(231, 76, 60, 0.8) !important;
    transform: scale(1.1) !important;
}

.developer-music-player .music-player-body {
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.developer-music-player .now-playing {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: white !important;
    font-size: 13px !important;
    margin-bottom: 15px !important;
    padding: 10px 15px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.developer-music-player .now-playing i {
    color: #ffd700 !important;
    animation: musicNote 1.5s ease-in-out infinite !important;
}

.developer-music-player .player-footer {
    padding: 15px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.developer-music-player .player-tips {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 12px !important;
    text-align: center !important;
    justify-content: center !important;
}

.developer-music-player .player-tips i {
    color: #ffd700 !important;
    animation: tipGlow 2s ease-in-out infinite !important;
}

/* 动画效果 */
@keyframes playerSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

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

@keyframes tipGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}