body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}
.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 600px;
    min-height: 90vh;
}
h1 {
    margin-bottom: 20px;
}
button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    font-size: 14px;
    cursor: pointer;
}
button:hover {
    background-color: #45a049;
}
p {
    word-wrap: break-word;
    text-align: center;
}
input[type="radio"], input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px; /* 添加间距 */
}
label {
    font-size: 18px;
    margin-left: 10px;
}
.option {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左对齐 */
    margin: 10px 0;
    padding-left: 25%; /* 距离左边25%位置 */

    white-space: nowrap; /* 防止换行 */
}
.option label {
    white-space: normal; /* 允许标签换行 */
}
#questionContainer {
    text-align: center; /* 确保题目和按钮居中对齐 */
}
#questionContainer .option {
    text-align: left; /* 确保选项左对齐 */
}
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25%;
}
.question-header h2, .question-header #scoreContainer {
    font-size: 19px; /* 设置与题目一致的字体大小 */
    font-weight: bold; /* 设置加粗 */
}
#scoreContainer {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-left: auto; /* 确保得分右对齐 */
}
#scoreContainer p {
    margin: 0; /* 去掉默认的段落间距 */
}
#jumpContainer {
    margin-top: 20px;
}
#jumpInput {
    padding: 5px;
    width: 100px;
    margin-right: 10px;
}
.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}
.footer a {
    color: #007BFF;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 10px; /* 添加右边距，避免遮挡文本 */
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2196F3;
}
input:checked + .slider:before {
    transform: translateX(26px);
}
#timerContainer {
    font-size: 18px;
    margin-left: 10px; /* 增加与快速刷题滑动开关之间的间距 */
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
/* 登录界面美化 */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0e7ff 0%, #f5f5f5 100%);
}
.login-box {
    background: #fff;
    padding: 40px 32px 32px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.10), 0 1.5px 4px rgba(0,0,0,0.06);
    width: 340px;
    max-width: 90vw;
    transition: box-shadow 0.2s;
}
.login-box:hover {
    box-shadow: 0 12px 40px rgba(25, 118, 210, 0.16), 0 2px 8px rgba(0,0,0,0.10);
}
.login-box h2 {
    text-align: center;
    margin-bottom: 28px;
    color: #1976d2;
    letter-spacing: 2px;
    font-weight: 700;
}
.login-box input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1.5px solid #e3e8f0;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}
.login-box input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px #e3f2fd;
    background: #fff;
}
.login-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}
.login-box button:hover {
    background: linear-gradient(90deg, #1565c0 0%, #64b5f6 100%);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.12);
}
.login-box .error {
    color: #d32f2f;
    text-align: center;
    margin-bottom: 14px;
    font-size: 15px;
    min-height: 20px;
}
@media (max-width: 480px) {
    .login-box {
        padding: 24px 8vw;
        width: 96vw;
    }
    .login-box h2 {
        font-size: 22px;
    }
}
