/* --- 全局和基础样式 --- */

/* 让整个页面充满浏览器窗口，并使用柔和的背景色 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* 优先使用系统默认字体，体验更好 */
    background-color: #f4f4f9; /* 浅灰色背景 */
    color: #333; /* 深灰色文字 */
    display: flex; /* 使用Flexbox布局，轻松实现垂直居中 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    min-height: 100vh; /* 最小高度为整个屏幕的高度 */
    margin: 0; /* 去掉 body 的默认边距 */
}

/* --- 核心容器样式 --- */

/* 刷题卡片的主体 */
.quiz-container {
    background-color: white; /* 白色背景 */
    padding: 20px 25px; /* 内部留白，上下20px，左右25px */
    border-radius: 12px; /* 圆角边框 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 添加一点阴影，让卡片有立体感 */
    width: 90%; /* 宽度占屏幕的90% */
    max-width: 500px; /* 在电脑等大屏幕上，最大宽度不超过500px，防止过宽 */
    box-sizing: border-box; /* 让padding和border不计入总宽度，布局更方便 */
}

/* --- 元素样式 --- */

/* 题干文本 */
#question-text {
    font-size: 1.2em; /* 字体稍大一些 */
    font-weight: bold; /* 加粗 */
    margin-bottom: 20px; /* 和选项之间留出距离 */
    line-height: 1.5; /* 增加行高，阅读更舒适 */
}

/* 选项按钮的容器 */
#options-container {
    display: flex;
    flex-direction: column; /* 让选项按钮垂直排列 */
    gap: 12px; /* 选项之间的间距 */
}

/* 选项按钮的通用样式 */
.option-btn {
    display: block; /* 块级元素，占满整行 */
    width: 100%;
    padding: 14px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: left; /* 文字左对齐 */
    font-size: 1em;
    cursor: pointer; /* 鼠标悬浮时显示小手图标 */
    transition: background-color 0.2s, border-color 0.2s; /* 添加过渡效果，让变化更平滑 */
}

/* 鼠标悬浮在未禁用的按钮上时的效果 */
.option-btn:hover:not([disabled]) {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* 按钮被禁用时的样式 */
.option-btn:disabled {
    cursor: not-allowed; /* 鼠标悬浮时显示禁止图标 */
    opacity: 0.7; /* 透明度降低 */
}

/* --- 交互状态样式 --- */

/* 回答正确时，选项按钮的样式 */
.option-btn.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    font-weight: bold;
}

/* 回答错误时，用户选择的那个按钮的样式 */
.option-btn.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* 反馈信息（对错提示和解析）的容器 */
#feedback-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1em;
}

/* 答案解析的样式 */
.explanation {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}

/* “下一题”按钮的样式 */
#next-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background-color: #007bff; /* 蓝色主色调 */
    color: white; /* 白色文字 */
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* 鼠标悬浮在“下一题”按钮上时的效果 */
#next-btn:hover {
    background-color: #0056b3; /* 颜色加深 */
}```
