* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}
body {
    background-color: #f8f9fa;
    padding-bottom: 100px;
}
.header {
    background-color: #343a40;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.exam-info {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.info-card h3 {
    color: #343a40;
    margin-bottom: 10px;
    font-size: 18px;
}
.info-card p {
    color: #6c757d;
    line-height: 1.5;
    font-size: 14px;
}
.exam-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 题目导航样式 */
.question-nav {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.nav-title {
    font-weight: bold;
    color: #343a40;
    margin-bottom: 10px;
    font-size: 16px;
}
.nav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nav-item {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.nav-item:hover {
    background-color: #e9ecef;
}
.nav-item.answered {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.nav-item.marked {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}
.nav-legend {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 14px;
    color: #6c757d;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}
/* 题目展示样式 */
.question-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}
.question-number {
    font-weight: bold;
    color: #343a40;
    font-size: 16px;
}
.question-score {
    color: #6c757d;
    font-size: 14px;
}
.question-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #212529;
    font-size: 15px;
}
.option-list {
    margin-bottom: 20px;
}
.option-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.option-item:hover {
    background-color: #f8f9fa;
}
.option-item.selected {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
}
.option-item input {
    margin-right: 8px;
    cursor: pointer;
}
.question-action {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.mark-btn {
    background-color: #ffc107;
    color: #212529;
}
.mark-btn:hover {
    background-color: #e0a800;
}
/* 控制区样式 */
.control-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.timer {
    font-weight: bold;
    color: #dc3545;
    font-size: 16px;
}
.control-btns {
    display: flex;
    gap: 10px;
}
.control-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.prev-btn, .next-btn {
    background-color: #007bff;
    color: #fff;
}
.prev-btn:hover, .next-btn:hover {
    background-color: #0069d9;
}
.pause-btn {
    background-color: #6c757d;
    color: #fff;
}
.pause-btn:hover {
    background-color: #5a6268;
}
.cancel-btn {
    background-color: #dc3545;
    color: #fff;
}
.cancel-btn:hover {
    background-color: #c82333;
}
.submit-btn {
    background-color: #28a745;
    color: #fff;
}
.submit-btn:hover {
    background-color: #218838;
}
/* 结果页样式 */
.result-container {
    display: none;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
.result-header {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}
.result-score {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}
.result-desc {
    color: #6c757d;
    font-size: 14px;
}
.wrong-list {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.wrong-title {
    font-size: 18px;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}
.wrong-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}
.wrong-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.wrong-question {
    margin-bottom: 10px;
    font-weight: bold;
    color: #212529;
}
.wrong-user-answer {
    margin-bottom: 5px;
    color: #dc3545;
    font-size: 14px;
}
.wrong-correct-answer {
    margin-bottom: 5px;
    color: #28a745;
    font-size: 14px;
}
.wrong-analysis {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}
/* 加载中样式 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 18px;
    color: #343a40;
}