/* --- 基础样式 --- */
:root {
    --primary-blue: #1a365d;
    --light-blue: #2b6cb0;
    --orange: #ed8936;
    --bg-gray: #f2f4f7; 
    --text-main: #2d3748;
}

body {
    background-color: var(--bg-gray);
    margin: 0;
    padding: 10px 0;
    font-family: -apple-system, "PingFang SC", sans-serif;
    display: flex;
    justify-content: center;
}

#app {
    width: 94%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 20px;
    box-sizing: border-box;
}

/* --- 1. 问卷页面 (Quiz Screen) 专属优化：拉开距离 --- */
#question-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-blue);
    line-height: 1.5;
    margin: 20px 0 30px 0; /* 增加题目上下的间距 */
}

#options .btn {
    display: block;
    width: 100%;
    padding: 18px 20px;   /* 增大点击区域，更适合手指点击 */
    margin-bottom: 16px;  /* 增大选项之间的垂直距离 */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    text-align: left;
    font-size: 16px;      /* 增大字号，看得更清楚 */
    line-height: 1.4;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

#options .btn:active {
    background-color: #edf2f7;
    transform: scale(0.98);
    border-color: var(--light-blue);
}

/* --- 2. 结果页面 (Result Screen) 专属优化：继续保持紧凑 --- */
.role-header {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.role-title { 
    color: var(--light-blue); 
    font-size: 1.15rem; /* 保持较小字号，避免臃肿 */
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 2px 0;
    display: block;
}

.role-id { 
    color: #2d3748; 
    font-size: 0.75rem; 
    font-family: 'Courier New', monospace;
    display: block;
    margin-top: 2px;
    font-weight: 600; /* 稍微加粗一点，增加笔画感 */
    letter-spacing: 0.5px;
    opacity: 1; /* 确保没有任何透明度遮盖 */
}

.role-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 5px 0 12px 0;
}

#res-img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    border-radius: 12px;
}

.info-row { 
    margin-bottom: 6px; 
    font-size: 13.5px;
    line-height: 1.4;
}

.label { font-weight: bold; color: #4a5568; }

.roast-box {
    background-color: #fffaf0;
    border: 1px dashed var(--orange);
    padding: 12px;
    margin: 12px 0;
    border-radius: 10px;
}

.rx-box {
    background: #f0f7ff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--light-blue);
}

/* --- 通用组件 --- */
.progress-container {
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    margin-bottom: 10px;
}

.progress-inner {
    height: 100%;
    background: var(--light-blue);
    width: 0;
    transition: width 0.3s;
}

.btn-restart {
    display: block;
    margin: 20px auto 0;
    padding: 8px 25px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #718096;
    font-size: 12px;
}

.footer {
    text-align: center;
    margin-top: 25px;
    color: #4a5568; /* 改为较深的灰色 */
    font-size: 11px;
    opacity: 0.8; /* 稍微给一点透明度保持高级感 */
}