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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 游戏容器 */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 游戏标题 */
.game-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.game-header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: bold;
}

/* 游戏区块 */
.game-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.game-section h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.info-item p {
    margin-bottom: 8px;
    color: #555;
}

/* 天数显示 */
#day-display {
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff3cd;
    border-radius: 6px;
    border: 1px solid #ffeeba;
}

/* 屏幕样式 */
.screen {
    display: none;
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.screen.active {
    display: block;
}

.screen h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
}

.screen h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.screen p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1em;
    line-height: 1.8;
}

/* 选择按钮容器 */
.choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    font-size: 1.1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* 结果操作按钮 */
.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* 页脚 */
.game-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-container {
        margin: 10px;
        padding: 15px;
    }
    
    .game-header h1 {
        font-size: 2em;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .screen {
        padding: 20px;
    }
    
    .screen h2 {
        font-size: 1.5em;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.8em;
    }
    
    .game-section {
        padding: 15px;
    }
    
    #day-display {
        font-size: 1.5em;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active {
    animation: fadeIn 0.5s ease-out;
}

/* 选择按钮动画 */
.choices .btn {
    animation: slideIn 0.3s ease-out;
    animation-fill-mode: both;
}

.choices .btn:nth-child(1) { animation-delay: 0.1s; }
.choices .btn:nth-child(2) { animation-delay: 0.2s; }
.choices .btn:nth-child(3) { animation-delay: 0.3s; }
.choices .btn:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 属性显示样式 */
#character-attrs {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* 特殊信息样式 */
#world-special {
    color: #e67e22;
    font-weight: bold;
}