* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background-color: white;
    min-height: 100vh;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.stats span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    white-space: nowrap;
}

/* 导航按钮 */
.nav-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 5px 0;
}

.nav-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-btn:hover {
    background: #e9ecef;
}

.nav-btn.active {
    background: #007bff;
    color: white;
}

/* 模式容器 */
.mode {
    display: none;
}

.mode.active {
    display: block;
}

/* 题目容器 */
.question-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* 题目头部：题号 + 题型，右侧放跳转/下一题 */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.question-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
}

.question-type {
    background: #17a2b8;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* 题型标签可以点：一下一下循环切换题型
   （全部题型 → 单选题 → 多选题 → 判断题 → 填空题 → 简答题 → 回到全部）。
   筛到具体题型时换成橙色，一眼能看出现在不是「全部」档。 */
.question-type {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.question-type::after {
    content: ' ⌄';
    opacity: 0.75;
}

.question-type:active {
    background: #138496;
}

.question-type.filtered {
    background: #fd7e14;
}

.question-type.filtered:active {
    background: #e36a0a;
}

/* 题目头部左侧的「题号 + 题型」组合 */
.question-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 题目头部右侧的操作组：跳转、下一题、移出错题库 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 头部里的按钮做小、不拉伸，跟题号挤一行也不挤 */
.header-actions .btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 7px 14px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.header-actions .jump-container {
    margin-left: 0;
}

/* 跳转控件：放在题目头部右侧，不占下方空间，解析能往上提 */
.jump-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.jump-container input {
    width: 84px;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    outline: none;
}

.jump-container input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

/* 跳转是辅助操作，按钮做小一点，别喧宾夺主 */
.jump-container .btn {
    padding: 7px 16px;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* 题目图片 */
.question-image {
    margin: 20px 0;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 题目文本 */
.question-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    white-space: pre-line;
    word-wrap: break-word;
}

/* 选项样式 */
.options {
    margin-bottom: 25px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.option.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

.option.correct {
    border-color: #28a745;
    background: #d4edda;
}

.option.wrong {
    border-color: #dc3545;
    background: #f8d7da;
}

.option input {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    line-height: 1.5;
    word-wrap: break-word;
}

/* 按钮样式 */
.question-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 错题库：答对后出现「移出错题库」，它单独占一行、排在「下一题」下面，
 * 不跟「下一题」左右分栏（符先生要求：一行就一个按钮，别拆成两半） */
#wrongBankMode .question-actions {
    flex-direction: column;
}

#wrongBankMode .question-actions .btn {
    flex: 0 0 auto;      /* 竖向排列时别再按 flex:1 均分，否则高度会被压 */
    width: 100%;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #117a8b;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

/* 异常题提示（原表答案超出选项范围，此题只能跳过） */
.anomaly-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #664d03;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 判分后锁定的选项：点不动，也不再显示悬停反馈 */
.option.locked {
    cursor: default;
}

.option.locked:hover {
    border-color: #e9ecef;
    background: white;
}

.option.locked.selected:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.option.locked.correct:hover {
    border-color: #28a745;
    background: #d4edda;
}

.option.locked.wrong:hover {
    border-color: #dc3545;
    background: #f8d7da;
}

/* 解析样式 */
.explanation {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
    line-height: 1.6;
}

.explanation h4 {
    color: #007bff;
    margin-bottom: 10px;
}

/* 填空 / 简答题的参考答案区：点「显示答案」才出现（解析另外走 .explanation） */
.answer-box {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
    line-height: 1.6;
    word-break: break-word;
}

.answer-box h4 {
    color: #17a2b8;
    margin-bottom: 10px;
}

.answer-box p {
    margin: 0;
}

.explanation p {
    white-space: pre-line;
    word-wrap: break-word;
}

/* 错题库样式 */
.wrong-bank-info {
    text-align: center;
    padding: 40px 20px;
}

.wrong-bank-info h2 {
    color: #dc3545;
    margin-bottom: 20px;
}

.wrong-bank-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #666;
}

/* 错题库信息页：上次练到第几题的小提示（有记录才显示） */
.wrong-bank-info p.wrong-bank-hint {
    font-size: 0.9rem;
    color: #007bff;
    margin: -14px 0 18px;
}

/* 考试模式样式 */
.exam-info {
    text-align: center;
    padding: 40px 20px;
}

.exam-settings {
    margin: 25px 0;
}

.exam-settings label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #495057;
}

.exam-settings select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 1rem;
}

.exam-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.exam-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.exam-progress {
    flex: 1;
    min-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
}

.exam-timer {
    font-size: 1.3rem;
    font-weight: bold;
    color: #dc3545;
    white-space: nowrap;
}

