/* 全局样式 */
:root {
    --primary-color: #4a6fff;
    --primary-gradient: linear-gradient(135deg, #4a6fff 0%, #6a8eff 100%);
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --success-color-dark: #218838;
    --danger-color: #dc3545;
    --danger-gradient: linear-gradient(135deg, #dc3545 0%, #e06276 100%);
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-color: #333;
    --text-color-light: #6c757d;
    --background-color: #fff;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --header-height: 70px;
    --footer-height: 60px;
    --content-padding: 24px;
    --mobile-padding: 16px;
}

body {
    font-family: var(--font-family);
    background-color: #f5f7fa;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header 样式 */
.header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header h1 i {
    margin-right: 10px;
}

/* 主内容区域 */
.main-content {
    max-width: 1000px;
    width: 100%;
    padding: var(--content-padding);
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    margin: 30px 20px;
    border-radius: var(--border-radius-lg);
    position: relative;
}

/* 设置面板样式 */
.settings-panel {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: var(--dark-gray);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    position: relative;
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.section-title:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* 设置项样式 */
.settings-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
}

.setting-item label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.setting-item label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.setting-item select {
    padding: 12px 14px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px top 50%, 0 0;
    background-size: 0.65em auto, 100%;
    transition: var(--transition);
    font-family: var(--font-family);
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.setting-item select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.2);
}

/* 按钮样式 */
.start-button, .next-button, .report-button, .answerForm button[type="submit"] {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.start-button {
    background: var(--primary-gradient);
    color: white;
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
}

.start-button i {
    margin-right: 8px;
}

.next-button {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.95rem;
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.next-button i {
    margin-right: 8px;
}

.next-button:hover {
    transform: translateY(-2px);
    background-color: #3a5fe0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 最后一题的下一题按钮样式 */
.next-button.completed {
    background-color: #28a745;
    min-width: 280px;
}

.next-button.completed:hover {
    background-color: #218838;
}

.report-button {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.95rem;
    margin-top: 20px;
}

.report-button i {
    margin-right: 8px;
}

.answerForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.95rem;
    margin-top: 20px;
    width: 100%;
    padding: 12px 20px;
}

.answerForm button[type="submit"] i {
    margin-right: 8px;
}

.answerForm button[type="submit"]:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.7;
}

.start-button:hover, .next-button:hover, .report-button:hover, .answerForm button[type="submit"]:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.start-button:active, .next-button:active, .report-button:active, .answerForm button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 问题部分样式 */
.questions-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.question {
    padding: 24px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.question h2 {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 500;
}

.question h1 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--dark-gray);
}

.answerForm div {
    margin-bottom: 10px;
}

.answerForm label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.answerForm input[type="radio"] {
    margin-right: 10px;
}

.question-result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
    display: none; /* 默认隐藏，提交后显示 */
}

.question-result.show {
    display: block;
}

.result p {
    margin: 10px 0;
}

.result p[style*="color:green"] {
    color: var(--success-color) !important;
    font-weight: 500;
}

.result p[style*="color:red"] {
    color: var(--danger-color) !important;
    font-weight: 500;
}

/* 底部样式 */
.footer {
    background-color: var(--dark-gray);
    color: white;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.telegram-link {
    color: #4a6fff;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.telegram-link:hover {
    color: #6a8eff;
    text-decoration: underline;
}

.telegram-link i {
    margin-right: 5px;
}

/* 选项容器相关样式 */
.options-container {
    margin-top: 20px;
    margin-bottom: 25px;
}

.option-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.option-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.option-container label {
    flex: 1;
    min-width: 200px;
    font-weight: 400;
    font-size: 1rem;
    padding-left: 5px;
    color: #333;
    display: flex;
    align-items: flex-start;
}

.option-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.option-original {
    width: 100%;
}

.option-container input {
    margin-right: 10px;
    position: absolute;
    opacity: 0;
}

.option-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.option-container.selected {
    background-color: rgba(74, 111, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* 多选题选项选中效果 */
.option-container input[type="checkbox"]:checked + label .option-prefix {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 选项前缀样式 */
.option-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background-color: #f5f7fa;
    color: #666;
    font-weight: 500;
    margin-right: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.option-container.selected .option-prefix {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 选项的翻译样式 */
.translated-content-option {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
    color: var(--primary-color);
    font-style: italic;
    display: none; /* 默认隐藏，翻译后显示 */
    width: 100%; /* 确保占据整行 */
    font-size: 0.95rem;
    line-height: 1.5;
    background-color: rgba(74, 111, 255, 0.05);
    padding: 8px 10px;
    border-radius: 6px;
}

/* 已翻译的按钮样式 */
.translate-option-button.translated {
    background-color: #eef1f8;
    color: var(--success-color);
}

/* 选项翻译按钮样式 */
.translate-option-button {
    background-color: #f5f7fa;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    align-self: flex-start;
    white-space: nowrap;
}

.translate-option-button i {
    margin-right: 5px;
}

.translate-option-button:hover {
    background-color: #eef1f8;
    color: var(--primary-color);
}

.translate-option-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.translate-option-button .loading {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

/* 密码验证样式 */
.auth-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.auth-container {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 20px;
}

.auth-logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

.auth-container h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--dark-gray);
    font-weight: 600;
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light);
}

.auth-container input[type="password"] {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    box-sizing: border-box;
    transition: var(--transition);
}

.auth-container input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.2);
}

.auth-container button {
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container button i {
    margin-right: 8px;
}

.auth-container button:hover {
    box-shadow: 0 4px 12px rgba(74, 111, 255, 0.3);
    transform: translateY(-2px);
}

.error-message {
    color: var(--danger-color);
    margin-top: 15px;
    font-size: 0.9rem;
}

/* 关闭按钮样式 */
.abandon-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: none;
    color: var(--dark-gray);
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.abandon-button:hover {
    background-color: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

/* 解释部分样式 */
.explanation {
    background-color: #f0f4ff;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    border-left: 3px solid var(--primary-color);
}

/* 翻译按钮样式 */
.translate-button, .translate-option-button {
    padding: 8px 12px;
    background-color: #f0f4ff;
    color: var(--primary-color);
    border: 1px solid rgba(74, 111, 255, 0.3);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
}

.translate-button i, .translate-option-button i {
    margin-right: 6px;
}

.translate-button:hover, .translate-option-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 下载按钮样式 */
.download-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.download-button i {
    margin-right: 6px;
}

.download-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.download-button.disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.7;
}

/* 报告部分样式 */
.report-header {
    background: linear-gradient(135deg, #4a6fff 0%, #6a8eff 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 媒体查询 */
@media (max-width: 992px) {
    .main-content {
        margin: 20px 15px;
    }
    
    .settings-section {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --content-padding: 20px;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .main-content {
        margin: 15px 10px;
        padding: 20px;
    }
    
    .settings-panel {
        padding: 20px;
    }
    
    .question {
        padding: 20px;
    }
    
    .question h1 {
        font-size: 1.15rem;
    }
    
    .option-container {
        padding: 14px 16px;
    }
    
    .option-prefix {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .translate-option-button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .translated-content-option {
        padding-left: 38px;
    }
    
    .option-container label {
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    :root {
        --content-padding: 16px;
    }
    
    body {
        font-size: 0.95rem;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .main-content {
        margin: 10px;
        padding: 16px;
    }
    
    .settings-panel {
        padding: 16px;
    }
    
    .settings-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .setting-item label {
        font-size: 0.95rem;
    }
    
    .setting-item select {
        padding: 10px 12px;
    }
    
    .start-button, .next-button, .report-button {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
    
    .question {
        padding: 16px;
    }
    
    .question h2 {
        font-size: 0.95rem;
    }
    
    .question h1 {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }
    
    .option-container {
        padding: 12px 14px;
    }
    
    .option-container label {
        font-size: 0.95rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .option-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .translate-option-button {
        margin-left: 38px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .option-prefix {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
        margin-top: 2px;
    }
    
    .report-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .report-header h1 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .download-button {
        width: 100%;
    }
    
    .action-buttons {
        width: 100%;
    }
    
    .action-buttons button {
        width: 100%;
        padding: 14px 20px;
    }
    
    .next-button.completed {
        min-width: unset;
        width: 100%;
        padding: 14px 10px;
        font-size: 0.9rem;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #5a7fff;
        --primary-gradient: linear-gradient(135deg, #5a7fff 0%, #7a9eff 100%);
        --text-color: #f0f0f0;
        --text-color-light: #adb5bd;
        --background-color: #222;
        --dark-gray: #f0f0f0;
        --light-gray: #333;
        --medium-gray: #444;
    }
    
    body {
        background-color: #1a1a1a;
    }
    
    .main-content {
        background-color: #2a2a2a;
    }
    
    .settings-panel {
        background-color: #333;
    }
    
    .setting-item select {
        background-color: #333;
        color: var(--text-color);
        border-color: #444;
    }
    
    .option-container {
        background-color: #2a2d35;
        border-color: #3a3e48;
    }
    
    .option-container label {
        color: #e0e0e0;
    }
    
    .option-prefix {
        background-color: #3a3e48;
        color: #ccc;
        border-color: #4a4e58;
    }
    
    .option-container.selected {
        background-color: rgba(74, 111, 255, 0.15);
    }
    
    .option-container.selected .option-prefix {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .explanation {
        background-color: #2c3040;
    }
    
    .question {
        background-color: #2a2a2a;
        border-left-color: var(--primary-color);
    }
    
    .auth-container {
        background-color: #2a2a2a;
    }
    
    .auth-container input[type="password"] {
        background-color: #333;
        color: var(--text-color);
        border-color: #444;
    }
    
    .abandon-button {
        background-color: #333;
        color: #f0f0f0;
    }
    
    .translate-button, .translate-option-button {
        background-color: #3a3e48;
    }
    
    .translate-option-button:hover {
        background-color: #434959;
        color: var(--primary-color);
    }
    
    .translate-option-button.translated {
        background-color: rgba(40, 167, 69, 0.2);
        color: #7fdb98;
    }
    
    .translated-content-option {
        border-top-color: #3a3e48;
        background-color: rgba(74, 111, 255, 0.1);
    }
    
    .download-button {
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .download-button:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #bbc1cd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9aa0ad;
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-track {
        background: #333;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #555;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #777;
    }
}

/* 报告页面样式 */
.report-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.score-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.score-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(74, 111, 255, 0.2);
    min-width: 200px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.score-percentage {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.score-label {
    font-size: 1.2rem;
    font-weight: 500;
}

.incorrect-questions-section {
    margin-top: 20px;
}

.incorrect-questions-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.incorrect-questions-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-question {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--danger-color);
}

.review-question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.question-number {
    font-weight: 500;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-content {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.answers-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.incorrect-answer {
    color: var(--danger-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.correct-answer {
    color: var(--success-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .score-card {
        padding: 25px 30px;
    }
    
    .score-value {
        font-size: 2rem;
    }
    
    .score-percentage {
        font-size: 1.5rem;
    }
    
    .review-question {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .score-card {
        padding: 20px;
    }
    
    .score-value {
        font-size: 1.8rem;
    }
    
    .score-percentage {
        font-size: 1.3rem;
    }
    
    .score-label {
        font-size: 1rem;
    }
    
    .incorrect-questions-section h2 {
        font-size: 1.1rem;
    }
    
    .question-content {
        font-size: 1rem;
    }
}

/* 错题回顾选项样式 */
.review-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.review-option {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    display: flex;
    align-items: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-option.incorrect-option {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

.review-option.correct-option {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
}

.option-key {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-color-light);
}

.option-value {
    flex: 1;
}

.translated-question, 
.translated-option, 
.translated-explanation {
    margin-top: 10px;
    padding: 12px;
    background-color: rgba(74, 111, 255, 0.05);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    font-style: italic;
}

.all-correct {
    text-align: center;
    padding: 30px;
    background-color: rgba(40, 167, 69, 0.05);
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.all-correct h2 {
    color: var(--success-color);
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (prefers-color-scheme: dark) {
    .review-option {
        background-color: #333;
    }
    
    .review-option.incorrect-option {
        background-color: rgba(220, 53, 69, 0.2);
    }
    
    .review-option.correct-option {
        background-color: rgba(40, 167, 69, 0.2);
    }
    
    .translated-question, 
    .translated-option, 
    .translated-explanation {
        background-color: rgba(90, 127, 255, 0.1);
    }
    
    .all-correct {
        background-color: rgba(40, 167, 69, 0.1);
    }
}

/* 题目文本和翻译样式 */
.question-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.question-text h1 {
    margin-top: 0;
    margin-bottom: 0;
}

.translated-content {
    background-color: rgba(74, 111, 255, 0.05);
    padding: 16px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.translated-content h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    font-style: italic;
}

.translated-content-option {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
    color: var(--primary-color);
    font-style: italic;
    display: none; /* 默认隐藏，翻译后显示 */
    width: 100%; /* 确保占据整行 */
    font-size: 0.95rem;
    line-height: 1.5;
    background-color: rgba(74, 111, 255, 0.05);
    padding: 8px 10px;
    border-radius: 6px;
}

@media (prefers-color-scheme: dark) {
    .translated-content-option {
        border-top-color: #3a3e48;
        background-color: rgba(74, 111, 255, 0.1);
    }
}

/* 答题结果样式 */
.answer-result {
    display: flex;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.answer-result.correct-result {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success-color);
}

.answer-result.incorrect-result {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger-color);
}

.result-icon {
    font-size: 2rem;
    margin-right: 16px;
    display: flex;
    align-items: center;
}

.correct-result .result-icon {
    color: var(--success-color);
}

.incorrect-result .result-icon {
    color: var(--danger-color);
}

.result-text {
    flex: 1;
}

.result-status {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.correct-result .result-status {
    color: var(--success-color);
}

.incorrect-result .result-status {
    color: var(--danger-color);
}

.answer-detail {
    margin: 5px 0;
    font-size: 0.95rem;
}

.user-answer {
    font-weight: 500;
    color: var(--primary-color);
}

.correct-answer {
    font-weight: 500;
    color: var(--success-color);
}

@media (prefers-color-scheme: dark) {
    .answer-result {
        background-color: #333;
    }
    
    .answer-result.correct-result {
        background-color: rgba(40, 167, 69, 0.2);
    }
    
    .answer-result.incorrect-result {
        background-color: rgba(220, 53, 69, 0.2);
    }
}

.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 10px;
}

.action-buttons button {
    min-width: 150px;
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}

/* 通知提示框样式 */
.notice-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.notice-box p {
    margin: 0;
    color: #856404;
    display: flex;
    align-items: center;
}

.notice-box i {
    margin-right: 10px;
    font-size: 1.2rem;
}

@media (prefers-color-scheme: dark) {
    .notice-box {
        background-color: rgba(255, 193, 7, 0.1);
        border-left-color: #ffc107;
    }
    
    .notice-box p {
        color: #ffe082;
    }
}

.review-question .translate-button {
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #f5f7fa;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.review-question .translate-button i {
    margin-right: 5px;
}

.review-question .translate-button:hover {
    background-color: #eef1f8;
    color: var(--primary-color);
}

.review-question .translated-explanation {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: rgba(74, 111, 255, 0.05);
    border-radius: 6px;
    color: #4a6fff;
    border-left: 3px solid #4a6fff;
    font-style: italic;
    line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
    .review-question .translate-button {
        background-color: #3a3e48;
        color: #ccc;
        border-color: #4a4e58;
    }
    
    .review-question .translate-button:hover {
        background-color: #434959;
        color: var(--primary-color);
    }
    
    .review-question .translated-explanation {
        background-color: rgba(74, 111, 255, 0.1);
        color: #8ba4ff;
    }
}

/* 自定义数量对话框样式 */
.custom-count-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-count-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-count-container {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.custom-count-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-weight: 600;
}

.custom-count-container input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: var(--transition);
}

.custom-count-container input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.2);
}

.custom-count-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.custom-count-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.custom-count-confirm {
    background: var(--primary-gradient);
    color: white;
}

.custom-count-cancel {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.custom-count-confirm:hover, .custom-count-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .custom-count-container {
        background-color: #2a2a2a;
    }
    
    .custom-count-container input[type="number"] {
        background-color: #333;
        color: var(--text-color);
        border-color: #444;
    }
    
    .custom-count-cancel {
        background-color: #444;
        color: #e0e0e0;
    }
}

.abandon-confirm-btn {
    background: linear-gradient(135deg, #dc3545 0%, #e05260 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.abandon-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

@media (prefers-color-scheme: dark) {
    .abandon-confirm-btn {
        background: linear-gradient(135deg, #dc3545 0%, #e05260 100%);
    }
}

/* 设置提示样式 */
.setting-note {
    font-size: 0.85rem;
    margin-top: 5px;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
}

.setting-note i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 开始按钮计时样式 */
.start-button.timer-active {
    background: linear-gradient(135deg, #3863e5 0%, #4a6fff 100%);
    cursor: default;
    width: 100%;
    max-width: none;
    animation: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s, transform 0.3s;
}

.start-button.timer-active:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.start-button.timer-warning {
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    color: white;
}

.start-button.timer-danger {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    color: white;
    animation: pulse 1.5s infinite;
}

.start-button.timer-expired {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    color: white;
    cursor: not-allowed;
}

.start-button.timer-active i,
.start-button.timer-warning i,
.start-button.timer-danger i,
.start-button.timer-expired i {
    margin-right: 10px;
    animation: rotate 1.5s linear infinite;
    display: inline-block;
}

.start-button.timer-expired i {
    animation: none;
}

@media (max-width: 768px) {
    .start-button.timer-active {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
}

@media (max-width: 576px) {
    .start-button.timer-active {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

@media (prefers-color-scheme: dark) {
    .start-button.timer-active {
        background: linear-gradient(135deg, #3863e5 0%, #4a6fff 100%);
    }
    
    .start-button.timer-warning {
        background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    }
    
    .start-button.timer-danger {
        background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    }
}

/* 旋转动画 */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 脉动动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 超时提示样式 */
.timeout-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease-out;
    max-width: 90%;
    width: 400px;
}

.timeout-icon {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

.timeout-notice h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--danger-color);
}

.timeout-notice p {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .timeout-notice {
        padding: 20px;
        width: 85%;
    }
    
    .timeout-icon {
        font-size: 2.5rem;
    }
    
    .timeout-notice h2 {
        font-size: 1.2rem;
    }
    
    .timeout-notice p {
        font-size: 0.9rem;
    }
}

/* 欢迎屏幕样式 */
.start-screen {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 20px auto;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    transition: all 0.3s ease;
}

.start-screen:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.start-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.start-screen h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.start-screen p {
    font-size: 1.3rem;
    color: var(--medium-gray);
    font-weight: 500;
    margin-bottom: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .start-screen {
        padding: 30px 15px;
    }
    
    .start-icon {
        font-size: 3rem;
    }
    
    .start-screen h2 {
        font-size: 1.5rem;
    }
    
    .start-screen p {
        font-size: 1.1rem;
    }
}

/* 设置面板折叠样式 */
.settings-panel.collapsed {
    max-height: 50px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.settings-panel.collapsed .settings-section,
.settings-panel.collapsed .start-button {
    display: none;
}

.settings-panel.collapsed .section-title {
    margin-bottom: 0;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
}

.settings-panel.collapsed .section-title:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
}

.settings-panel .section-title:after {
    content: '\f077';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
}

/* 切换按钮样式 */
.toggle-settings {
    background: none;
    border: none;
    color: var(--dark-gray);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.toggle-settings:hover {
    color: var(--primary-color);
}

.toggle-settings i {
    margin-right: 5px;
}

/* 独立倒计时容器样式 */
.timer-container {
    background: linear-gradient(135deg, #3863e5 0%, #4a6fff 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 15px auto;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
    max-width: 100%;
}

.timer-container.warning {
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
}

.timer-container.danger {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    animation: pulse 1.5s infinite;
}

.timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-icon {
    margin-right: 10px;
    animation: rotate 2s infinite linear;
}

.timer-text {
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .timer-container {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .timer-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .timer-container {
        padding: 8px 12px;
        margin: 10px auto;
    }
    
    .timer-text {
        font-size: 0.9rem;
    }
}

@media (prefers-color-scheme: dark) {
    .timer-container {
        background: linear-gradient(135deg, #3863e5 0%, #4a6fff 100%);
    }
    
    .timer-container.warning {
        background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    }
    
    .timer-container.danger {
        background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    }
}

.exam-duration {
    margin-top: 15px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.exam-duration i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .exam-duration {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .exam-duration {
        font-size: 0.9rem;
    }
}
