﻿/*======== 试题整体容器 ========*/


.question-wrapper {
    margin: 6px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: #2c3e50;
    padding: 8px;
    padding-top: 11px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #4a6ee0;
    border-top: 1px solid #4a6ee0;
    border-bottom: 1px solid #4a6ee0;
    width: calc(100% - 20px); /*总宽度 = 父宽 - 20px */
    margin-left: auto; /*剩余空间左右均分 → 自动居中 */
    margin-right: auto;
    user-select: none; /*标准语法 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none; /*禁用鼠标事件（可选，连右键菜单一起干掉） */

    -webkit-touch-callout: none; /*禁止长按呼出菜单（iOS） */
    -webkit-user-drag: none; /*禁止拖拽（WebKit） */
    /* ===== 新增：让内部内容居中 ===== */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
 
}

 

.no-questions {
    display: block;          /* 保证独占一行 */
    text-align: center;      /* 文字/行内元素水平居中 */
    margin: 0 auto;          /* 如果本身有宽度，也能再补一层保险 */
    color:dimgrey;
    padding:20px 0 0 20px;
}
.questions-count {
    display: block;          /* 继续独占一行 */
    margin-left: auto;       /* 关键：左侧自动撑满 → 盒子贴右 */
    margin-right: 0;         /* 保险，覆盖之前的 auto */
    text-align: right;       /* 文字也贴右 */
    color: dimgrey;
    font-size: 14px;
    font-weight: bold;
    padding-right:15px;
}

/*======== 题干 ========*/
.question-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 24px;
    text-align: left;
    padding: 8px 0;
    color: #1a1a1a;
    line-height: 1.6;
}

/*======== 选项容器 ========*/
.question-options {
    margin: 8px 0;
    width: 100%;
}

/* 单列选项样式 */
.question-options.single-column .option {
    display: block;
    padding: 7px 8px;
    text-align: left;
    margin: 8px 0;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
    width: 100%;
    font-size: 15px !important;
    white-space: normal;  
    word-break: break-word; 
}