.exam-sidebar {
    flex: 0 0 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.exam-sidebar h3 {
    margin-bottom: 15px;
    color: #495057;
}

.answer-sheet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    gap: 8px;
}

.answer-item {
    width: 35px;
    height: 35px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.answer-item:hover {
    border-color: #007bff;
}

.answer-item.current {
    border-color: #007bff;
    background: #e3f2fd;
}

.answer-item.answered {
    background: #d4edda;
    border-color: #28a745;
}

/* 考试回顾：答题卡改按对错着色，一眼看出哪几道错了、直接点格子跳过去 */
.answer-item.right {
    background: #d4edda;
    border-color: #28a745;
    color: #1e7e34;
}

.answer-item.wrong {
    background: #f8d7da;
    border-color: #dc3545;
    color: #b02a37;
}

.answer-item.blank {
    background: #eef1f4;
    border-color: #adb5bd;
    color: #6c757d;
}

/* 这三条写在上面三条之后：当前题保持蓝框（底色仍按对错），提示"你看到的是哪一道" */
.answer-item.current {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, .25);
}

/* 考试回顾工具条：回顾时替掉顶上的进度条 + 计时器 */
.review-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.review-bar .review-title {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #374151;
}

.review-bar .review-title b {
    color: #007bff;
}

.review-bar .review-counts {
    font-size: 0.82rem;
    color: #6b7280;
}

