/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Serif SC", "Microsoft YaHei", serif;
}

body {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #1a202c 100%);
    color: #e2e8f0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.2);
}

.title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #f7fafc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1rem;
    color: #a0aec0;
}

/* 游戏容器 */
.game-container {
    background: rgba(26, 32, 44, 0.9);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* 状态条 */
.status-bar {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.15);
}

.status-item {
    flex: 1;
}

.status-label {
    font-size: 0.9rem;
    color: #cbd5e0;
    display: block;
    margin-bottom: 6px;
}

.status-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #63b3ed;
}

.status-bar-fill {
    width: 100%;
    height: 10px;
    background: rgba(160, 174, 192, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.status-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    transition: width 0.5s ease;
}

.trust-inner {
    background: linear-gradient(90deg, #2f855a, #48bb78);
}

/* 故事区域 */
.story-area {
    min-height: 280px;
    line-height: 1.8;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 8px;
    white-space: pre-wrap;
    font-size: 1rem;
    color: #edf2f7;
}

/* 选择按钮区域 */
.choices-area {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
}

.choice-btn {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border: 1px solid rgba(99, 179, 237, 0.3);
    color: #e2e8f0;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.choice-btn:hover {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    border-color: rgba(99, 179, 237, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.choice-btn:active {
    transform: translateY(0);
}

.choice-label {
    font-weight: bold;
    color: #63b3ed;
    margin-right: 10px;
}

/* 输入区域 */
.input-area {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(160, 174, 192, 0.4);
    border-radius: 6px;
    background: rgba(45, 55, 72, 0.8);
    color: #f7fafc;
    font-size: 1rem;
}

#user-input:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
}

#submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submit-btn:hover {
    background: linear-gradient(135deg, #2b6cb0 0%, #2c5282 100%);
    transform: translateY(-2px);
}

/* 快速操作按钮 */
.quick-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 8px 16px;
    background: rgba(74, 85, 104, 0.8);
    border: 1px solid rgba(160, 174, 192, 0.3);
    border-radius: 6px;
    color: #cbd5e0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background: rgba(99, 179, 237, 0.3);
    border-color: rgba(99, 179, 237, 0.6);
    color: #e2e8f0;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .title {
        font-size: 2rem;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .story-area {
        font-size: 0.95rem;
    }
}