/* css/style.css */
:root {
    --primary: #6366f1;   /* 靛蓝 */
    --primary-hover: #4f46e5;
    --secondary: #10b981; /* 翡翠绿 */
    --danger: #ef4444;    /* 红色 */
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 通用组件 */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    font-size: 14px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--secondary); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-block { width: 100%; }

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
}
input:focus { border-color: var(--primary); }

/* 登录页样式 */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}
.auth-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
    width: 360px;
    text-align: center;
}

/* 游戏页样式 */
.game-header {
    background: white;
    padding: 15px 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.status-bar {
    background: white;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #6b7280;
}
.story-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    margin-bottom: 20px;
    animation: slideUp 0.4s ease;
}
#game-stage {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}
.game-controls {
    background: white;
    padding: 20px;
    display: grid;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}
.points-badge {
    background: #ecfdf5; color: #059669;
    padding: 5px 12px; border-radius: 20px;
    font-weight: bold; border: 1px solid #a7f3d0;
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 管理员表格 */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px; border-bottom: 1px solid #eee; }