.review-bar .review-btns {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

/* 工具条里的按钮要小一号：`.btn` 默认 flex:1;min-width:120px，会把这一行撑爆 */
.review-bar .review-btns .btn {
    flex: 0 0 auto;
    min-width: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* 「只看错题」开着时按钮压暗一档、加一圈描边 —— 跟没开的时候一眼分得开 */
.review-bar .review-btns .btn.active {
    background: #a16207;
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #a16207;
}

/* 对错小标记 */
.review-mark {
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.review-mark.right {
    background: #d4edda;
    color: #1e7e34;
}

.review-mark.wrong {
    background: #f8d7da;
    color: #b02a37;
}

.review-mark.blank {
    background: #e9ecef;
    color: #6c757d;
}

/* 回顾时那句「我的答案 / 正确答案」 */
.review-answer-line {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #6c757d;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    word-break: break-word;
}

.review-answer-line b {
    color: #111827;
}

.review-answer-line i {
    font-style: normal;
    margin-left: 14px;
}

.review-answer-line i b {
    color: #1e7e34;
}

/* 考试回顾时顶上那行进度条 + 计时器让位给工具条 */
#examContainer.reviewing .exam-header {
    display: none;
}

/* 考试结果样式 */
.exam-result {
    text-align: center;
    padding: 40px 20px;
}

.result-summary {
    margin: 30px 0;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

.score-value {
    color: #28a745;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.result-details p {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 统计页面样式 */
.stats-container {
    padding: 20px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.stat-card h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.stat-card p {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.stats-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stats-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats-filter select,
.stats-filter input {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    flex: 1;
    min-width: 150px;
}

.question-stats-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.question-stat-item {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.question-stat-item:last-child {
    border-bottom: none;
}

.question-stat-info {
    flex: 1;
    min-width: 200px;
}

.question-stat-numbers {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.stat-number {
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    white-space: nowrap;
}

.stat-correct {
    background: #28a745;
}

.stat-wrong {
    background: #dc3545;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 5px;
    }
    
    header {
        padding: 8px 15px;
        margin-bottom: 12px;
    }
    
    header h1 {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }
    
    /* 顶栏四项统计压成一行：字号收小、间距收紧，头部省下的高度让给题目和解析。
       字号必须**随屏宽自适应**：固定字号时 402px 视口余量只有十几像素（数字涨到四位数更紧），
       换台机器字体宽一点就折两行 —— 还会伪装成「下拉时闪一下变一行又变回去」
       （无样式阶段是 inline 流排得下一行，CSS 应用后才折）。clamp 让窄屏自动瘦身。 */
    .stats {
        gap: 3px;
        font-size: clamp(10px, 2.7vw, 11.2px);
    }
    
    .stats span {
        padding: 2px 4px;
    }
    
    /* span 是嵌套的（外层胶囊 + 内层数字胶囊），两层 padding 会叠加，内层再收一点 */
    .stats span span {
        padding: 2px 3px;
    }
    
    .nav-buttons {
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .nav-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .question-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* 练习模式/错题库的头部：题号+题型 放左边、跳转放右边，一行搞定 */
    #practiceMode .question-header,
    #wrongBankMode .question-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-actions {
        margin-left: auto;
        gap: 6px;
    }

    .header-actions .btn {
        padding: 8px 16px;
    }

    #practiceMode .question-header .question-number,
    #wrongBankMode .question-header .question-number {
        font-size: 1.05rem;
    }

    .jump-container {
        margin-left: auto;
    }

    .jump-container input {
        width: 72px;
    }

    .jump-container .btn {
        padding: 8px 16px;
    }
    
    .question-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .option {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .option input {
        margin-right: 10px;
    }

    /* 作答后解析紧跟选项，中间不再留一大段空白，屏幕能多放几行解析 */
    .options {
        margin-bottom: 14px;
    }

    .explanation {
        margin-top: 12px;
        padding: 16px;
    }
    
    /* 按钮行并排（练习模式一次只出一个按钮；模拟考试是「上一题/下一题」一对，靠这个并排） */
    .question-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* 手机上的主按钮：加高到 44px 以上，手指好按（之前挪到头部右上角太小，已还原） */
    .btn {
        padding: 15px 16px;
        font-size: 0.95rem;
        min-width: auto;
    }
    
    .exam-container {
        flex-direction: column;
    }
    
    .exam-sidebar {
        flex: none;
        order: -1;
    }
    
    .exam-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .exam-timer {
        font-size: 1.1rem;
    }
    
    .answer-sheet {
        grid-template-columns: repeat(10, 1fr);
        gap: 5px;
    }
    
    .answer-item {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .result-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .result-details p {
        padding: 12px;
        font-size: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stats-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-filter {
        flex-direction: column;
        gap: 10px;
    }
    
    .question-stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .question-stat-numbers {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }
    
    /* 480 段写在 768 段之后，会盖掉 768 段的同类属性 —— 但这里**不要再写 font-size**：
       之前这里写了 0.75rem，把 768 段收小的字号又顶回去，顶栏就被挤成了两行。
       字号交给 768 段的 clamp 自适应，这里只把间距再收一点。 */
    .stats {
        gap: 2px;
    }
    
    .nav-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .question-container {
        padding: 12px;
    }
    
    .question-text {
        font-size: 0.95rem;
    }
    
    .option {
        padding: 10px;
    }
    
    /* 按钮不再随窄屏缩水：手指要按得准（«下一题» 曾因缩到 39px 高被吐槽） */
    .btn {
        padding: 15px 16px;
        font-size: 0.95rem;
    }
    
    .answer-sheet {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .answer-item {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    /* 考试回顾工具条：窄屏折成两行 —— 上行「考试回顾 N/M + 对错」，下行两个按钮各占一半 */
    .review-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .review-bar .review-btns .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .review-answer-line {
        font-size: 0.85rem;
    }
    
    .score {
        font-size: 2.5rem;
    }
}

/* 横屏适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .exam-container {
        flex-direction: row;
    }
    
    .exam-sidebar {
        flex: 0 0 200px;
        order: 1;
    }
    
    .answer-sheet {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 手机上点过的元素会「粘住」:hover，这条规则用来把 hover 高亮抹掉。
       坑：它和 .option.selected 特异性相同（0,2,0）却写在后面，会把刚勾选那一项的
       蓝框又刷回灰色 —— 表现是「勾第一个不显蓝框，勾第二个时第一个才补上」。
       所以下面把「已选中 / 已判分」的状态重新声明一遍，特异性更高，压得住。 */
    .option:hover {
        border-color: #e9ecef;
        background: white;
    }

    .option.selected:hover {
        border-color: #007bff;
        background: #e3f2fd;
    }

    .option.correct:hover {
        border-color: #28a745;
        background: #d4edda;
    }

    .option.wrong:hover {
        border-color: #dc3545;
        background: #f8d7da;
    }
    
    .nav-btn:hover {
        background: #f8f9fa;
    }
    
    .nav-btn.active {
        background: #007bff;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* ==================== 统计页：进度导出 / 导入 ==================== */

.stats-hint {
    margin: -14px 0 26px;
    font-size: 0.88rem;
    line-height: 1.75;
    color: #6c757d;
}

.stats-hint b {
    color: #0056b3;
}

/* 导入确认弹窗：先给摘要，确认后才落盘 */
.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

.modal-card {
    width: 100%;
    max-width: 540px;
    max-height: 82vh;
    overflow-y: auto;
    padding: 24px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.modal-card h3 {
    margin-bottom: 16px;
    color: #007bff;
}

.modal-body {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #333;
    word-break: break-all;
}

.modal-body .cmp {
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.modal-body .cmp th,
.modal-body .cmp td {
    padding: 6px 8px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.modal-body .cmp th {
    color: #6c757d;
    font-weight: 500;
}

.modal-body .cmp td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.modal-body .warn {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 4px solid #ffc107;
    background: #fff8e1;
    border-radius: 4px;
}

.modal-body .tip {
    color: #6c757d;
    font-size: 0.85rem;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