/* 双列选项样式 */
    .question-options.two-columns {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .question-options.two-columns .option {
        flex: 0 0 calc(50% - 8px);
        padding: 7px 8px;
        margin: 6px 0;
        border-radius: 10px;
        background-color: #f8f9fa;
        transition: all 0.2s ease;
        border: 1px solid #e9ecef;
        box-sizing: border-box;
        text-align: left;
        font-size: 15px !important;
        white-space: normal;
        word-break: break-word;
    }

/* 四列选项样式 */
.question-options.four-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.question-options.four-columns .option {
    flex: 0 0 calc(25% - 8px);
    padding: 7px 8px;
    margin: 6px 0;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
    text-align: left;
    font-size: 15px !important;
}

/* 选项通用样式 */
.question-options .option {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

/* 选项标签样式 */
.question-options .option strong {
    color: #495057;
    margin-right: 6px;
    font-weight: 600;
}
.question-options .option .option-content p {
    display: inline;
    margin: 0;
}

/* 选项悬停效果 */
.question-options .option:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 选项选中效果 */
.question-options .option.selected {
    background-color: #e8f4ff;
    border-color: #c2e0ff;
}

.vertical-arithmetic {
    font-family: monospace;
    white-space: pre;
    white-space: pre-wrap;
    background-color: none;
    border-radius: 4px;
    overflow-x: auto;
}
 
/*======== 填空 ========*/
.question-fill-blank {
    margin: 24px 0;
}

.blank-item {
    margin: 16px 0;
    padding: 16px;
    border-bottom: 1px dashed #dee2e6;
    background: #f8f9fa;
    border-radius: 8px;
}

.blank-answer {
    color: #0d6efd;
    font-weight: 600;
    padding: 6px 13px;
    background-color: #e8f4ff;
    border-radius: 6px;
    display: inline-block;
    margin-left: 8px;
    border: 1px solid #c2e0ff;
}

/*======== 问答 ========*/
.question-essay {
    background-color: #f8f9fa;
    padding: 24px;
    border-left: 4px solid #0d6efd;
    margin: 19px 0;
    border-radius: 0 8px 8px 0;
    line-height: 1.8;
    text-align: left;
}

/*======== 解析 ========*/
.question-analysis {
    margin-top: 10px;
    padding: 16px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 10px 8px 8px 10px;
    font-size: 12px;
    text-align: left;
}

/*======== 参考答案 ========*/
.question-QuestionsAnswer {
    margin-top: 10px;
    padding: 16px;
    background-color: #E3F0DB;
    border-left: 4px solid #7CB957;
    border-radius: 10px 8px 8px 10px;
    font-size: 14px;
    text-align: left;
}
 
/* 试题类型标签 */
.question-type-tag {
    display: inline-block;
    padding: 3px 8px;
    background: #6818dc;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    font-weight: 500;
     vertical-align: top; 
     top: -3px; 
}


/*======== 移动端自适应 ========*/
@media (max-width: 768px) {
    .question-wrapper {
        margin: 19px 0;
        padding: 16px;
    }
    
    .question-title {
        font-size: 19px;
    }
    
    /* 移动端所有选项改为单列 */
    .question-options.two-columns .option,
    .question-options.four-columns .option {
        flex: 0 0 100%;
        margin: 6px 0;
    }
    
    .question-options .option {
        padding: 14px 16px;
    }
}

/*======== 分页控件 ========*/
.question-pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.pagination-info {
    color: #666;
    font-size: 14px;
}
.pagination-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.pagination-btn:hover:not(.disabled):not(.active) {
    background-color: #f0f2f5;
    border-color: #1890ff;
    color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.pagination-btn.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(24, 144, 255, 0.3);
}
.pagination-btn.disabled {
    color: #bfbfbf;
    cursor: not-allowed;
    background-color: #f5f5f5;
    opacity: 0.7;
}

/*======== 移动端自适应 ========*/
@media (max-width: 768px) {
    .pagination-controls {
        gap: 6px;
    }
    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        padding: 0 11px;
    }
}

/* 强制长单词、公式、URL 在卡片内断行 */
.question-title,
.question-QuestionsAnswer,
.question-analysis {
    overflow-wrap: break-word;
    word-break: break-word;
    word-wrap: break-word;
}

/* ========== ACE 格子表格 ========== */
.math-tex table,
.question-title table,
.question-analysis table,
.question-options table {
    --bs-border: #dee2e6;
    --bs-header-bg: #f8f9fa;
    --bs-text: #212529;
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.3;
    color: var(--bs-text);
    background: #fff;
    border: 1px solid var(--bs-border);
}

/* 表头 */
.math-tex table th,
.question-title table th,
.question-analysis table th,
.question-options table th {
    background: var(--bs-header-bg);
    font-weight: 600;
    text-align: left;
    padding: 6px 8px;
    border: 1px solid var(--bs-border);
    vertical-align: bottom;
}

/* 单元格 */
.math-tex table td,
.question-title table td,
.question-analysis table td,
.question-options table td {
    padding: 6px 8px;
    border: 1px solid var(--bs-border);
    vertical-align: top;
}

/* 条纹效果 */
.math-tex table tbody tr:nth-of-type(odd) td,
.question-title table tbody tr:nth-of-type(odd) td,
.question-analysis table tbody tr:nth-of-type(odd) td,
.question-options table tbody tr:nth-of-type(odd) td {
    background-color: var(--bs-striped);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .math-tex table,
    .question-title table,
    .question-analysis table,
    .question-options table {
        font-size: 12px;
    }
    
    .math-tex table th,
    .question-title table th,
    .question-analysis table th,
    .question-options table th,
    .math-tex table td,
    .question-title table td,
    .question-analysis table td,
    .question-options table td {
        padding: 4px 6px;
    }
}

/* 重置 pre 和 code 的默认样式 */
pre, code {
background-color: transparent !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
font-family: inherit !important;
font-size: inherit !important;
white-space: pre-wrap !important;
word-break: break-word !important;
}
        
/* 保留真正代码块的样式 */
pre code[class*="language-"] {
    display: block;
    padding: 1px !important;
    background-color: #f6f8fa !important;
    border-radius: 5px;
    border: 1px solid #e1e4e8 !important;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace !important;
    font-size: 14px !important;
    white-space: pre !important;
}
 

/* 让树节点纵向排列，避免变成一行 */
.outline-tree ul.tree {
    display: block;
}
.tree-node {
    display: block;
}




/* ===== Markdown 在 .question-QuestionsAnswer-Display 里的专属美化 ===== */
.question-QuestionsAnswer-Display {
    line-height: 1.75;
    color: #2c3e50;
    font-size: 13px;
}

/* 1. 列表：左缩进 + 上下间距 */
.question-QuestionsAnswer-Display ul,
.question-QuestionsAnswer-Display ol {
    margin: .8em 0;
    padding-left: 1.8em;          /* 二级列表继续相对缩进 */
}
.question-QuestionsAnswer-Display li {
    margin: .3em 0;
    padding-left: .4em;
}
.question-QuestionsAnswer-Display ul ul,
.question-QuestionsAnswer-Display ol ol,
.question-QuestionsAnswer-Display ul ol,
.question-QuestionsAnswer-Display ol ul {
    margin: .4em 0;               /* 嵌套列表更紧凑 */
}

/* 2. 标题：字号递减 + 上下留白 */
.question-QuestionsAnswer-Display h1 { font-size: 1.6em; margin: 1.2em 0 .6em; }
.question-QuestionsAnswer-Display h2 { font-size: 1.4em; margin: 1em 0 .5em; }
.question-QuestionsAnswer-Display h3 { font-size: 1.2em; margin: .8em 0 .4em; }
.question-QuestionsAnswer-Display h4 { font-size: 1.1em; margin: .6em 0 .3em; }
.question-QuestionsAnswer-Display h5,
.question-QuestionsAnswer-Display h6 { font-size: 1em; margin: .5em 0 .2em; }

/* 3. 代码 */
.question-QuestionsAnswer-Display code {
    background: #f5f7fa;
    padding: .15em .35em;
    border-radius: 3px;
    font-size: .92em;
    color: #e06c75;
}
.question-QuestionsAnswer-Display pre {
    background: #f5f7fa;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    line-height: 1.45;
}
.question-QuestionsAnswer-Display pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* 4. 表格 */
.question-QuestionsAnswer-Display table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}
.question-QuestionsAnswer-Display th,
.question-QuestionsAnswer-Display td {
    border: 1px solid #dfe2e5;
    padding: .6em .8em;
}
.question-QuestionsAnswer-Display th {
    background: #f6f8fa;
    font-weight: 600;
}

