    .icon-btn:hover { background: var(--hover-bg); }
    .content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px; position: relative; }
    .content.has-practice { padding: 0 24px 24px; }
    .content-inner { max-width: 1120px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: center; transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .content-inner.has-questions { justify-content: flex-start; padding-top: 0; }
    .welcome-card { text-align: center; }
    .welcome-icon { width: 80px; height: 80px; border-radius: 16px; background: var(--alpha-08); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--primary); }
    .welcome-logo { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; border-radius: 16px; }
    .welcome-title { font-size: 18px; font-weight: 600; color: var(--on-surface); margin-bottom: 4px; }
    .welcome-sub { font-size: 14px; color: var(--on-surface-variant); }

    /* ====== PRACTICE AREA (Chapter + Question views) ====== */

    /* -- practice nav overlay, absolute positioned below topbar -- */
    .practice-nav {
      display: flex; align-items: center;
      padding: 4px 24px;
      position: absolute; top: 64px; left: 0; right: 0; z-index: 5;
      pointer-events: none;
    }
    .practice-nav > * { pointer-events: auto; }
    .practice-nav-back {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 5px 10px; border-radius: 8px; border: none;
      background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
      cursor: pointer; font-family: inherit;
      font-size: 13px; color: var(--on-surface-variant);
      /* 过渡白名单：hover 背景/颜色渐变；边框不进过渡（线条瞬变无渐显动画） */
      transition: background 0.15s, color 0.15s; white-space: nowrap;
    }
    .practice-nav-back:hover { background: rgba(255,255,255,1); color: var(--primary); }
    .practice-nav-back svg { width: 16px; height: 16px; }
    /* ── 暗夜黑适配：半透明白底 + backdrop 模糊在深色下是一片白色糊影，改实底去模糊 ── */
    [data-theme="dark"] .practice-nav-back {
      background: var(--hover-bg); backdrop-filter: none;
    }
    [data-theme="dark"] .practice-nav-back:hover {
      background: var(--alpha-10); color: var(--primary);
    }

    .practice-container {
      display: flex; flex-direction: column; height: 100%; width: 100%;
      max-width: 780px; margin: 0 auto;
    }

    /* -- body -- */
    .practice-body {
      flex: 1; overflow-y: auto; padding: 16px 0;
    }
    .practice-body.question-view { padding-top: 0; }

    /* -- bookmark star button -- */
    .bookmark-btn {
      width: 30px; height: 30px; border-radius: 50%; border: none;
      background: transparent; cursor: pointer; display: inline-flex;
      align-items: center; justify-content: center;
      color: var(--outline); transition: all 0.2s; flex-shrink: 0;
    }
    .bookmark-btn:hover { background: rgba(245, 166, 35, 0.1); color: #f5a623; }
    .bookmark-btn.bookmarked { color: #f5a623; }
    .bookmark-btn svg { width: 18px; height: 18px; }
    /* @component ChapterOverview — 章节概览（双层视图第一层）
       @interaction 点击章节卡片 → showChapterQuestions(chIdx)
       @state 显示章节列表，每项含名称、题数、已完成数
    */
    .chapter-list {
      display: flex; flex-direction: column; gap: 10px;
    }
    .chapter-card {
      display: flex; align-items: center; gap: 16px;
      padding: 18px 20px; border-radius: 14px;
      border: 1.5px solid var(--border); background: var(--white);
      cursor: pointer;
      /* 过渡白名单：只过渡 hover 的 background；边框颜色不进过渡（切换/判分时线条瞬变，无渐显动画） */
      transition: background 0.2s ease;
    }
    .chapter-card:hover {
      border-color: var(--primary); background: var(--alpha-03);
    }
    .chapter-num {
      width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
      background: var(--alpha-08); color: var(--primary);
      display: flex; align-items: center; justify-content: center;
      font-size: 15px; font-weight: 700;
    }
    .chapter-info { flex: 1; min-width: 0; }
    .chapter-name {
      font-size: 15px; font-weight: 600; color: var(--on-surface);
      margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .chapter-meta {
      font-size: 12px; color: var(--on-surface-variant);
    }
    .chapter-meta .done { color: #2e7d32; font-weight: 600; }
    .chapter-arrow { color: var(--outline); flex-shrink: 0; }

    /* @component QuestionScrollView — 答题页（双层视图第二层）
       @state 该章所有题目垂直排列，单页滚动，不翻页
       @interaction 点击选项 → 即时判分 + 显示解析feedback
       @gotcha 答题后重建DOM前保存scrollTop，重建后恢复 → 避免跳页
       @gotcha 选项用 .answered + pointer-events:none 禁用，不用 disabled 属性
       子组件: QuestionCard, OptionsList, FeedbackBar, BookmarkBtn
    */
    .question-list {
      display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px;
    }
    .question-card {
      background: var(--white); border-radius: 16px; padding: 22px 28px;
      border: 1px solid var(--border);
      /* 过渡白名单：样式切换时背景淡入（与选项框同步）；边框不进过渡（线条瞬变无动画） */
      transition: background 0.2s ease;
    }
    .question-card-header {
      display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
    }
    .question-num {
      font-size: 14px; font-weight: 700; color: var(--primary-soft);
      background: var(--primary-container); padding: 4px 12px; border-radius: 8px;
      white-space: nowrap;
    }
    .question-type-tag {
      font-size: 12px; color: var(--on-surface-variant);
      background: var(--hover-bg); padding: 4px 10px; border-radius: 6px;
    }
    .question-stem-text {
      font-size: 15px; line-height: 1.8; color: var(--on-surface);
      margin-bottom: 16px;
    }

    /* -- options -- */
    .options-list {
      display: flex; flex-direction: column; gap: 6px;
    }
    .option-item {
      display: flex; align-items: center; gap: 16px;
      padding: 6px 14px; border-radius: 8px;
      border: 1.5px solid var(--border); background: var(--white);
      /* 过渡白名单：判分/hover 的 background/color 渐变；边框不进过渡（线条瞬变无渐显动画） */
      transition: background 0.2s ease, color 0.2s ease;
      font-size: 14px; line-height: 1.6; color: var(--on-surface);
      font-family: inherit;
      /* 选项框和内容分离：整个容器无交互提示，字母按钮负责答题，文字可选 */
    }
    .options-list.answered .option-item { pointer-events: none; }
    .option-item.selected {
      border-color: var(--primary); background: var(--alpha-06); color: var(--on-surface);
    }
    .option-item.correct {
      border-color: #2e7d32; background: #e8f5e9; color: #1b5e20;
    }
    .option-item.wrong {
      border-color: #c62828; background: #ffebee; color: #b71c1c;
    }
    /* 字母按钮 — 唯一的答题点击目标，视觉突出 */
    .option-letter-btn {
      font-weight: 700; font-size: 13px; min-width: 28px;
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: var(--alpha-08); flex-shrink: 0; cursor: pointer;
      /* 过渡白名单：hover/选中态背景/颜色渐变 + 缩放动画；边框不进过渡（线条瞬变无渐显动画） */
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
      border: 2px solid var(--alpha-18);
      color: var(--primary); font-family: inherit; padding: 0;
    }
    .option-letter-btn:hover { background: var(--primary-soft); color: white; border-color: var(--primary); transform: scale(1.08); }
    .option-letter-btn:active { transform: scale(0.95); }
    .options-list.answered .option-letter-btn { pointer-events: none; cursor: default; }
    .option-item.selected .option-letter-btn { background: var(--alpha-18); color: var(--primary-soft); border-color: var(--alpha-35); }
    .option-item.correct .option-letter-btn { background: rgba(46,125,50,0.12); color: #2e7d32; border-color: rgba(46,125,50,0.25); }
    .option-item.wrong .option-letter-btn { background: rgba(198,40,40,0.12); color: #c62828; border-color: rgba(198,40,40,0.25); }
    .option-text { flex: 1; user-select: text; cursor: text; color: var(--on-surface); }
    .option-text::selection { background: var(--alpha-20); }
    .option-mark { flex-shrink: 0; font-size: 16px; margin-left: 4px; }

    @keyframes fbIn {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }
    /* @component ScratchPad — 草稿纸（每道题右侧浮层）
       @state scratchMode on/off → 切换时重建DOM
       @gotcha 不能放在 .practice-body 内(overflow-y:auto 会裁剪 position:absolute)
       @gotcha 不能放在 position:fixed(侧边栏动画/全屏/resize 会导致错位)
       @solution position:absolute 在 #scratchLayer(.main 内) + rAF 持续同步位置
       @animation rAF 循环(60fps)同步位置，sidebar过渡/滚动/全屏/resize 自动跟随
       定位计算: 全部相对 .main 的 getBoundingClientRect()
         left = card.right - mainRect.left + 14
         right = mainRect.width - 16
         top = max(0, card.top - mainRect.top - 64)
       自动保存: document级input事件委托 → data-scratch属性 → practiceState.scratchNotes
    */
    .scratch-pad {
      position: absolute;
      display: flex; flex-direction: column;
      pointer-events: auto;
      will-change: transform;
    }
    .scratch-pad textarea {
      flex: 1; resize: none; border: 1px dashed #d0d0d0;
      border-radius: 10px; background: rgba(255,255,255,0.92);
      padding: 12px; font-family: inherit; font-size: 13px;
      line-height: 1.7; color: var(--on-surface-variant);
      outline: none; min-height: 80px; overflow-y: auto;
      transition: border-color 0.2s; backdrop-filter: blur(2px);
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .scratch-pad textarea:focus {
      border-color: var(--primary); border-style: solid;
      background: rgba(255,255,255,0.98);
    }
    .scratch-pad textarea::placeholder {
      color: #c0c0c0; font-size: 12px;
    }

    /* ── 综合题 passage 卡片 ── */
    .passage-card {
      border-left: 4px solid #e67e22 !important;
      background: #fffdf7;
    }

    /* ── 子题卡片：紧凑高度 ── */
    .sub-question-card {
      border-left: 3px solid var(--primary) !important;
      transition: padding 0.2s;
    }
    .sub-question-card .sub-stem {
      font-size: 14px; line-height: 1.7;
    }

    /* ── 简洁样式：去除卡片视觉（设置弹窗 data-view 切换，^= 匹配 simple-1/simple-2 两种）──
       只去背景/边框/圆角，保留内边距 → 切换时布局零跳动；
       对错/选中/悬停状态背景需重新断言（本块在原生规则之后，同特异性后者胜） */
    [data-view^="simple"] .chapter-card {
      background: transparent; border: none; border-radius: 0;
    }
    [data-view^="simple"] .chapter-card:hover {
      background: var(--alpha-03);
    }
    [data-view^="simple"] .question-card {
      background: transparent; border: none; border-radius: 0;
    }
    [data-view^="simple"] .passage-card {
      background: transparent;
    }
    [data-view^="simple"] .option-item {
      background: transparent; border: none; border-radius: 0;
    }
    [data-view^="simple"] .option-item.selected { background: var(--alpha-06); border-radius: 8px; }
    [data-view^="simple"] .option-item.correct { background: #e8f5e9; border-radius: 8px; }
    [data-view^="simple"] .option-item.wrong  { background: #ffebee; border-radius: 8px; }
    /* 简洁模式选项更紧凑：原 6px → 3px（只影响客观题选项列表，simple-1/simple-2 都生效） */
    [data-view^="simple"] .options-list { gap: 3px; }
    [data-view^="simple"] .option-letter-btn {
      background: transparent; border: none;
    }
    /* 重新断言悬停：原生 hover 的白字会被上面的透明背景盖成不可读 */
    [data-view^="simple"] .option-letter-btn:hover {
      background: var(--primary); color: white;
    }
    /* ── 简洁样式1 专属：做题区整块白底（与两侧浅灰留白形成区别）──
       简洁样式2 为全透明平铺，不需要这两条 */
    [data-view="simple-1"] .practice-container {
      background: var(--white);
    }
    /* 返回按钮是半透明白底，悬浮在白底做题区上会隐形，补边框 */
    [data-view="simple-1"] .practice-nav-back {
      border: 1px solid var(--border);
    }
    /* 样式切换（data-view 变化）时卡片元素的过渡：
       卡片类元素的 transition 为属性白名单（background/border-color/color/transform），
       border-width 不进过渡 → 切换时边框瞬变、无"粗线框"生长中间态，
       背景淡入分散到多帧 → 流畅不卡（瞬变一帧全页重绘反而卡） */

    /* ── 段落间距（由 JS 动态注入 style#study-font-style）── */
    /* .question-stem-text 段落用 white-space:pre-wrap 保留 \n，
       段间距通过 br+br 的 margin-top 实现 */

    /* ── 管线进度条（侧边栏文件项下）──
       进度行强制独占一行（flex-basis:100% + 容器 flex-wrap），
       文件名+菜单按钮留在第一行；轨道与百分比分区排列，避免文字压在线条上。 */
    .file-progress-bar {
      width: 100%; height: 3px;
      margin-top: 4px;
      display: flex; align-items: center; gap: 6px;
      flex-basis: 100%; flex-shrink: 0;  /* 独占整行：不再与文件名/菜单按钮挤同一行 */
    }
    .file-progress-track {
      flex: 1; min-width: 0; height: 3px; border-radius: 2px;
      background: var(--border); overflow: hidden;
    }
    .file-progress-fill {
      position: relative; overflow: hidden;
      height: 100%; border-radius: 2px;
      background: var(--primary);
      transition: width 0.3s ease;
      width: 0%;
    }
    .file-progress-pct {
      flex: 0 0 28px; text-align: right;
      font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1;
      font-variant-numeric: tabular-nums; color: var(--primary);
      white-space: nowrap; pointer-events: none; display: none;
    }
    /* 处理中：已填充段内一条亮带从左往右"冲"，循环往复；
       溢出被 .file-progress-fill 的 overflow:hidden 裁掉，绝不越界进未填充空位 */
    .file-item.extracting .file-progress-fill::after {
      content: '';
      position: absolute; top: 0; bottom: 0;
      left: -40%; width: 40%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
      animation: progressFillRush 1.1s linear infinite;
    }
    @keyframes progressFillRush {
      from { left: -40%; }
      to { left: 100%; }
    }
    .file-progress-text {
      font-size: 11px; color: var(--on-surface-variant);
      display: block; margin-top: 2px;
      white-space: pre-line;  /* 仅完成/失败时显示结果反馈 */
    }

    /* ── 提取中：圆圈旋转指示器（替代文件图标旋转）── */
    .file-item .file-spinner {
      display: none; width: 18px; height: 18px; flex-shrink: 0;
      border: 2px solid var(--outline); border-top-color: var(--primary);
      border-radius: 50%; animation: circleSpin 0.8s linear infinite;
    }
    .file-item.extracting .file-spinner { display: inline-block; }
    .file-item.extracting .file-icon { display: none; }
    @keyframes circleSpin {
      to { transform: rotate(360deg); }
    }

    /* ── Markdown 表格样式 ── */
    .question-stem-text table,
    .sub-stem table,
    .passage-para table,
    .option-text table,
    .ai-chat-bubble table {
      border-collapse: collapse;
      width: 100%;
      margin: 8px 0;
      font-size: var(--sf-font);
    }
    .question-stem-text th,
    .question-stem-text td,
    .sub-stem th,
    .sub-stem td,
    .passage-para th,
    .passage-para td,
    .option-text th,
    .option-text td,
    .ai-chat-bubble th,
    .ai-chat-bubble td {
      border: 1px solid var(--border, #ddd);
      padding: 2px 8px;
      text-align: left;
      vertical-align: top;
    }
    .question-stem-text th,
    .sub-stem th,
    .passage-para th,
    .option-text th,
    .ai-chat-bubble th {
      background: var(--surface-variant, #f5f5f5);
      font-weight: 600;
    }
    .question-stem-text tr:nth-child(even) td,
    .sub-stem tr:nth-child(even) td,
    .passage-para tr:nth-child(even) td,
    .option-text tr:nth-child(even) td,
    .ai-chat-bubble tr:nth-child(even) td {
      background: rgba(0, 0, 0, 0.02);
    }

    /* ── 主观题答题框 ── */
    .subjective-answer-box {
      border-top: 1px dashed var(--border, #e0e0e0);
      padding-top: 12px;
      max-height: 2000px;
      overflow: hidden;
      transition: max-height 0.3s ease, padding-top 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, border-top-color 0.3s ease;
    }
    .subjective-answer-box.collapsed {
      max-height: 0 !important;
      padding-top: 0 !important;
      margin-top: 0 !important;
      opacity: 0;
      border-top-color: transparent;
    }
    .subjective-answer-input {
      width: 100%; min-height: 180px; resize: vertical;
      border: 1.5px solid var(--border, #ddd);
      border-radius: 10px; padding: 12px 14px;
      font-family: inherit; font-size: var(--sf-font);
      line-height: var(--sf-line); color: var(--on-surface);
      background: #fafafa; outline: none;
      transition: border-color 0.2s, background 0.2s;
      box-sizing: border-box;
    }
    .subjective-answer-input:focus {
      border-color: var(--primary);
      background: var(--white);
      box-shadow: 0 0 0 3px var(--alpha-08);
    }
    .subjective-answer-input::placeholder {
      color: #c0c0c0; font-size: 13px;
    }

    /* ── 评分按钮（答题框右下角）── */
    .subjective-answer-footer {
      display: flex; justify-content: flex-end; align-items: center;
      margin-top: 8px; gap: 8px;
    }
    .grade-btn {
      padding: 6px 16px; border-radius: 8px;
      border: 1.5px solid var(--primary);
      background: var(--primary-container, var(--alpha-08));
      color: var(--primary); font-family: inherit;
      font-size: 13px; font-weight: 600; cursor: pointer;
      transition: all 0.2s ease; white-space: nowrap;
    }
    .grade-btn:hover {
      background: var(--primary); color: white;
      box-shadow: 0 2px 8px var(--alpha-25);
    }
    .grade-btn:active { transform: scale(0.96); }
    .grade-btn:disabled {
      opacity: 0.6; cursor: not-allowed;
      background: #e0e0e0; border-color: #ccc; color: #999;
      box-shadow: none;
    }

    /* ── 收起答题框按钮 ── */
    .collapse-answer-btn {
      padding: 6px 12px; border-radius: 8px;
      border: 1px solid var(--border, #ddd);
      background: transparent; color: var(--on-surface-variant);
      font-family: inherit; font-size: 13px; cursor: pointer;
      transition: all 0.2s ease; white-space: nowrap;
    }
    .collapse-answer-btn:hover {
      background: #f5f5f5; color: var(--on-surface);
    }

    /* ── 评分结果展示 ── */
    .grade-result {
      margin-top: 10px; padding: 12px 14px;
      border-radius: 10px; font-size: 13px;
      line-height: 1.7; animation: fbIn 0.3s ease;
    }
    .grade-result.grade-correct {
      background: #e8f5e9; border: 1px solid #a5d6a7;
      color: #1b5e20;
    }
    .grade-result.grade-wrong {
      background: #ffebee; border: 1px solid #ef9a9a;
      color: #b71c1c;
    }
    .grade-result-icon { font-size: 16px; margin-bottom: 4px; }
    .grade-result-text { white-space: pre-wrap; }

    /* -- 右侧操作按钮组（分析 + 收藏）-- */
    .card-actions {
      display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0;
    }

    /* -- 题目分析按钮（卡片头部，收藏按钮左侧）-- */
    .analysis-toggle-btn {
      width: 30px; height: 30px; border-radius: 50%; border: none;
      background: transparent; cursor: pointer; display: inline-flex;
      align-items: center; justify-content: center;
      color: var(--outline); transition: all 0.2s; flex-shrink: 0;
      position: relative;
    }
    .analysis-toggle-btn svg { width: 16px; height: 16px; }
    .analysis-toggle-btn:hover { background: var(--alpha-08); color: var(--primary-soft); }
    .analysis-toggle-btn.active { color: var(--primary-soft); background: var(--alpha-06); }

    /* -- 卡片按钮自定义 tooltip（参照工具栏样式）-- */
    .card-actions button[data-tooltip] { position: relative; }
    .card-actions button[data-tooltip]::after {
      content: attr(data-tooltip);
      position: absolute;
      top: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      padding: 4px 10px;
      border-radius: 6px;
      background: rgba(0,0,0,0.75);
      color: #fff;
      font-size: 12px;
      font-weight: 400;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.12s ease;
      z-index: 200;
    }
    .card-actions button[data-tooltip]:hover::after { opacity: 1; }

    /* -- 题目分析面板（选项下方）-- */
    .analysis-panel {
      display: none; margin-top: 12px; padding: 14px 16px;
      border-radius: 10px; background: var(--alpha-03);
      border: 1px solid var(--border); font-size: 13px; line-height: 1.7;
      color: var(--on-surface-variant);
    }
    .analysis-panel.show { display: block; }
    .analysis-section { margin-bottom: 12px; }
    .analysis-section:last-child { margin-bottom: 0; }
    .analysis-label {
      font-weight: 600; font-size: 12px; color: var(--on-surface);
      margin-bottom: 4px; text-transform: none;
    }
    .analysis-text { color: var(--on-surface-variant); }
    .analysis-option-item {
      display: flex; align-items: baseline; gap: 6px;
      margin-top: 4px; font-size: 13px;
    }
    .analysis-option-label {
      font-weight: 700; font-size: 12px; min-width: 18px;
      color: var(--primary); flex-shrink: 0;
    }
    .analysis-option-text { color: var(--on-surface-variant); }
    .analysis-empty {
      color: var(--outline); font-size: 13px; text-align: center; padding: 8px 0;
    }

    /* ── 暗夜黑适配：判分选项硬编码浅色在深色下发糊，改深底+浅字 ──
       （放在文件末尾，simple 块之后，同特异性下覆盖顺序取胜，simple+dark 同样生效） */
    [data-theme="dark"] .option-item.correct {
      border-color: #4caf50; background: rgba(76,175,80,0.16); color: #a5d6a7;
    }
    [data-theme="dark"] .option-item.wrong {
      border-color: #ef5350; background: rgba(239,83,80,0.14); color: #ef9a9a;
    }
    /* .option-text 固定 on-surface 在深色下浅字叠浅底，改继承判分色 */
    [data-theme="dark"] .option-item.correct .option-text,
    [data-theme="dark"] .option-item.wrong .option-text { color: inherit; }
    [data-theme="dark"] .option-item.correct .option-letter-btn {
      background: rgba(76,175,80,0.22); color: #a5d6a7; border-color: rgba(76,175,80,0.35);
    }
    [data-theme="dark"] .option-item.wrong .option-letter-btn {
      background: rgba(239,83,80,0.2); color: #ef9a9a; border-color: rgba(239,83,80,0.35);
    }

    /* ── 答案匹配补救入口 ── */
    .answer-match-recovery {
      margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--outline);
      border-radius: 10px; background: var(--alpha-03); color: var(--on-surface-variant);
    }
    .answer-match-recovery-text { font-size: 12px; line-height: 1.6; }
    .answer-match-recovery-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
    .answer-match-recovery-actions button {
      border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px;
      background: var(--white); color: var(--primary); cursor: pointer; font: inherit; font-size: 12px;
    }
    .answer-match-recovery-actions button:hover { border-color: var(--primary); background: var(--primary-container); }

    /* ── 人工答案弹层 ── */
    .manual-answer-overlay {
      position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center;
      justify-content: center; padding: 20px; background: rgba(15, 23, 42, 0.42);
    }
    .manual-answer-modal {
      width: min(560px, 100%); max-height: min(760px, 90vh); overflow-y: auto;
      padding: 20px; border: 1px solid var(--border); border-radius: 16px;
      background: var(--white); color: var(--on-surface); box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    }
    .manual-answer-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .manual-answer-modal-title { font-size: 18px; font-weight: 700; }
    .manual-answer-modal-subtitle { margin-top: 4px; color: var(--on-surface-variant); font-size: 12px; }
    .manual-answer-close {
      width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent;
      color: var(--on-surface-variant); cursor: pointer; font-size: 23px; line-height: 1;
    }
    .manual-answer-close:hover { background: var(--hover-bg); }
    .manual-answer-type-label {
      display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; font-weight: 600;
    }
    .manual-answer-type {
      min-width: 120px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px;
      background: var(--white); color: var(--on-surface); font: inherit; font-size: 13px;
    }
    .manual-answer-help { margin: 14px 0 8px; color: var(--on-surface-variant); font-size: 12px; }
    .manual-answer-options { display: flex; flex-direction: column; gap: 7px; }
    .manual-answer-option {
      display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 10px;
      border: 1px solid var(--border); border-radius: 9px; background: var(--white); color: var(--on-surface);
      cursor: pointer; text-align: left; font: inherit;
    }
    .manual-answer-option:hover { border-color: var(--primary); background: var(--alpha-03); }
    .manual-answer-option.selected { border-color: var(--primary); background: var(--primary-container); }
    .manual-answer-option-label {
      display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px;
      border-radius: 50%; background: var(--alpha-08); color: var(--primary); font-size: 12px; font-weight: 700;
    }
    .manual-answer-option.selected .manual-answer-option-label { background: var(--primary); color: var(--on-primary); }
    .manual-answer-option-content { flex: 1; padding-top: 2px; font-size: 13px; line-height: 1.6; }
    .manual-answer-empty { padding: 16px 0; color: var(--outline); text-align: center; font-size: 13px; }
    .manual-answer-modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
    .manual-answer-modal-footer button {
      padding: 7px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px;
    }
    .manual-answer-cancel { border: 1px solid var(--border); background: var(--white); color: var(--on-surface-variant); }
    .manual-answer-save { border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); }
    .manual-answer-save:disabled { cursor: wait; opacity: 0.6; }
