/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #324664;
}

.screen {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.hidden {
    display: none;
}

h1 {
    color: #4682b4;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 免责声明页面 */
#disclaimer-screen {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    padding: 40px;
}

.disclaimer-content {
    text-align: left;
    margin: 30px 0;
    line-height: 1.6;
    background: #e6f4ea;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #4682b4;
}

.disclaimer-content p {
    margin-bottom: 10px;
}

#agree-btn {
    background: #4682b4;
    color: #f0f5ff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#agree-btn:hover {
    background: #5a92c8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* 主菜单 */
.subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #324664;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.menu-btn {
    background: #4682b4;
    color: #f0f5ff;
    border: none;
    padding: 20px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.menu-btn:hover {
    background: #5a92c8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* 返回按钮 */
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4682b4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a92c8;
    transform: translateY(-2px);
}

/* 焦虑自测页面 */
#anxiety-test-screen {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    padding: 30px;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 20px;
    background: #aac5e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4682b4;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    margin: 10px 0;
    font-size: 1.1rem;
}

.question {
    font-size: 1.4rem;
    margin: 30px 0;
    color: #324664;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto;
}

.option-btn {
    background: #4682b4;
    color: #f0f5ff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover, .option-btn.selected {
    background: #6aa4d6;
    transform: translateY(-2px);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 30px auto;
}

.nav-btn {
    background: #4682b4;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #5a92c8;
}

.nav-btn:disabled {
    background: #a0b8d4;
    cursor: not-allowed;
    transform: none;
}

/* 测试结果页面 */
#test-result-screen {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    padding: 30px;
}

.result-score {
    font-size: 1.8rem;
    margin: 20px 0;
}

.result-interpretation {
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
}

.result-interpretation.low {
    background: #e6f4ea;
    color: #64c864;
    border: 2px solid #64c864;
}

.result-interpretation.medium {
    background: #fff4e6;
    color: #f0c864;
    border: 2px solid #f0c864;
}

.result-interpretation.high {
    background: #f4e6e6;
    color: #dc6464;
    border: 2px solid #dc6464;
}

.advice-box {
    background: #e6f4ea;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    border: 2px solid #4682b4;
}

.advice-box p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 呼吸练习页面 */
#breathing-exercise-screen {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    padding: 30px;
    text-align: center;
}

.breathing-instructions {
    margin: 20px 0;
}

.breathing-instructions p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.breathing-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.breathing-circle.inhale {
    background: radial-gradient(circle, #99ccff, #66a3ff);
    box-shadow: 0 0 30px rgba(100, 180, 255, 0.7);
    transform: scale(1);
}

.breathing-circle.hold {
    background: radial-gradient(circle, #ccffcc, #99ff99);
    box-shadow: 0 0 30px rgba(150, 220, 150, 0.7);
    transform: scale(1.2);
}

.breathing-circle.exhale {
    background: radial-gradient(circle, #ffd699, #ffcc66);
    box-shadow: 0 0 30px rgba(255, 200, 100, 0.7);
    transform: scale(0.8);
}

.breathing-phase {
    font-size: 2rem;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.breathing-timer {
    font-size: 1.5rem;
    margin-top: 20px;
}

/* 填色游戏页面 */
#coloring-game-screen {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    padding: 30px;
}

.coloring-instructions {
    margin-bottom: 20px;
}

/* 新增容器样式 */
.coloring-container {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.coloring-canvas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    position: relative;
}

.coloring-shape {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.coloring-shape:hover {
    transform: scale(1.1);
}

.coloring-shape circle, 
.coloring-shape rect, 
.coloring-shape polygon {
    stroke: #b4b4b4;
    stroke-width: 2;
}

.coloring-shape.filled circle, 
.coloring-shape.filled rect, 
.coloring-shape.filled polygon {
    stroke: rgba(0,0,0,0.3);
}

/* 气球游戏页面 */
#balloon-pop-screen {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    padding: 30px;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.balloon-pop-instructions {
    margin-bottom: 20px;
}

.balloon {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.balloon:hover {
    transform: scale(1.1);
}

.balloon-circle {
    border-radius: 50%;
    position: relative;
}

.balloon-highlight {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.balloon-string {
    position: absolute;
    background: #324664;
}

.balloon.pop-animation .balloon-circle {
    animation: popAnimation 0.5s forwards;
}

@keyframes popAnimation {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* 自然声音页面 */
#nature-sounds-screen {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    padding: 30px;
}

.nature-sounds-instructions {
    margin-bottom: 30px;
}

.sound-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 30px;
}

.sound-btn {
    background: #4682b4;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sound-btn:hover, .sound-btn.active {
    background: #5a92c8;
    transform: translateY(-2px);
}

.sound-btn:disabled {
    background: #a0b8d4;
    cursor: not-allowed;
}

.current-sound {
    font-size: 1.2rem;
    margin: 20px 0;
}

.sound-wave {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 20px auto;
    position: relative;
    background: radial-gradient(circle, #4682b4, #aac5e0);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.stop-btn {
    background: #dc6464;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.stop-btn:hover {
    background: #e67878;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .screen {
        padding: 15px;
    }
    
    .menu-buttons {
        width: 100%;
    }
    
    .question {
        font-size: 1.2rem;
    }
    
    .breathing-circle {
        width: 200px;
        height: 200px;
    }
    
    #balloon-pop-screen {
        height: 60vh;
    }
}