/* 5. 引用 */
.question-QuestionsAnswer-Display blockquote {
    margin: 1em 0;
    padding: .5em 1em;
    border-left: 4px solid #4a6ee0;
    background: #f8f9fc;
    color: #555;
}

/* 6. 水平线 */
.question-QuestionsAnswer-Display hr {
    border: none;
    border-top: 1px solid #dfe2e5;
    margin: 2em 0;
}

/* 7. 图片自适应 */
.question-QuestionsAnswer-Display img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: .8em auto;
}

/* ===== Markdown 在 .question-analysis-Display 里的专属美化 ===== */
.question-analysis-Display {
    line-height: 1.75;
    color: #2c3e50;
    font-size: 11px;
}

/* 1. 列表：左缩进 + 上下间距 */
.question-analysis-Display ul,
.question-analysis-Display ol {
    margin: .8em 0;
    padding-left: 1.8em;          /* 二级列表继续相对缩进 */
}
.question-analysis-Display li {
    margin: .3em 0;
    padding-left: .4em;
}
.question-analysis-Display ul ul,
.question-analysis-Display ol ol,
.question-analysis-Display ul ol,
.question-analysis-Display ol ul {
    margin: .4em 0;               /* 嵌套列表更紧凑 */
}

/* 2. 标题：字号递减 + 上下留白 */
.question-analysis-Display h1 { font-size: 1.6em; margin: 1.2em 0 .6em; }
.question-analysis-Display h2 { font-size: 1.4em; margin: 1em 0 .5em; }
.question-analysis-Display h3 { font-size: 1.2em; margin: .8em 0 .4em; }
.question-analysis-Display h4 { font-size: 1.1em; margin: .6em 0 .3em; }
.question-analysis-Display h5,
.question-analysis-Display h6 { font-size: 1em; margin: .5em 0 .2em; }

/* 3. 代码 */
.question-analysis-Display code {
    background: #f5f7fa;
    padding: .15em .35em;
    border-radius: 3px;
    font-size: .92em;
    color: #e06c75;
}
.question-analysis-Display pre {
    background: #f5f7fa;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    line-height: 1.45;
}
.question-analysis-Display pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* 4. 表格 */
.question-analysis-Display table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}
.question-analysis-Display th,
.question-analysis-Display td {
    border: 1px solid #dfe2e5;
    padding: .6em .8em;
}
.question-analysis-Display th {
    background: #f6f8fa;
    font-weight: 600;
}

/* 5. 引用 */
.question-analysis-Display blockquote {
    margin: 1em 0;
    padding: .5em 1em;
    border-left: 4px solid #4a6ee0;
    background: #f8f9fc;
    color: #555;
}

/* 6. 水平线 */
.question-analysis-Display hr {
    border: none;
    border-top: 1px solid #dfe2e5;
    margin: 2em 0;
}

/* 7. 图片自适应 */
.question-analysis-Display img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: .8em auto;
}



 

/* 悬停效果 */
/* ==================== 修复根号断裂问题 ==================== */
 
/* 7. 强制所有相关容器使用数学字体 */
.question-title,
.question-options,
.option,
.option-content,
.question-QuestionsAnswer,
.question-analysis,
.question-QuestionsAnswer-Display,
.question-analysis-Display {
  font-family: 'Latin Modern Math', 'STIX Two Math', 'XITS Math', 'Cambria Math', serif !important;
}
 
 
 

/* 5. 禁止字体被系统字体覆盖 */
body * {
  font-family: inherit;
}