@charset "UTF-8";

/* 引用之前的主样式，保持一致性 */
/* 如果路径不同，请根据实际情况修改 ../qhub/exam-style.css */
/* 这里我们假设您可能想完全独立，所以我直接复制核心样式并微调 */

body {
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", "Helvetica Neue", Arial, sans-serif;
    background-color: #fff0f0; /* 浅粉色背景，区分于正式考试 */
    color: #333;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
}

/* 顶部条 (绿色，代表练习模式) */
#timer-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #27ae60; /* 绿色背景 */
    color: white;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

#timer-display {
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 2px;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 15px;
}

#home-btn {
    position: absolute;
    left: 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    background: rgba(0,0,0,0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h1 { color: #c0392b; text-align: center; margin-bottom: 30px; border-bottom: 2px solid #fadbd8; padding-bottom: 20px; }

/* 题目卡片 */
.question-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
}

.question-header {
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #7f8c8d;
}

.type-tag {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 10px;
    font-weight: bold;
}

.question-text {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.target-word {
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: #e74c3c;
    color: #c0392b;
}

/* 选项 */
.options {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }

.options label {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.options label:hover { background: #fce4ec; }
.options input { margin-right: 10px; }

/* 结果区 */
.result-box {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    background: #f0f4c3; /* 浅绿 */
    border: 1px solid #dce775;
    color: #33691e;
}
.result-box.error {
    background: #ffcdd2; /* 浅红 */
    border: 1px solid #ef9a9a;
    color: #b71c1c;
}

/* 提交按钮 */
#submit-btn {
    display: block; width: 100%; padding: 15px; 
    background: #c0392b; color: white; font-size: 1.2em; border: none; border-radius: 8px; cursor: pointer; margin-top: 30px; font-weight: bold;
}
#submit-btn:hover { background: #a93226; }

#score-board {
    display: none; text-align: center; margin-bottom: 30px; padding: 20px; background: #34495e; color: white; border-radius: 8px;
}
