/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#game-header {
    text-align: center;
    margin-bottom: 20px;
}

#game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#game-header h2 {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-weight: normal;
}

#mood-selection {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#mood-selection h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.mood-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.mood-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.mood-btn[data-mood="anxiety"] {
    background: linear-gradient(45deg, #0f3460, #1a5d9e);
    color: #a3d5ff;
}

.mood-btn[data-mood="calm"] {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    color: #c8e6c9;
}

.mood-btn[data-mood="anger"] {
    background: linear-gradient(45deg, #c62828, #f44336);
    color: #ffcdd2;
}

.mood-btn[data-mood="sadness"] {
    background: linear-gradient(45deg, #4a148c, #7b1fa2);
    color: #e1bee7;
}

#game-canvas {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-info {
    display: flex;
    gap: 20px;
}

.control-info p {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.game-modes {
    display: flex;
    gap: 10px;
}

.game-modes button {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-modes button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.game-modes button:active {
    transform: scale(0.95);
}

#emotional-feedback {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#feedback-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* 粒子效果相关样式 */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.explosion {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cloud {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #game-container {
        padding: 10px;
    }
    
    #game-header h1 {
        font-size: 2rem;
    }
    
    .mood-options {
        flex-direction: column;
        align-items: center;
    }
    
    .mood-btn {
        width: 80%;
        margin-bottom: 10px;
    }
    
    #game-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .control-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .control-info p {
        margin: 5px;
    }
    
    .game-modes {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .game-modes button {
        margin: 5px;
    }
}

/* 针对小屏幕设备的额外优化 */
@media (max-width: 480px) {
    #game-container {
        padding: 5px;
    }
    
    #game-header h1 {
        font-size: 1.5rem;
    }
    
    #game-header h2 {
        font-size: 1rem;
    }
    
    #mood-selection h3 {
        font-size: 1.2rem;
    }
    
    .mood-btn {
        width: 90%;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    #game-controls {
        padding: 10px 15px;
    }
    
    .control-info p {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .game-modes button {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 3px;
    }
    
    #feedback-text {
        font-size: 1rem;
    }
}