/* ===== inline style #1 ===== */

    :root {
      --bg-page: #f1f5f9;
      --bg-card: #ffffff;
      --bg-subtle: #f8fafc;
      --text-main: #0f172a;
      --text-muted: #475569;
      --border-color: #e2e8f0;
      --brand-primary: #1a3a6b;
      --brand-accent: #2563eb;
    }

    html[data-theme="dark"] {
      --bg-page: #0b1120;
      --bg-card: #1e293b;
      --bg-subtle: #0f172a;
      --text-main: #f1f5f9;
      --text-muted: #94a3b8;
      --border-color: #334155;
      --brand-primary: #1e40af;
      --brand-accent: #3b82f6;
    }

    html[data-theme="sepia"] {
      --bg-page: #f3ead8;
      --bg-card: #fbf6e9;
      --bg-subtle: #f5ebd6;
      --text-main: #3b2f2f;
      --text-muted: #6e5a4f;
      --border-color: #dfcfa9;
      --brand-primary: #5c3a21;
      --brand-accent: #8b5a2b;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
      background-color: var(--bg-page);
      color: var(--text-main);
      margin: 0;
      padding-bottom: 84px;
      transition: background-color 0.2s ease, color 0.2s ease;
      -webkit-tap-highlight-color: transparent;
      overflow-x: hidden;
    }

    .theme-card {
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      color: var(--text-main);
    }

    .theme-subtle {
      background-color: var(--bg-subtle);
      border-color: var(--border-color);
    }

    .theme-muted {
      color: var(--text-muted);
    }

    /* 题眼与法条自动高亮 */
    .kw-neg {
      background: rgba(239, 68, 68, 0.15);
      color: #dc2626;
      font-weight: 700;
      padding: 0 4px;
      border-radius: 4px;
      border-bottom: 2px solid rgba(239, 68, 68, 0.45);
    }
    html[data-theme="dark"] .kw-neg {
      color: #f87171;
      background: rgba(239, 68, 68, 0.22);
    }

    .kw-law {
      background: rgba(37, 99, 235, 0.12);
      color: #1d4ed8;
      font-weight: 600;
      padding: 0 4px;
      border-radius: 4px;
    }
    html[data-theme="dark"] .kw-law {
      color: #60a5fa;
      background: rgba(59, 130, 246, 0.2);
    }

    .kw-core {
      background: rgba(245, 158, 11, 0.18);
      color: #b45309;
      font-weight: 600;
      padding: 0 4px;
      border-radius: 4px;
    }
    html[data-theme="dark"] .kw-core {
      color: #fbbf24;
      background: rgba(245, 158, 11, 0.22);
    }

    /* 选项样式 */
    .option-row {
      transition: all 0.15s ease;
      border: 1.5px solid var(--border-color);
      background-color: var(--bg-card);
    }
    .option-row:hover {
      border-color: #60a5fa;
    }
    .option-row.is-selected {
      border-color: #2563eb;
      background-color: rgba(37, 99, 235, 0.08);
    }
    .option-row.is-correct {
      border-color: #16a34a !important;
      background-color: rgba(22, 163, 74, 0.12) !important;
    }
    .option-row.is-wrong {
      border-color: #dc2626 !important;
      background-color: rgba(220, 38, 38, 0.12) !important;
    }
    .option-row.is-missed {
      border-color: #d97706 !important;
      background-color: rgba(217, 119, 6, 0.12) !important;
    }

    /* 隐藏横向滚动条但保留滑动 */
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    /* 滑动动画反馈 */
    @keyframes slidePulseLeft {
      0% { transform: translateX(0); }
      40% { transform: translateX(-10px); }
      100% { transform: translateX(0); }
    }
    @keyframes slidePulseRight {
      0% { transform: translateX(0); }
      40% { transform: translateX(10px); }
      100% { transform: translateX(0); }
    }
    .anim-slide-left {
      animation: slidePulseLeft 0.22s ease-out;
    }
    .anim-slide-right {
      animation: slidePulseRight 0.22s ease-out;
    }

    /* ── 首页动态渐变 Hero（移植自 Motion Prompt #095 · 动画渐变）── */
    #heroGlow {
      position: relative;
      overflow: hidden;
      border-radius: 1rem;
      isolation: isolate;
      box-shadow: 0 12px 34px -16px rgba(26, 58, 107, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
    }
    html[data-theme="dark"] #heroGlow {
      box-shadow: 0 12px 34px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    }
    #heroGlowCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      z-index: 0;
    }
    .hero-glow-inner {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      min-height: clamp(150px, 25vw, 184px);
      padding: clamp(16px, 3vw, 26px);
    }
    .hero-glow-panel {
      max-width: min(600px, 94%);
      padding: 14px 18px;
      border-radius: 14px;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.80);
      background: color-mix(in srgb, var(--bg-card) 82%, transparent);
      -webkit-backdrop-filter: blur(7px);
      backdrop-filter: blur(7px);
    }
    .hero-glow-kicker {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: #e2542a;
    }
    .hero-glow-kicker svg{ width: 14px; height: 14px; }
    .hero-glow-title {
      margin: 6px 0 5px;
      font-size: clamp(19px, 3.4vw, 27px);
      font-weight: 800;
      letter-spacing: -0.01em;
      color: var(--text-main);
      line-height: 1.15;
    }
    .hero-glow-sub {
      margin: 0 0 13px;
      font-size: 12.5px;
      line-height: 1.55;
      color: var(--text-muted);
    }
    .hero-glow-btn {
      border: 0;
      cursor: pointer;
      font: inherit;
      font-weight: 700;
      font-size: 13px;
      color: #fff;
      background: #1a3a6b;
      padding: 8px 17px;
      border-radius: 999px;
      box-shadow: 0 8px 18px -8px rgba(26, 58, 107, 0.8);
      transition: transform 0.12s ease, background 0.15s ease;
    }
    .hero-glow-btn:hover { background: #24497f; transform: translateY(-1px); }
    .hero-glow-btn:active { transform: translateY(0); }
  
/* ===== inline style #2 id="ui-polish" ===== */

    /* 字体渲染与选区 */
    body{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
    ::selection{ background:rgba(37,99,235,.22); }

    /* 页面背景：极淡光晕，避免死白/死黑 */
    body{
      background-image:
        radial-gradient(1100px 560px at 100% -8%, rgba(37,99,235,.06), transparent 60%),
        radial-gradient(900px 480px at -8% 6%, rgba(245,158,11,.05), transparent 55%);
      background-attachment:fixed;
    }
    html[data-theme="dark"] body{
      background-image:
        radial-gradient(1100px 560px at 100% -8%, rgba(59,130,246,.12), transparent 60%),
        radial-gradient(900px 480px at -8% 6%, rgba(245,158,11,.07), transparent 55%);
    }

    /* 顶栏：深蓝渐变 + 更强层次 */
    header{
      background:linear-gradient(135deg,#16305a 0%,#1a3a6b 46%,#22528f 100%) !important;
      box-shadow:0 10px 30px -18px rgba(8,20,45,.95) !important;
      border-bottom:1px solid rgba(255,255,255,.08);
    }
    /* 模式切换条（原深色 #132c52）压深 + 内阴影 */
    header [class*="132c52"]{
      background:linear-gradient(180deg,rgba(8,20,42,.62),rgba(8,20,42,.42)) !important;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
    }
    header button{ transition:transform .12s ease, background .18s ease, box-shadow .18s ease; }
    header button:active{ transform:scale(.95); }

    /* 玻璃拟态工具按钮 */
    #themeToggleBtn,#openKnowledgeBtn,#openAiModalBtn{
      background:rgba(255,255,255,.10) !important;
      border:1px solid rgba(255,255,255,.14);
      box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
    }
    #themeToggleBtn:hover,#openKnowledgeBtn:hover,#openAiModalBtn:hover{
      background:rgba(255,255,255,.22) !important; transform:translateY(-1px);
    }
    #openSyncModalBtn{ box-shadow:0 8px 18px -8px rgba(245,158,11,.85); }
    #openSyncModalBtn:hover{ transform:translateY(-1px); filter:brightness(1.04); }

    /* 分段控件里的激活项 */
    #modePracticeBtn{ box-shadow:0 6px 14px -8px rgba(59,130,246,.95); }

    /* 统计卡片：顶部彩条 + 悬浮微抬升 */
    section .grid-cols-5 > *{
      position:relative; overflow:hidden;
      transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
      background-image:linear-gradient(180deg,rgba(37,99,235,.05),rgba(37,99,235,0));
    }
    section .grid-cols-5 > *:hover{ transform:translateY(-2px); box-shadow:0 12px 24px -18px rgba(15,35,70,.6); }
    section .grid-cols-5 > *::after{
      content:""; position:absolute; left:0; right:0; top:0; height:3px;
      background:linear-gradient(90deg,#93c5fd,#2563eb); opacity:.7;
    }
    section .grid-cols-5 > *:nth-child(2)::after{ background:linear-gradient(90deg,#6ee7b7,#10b981); }
    section .grid-cols-5 > *:nth-child(3)::after{ background:linear-gradient(90deg,#fca5a5,#ef4444); }
    section .grid-cols-5 > *:nth-child(4)::after{ background:linear-gradient(90deg,#fcd34d,#f59e0b); }
    section .grid-cols-5 > *:nth-child(5)::after{ background:linear-gradient(90deg,#a5b4fc,#6366f1); }
    #statAnswered,#statAccuracy,#statWrong,#statFav,#statReview{
      font-variant-numeric:tabular-nums; letter-spacing:-.01em; font-size:1.02rem;
    }

    /* 通用卡片层次 */
    .theme-card{ box-shadow:0 10px 28px -22px rgba(15,35,70,.55); }

    /* 题目卡 */
    #questionCard{
      box-shadow:0 22px 48px -30px rgba(15,35,70,.65) !important;
      border:1px solid var(--border-color);
    }
    #qIndexBadge{ box-shadow:0 4px 12px -6px rgba(26,58,107,.9); }

    /* 选项：圆角、悬浮、选中渐变 */
    .option-row{
      border-radius:14px !important;
      transition:transform .14s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
    }
    .option-row:hover{ transform:translateY(-1px); box-shadow:0 12px 24px -18px rgba(37,99,235,.65); }
    .option-row.is-selected{
      background:linear-gradient(135deg,rgba(37,99,235,.14),rgba(37,99,235,.05)) !important;
      box-shadow:0 12px 24px -16px rgba(37,99,235,.8);
    }
    .option-row.is-correct{ box-shadow:0 12px 24px -16px rgba(22,163,74,.8); }
    .option-row.is-wrong{ box-shadow:0 12px 24px -16px rgba(220,38,38,.8); }

    /* 主操作按钮统一渐变 */
    #submitAnswerBtn,#dockNextBtn,.hero-glow-btn{
      background:linear-gradient(135deg,#20508f,#1a3a6b 55%,#16305a) !important;
      box-shadow:0 12px 24px -12px rgba(26,58,107,.9) !important;
    }
    #submitAnswerBtn:hover,#dockNextBtn:hover,.hero-glow-btn:hover{ transform:translateY(-1px); filter:brightness(1.08); }
    #submitAnswerBtn:active,#dockNextBtn:active{ transform:translateY(0) scale(.98); }

    /* 底部导航：磨砂 + 上抬阴影 */
    nav.fixed.bottom-0{
      background:color-mix(in srgb, var(--bg-card) 86%, transparent) !important;
      -webkit-backdrop-filter:blur(14px) saturate(140%);
      backdrop-filter:blur(14px) saturate(140%);
      box-shadow:0 -10px 32px -20px rgba(15,35,70,.7) !important;
    }
    nav.fixed.bottom-0 button{ transition:transform .12s ease, box-shadow .16s ease, border-color .16s ease; }
    nav.fixed.bottom-0 button:hover{ transform:translateY(-1px); }
    nav.fixed.bottom-0 button:active{ transform:scale(.95); }

    /* 焦点环统一 */
    input:focus, textarea:focus, select:focus{ outline:none; box-shadow:0 0 0 3px rgba(37,99,235,.18); }

    /* 细滚动条 */
    *::-webkit-scrollbar{ width:9px; height:9px; }
    *::-webkit-scrollbar-thumb{ background:rgba(100,116,139,.45); border-radius:999px; border:2px solid transparent; background-clip:content-box; }
    *::-webkit-scrollbar-thumb:hover{ background:rgba(100,116,139,.7); background-clip:content-box; }

    /* 题目卡顶部渐变描边 */
    #questionCard::before{
      content:""; position:absolute; left:0; right:0; top:0; height:4px;
      border-radius:16px 16px 0 0; pointer-events:none;
      background:linear-gradient(90deg,#1e4482,#3b82f6 42%,#f59e0b 100%);
      opacity:.85;
    }

    /* Hero 光圈 */
    #heroGlow{
      border-radius:1.15rem;
      box-shadow:0 18px 44px -26px rgba(26,58,107,.6), 0 0 0 1px rgba(255,255,255,.45) inset !important;
    }
    html[data-theme="dark"] #heroGlow{
      box-shadow:0 18px 44px -26px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08) inset !important;
    }

    /* 科目筛选 chip：悬浮微抬升 + 激活项渐变 */
    #subjectFilterBar button{ transition:transform .14s ease, box-shadow .16s ease, border-color .16s ease; }
    #subjectFilterBar button:hover{ transform:translateY(-1px); box-shadow:0 8px 18px -14px rgba(15,35,70,.6); }
    #subjectFilterBar button:active{ transform:scale(.96); }
    #subjectFilterBar button[class*="1a3a6b"]{
      background:linear-gradient(135deg,#20508f,#1a3a6b) !important;
      box-shadow:0 8px 16px -10px rgba(26,58,107,.9);
    }

    /* ───────────────── v2：更强质感 / 年轻化配色 ───────────────── */
    /* 顶栏底部品牌渐变线（header 为 sticky，sticky 已构成定位上下文，勿改 position） */
    header::after{
      content:""; position:absolute; left:0; right:0; bottom:0; height:3px; z-index:1;
      background:linear-gradient(90deg,#3b82f6,#f59e0b 60%,#ec4899); opacity:.9;
    }

    /* 统计卡：分色浅底 + 更大数字 */
    section .grid-cols-5 > *{ background-image:none; border-color:rgba(148,163,184,.28); }
    section .grid-cols-5 > *:nth-child(1){ background-image:linear-gradient(180deg,rgba(37,99,235,.12),rgba(37,99,235,.02)); }
    section .grid-cols-5 > *:nth-child(2){ background-image:linear-gradient(180deg,rgba(16,185,129,.12),rgba(16,185,129,.02)); }
    section .grid-cols-5 > *:nth-child(3){ background-image:linear-gradient(180deg,rgba(239,68,68,.11),rgba(239,68,68,.02)); }
    section .grid-cols-5 > *:nth-child(4){ background-image:linear-gradient(180deg,rgba(245,158,11,.13),rgba(245,158,11,.02)); }
    section .grid-cols-5 > *:nth-child(5){ background-image:linear-gradient(180deg,rgba(99,102,241,.12),rgba(99,102,241,.02)); }
    section .grid-cols-5 > *:hover{ border-color:rgba(37,99,235,.5); }
    #statAnswered,#statAccuracy,#statWrong,#statFav,#statReview{ font-size:1.15rem; font-weight:800; }

    /* 主 CTA 更亮、更年轻（蓝→靛）+ 光晕 */
    #submitAnswerBtn,#dockNextBtn,.hero-glow-btn{
      background:linear-gradient(135deg,#3b82f6,#2563eb 52%,#1d4ed8) !important;
      box-shadow:0 12px 26px -12px rgba(37,99,235,.85) !important;
    }
    #subjectFilterBar button[class*="1a3a6b"]{
      background:linear-gradient(135deg,#3b82f6,#2563eb) !important;
      box-shadow:0 8px 18px -10px rgba(37,99,235,.9);
    }

    /* 筛选项交互 */
    #diffFilterSelect, #typeFilterSelect, #shuffleQuestionsBtn{
      border-radius:10px; transition:border-color .15s ease, box-shadow .15s ease, transform .12s ease;
    }
    #diffFilterSelect:hover, #typeFilterSelect:hover{ border-color:#60a5fa; }
    #shuffleQuestionsBtn:hover{ border-color:#60a5fa; transform:translateY(-1px); }

    /* 选项默认序号徽章：柔和品牌底（选中/对/错态自带 bg- 类，不受影响） */
    .option-row > span:first-child:not([class*="bg-"]){
      background:linear-gradient(135deg,rgba(37,99,235,.16),rgba(37,99,235,.05));
      color:#2563eb; border-color:rgba(37,99,235,.35);
      box-shadow:0 4px 10px -8px rgba(37,99,235,.7);
    }

    /* 错题本条目：左侧玫红条 + 悬浮 */
    #wrongQuestionsList > div.theme-subtle{
      position:relative; overflow:hidden;
      transition:transform .15s ease, box-shadow .16s ease, border-color .16s ease;
    }
    #wrongQuestionsList > div.theme-subtle::before{
      content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
      background:linear-gradient(180deg,#fb7185,#e11d48); opacity:.85;
    }
    #wrongQuestionsList > div.theme-subtle:hover{ transform:translateY(-1px); box-shadow:0 12px 24px -18px rgba(15,35,70,.55); }
    #wrongQuestionsList > div.theme-subtle > button{
      background:linear-gradient(135deg,#3b82f6,#2563eb) !important;
      box-shadow:0 6px 14px -10px rgba(37,99,235,.9);
    }

    /* ── 深色主题精修 ── */
    html[data-theme="dark"] section .grid-cols-5 > *{ border-color:rgba(59,130,246,.24); }
    html[data-theme="dark"] .option-row > span:first-child:not([class*="bg-"]){ color:#93c5fd; border-color:rgba(147,197,253,.4); }

    /* ── 羊皮纸主题精修（暖色系，避免蓝色突兀） ── */
    html[data-theme="sepia"] header{ background:linear-gradient(135deg,#4a2e1a,#5c3a21 46%,#7a4a25) !important; }
    html[data-theme="sepia"] #submitAnswerBtn,
    html[data-theme="sepia"] #dockNextBtn,
    html[data-theme="sepia"] .hero-glow-btn,
    html[data-theme="sepia"] #subjectFilterBar button[class*="1a3a6b"],
    html[data-theme="sepia"] #wrongQuestionsList > div.theme-subtle > button{
      background:linear-gradient(135deg,#8b5a2b,#6d4522 55%,#5c3a21) !important;
      box-shadow:0 12px 26px -14px rgba(92,58,33,.7) !important;
    }
    html[data-theme="sepia"] section .grid-cols-5 > *:nth-child(1){ background-image:linear-gradient(180deg,rgba(139,90,43,.12),rgba(139,90,43,.02)); }
    html[data-theme="sepia"] section .grid-cols-5 > *:nth-child(2){ background-image:linear-gradient(180deg,rgba(22,163,74,.12),rgba(22,163,74,.02)); }
    html[data-theme="sepia"] section .grid-cols-5 > *:nth-child(3){ background-image:linear-gradient(180deg,rgba(220,38,38,.11),rgba(220,38,38,.02)); }
    html[data-theme="sepia"] section .grid-cols-5 > *:nth-child(4){ background-image:linear-gradient(180deg,rgba(180,120,30,.14),rgba(180,120,30,.02)); }
    html[data-theme="sepia"] section .grid-cols-5 > *:nth-child(5){ background-image:linear-gradient(180deg,rgba(120,80,40,.12),rgba(120,80,40,.02)); }
    html[data-theme="sepia"] .option-row > span:first-child:not([class*="bg-"]){ color:#8b5a2b; border-color:rgba(139,90,43,.4); }
    html[data-theme="sepia"] #questionCard::before{ background:linear-gradient(90deg,#6d4522,#8b5a2b 45%,#c79a3b); }
    html[data-theme="sepia"] header::after{ background:linear-gradient(90deg,#8b5a2b,#c79a3b); }

    /* ───────────────── v3：Hero / 统计图标 / 弹窗统一 ───────────────── */
    /* Hero 标题渐变字（主题自适应；不支持 background-clip 时保留原色回退） */
    .hero-glow-title{
      background:linear-gradient(92deg,#12233f 0%,#1a3a6b 46%,#b45309 100%);
      -webkit-background-clip:text; background-clip:text;
      -webkit-text-fill-color:transparent;
    }
    html[data-theme="dark"] .hero-glow-title{
      background:linear-gradient(92deg,#e0ecff 0%,#93c5fd 50%,#fcd34d 100%);
      -webkit-background-clip:text; background-clip:text;
    }
    html[data-theme="sepia"] .hero-glow-title{
      background:linear-gradient(92deg,#4a2e1a 0%,#8b5a2b 55%,#b45309 100%);
      -webkit-background-clip:text; background-clip:text;
    }
    /* Hero kicker 做成小徽章 */
    .hero-glow-kicker{
      display:inline-flex; align-items:center; gap:4px;
      padding:3px 10px; border-radius:999px;
      background:rgba(226,84,42,.10); border:1px solid rgba(226,84,42,.28);
    }

    /* 统计卡图标徽章 */
    .stat-ico{
      display:inline-flex; align-items:center; justify-content:center;
      width:19px; height:19px; margin-right:3px; border-radius:6px;
      font-size:11px; vertical-align:-4px;
      background:rgba(37,99,235,.12);
    }
    section .grid-cols-5 > *:nth-child(1) .stat-ico{ background:rgba(37,99,235,.14); }
    section .grid-cols-5 > *:nth-child(2) .stat-ico{ background:rgba(16,185,129,.16); }
    section .grid-cols-5 > *:nth-child(3) .stat-ico{ background:rgba(239,68,68,.15); }
    section .grid-cols-5 > *:nth-child(4) .stat-ico{ background:rgba(245,158,11,.18); }
    section .grid-cols-5 > *:nth-child(5) .stat-ico{ background:rgba(99,102,241,.16); }
    html[data-theme="sepia"] .stat-ico{ background:rgba(139,90,43,.16); }

    /* 弹窗统一：更强遮罩 + 顶部渐变条 + 深阴影 */
    #answerSheetModal, #knowledgeModal, #syncModal{
      -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
      background:rgba(2,6,23,.66);
    }
    #answerSheetModal > .theme-card, #knowledgeModal > .theme-card, #syncModal > .theme-card{
      /* 必须用 overflow-y:auto：原先的 overflow:hidden 会凭借 ID 选择器特异性
         覆盖卡片自带的 Tailwind overflow-y-auto，导致矮视口下超出 max-height
         的内容被硬性裁掉且无法滚动（syncModal「清空重置」按钮即因此不可达）。
         overflow-x:hidden 保留圆角与顶部渐变条的裁切效果。 */
      position:relative; overflow-x:hidden; overflow-y:auto;
      box-shadow:0 30px 70px -30px rgba(2,6,23,.75) !important;
    }
    #answerSheetModal > .theme-card::before,
    #knowledgeModal > .theme-card::before,
    #syncModal > .theme-card::before{
      content:""; position:absolute; left:0; right:0; top:0; height:4px;
      background:linear-gradient(90deg,#3b82f6,#8b5cf6 55%,#f59e0b); opacity:.9;
    }
    html[data-theme="sepia"] #answerSheetModal > .theme-card::before,
    html[data-theme="sepia"] #knowledgeModal > .theme-card::before,
    html[data-theme="sepia"] #syncModal > .theme-card::before{
      background:linear-gradient(90deg,#8b5a2b,#c79a3b);
    }

    /* 关闭按钮：悬浮旋转变红 */
    #closeSheetModalBtn, #closeKnowledgeModalBtn, #closeSyncModalBtn{
      transition:transform .16s ease, background .15s ease, border-color .15s ease, color .15s ease;
    }
    #closeSheetModalBtn:hover, #closeKnowledgeModalBtn:hover, #closeSyncModalBtn:hover{
      transform:rotate(90deg); border-color:#ef4444; color:#ef4444;
    }

    /* 答题卡网格按钮悬浮 */
    #answerSheetGrid button{ transition:transform .12s ease, box-shadow .16s ease; }
    #answerSheetGrid button:hover{ transform:translateY(-2px) scale(1.05); box-shadow:0 8px 18px -10px rgba(15,35,70,.55); }

    /* 知识点 tab 激活 / 同步主按钮 渐变 */
    .m-tab.is-active{ box-shadow:0 6px 14px -8px rgba(37,99,235,.8); }
    #knowledgePane.hidden, #myNotesPane.hidden{ display:none !important; }
    .empty-ico svg{ width:26px; height:26px; opacity:.8; }
    #syncModal button[class*="1a3a6b"]{ background:linear-gradient(135deg,#3b82f6,#2563eb) !important; box-shadow:0 6px 14px -8px rgba(37,99,235,.8); }
    html[data-theme="sepia"] #syncModal button[class*="1a3a6b"]{
      background:linear-gradient(135deg,#8b5a2b,#6d4522) !important;
    }

    /* AI 解析 / 追问框微光 */
    #aiResponseBox{ box-shadow:0 10px 24px -18px rgba(99,102,241,.6); }

    /* ───────── v4：题卡标签/难度星级 · 空状态插画 · 答题卡配色 ───────── */
    /* 题卡头部标签精修 */
    #qIndexBadge, #qSubjectBadge, #qTypeBadge, #qDiffBadge, #qYearBadge{
      padding:.12rem .5rem; line-height:1.5; border-radius:8px;
    }
    #qIndexBadge{
      background:linear-gradient(135deg,#16305a,#1a3a6b) !important;
      letter-spacing:.02em; box-shadow:0 4px 12px -6px rgba(26,58,107,.85);
    }
    #qSubjectBadge{
      background:rgba(37,99,235,.12) !important; color:#1d4ed8 !important;
      border:1px solid rgba(37,99,235,.22);
    }
    #qTypeBadge{
      background:rgba(139,92,246,.13) !important; color:#6d28d9 !important;
      border:1px solid rgba(139,92,246,.24);
    }
    #qDiffBadge{ box-shadow:0 3px 10px -7px rgba(15,35,70,.5); }
    html[data-theme="dark"] #qSubjectBadge{ background:rgba(96,165,250,.16) !important; color:#93c5fd !important; border-color:rgba(147,197,253,.28); }
    html[data-theme="dark"] #qTypeBadge{ background:rgba(167,139,250,.16) !important; color:#c4b5fd !important; border-color:rgba(196,181,253,.28); }
    html[data-theme="sepia"] #qIndexBadge{ background:linear-gradient(135deg,#6d4522,#8b5a2b) !important; }
    html[data-theme="sepia"] #qSubjectBadge{ background:rgba(139,90,43,.14) !important; color:#8b5a2b !important; border-color:rgba(139,90,43,.32); }
    html[data-theme="sepia"] #qTypeBadge{ background:rgba(120,80,40,.14) !important; color:#6d4522 !important; border-color:rgba(109,69,34,.32); }

    /* 空状态插画 */
    .empty-illust{ padding:1.6rem .75rem; display:flex; flex-direction:column; align-items:center; gap:.2rem; }
    .empty-illust .empty-ico{
      width:58px; height:58px; display:flex; align-items:center; justify-content:center;
      font-size:27px; border-radius:50%; margin-bottom:.55rem;
      background:radial-gradient(circle at 32% 28%, rgba(37,99,235,.20), rgba(37,99,235,.05) 70%);
      box-shadow:inset 0 0 0 1px rgba(37,99,235,.18), 0 12px 26px -16px rgba(37,99,235,.6);
    }
    .empty-illust .empty-title{ font-size:.9rem; font-weight:700; color:var(--text-main); }
    .empty-illust .empty-desc{ font-size:.75rem; color:var(--text-muted); max-width:21rem; line-height:1.5; }
    html[data-theme="sepia"] .empty-illust .empty-ico{
      background:radial-gradient(circle at 32% 28%, rgba(139,90,43,.24), rgba(139,90,43,.06) 70%);
      box-shadow:inset 0 0 0 1px rgba(139,90,43,.28), 0 12px 26px -16px rgba(139,90,43,.6);
    }

    /* 答题卡格子：已答对/错 更鲜明（渐变 + 角标） */
    #answerSheetGrid button.sheet-correct{
      background:linear-gradient(135deg,#34d399,#059669) !important;
      color:#fff !important; border-color:#047857 !important;
      box-shadow:0 8px 18px -10px rgba(5,150,105,.95), inset 0 1px 0 rgba(255,255,255,.25);
    }
    #answerSheetGrid button.sheet-wrong{
      background:linear-gradient(135deg,#fb7185,#e11d48) !important;
      color:#fff !important; border-color:#be123c !important;
      box-shadow:0 8px 18px -10px rgba(225,29,72,.95), inset 0 1px 0 rgba(255,255,255,.22);
    }
    #answerSheetGrid button.sheet-correct:hover, #answerSheetGrid button.sheet-wrong:hover{
      transform:translateY(-2px) scale(1.06);
    }

    /* ───────── v5：答题卡图例渐变 · 选项判定角标 ───────── */
    .legend-dot{ width:12px; height:12px; border-radius:4px; display:inline-block; flex-shrink:0; }
    .legend-correct{ background:linear-gradient(135deg,#34d399,#059669); box-shadow:0 3px 8px -4px rgba(5,150,105,.9); }
    .legend-wrong{ background:linear-gradient(135deg,#fb7185,#e11d48); box-shadow:0 3px 8px -4px rgba(225,29,72,.9); }
    .legend-fav{ background:transparent; box-shadow:inset 0 0 0 2px #f59e0b; }
    .legend-unanswered{ background:transparent; box-shadow:inset 0 0 0 1px #94a3b8; }

    /* 选项判定态：右上角 ✓ / ✕ / ! 角标（呼应答题卡配色） */
    #optionsContainer .option-row{ position:relative; }
    #optionsContainer .option-row.is-correct,
    #optionsContainer .option-row.is-wrong,
    #optionsContainer .option-row.is-missed{ padding-right:34px; }
    #optionsContainer .option-row.is-correct::after,
    #optionsContainer .option-row.is-wrong::after,
    #optionsContainer .option-row.is-missed::after{
      position:absolute; top:6px; right:8px;
      width:18px; height:18px; border-radius:50%;
      display:flex; align-items:center; justify-content:center;
      font-size:11px; font-weight:700; color:#fff; line-height:1;
      z-index:1;
    }
    #optionsContainer .option-row.is-correct::after{
      content:"✓"; background:linear-gradient(135deg,#34d399,#059669);
      box-shadow:0 4px 10px -4px rgba(5,150,105,.9);
    }
    #optionsContainer .option-row.is-wrong::after{
      content:"✕"; background:linear-gradient(135deg,#fb7185,#e11d48);
      box-shadow:0 4px 10px -4px rgba(225,29,72,.9);
    }
    #optionsContainer .option-row.is-missed::after{
      content:"!"; background:linear-gradient(135deg,#fbbf24,#f59e0b);
      box-shadow:0 4px 10px -4px rgba(245,158,11,.9);
    }

    /* ───────── v6：正确答案强调 · 难度下拉星级 ───────── */
    #explanationBox .correct-answer-chip{
      display:inline-flex; align-items:center; justify-content:center;
      min-width:1.9em; padding:.12rem .6rem; border-radius:9px;
      font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
      font-size:1rem; font-weight:800; letter-spacing:.05em; color:#fff;
      background:linear-gradient(135deg,#34d399,#059669);
      box-shadow:0 7px 16px -9px rgba(5,150,105,.95), inset 0 1px 0 rgba(255,255,255,.28);
    }
    #explanationBox .answer-chip-user{
      display:inline-flex; align-items:center; justify-content:center;
      min-width:1.9em; padding:.12rem .6rem; border-radius:9px;
      font-size:.95rem; font-weight:700; letter-spacing:.04em; color:var(--text-main);
      background:rgba(100,116,139,.14); border:1px solid rgba(100,116,139,.3);
    }
    #diffFilterSelect{ font-variant-numeric:tabular-nums; letter-spacing:.01em; }

    /* ───────── v7：顶/底栏线性图标统一 · 错题卡片分色强化 ───────── */
    .nav-ico{ width:16px; height:16px; flex-shrink:0; opacity:.95; }
    .nav-ico-sm{ width:14px; height:14px; }
    #modePracticeBtn .nav-ico, #modeReciteBtn .nav-ico, #modeExamBtn .nav-ico{ opacity:1; }

    .wrong-card{
      position:relative; overflow:hidden;
      background:linear-gradient(90deg, rgba(244,63,94,.10), rgba(244,63,94,.02) 45%, rgba(244,63,94,0)) !important;
    }
    .wrong-card:hover{
      transform:translateY(-2px) !important;
      box-shadow:0 12px 26px -18px rgba(244,63,94,.6) !important;
      border-color:#fb7185 !important;
    }
    #wrongQuestionsList > div.theme-subtle::before{
      width:4px; border-radius:2px;
      background:linear-gradient(180deg,#fb7185,#e11d48);
      box-shadow:0 0 10px 1px rgba(244,63,94,.35);
    }
    html[data-theme="dark"] .wrong-card{ background:linear-gradient(90deg, rgba(244,63,94,.16), rgba(244,63,94,.03) 45%, rgba(244,63,94,0)) !important; }
    html[data-theme="sepia"] .wrong-card{ background:linear-gradient(90deg, rgba(190,18,60,.10), rgba(190,18,60,.02) 45%, rgba(190,18,60,0)) !important; }

    /* ───────── v8：统计卡图标线性化 · 模式开关药丸 ───────── */
    .stat-ico svg{ width:12px; height:12px; display:block; }
    section .grid-cols-5 > *:nth-child(1) .stat-ico{ color:#3b82f6; }
    section .grid-cols-5 > *:nth-child(2) .stat-ico{ color:#10b981; }
    section .grid-cols-5 > *:nth-child(3) .stat-ico{ color:#ef4444; }
    section .grid-cols-5 > *:nth-child(4) .stat-ico{ color:#f59e0b; }
    section .grid-cols-5 > *:nth-child(5) .stat-ico{ color:#6366f1; }
    html[data-theme="dark"] .stat-ico svg{ opacity:.95; }

    .mode-toggle{
      align-items:center; gap:.35rem;
      padding:.3rem .6rem; border-radius:9999px;
      font-size:11px; font-weight:600; line-height:1;
      border:1px solid transparent;
      transition:background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
    }
    .mode-toggle:active{ transform:scale(.96); }
    .mode-toggle.is-on.mode-toggle-amber{ background:rgba(251,191,36,.18); border-color:rgba(251,191,36,.5); color:#fcd34d; }
    .mode-toggle.is-on.mode-toggle-blue{ background:rgba(59,130,246,.22); border-color:rgba(96,165,250,.55); color:#bfdbfe; }
    .mode-toggle.is-off{ background:rgba(148,163,184,.12); border-color:rgba(148,163,184,.25); color:#94a3b8; }
    .mode-toggle .toggle-pill{
      font-size:10px; font-weight:700; padding:.08rem .42rem; border-radius:9999px;
      background:rgba(255,255,255,.22); color:inherit; min-width:1.6em; text-align:center;
    }
    .mode-toggle.is-off .toggle-pill{ background:rgba(148,163,184,.3); }
    .mode-toggle .nav-ico{ opacity:1; }
    html[data-theme="sepia"] .mode-toggle.is-on.mode-toggle-amber{ background:rgba(180,120,20,.16); border-color:rgba(150,100,20,.45); color:#8a5a12; }
    html[data-theme="sepia"] .mode-toggle.is-on.mode-toggle-blue{ background:rgba(37,99,235,.16); border-color:rgba(37,99,235,.4); color:#1d4ed8; }

    /* ───────── v9：题卡操作/掌握状态/科目筛选 图标线性化 ───────── */
    .btn-ico{ width:15px; height:15px; flex-shrink:0; }
    .subj-ico{ width:13px; height:13px; flex-shrink:0; opacity:.92; }
    #subjectFilterBar button svg{ vertical-align:middle; }

    /* 移动端 Hero 防溢出：面板按容器收缩，长文可断行 */
    #heroGlow{ width:100%; max-width:100%; box-sizing:border-box; }
    .hero-glow-inner{ width:100%; min-width:0; box-sizing:border-box; }
    .hero-glow-panel{ width:100%; max-width:600px; min-width:0; flex-shrink:1; box-sizing:border-box; }
    .hero-glow-sub{ overflow-wrap:anywhere; }

    .mastery-chip{
      display:inline-flex; align-items:center; gap:.4rem;
      padding:.1rem .55rem; border-radius:9999px;
      font-size:11px; font-weight:600; line-height:1.55;
      border:1px solid transparent; letter-spacing:.01em;
    }
    .mastery-dot{ width:6px; height:6px; border-radius:9999px; background:currentColor; box-shadow:0 0 0 3px rgba(148,163,184,.18); }
    .mastery-ok{ color:#059669; background:rgba(16,185,129,.12); border-color:rgba(16,185,129,.3); }
    .mastery-ok .mastery-dot{ box-shadow:0 0 0 3px rgba(16,185,129,.2); }
    .mastery-bad{ color:#e11d48; background:rgba(244,63,94,.12); border-color:rgba(244,63,94,.3); }
    .mastery-bad .mastery-dot{ box-shadow:0 0 0 3px rgba(244,63,94,.2); }
    .mastery-idle{ color:#64748b; background:rgba(148,163,184,.1); border-color:rgba(148,163,184,.25); }
    html[data-theme="dark"] .mastery-idle{ color:#94a3b8; background:rgba(148,163,184,.14); border-color:rgba(148,163,184,.28); }
    html[data-theme="dark"] .mastery-ok{ color:#34d399; background:rgba(16,185,129,.16); border-color:rgba(52,211,153,.3); }
    html[data-theme="dark"] .mastery-bad{ color:#fb7185; background:rgba(244,63,94,.16); border-color:rgba(251,113,133,.3); }
    html[data-theme="sepia"] .mastery-ok{ color:#0f766e; background:rgba(15,118,110,.12); border-color:rgba(15,118,110,.28); }
    html[data-theme="sepia"] .mastery-bad{ color:#9f1239; background:rgba(159,18,57,.12); border-color:rgba(159,18,57,.28); }

    /* ───────── v10：顶部液态七彩玻璃流体 ───────── */
    header{ position:relative; overflow:hidden; isolation:isolate; }
    header h1, header #dataSourceSubtitle{ text-shadow:0 1px 8px rgba(5,14,32,.42); }
    header > .liquid-top{
      position:absolute; inset:-62% -14% -20%; z-index:0; pointer-events:none;
      opacity:.72; mix-blend-mode:screen; filter:blur(18px) saturate(150%);
    }
    header > .liquid-top .lt-blob{
      position:absolute; display:block; border-radius:50%;
      width:42%; aspect-ratio:1; opacity:.85;
      transform:translate3d(0,0,0); will-change:transform;
    }
    header .lt-b1{ left:-4%; top:-10%; background:radial-gradient(circle at 38% 42%,rgba(34,211,238,.95),rgba(56,189,248,.55) 42%,rgba(59,130,246,0) 72%); animation:ltDriftA 17s ease-in-out infinite alternate; }
    header .lt-b2{ left:18%; top:-38%; width:38%; background:radial-gradient(circle at 45% 45%,rgba(167,139,250,.95),rgba(99,102,241,.5) 45%,rgba(79,70,229,0) 72%); animation:ltDriftB 21s ease-in-out infinite alternate; }
    header .lt-b3{ left:42%; top:-16%; background:radial-gradient(circle at 50% 45%,rgba(244,114,182,.9),rgba(236,72,153,.45) 45%,rgba(219,39,119,0) 72%); animation:ltDriftC 19s ease-in-out infinite alternate; }
    header .lt-b4{ left:64%; top:-44%; width:35%; background:radial-gradient(circle at 45% 45%,rgba(251,191,36,.9),rgba(245,158,11,.45) 45%,rgba(217,119,6,0) 72%); animation:ltDriftB 24s ease-in-out infinite alternate-reverse; }
    header .lt-b5{ left:84%; top:-8%; background:radial-gradient(circle at 45% 45%,rgba(52,211,153,.9),rgba(16,185,129,.45) 45%,rgba(5,150,105,0) 72%); animation:ltDriftA 20s ease-in-out infinite alternate-reverse; }
    header > .liquid-top .lt-sheen{
      position:absolute; inset:-20% -30%;
      background:linear-gradient(112deg,transparent 8%,rgba(255,255,255,.28) 24%,rgba(255,255,255,.05) 36%,transparent 46%,rgba(255,255,255,.18) 64%,transparent 78%);
      mix-blend-mode:overlay; opacity:.7; animation:ltSheen 13s ease-in-out infinite;
    }
    header > :not(.liquid-top){ position:relative; z-index:2; }
    header::after{
      content:""; position:absolute; left:0; right:0; bottom:0; height:2px; z-index:3;
      background:linear-gradient(90deg,#22d3ee,#60a5fa,#a78bfa,#f472b6,#fbbf24,#34d399,#22d3ee);
      background-size:300% 100%; animation:ltRim 10s linear infinite;
      box-shadow:0 0 14px -2px rgba(147,197,253,.55);
      opacity:.9; pointer-events:none;
    }
    html[data-theme="dark"] header > .liquid-top{ opacity:.55; }
    html[data-theme="sepia"] header > .liquid-top{ opacity:.4; filter:blur(18px) saturate(115%); }
    @keyframes ltDriftA{
      0%{ transform:translate3d(-8%,0,0) scale(1) rotate(0deg); }
      50%{ transform:translate3d(10%,16%,0) scale(1.18) rotate(18deg); }
      100%{ transform:translate3d(-2%,30%,0) scale(1.05) rotate(-8deg); }
    }
    @keyframes ltDriftB{
      0%{ transform:translate3d(6%,6%,0) scale(1.05) rotate(0deg); }
      50%{ transform:translate3d(-10%,18%,0) scale(1.2) rotate(-16deg); }
      100%{ transform:translate3d(12%,28%,0) scale(1.1) rotate(12deg); }
    }
    @keyframes ltDriftC{
      0%{ transform:translate3d(0,4%,0) scale(1) rotate(0deg); }
      50%{ transform:translate3d(-8%,20%,0) scale(1.16) rotate(14deg); }
      100%{ transform:translate3d(9%,32%,0) scale(1.06) rotate(-10deg); }
    }
    @keyframes ltSheen{
      0%,100%{ transform:translateX(-16%) rotate(0deg); }
      50%{ transform:translateX(14%) translateY(5%) rotate(3deg); }
    }
    @keyframes ltRim{ 0%{ background-position:0% 50%; } 100%{ background-position:300% 50%; } }
    @media (max-width:640px){
      header > .liquid-top{ inset:-70% -30% -22%; filter:blur(16px) saturate(145%); opacity:.62; }
      header > .liquid-top .lt-blob{ width:58%; }
    }

    @media (prefers-reduced-motion: reduce){ *{ transition:none !important; animation:none !important; } }
  
/* ===== inline style #3 id="ui-v11" ===== */

    /* 顶栏装饰溢出不得产生可滚动区域，否则点击按钮会把整栏横向滚走 */
    header{ overflow:clip !important; }

    /* 弹窗层级高于底栏、版本角标与 AI 悬浮按钮 */
    #answerSheetModal, #knowledgeModal, #syncModal, #aiConfigModal, #reportModal{ z-index:70 !important; }
    /* 更新卡片出现时，先收起右下角 AI 与左下角版本角标，避免遮挡操作 */
    body:has(#swUpdateBanner:not(.hidden)) #aiqa-btn,
    body:has(#swUpdateBanner:not(.hidden)) #aiqa-panel,
    body:has(#swUpdateBanner:not(.hidden)) #verBadge{ display:none !important; }

    /* ── 统一弹窗头部 ── */
    .modal-head{
      display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
      padding-bottom:12px; border-bottom:1px solid var(--border-color);
    }
    .modal-head-main{ display:flex; align-items:center; gap:10px; min-width:0; }
    .modal-head-ico{
      width:34px; height:34px; flex-shrink:0; border-radius:10px;
      display:inline-flex; align-items:center; justify-content:center;
      color:#fff; background:linear-gradient(135deg,#1e4482,#2563eb);
      box-shadow:0 6px 14px -8px rgba(37,99,235,.85), inset 0 1px 0 rgba(255,255,255,.25);
    }
    .modal-head-ico svg{ width:18px; height:18px; }
    .modal-title{ font-size:15px; font-weight:800; letter-spacing:-.01em; line-height:1.25; }
    .modal-sub{ font-size:11px; color:var(--text-muted); margin-top:2px; line-height:1.45; }
    .modal-close{
      width:32px; height:32px; flex-shrink:0; border-radius:9px;
      display:inline-flex; align-items:center; justify-content:center;
      background:var(--bg-subtle); border:1px solid var(--border-color); color:var(--text-muted);
      transition:transform .16s ease, color .15s ease, border-color .15s ease, background .15s ease;
    }
    .modal-close:hover{ transform:rotate(90deg); color:#ef4444; border-color:#ef4444; background:rgba(239,68,68,.08); }
    .modal-close svg{ width:15px; height:15px; }
    .m-tab{
      display:inline-flex; align-items:center; gap:5px; padding:6px 10px; border-radius:8px;
      font-size:11.5px; font-weight:700; color:var(--text-muted);
      background:var(--bg-subtle) !important; border:1px solid var(--border-color);
      transition:color .15s ease, border-color .15s ease, background .15s ease;
    }
    .m-tab:hover{ border-color:#93c5fd; color:var(--text-main); }
    .m-tab.is-active{
      color:#fff !important; border-color:transparent !important;
      background:linear-gradient(135deg,#3b82f6,#2563eb) !important;
      box-shadow:0 6px 14px -8px rgba(37,99,235,.8);
    }
    html[data-theme="sepia"] .m-tab.is-active{ background:linear-gradient(135deg,#8b5a2b,#b45309) !important; }

    /* ── 知识点中心 ── */
    #knowledgeModal > .theme-card{ max-height:min(88vh, calc(var(--app-vv-height, 100vh) - 24px)); }

    /* 贴底弹窗与 iOS 软键盘：vh 按「最大视口」计算，键盘弹出时 layout viewport
       不收缩；--app-vv-height 由 visualViewport 同步为真实可视高度。
       桌面 / Android 上该变量等于 innerHeight，min(88vh, vv-24px) 退化为原值。 */
    #answerSheetModal > .theme-card{ max-height:min(82vh, calc(var(--app-vv-height, 100vh) - 24px)); }
    #syncModal > .theme-card,
    #reportModal > .theme-card,
    #aiConfigModal > .theme-card{ max-height:min(88vh, calc(var(--app-vv-height, 100vh) - 24px)); }
    /* AI 设置卡片原先既无限高也无滚动，含 API Key 输入框，键盘弹出会整体被盖 */
    #aiConfigModal > .theme-card{ overflow-x:hidden; overflow-y:auto; }
    @media (max-width:639px){
      /* items-end 贴底：把卡片底边抬到键盘上沿。桌面 sm:p-4 的 16px 内边距不受影响。 */
      #answerSheetModal, #knowledgeModal, #syncModal, #aiConfigModal, #reportModal{
        padding-bottom:var(--app-kb-inset, 0px);
      }
    }
    .k-toolbar{ padding:10px 0 8px; display:flex; flex-direction:column; gap:8px; border-bottom:1px solid var(--border-color); }
    .k-search{ position:relative; display:flex; align-items:center; }
    .k-search input{
      width:100%; padding:8px 32px 8px 32px; border-radius:10px; font-size:12px;
      background:var(--bg-subtle); border:1px solid var(--border-color); color:var(--text-main);
    }
    .k-search input:focus{ outline:none; border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.14); }
    .k-search input[type="search"]::-webkit-search-cancel-button,
    .k-search input[type="search"]::-webkit-search-decoration{ -webkit-appearance:none; appearance:none; }
    .k-search .k-ico{ position:absolute; left:10px; width:14px; height:14px; opacity:.55; pointer-events:none; }
    .k-search .k-clear{ position:absolute; right:6px; width:22px; height:22px; border-radius:6px; display:none; align-items:center; justify-content:center; opacity:.6; }
    .k-search .k-clear:hover{ opacity:1; background:rgba(148,163,184,.18); }
    .k-search .k-clear.is-visible{ display:inline-flex; }
    .k-chips{
      display:flex; gap:6px; overflow-x:auto; padding-bottom:2px; scrollbar-width:none;
      -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent 100%);
      mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent 100%);
    }
    .k-chips::-webkit-scrollbar{ display:none; }
    .k-chip{
      flex-shrink:0; padding:4px 9px; border-radius:999px; font-size:11px; font-weight:600;
      border:1px solid var(--border-color); background:var(--bg-subtle); color:var(--text-muted);
      transition:background .15s ease, color .15s ease, border-color .15s ease;
    }
    .k-chip b{ font-weight:700; opacity:.62; margin-left:3px; font-variant-numeric:tabular-nums; }
    .k-chip:hover{ border-color:#60a5fa; color:var(--text-main); }
    .k-chip.is-active{ background:linear-gradient(135deg,#1e4482,#2563eb); border-color:transparent; color:#fff; box-shadow:0 5px 12px -8px rgba(37,99,235,.9); }
    .k-chip.is-active b{ opacity:.8; }
    .k-meta{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 0 4px; font-size:11px; color:var(--text-muted); }
    .k-list{ padding:2px 0 8px; overflow-y:auto; flex:1; min-height:0; display:flex; flex-direction:column; gap:8px; }
    .k-card{
      padding:11px 12px; border-radius:12px; background:var(--bg-subtle);
      border:1px solid var(--border-color); border-left:3px solid #3b82f6;
      transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    }
    .k-card:hover{ border-color:#93c5fd; box-shadow:0 8px 20px -16px rgba(15,35,70,.55); }
    .k-card-head{ display:flex; align-items:flex-start; gap:8px; margin-bottom:5px; }
    .k-subject{
      flex-shrink:0; padding:2px 7px; border-radius:6px; font-size:10px; font-weight:700; line-height:1.5;
      color:#1d4ed8; background:rgba(37,99,235,.12); border:1px solid rgba(37,99,235,.2);
    }
    html[data-theme="dark"] .k-subject{ color:#93c5fd; background:rgba(59,130,246,.16); border-color:rgba(96,165,250,.24); }
    html[data-theme="sepia"] .k-subject{ color:#8b5a2b; background:rgba(139,90,43,.12); border-color:rgba(139,90,43,.22); }
    .k-point{ font-size:13px; font-weight:700; line-height:1.5; letter-spacing:-.01em; }
    .k-body{ font-size:12px; line-height:1.75; color:var(--text-muted); white-space:pre-line; overflow-wrap:anywhere; }
    .k-body.is-clamped{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
    .k-more{
      margin-top:5px; font-size:11px; font-weight:600; color:#2563eb;
      display:inline-flex; align-items:center; gap:3px;
    }
    html[data-theme="dark"] .k-more{ color:#93c5fd; }
    .k-more svg{ width:12px; height:12px; transition:transform .18s ease; }
    .k-card.is-open .k-more svg{ transform:rotate(180deg); }
    .k-empty{ padding:38px 12px; text-align:center; }
    .k-pager, .sheet-pager{
      display:flex; align-items:center; justify-content:space-between; gap:8px;
      padding-top:9px; border-top:1px solid var(--border-color); flex-wrap:wrap;
    }
    .pager-btn{
      min-width:30px; height:30px; padding:0 10px; border-radius:8px; font-size:11px; font-weight:700;
      display:inline-flex; align-items:center; justify-content:center; gap:3px;
      background:var(--bg-subtle); border:1px solid var(--border-color); color:var(--text-main);
      transition:border-color .15s ease, background .15s ease, opacity .15s ease;
    }
    .pager-btn:hover:not(:disabled){ border-color:#3b82f6; color:#2563eb; }
    .pager-btn:disabled{ opacity:.38; cursor:not-allowed; }
    .pager-info{ font-size:11px; color:var(--text-muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
    .pager-jump{ display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--text-muted); }
    .pager-jump input{
      width:48px; height:28px; text-align:center; border-radius:7px; font-size:11px; font-weight:700;
      background:var(--bg-subtle); border:1px solid var(--border-color); color:var(--text-main);
      font-variant-numeric:tabular-nums;
    }
    .pager-jump input:focus{ outline:none; border-color:#3b82f6; box-shadow:0 0 0 2px rgba(59,130,246,.16); }

    /* ── 答题卡：进度概览 + 分页 ── */
    .sheet-overview{ display:flex; flex-wrap:wrap; gap:6px; padding:8px 0 0; }
    .sheet-stat{
      flex:1 1 0; min-width:62px; padding:6px 8px; border-radius:9px; text-align:center;
      background:var(--bg-subtle); border:1px solid var(--border-color);
    }
    .sheet-stat b{ display:block; font-size:14px; line-height:1.2; font-variant-numeric:tabular-nums; }
    .sheet-stat span{ font-size:10px; color:var(--text-muted); white-space:nowrap; }
    .sheet-stat.ok b{ color:#059669; }
    .sheet-stat.bad b{ color:#e11d48; }
    .sheet-stat.left b{ color:#2563eb; }
    #answerSheetGrid{ min-height:0; flex:1; align-content:start; }
    #answerSheetGrid button{ min-height:34px; height:auto; padding:5px 0; }
    .sheet-page-tag{
      position:absolute; top:2px; left:3px; font-size:8px; font-weight:700; opacity:.45; line-height:1;
      font-variant-numeric:tabular-nums;
    }

    /* ── SW 更新卡片：悬浮于底栏之上 ── */
    #swUpdateBanner{
      position:fixed !important; left:50%; transform:translateX(-50%);
      bottom:calc(86px + env(safe-area-inset-bottom)); z-index:45;
      width:calc(100% - 24px); max-width:440px;
      padding:11px 12px; border-radius:14px; color:#eaf2ff;
      background:linear-gradient(135deg,rgba(14,34,66,.97),rgba(26,58,107,.97) 58%,rgba(37,99,235,.94));
      border:1px solid rgba(147,197,253,.38);
      box-shadow:0 18px 40px -18px rgba(2,8,23,.9), inset 0 1px 0 rgba(255,255,255,.2);
      -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
      display:block;
    }
    #swUpdateBanner.hidden{ display:none !important; }
    .sw-update-main{ display:flex; align-items:center; gap:9px; }
    .sw-update-ico{
      width:32px; height:32px; flex-shrink:0; border-radius:9px; display:inline-flex; align-items:center; justify-content:center;
      color:#fcd34d; background:rgba(251,191,36,.16); border:1px solid rgba(251,191,36,.32);
    }
    .sw-update-ico svg{ width:17px; height:17px; }
    .sw-update-title{ font-size:12px; font-weight:800; letter-spacing:.01em; }
    .sw-update-sub{ font-size:10.5px; color:#bfdbfe; margin-top:1px; }
    .sw-update-actions{ display:flex; align-items:center; gap:6px; margin-top:9px; }
    .sw-update-actions .sw-primary{
      flex:1; padding:6px 10px; border-radius:8px; font-size:11px; font-weight:800;
      color:#0b1a33; background:linear-gradient(135deg,#fcd34d,#f59e0b);
      box-shadow:0 5px 12px -8px rgba(245,158,11,.9);
    }
    .sw-update-actions .sw-ghost{ padding:6px 12px; border-radius:8px; font-size:11px; font-weight:600; color:#cbd5e1; border:1px solid rgba(255,255,255,.18); }
    .sw-update-actions .sw-ghost:hover{ background:rgba(255,255,255,.1); color:#fff; }

    /* ── Toast：避开顶栏/模式条，移动端靠近底部但高于 dock ── */
    #toastContainer{ top:calc(env(safe-area-inset-top) + 84px) !important; width:calc(100% - 28px); max-width:420px; }
    #toastContainer > div{ text-align:center; box-shadow:0 12px 30px -14px rgba(2,8,23,.65); }

    /* ── Hero 右侧倒计时环（桌面） ── */
    #heroGlow{ position:relative; }
    .hero-countdown{
      position:absolute; right:20px; top:50%; transform:translateY(-50%);
      width:104px; height:104px; display:flex; align-items:center; justify-content:center;
      z-index:2; pointer-events:none;
    }
    .hero-cd-ring{
      position:absolute; inset:0; border-radius:50%;
      background:conic-gradient(from -90deg,#fbbf24 0 calc(var(--cd-p,0) * 1%),rgba(255,255,255,.34) calc(var(--cd-p,0) * 1%) 100%);
      -webkit-mask:radial-gradient(circle,transparent 61%,#000 62%);
      mask:radial-gradient(circle,transparent 61%,#000 62%);
      filter:drop-shadow(0 2px 6px rgba(120,53,15,.35));
    }
    .hero-cd-inner{
      position:relative; width:82px; height:82px; border-radius:50%;
      display:flex; flex-direction:column; align-items:center; justify-content:center;
      background:rgba(255,255,255,.72); border:1px solid rgba(255,255,255,.85);
      box-shadow:0 8px 20px -12px rgba(26,58,107,.6);
      -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
    }
    html[data-theme="dark"] .hero-cd-inner{ background:rgba(15,30,55,.72); border-color:rgba(147,197,253,.25); }
    html[data-theme="sepia"] .hero-cd-inner{ background:rgba(255,248,236,.78); border-color:rgba(139,90,43,.28); }
    .hero-cd-num{ font-size:23px; font-weight:900; line-height:1; color:#b45309; font-variant-numeric:tabular-nums; letter-spacing:-.03em; }
    html[data-theme="dark"] .hero-cd-num{ color:#fcd34d; }
    .hero-cd-label{ font-size:9px; font-weight:700; color:var(--text-muted); margin-top:2px; letter-spacing:.03em; }
    .hero-cd-cap{ font-size:8.5px; color:var(--text-muted); opacity:.8; margin-top:1px; }
    @media (max-width:899px){ .hero-countdown{ display:none; } }

    /* ── 专注模式：背题/模拟考时收起 Hero 与统计 ── */
    body.focus-mode #heroGlow,
    body.focus-mode #statsSection{ display:none !important; }
    body.focus-mode main{ padding-top:8px !important; }
    body.focus-mode header #dataSourceSubtitle{ display:none; }
    body.focus-mode header > div.max-w-4xl{ padding-top:5px; padding-bottom:5px; }
    body.focus-mode header .mode-toggle > span:not(.toggle-pill){ display:none; }
    body.focus-mode header .mode-toggle{ padding:.28rem .5rem; }
    body.focus-mode #toastContainer{ top:calc(env(safe-area-inset-top) + 82px) !important; }
    @media (max-width:640px){
      /* 专注模式第二行必须在 390px 内单行放下：模式组 + 计时 + 高亮 */
      body.focus-mode #modePracticeBtn,
      body.focus-mode #modeReciteBtn,
      body.focus-mode #modeExamBtn{ padding:3px 4px !important; font-size:10px; }
      body.focus-mode #modePracticeBtn .nav-ico,
      body.focus-mode #modeReciteBtn .nav-ico,
      body.focus-mode #modeExamBtn .nav-ico{ width:11px; height:11px; }
      body.focus-mode #examTimerBox{ padding:.2rem .35rem; font-size:10px; gap:.25rem; }
    }
    @media (max-width:360px){
      body.focus-mode #toggleHighlightBtn{ display:none; }
    }

    /* ── 科目条两端渐隐 ── */
    #subjectFilterBar{
      -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 14px),transparent 100%);
      mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 14px),transparent 100%);
    }

    /* ── 同步弹窗分区 ── */
    .sync-section{ padding:11px 12px; border-radius:12px; background:var(--bg-subtle); border:1px solid var(--border-color); }
    .sync-section-head{ display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:800; margin-bottom:8px; }
    .sync-section-head svg{ width:14px; height:14px; opacity:.85; }
    .sync-danger{ border-color:rgba(244,63,94,.34); background:rgba(244,63,94,.06); }
    .sync-danger .sync-section-head{ color:#e11d48; }
    html[data-theme="dark"] .sync-danger .sync-section-head{ color:#fb7185; }
    .sync-btn{ display:inline-flex; align-items:center; gap:5px; padding:7px 10px; border-radius:8px; font-size:11px; font-weight:700; }
    .sync-btn svg{ width:13px; height:13px; }
    .sync-btn-primary{ color:#fff; background:linear-gradient(135deg,#2563eb,#1d4ed8); box-shadow:0 5px 12px -8px rgba(37,99,235,.9); }
    .sync-btn-ghost{ background:var(--bg-card); border:1px solid var(--border-color); color:var(--text-main); }
    .sync-btn-ghost:hover{ border-color:#60a5fa; }
    .sync-btn-danger{ color:#e11d48; background:rgba(244,63,94,.1); border:1px solid rgba(244,63,94,.3); }
    html[data-theme="dark"] .sync-btn-danger{ color:#fb7185; }

    /* ── 移动端密度 ── */
    main{ padding-bottom:96px; }
    @media (max-width:640px){
      main{ padding-bottom:104px; }
      header > div.max-w-4xl{ padding:.4rem .7rem; gap:.4rem; }
      header h1{ font-size:.9rem; line-height:1.25; }
      #dataSourceSubtitle{ display:none; }
      header .w-8.h-8{ width:26px; height:26px; border-radius:7px; font-size:13px; }
      header button{ padding:.35rem .45rem; border-radius:7px; }
      header .nav-ico{ width:15px; height:15px; }
      header > div:last-child > div.max-w-4xl{ padding-top:3px; padding-bottom:3px; gap:.3rem; }
      #modePracticeBtn, #modeReciteBtn, #modeExamBtn{ padding:3px 7px !important; font-size:10.5px; }
      #modePracticeBtn .nav-ico, #modeReciteBtn .nav-ico, #modeExamBtn .nav-ico{ width:12px; height:12px; }
      .mode-toggle{ padding:.2rem .4rem; font-size:9.5px; gap:.22rem; }
      .mode-toggle .toggle-pill{ font-size:9px; padding:.05rem .32rem; }
      #examTimerBox{ padding:.2rem .4rem; font-size:10px; }

      section .grid-cols-5{ gap:4px; }
      section .grid-cols-5 > *{ padding:5px 2px !important; border-radius:8px; }
      section .grid-cols-5 > * > div:first-child{
        display:flex; flex-direction:column; align-items:center; gap:1px;
        font-size:9.5px; line-height:1.2; white-space:nowrap; letter-spacing:-.02em;
      }
      .stat-ico{ width:21px; height:21px; margin:0 auto 1px; border-radius:6px; }
      .stat-ico svg{ width:12px; height:12px; }
      section .grid-cols-5 > * > div:last-child{ font-size:14px; line-height:1.2; margin-top:2px; }

      nav.fixed .grid{ gap:4px; }
      nav.fixed .grid > button{
        flex-direction:column; gap:2px; padding:5px 1px; border-radius:9px;
        font-size:9.5px; line-height:1.15; letter-spacing:-.02em; white-space:nowrap;
      }
      nav.fixed .grid > button .nav-ico{ width:16px; height:16px; }
      nav.fixed .grid > button span{ font-size:9.5px; }

      .modal-head{ padding-bottom:9px; }
      .modal-head-ico{ width:30px; height:30px; border-radius:8px; }
      .modal-head-ico svg{ width:16px; height:16px; }
      .modal-title{ font-size:13.5px; }
      .modal-sub{ font-size:10px; }
      #knowledgeModal > .theme-card, #answerSheetModal > .theme-card{
        max-height:min(90vh, calc(var(--app-vv-height, 100vh) - 24px));
      }
      .k-card{ padding:9px 10px; }
      .k-point{ font-size:12px; }
      .k-body{ font-size:11px; line-height:1.65; }
      .sheet-stat{ min-width:56px; padding:5px 4px; }
      .sheet-stat b{ font-size:12.5px; }
      .sheet-stat span{ font-size:9px; }
      .sheet-pager{ gap:5px; }
      .pager-btn{ height:28px; min-width:28px; font-size:10.5px; padding:0 7px; }
      .pager-info{ font-size:10px; }
      .pager-jump input{ width:42px; height:26px; }
      #toastContainer{ top:calc(env(safe-area-inset-top) + 84px) !important; }
    }
    @media (max-width:360px){
      header .mode-toggle > span:not(.toggle-pill){ display:none; }
      header .mode-toggle{ padding:.22rem .36rem; }
      section .grid-cols-5 > * > div:first-child{ font-size:8.5px; }
    }

    /* ── 主题切换：圆形揭示（View Transition） ── */
    ::view-transition-old(root), ::view-transition-new(root){ animation:none; mix-blend-mode:normal; }
    ::view-transition-new(root){ z-index:9999; }
    @media (prefers-reduced-motion: reduce){
      ::view-transition-old(root), ::view-transition-new(root){ animation:none !important; }
    }
  
/* ===== inline style #4 id="ui-v12" ===== */

    /* ── Hero：从柔和渐变促销卡，改为有法务气质的深色封面 ── */
    #heroGlow{
      border-radius:20px !important;
      background:#071426;
      border:1px solid rgba(255,255,255,.10);
      box-shadow:0 30px 70px -36px rgba(3,10,22,.92), 0 0 0 1px rgba(255,255,255,.06) inset !important;
    }
    html[data-theme="dark"] #heroGlow{
      border-color:rgba(255,255,255,.13);
      box-shadow:0 30px 70px -36px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.07) inset !important;
    }
    html[data-theme="sepia"] #heroGlow{
      background:#1b1208;
      border-color:rgba(243,201,105,.20);
      box-shadow:0 30px 70px -38px rgba(43,25,8,.8), 0 0 0 1px rgba(243,201,105,.08) inset !important;
    }
    #heroGlowCanvas{ z-index:0; }
    html[data-theme="dark"] #heroGlowCanvas{ filter:saturate(.88) brightness(.82); }
    html[data-theme="sepia"] #heroGlowCanvas{ filter:sepia(.55) saturate(.8) hue-rotate(-18deg); }

    /* 左侧压暗保证文字对比，右侧保留流动色；细网格作为“法务档案”底纹 */
    #heroGlow::before{
      content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
      background:
        linear-gradient(100deg,rgba(5,13,27,.98) 0%,rgba(5,13,27,.94) 36%,rgba(5,13,27,.62) 66%,rgba(5,13,27,.20) 100%),
        repeating-linear-gradient(90deg,rgba(255,255,255,.045) 0 1px,transparent 1px 72px),
        repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 72px);
      -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 56%,rgba(0,0,0,.55) 100%);
      mask-image:linear-gradient(90deg,#000 0%,#000 56%,rgba(0,0,0,.55) 100%);
    }
    html[data-theme="sepia"] #heroGlow::before{
      background:
        linear-gradient(100deg,rgba(27,18,8,.98) 0%,rgba(27,18,8,.94) 36%,rgba(27,18,8,.60) 66%,rgba(27,18,8,.18) 100%),
        repeating-linear-gradient(90deg,rgba(243,201,105,.05) 0 1px,transparent 1px 72px),
        repeating-linear-gradient(0deg,rgba(243,201,105,.04) 0 1px,transparent 1px 72px);
    }
    #heroGlow::after{
      content:"法"; position:absolute; right:5.5%; bottom:-26%; z-index:1;
      font-family:"Songti SC","Noto Serif SC","Source Han Serif SC",STSong,SimSun,serif;
      font-size:clamp(170px,22vw,286px); line-height:1; font-weight:700;
      color:rgba(255,255,255,.045); pointer-events:none; user-select:none;
      transform:rotate(-7deg);
    }
    html[data-theme="sepia"] #heroGlow::after{ color:rgba(243,201,105,.055); }

    .hero-glow-inner{
      z-index:3;
      min-height:clamp(196px,24vw,248px);
      padding:clamp(24px,3.8vw,38px) clamp(22px,4vw,40px);
    }
    .hero-glow-panel{
      max-width:min(620px,72%);
      padding:0;
      border:0;
      border-radius:0;
      background:none;
      -webkit-backdrop-filter:none;
      backdrop-filter:none;
    }
    .hero-glow-kicker{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:4px 10px;
      border-radius:999px;
      background:rgba(243,201,105,.08);
      border:1px solid rgba(243,201,105,.22);
      color:#f3c969;
      font-size:10.5px;
      font-weight:800;
      letter-spacing:.14em;
      text-transform:uppercase;
    }
    .hero-glow-kicker svg{ width:15px; height:15px; }
    .hero-kicker-en{
      padding-left:9px;
      margin-left:1px;
      border-left:1px solid rgba(243,201,105,.26);
      color:rgba(243,201,105,.58);
      font-size:9px;
      font-weight:700;
      letter-spacing:.16em;
      white-space:nowrap;
    }
    #heroGlow .hero-glow-title{
      margin:10px 0 9px;
      background:none !important;
      -webkit-background-clip:border-box !important;
      background-clip:border-box !important;
      -webkit-text-fill-color:#f8fafc !important;
      color:#f8fafc !important;
      font-size:clamp(27px,4.2vw,44px);
      font-weight:900;
      line-height:1.08;
      letter-spacing:-.035em;
      text-wrap:balance;
    }
    .hero-title-main{ color:#f8fafc; }
    .hero-title-comma{ color:rgba(248,250,252,.46); font-weight:500; }
    #heroGlow .hero-title-accent{
      color:#f3c969;
      background:linear-gradient(100deg,#fbe7b0 0%,#f3c969 48%,#d99a2b 100%);
      -webkit-background-clip:text !important;
      background-clip:text !important;
      -webkit-text-fill-color:transparent !important;
    }
    @media (forced-colors: active){
      #heroGlow .hero-glow-title,
      #heroGlow .hero-title-main,
      #heroGlow .hero-title-accent{
        background:none !important;
        -webkit-text-fill-color:CanvasText !important;
        color:CanvasText !important;
      }
    }
    .hero-glow-sub{
      max-width:37em;
      margin:0 0 18px;
      color:rgba(226,232,240,.64);
      font-size:clamp(11.5px,1.15vw,13px);
      line-height:1.7;
      letter-spacing:.01em;
      text-wrap:balance;
      word-break:keep-all;
      overflow-wrap:normal;
    }
    .hero-subjects{ white-space:nowrap; }
    .hero-sub-br{ display:none; }
    .hero-glow-actions{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
    #heroGlow .hero-glow-btn{
      display:inline-flex; align-items:center; gap:8px;
      padding:10px 20px;
      border-radius:999px;
      background:linear-gradient(135deg,#fbe7b0 0%,#f3c969 48%,#e3ad3e 100%) !important;
      color:#081426 !important;
      font-size:13px; font-weight:800; letter-spacing:.01em;
      box-shadow:0 12px 28px -12px rgba(243,201,105,.55), inset 0 1px 0 rgba(255,255,255,.58) !important;
      transition:transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, filter .18s ease;
    }
    #heroGlow .hero-glow-btn svg{ width:15px; height:15px; transition:transform .18s ease; }
    #heroGlow .hero-glow-btn:hover{
      transform:translateY(-2px);
      filter:brightness(1.04);
      box-shadow:0 18px 34px -14px rgba(243,201,105,.68), inset 0 1px 0 rgba(255,255,255,.62) !important;
    }
    #heroGlow .hero-glow-btn:hover svg{ transform:translateX(2px); }
    #heroGlow .hero-glow-btn:active{ transform:translateY(0) scale(.98); }
    .hero-meta{
      display:flex; align-items:center; gap:9px; flex-wrap:wrap;
      color:rgba(226,232,240,.56);
      font-size:10px; font-weight:600; letter-spacing:.04em;
    }
    .hero-meta-dot{ width:3px; height:3px; border-radius:50%; background:rgba(243,201,105,.62); flex-shrink:0; }

    /* 倒计时环：金色仪表，不再像悬浮小卡 */
    .hero-countdown{ right:clamp(22px,4vw,48px); width:116px; height:116px; }
    .hero-cd-ring{
      background:conic-gradient(from -90deg,#f3c969 0 calc(var(--cd-p,0) * 1%),rgba(255,255,255,.12) calc(var(--cd-p,0) * 1%) 100%);
      filter:drop-shadow(0 0 7px rgba(243,201,105,.22));
      animation:v12RingGlow 3.8s ease-in-out infinite;
    }
    .hero-cd-inner{
      width:92px; height:92px;
      background:rgba(8,20,38,.72);
      border-color:rgba(255,255,255,.13);
      box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 14px 34px -18px rgba(0,0,0,.9);
    }
    html[data-theme="sepia"] .hero-cd-inner{ background:rgba(27,18,8,.76); border-color:rgba(243,201,105,.22); }
    .hero-cd-num{ font-size:30px; color:#fbe7b0; letter-spacing:-.045em; }
    html[data-theme="sepia"] .hero-cd-num{ color:#fbe7b0; }
    .hero-cd-label{ color:rgba(226,232,240,.62); font-size:9.5px; }
    .hero-cd-cap{ color:rgba(226,232,240,.36); font-size:8.5px; }
    @keyframes v12RingGlow{
      0%,100%{ filter:drop-shadow(0 0 6px rgba(243,201,105,.18)); }
      50%{ filter:drop-shadow(0 0 15px rgba(243,201,105,.40)); }
    }

    /* Hero 文案入场：轻微上浮，不抢顶栏动效 */
    @keyframes v12Rise{
      from{ opacity:0; transform:translateY(9px); }
      to{ opacity:1; transform:none; }
    }
    .hero-glow-kicker{ animation:v12Rise .46s cubic-bezier(.2,.8,.2,1) both; }
    .hero-glow-title{ animation:v12Rise .52s .04s cubic-bezier(.2,.8,.2,1) both; }
    .hero-glow-sub{ animation:v12Rise .52s .09s cubic-bezier(.2,.8,.2,1) both; }
    .hero-glow-actions{ animation:v12Rise .52s .14s cubic-bezier(.2,.8,.2,1) both; }

    /* ── 统计：从五张彩色小卡，合并为一条数据 bento ── */
    #statsSection{
      padding:0 !important;
      border-radius:16px !important;
      overflow:hidden;
      background:var(--bg-card);
      border:1px solid var(--border-color) !important;
      box-shadow:0 14px 34px -30px rgba(15,35,70,.55) !important;
    }
    #statsSection > .grid{ gap:0 !important; }
    #statsSection > .grid > *{
      position:relative;
      padding:13px 8px 12px !important;
      border:0 !important;
      border-radius:0 !important;
      background:transparent !important;
      background-image:none !important;
      box-shadow:none !important;
      transition:background .16s ease;
    }
    #statsSection > .grid > * + *{ border-left:1px solid var(--border-color) !important; }
    #statsSection > .grid > *::after{ display:none !important; }
    #statsSection > .grid > *::before{
      content:""; position:absolute; left:18%; right:18%; top:0; height:2px;
      border-radius:0 0 2px 2px; background:var(--stat-accent,transparent); opacity:.85;
    }
    #statsSection > .grid > *:nth-child(1){ --stat-accent:#2563eb; }
    #statsSection > .grid > *:nth-child(2){ --stat-accent:#10b981; }
    #statsSection > .grid > *:nth-child(3){ --stat-accent:#f43f5e; }
    #statsSection > .grid > *:nth-child(4){ --stat-accent:#f59e0b; }
    #statsSection > .grid > *:nth-child(5){ --stat-accent:#6366f1; }
    #statsSection > .grid > *:hover{ transform:none !important; box-shadow:none !important; }
    #statsSection > .grid > button:hover{ background:rgba(37,99,235,.045) !important; }
    #statsSection > .grid > * > div:first-child{
      display:flex !important;
      flex-direction:row !important;
      align-items:center; justify-content:center;
      gap:4px !important;
      color:var(--text-muted);
      font-size:10px !important;
      font-weight:700 !important;
      line-height:1.2 !important;
      letter-spacing:.07em !important;
      white-space:nowrap;
    }
    #statsSection .stat-ico{
      width:18px !important; height:18px !important;
      margin:0 !important;
      border-radius:5px !important;
      display:inline-flex; align-items:center; justify-content:center;
      color:var(--stat-accent);
      background:color-mix(in srgb,var(--stat-accent) 11%,transparent);
    }
    #statsSection .stat-ico svg{ width:12px !important; height:12px !important; }
    #statAnswered,#statAccuracy,#statWrong,#statFav,#statReview{
      margin-top:6px !important;
      font-size:clamp(18px,2.15vw,24px) !important;
      font-weight:850 !important;
      line-height:1 !important;
      letter-spacing:-.04em !important;
      font-variant-numeric:tabular-nums;
    }
    #statAnswered{ color:var(--text-main) !important; }
    #statAccuracy{ color:#059669 !important; }
    #statWrong{ color:#e11d48 !important; }
    #statFav{ color:#b45309 !important; }
    #statReview{ color:#4f46e5 !important; }
    html[data-theme="dark"] #statAccuracy{ color:#34d399 !important; }
    html[data-theme="dark"] #statWrong{ color:#fb7185 !important; }
    html[data-theme="dark"] #statFav{ color:#fbbf24 !important; }
    html[data-theme="dark"] #statReview{ color:#818cf8 !important; }

    /* ── 科目 chip：更安静的胶囊轨道 ── */
    #subjectFilterBar{
      gap:6px !important;
      padding:2px 2px 6px !important;
      scroll-snap-type:x proximity;
      -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 18px),transparent 100%) !important;
      mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 18px),transparent 100%) !important;
    }
    #subjectFilterBar button{
      scroll-snap-align:start;
      padding:7px 12px !important;
      border-radius:999px !important;
      font-size:11.5px !important;
      letter-spacing:.01em;
    }
    #subjectFilterBar button[class*="1a3a6b"]{
      background:linear-gradient(135deg,#1a3a6b,#24497f) !important;
      box-shadow:0 7px 16px -9px rgba(26,58,107,.8), inset 0 1px 0 rgba(255,255,255,.14) !important;
    }
    html[data-theme="sepia"] #subjectFilterBar button[class*="1a3a6b"]{
      background:linear-gradient(135deg,#8b5a2b,#6d4522) !important;
    }
    #typeFilterSelect,#diffFilterSelect,#searchInput,#shuffleQuestionsBtn{ border-radius:9px !important; }
    #searchInput:focus{ background:var(--bg-card) !important; }

    /* ── 题目卡：纸张感、等宽题号、方形选项徽章 ── */
    #questionCard{
      border-radius:18px !important;
      border:1px solid var(--border-color);
      background-image:linear-gradient(180deg,rgba(255,255,255,.55),transparent 150px);
      box-shadow:0 24px 54px -38px rgba(15,35,70,.62), 0 1px 0 rgba(255,255,255,.7) inset !important;
      scroll-margin-top:96px;
    }
    html[data-theme="dark"] #questionCard{
      background-image:linear-gradient(180deg,rgba(255,255,255,.035),transparent 150px);
      box-shadow:0 24px 54px -38px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.04) inset !important;
    }
    #questionCard::before{
      height:3px !important;
      background:linear-gradient(90deg,#1a3a6b 0%,#2563eb 48%,#f3c969 100%) !important;
    }
    html[data-theme="sepia"] #questionCard::before{
      background:linear-gradient(90deg,#5c3a21,#8b5a2b 48%,#c79a3b) !important;
    }
    #qIndexBadge{
      font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
      letter-spacing:.02em;
      background:linear-gradient(135deg,#1a3a6b,#24497f) !important;
      border-radius:7px;
      box-shadow:0 5px 14px -8px rgba(26,58,107,.9);
    }
    #qIndexBadge::before{ content:"Q"; margin-right:5px; font-size:9px; opacity:.55; letter-spacing:.08em; }
    #questionTitle{
      font-size:clamp(17px,1.55vw,19px) !important;
      line-height:1.9 !important;
      letter-spacing:.005em;
      text-wrap:pretty;
      /* 题干含语义换行（①②③编号罗列、情形一二、主观题案情分段、
         补回的【共享案情】段落）。innerHTML 默认折叠换行，必须保留。 */
      white-space:pre-line;
    }
    #questionTitle .empty-illust{ white-space:normal; }
    /* 选项文本同样可能含换行编号罗列 */
    #optionsContainer .option-row > span.flex-1{ white-space:pre-line; }
    /* 作答区内的批改快捷入口：默认隐藏，仅窄屏由 media query 打开 */
    #gradeSubjectiveInlineBtn{ display:none; }

    /* 共享案情卡片：与设问视觉分区，长案情可折叠（默认展开） */
    .case-mat{
      border:1px solid var(--border-color);
      border-radius:12px;
      background:var(--bg-subtle);
      margin:0 0 14px;
      overflow:hidden;
    }
    .case-mat-head{
      display:flex; align-items:center; justify-content:space-between; gap:8px;
      width:100%; padding:9px 12px;
      background:transparent; border:0; cursor:pointer;
      color:var(--brand-accent); font-size:12.5px; font-weight:700;
      letter-spacing:.02em; text-align:left; white-space:normal;
      -webkit-tap-highlight-color:transparent;
    }
    .case-mat-head:hover{ background:color-mix(in srgb,var(--brand-accent) 7%,transparent); }
    .case-mat-head:focus-visible{ outline:2px solid var(--brand-accent); outline-offset:-2px; }
    .case-mat-head .case-mat-label{ display:inline-flex; align-items:center; gap:6px; }
    .case-mat-head .case-mat-hint{ font-weight:500; opacity:.75; font-size:11px; }
    .case-mat-chevron{ transition:transform .18s ease; flex:none; }
    .case-mat.is-collapsed .case-mat-chevron{ transform:rotate(-90deg); }
    .case-mat-body{
      padding:0 12px 12px;
      font-size:14px; line-height:1.85;
      color:var(--text-main);
      white-space:pre-line;
      overflow-wrap:anywhere;
    }
    .case-mat.is-collapsed .case-mat-body{ display:none; }
    .case-ask{ font-weight:600; }
    @media (max-width:640px){
      .case-mat-body{ font-size:13.5px; line-height:1.8; }
    }
    #optionsContainer .option-row{
      padding:12px 14px !important;
      border-radius:12px !important;
      background:color-mix(in srgb,var(--bg-card) 94%,transparent);
      box-shadow:0 1px 0 rgba(255,255,255,.55) inset;
    }
    html[data-theme="dark"] #optionsContainer .option-row{ box-shadow:0 1px 0 rgba(255,255,255,.035) inset; }
    #optionsContainer .option-row:hover{
      transform:translateY(-1px);
      border-color:#93c5fd;
      box-shadow:0 12px 26px -22px rgba(37,99,235,.72);
    }
    #optionsContainer .option-row:active{ transform:scale(.996); }
    #optionsContainer .option-row > span:first-child{
      border-radius:8px !important;
      font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
    }
    #optionsContainer .option-row > span:last-child{
      font-size:14.5px;
      line-height:1.75;
    }

    /* ── 底栏：玻璃轨道 + 顶部进度细线 ── */
    body > nav.fixed.bottom-0{
      background:color-mix(in srgb,var(--bg-card) 80%,transparent) !important;
      -webkit-backdrop-filter:blur(20px) saturate(150%);
      backdrop-filter:blur(20px) saturate(150%);
      border-top:1px solid color-mix(in srgb,var(--border-color) 72%,transparent) !important;
      box-shadow:0 -16px 40px -28px rgba(15,35,70,.62) !important;
    }
    body > nav.fixed.bottom-0::before{
      content:""; position:absolute; left:0; top:0; height:2px; width:var(--q-progress,0%);
      background:linear-gradient(90deg,#1a3a6b,#2563eb 55%,#f3c969);
      border-radius:0 2px 2px 0;
      transition:width .38s cubic-bezier(.2,.8,.2,1);
      pointer-events:none;
    }
    body > nav.fixed .grid > button{
      background:transparent !important;
      border-color:transparent !important;
      box-shadow:none !important;
      border-radius:11px !important;
      color:var(--text-muted);
      transition:background .16s ease, color .16s ease, transform .14s cubic-bezier(.2,.8,.2,1);
    }
    body > nav.fixed .grid > button:hover{
      background:rgba(37,99,235,.07) !important;
      color:var(--text-main);
    }
    body > nav.fixed .grid > button:active{ transform:scale(.96); }
    #dockNextBtn{
      background:linear-gradient(135deg,#1a3a6b,#24497f) !important;
      color:#fff !important;
      box-shadow:0 9px 22px -11px rgba(26,58,107,.85) !important;
    }
    #dockNextBtn:hover{ filter:brightness(1.08); }
    #dockSheetBtn{ font-variant-numeric:tabular-nums; }

    /* ── 窄屏密度：保留 58px 左右底栏，Hero 文案不挤 ── */
    @media (max-width:899px){
      .hero-glow-inner{ min-height:0; padding:24px 20px 22px; }
      .hero-glow-panel{ max-width:100%; }
      .hero-glow-title{ font-size:clamp(27px,7.3vw,35px); }
      .hero-glow-sub{ margin-bottom:15px; font-size:12px; max-width:100%; }
      .hero-glow-actions{ gap:10px; }
      .hero-meta{ gap:7px; font-size:9.5px; }
      #heroGlow::after{ right:-16px; bottom:-24%; font-size:172px; opacity:.75; }
    }
    @media (max-width:640px){
      #heroGlow::before{ background:
        linear-gradient(100deg,rgba(5,13,27,.98) 0%,rgba(5,13,27,.93) 48%,rgba(5,13,27,.48) 100%),
        repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 56px),
        repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 56px);
      }
      .hero-kicker-en{ display:none; }
      .hero-sub-br{ display:block; }
      #statsSection > .grid > *{ padding:11px 4px 10px !important; }
      #statsSection > .grid > * > div:first-child{ gap:3px !important; font-size:9px !important; letter-spacing:.02em !important; }
      #statsSection .stat-ico{ width:15px !important; height:15px !important; }
      #statsSection .stat-ico svg{ width:10px !important; height:10px !important; }
      #statAnswered,#statAccuracy,#statWrong,#statFav,#statReview{ font-size:18px !important; margin-top:5px !important; }
      #questionTitle{ font-size:17px !important; line-height:1.85 !important; }
      #optionsContainer .option-row{ padding:11px 12px !important; }
      #optionsContainer .option-row > span:last-child{ font-size:14px; line-height:1.7; }
      body > nav.fixed .grid > button{
        flex-direction:row !important;
        gap:3px !important;
        padding:6px 2px !important;
        min-height:40px !important;
        font-size:9.5px !important;
        line-height:1.15 !important;
      }
      body > nav.fixed .grid > button .nav-ico{ width:15px !important; height:15px !important; }
      body > nav.fixed .grid > button span{ font-size:9.5px !important; }
    }
    @media (max-width:360px){
      .hero-glow-title{ font-size:26px; }
      .hero-meta{ display:none; }
      #statsSection .stat-ico{ display:none !important; }
      #statsSection > .grid > * > div:first-child{ font-size:9px !important; }
      #typeFilterSelect,#diffFilterSelect{
        max-width:88px;
        padding-left:7px !important;
        padding-right:18px !important;
        font-size:11px !important;
      }
      #shuffleQuestionsBtn{
        padding-left:8px !important;
        padding-right:8px !important;
        font-size:11px !important;
      }
    }
  
/* ===== inline style #5 id="ui-v13" ===== */

    /* ───────── 1. 解析面板：从灰盒子升级为「判决书」 ───────── */
    #explanationBox{
      position:relative; overflow:hidden;
      border-radius:16px !important;
      padding:13px 14px 15px !important;
      background:linear-gradient(180deg,rgba(255,255,255,.5),transparent 150px),var(--bg-subtle) !important;
      border:1px solid color-mix(in srgb,var(--border-color) 86%,transparent) !important;
      box-shadow:0 22px 46px -36px rgba(15,35,70,.6), inset 0 1px 0 rgba(255,255,255,.5);
    }
    html[data-theme="dark"] #explanationBox{
      background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 150px),var(--bg-subtle) !important;
      box-shadow:0 22px 46px -34px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
    }
    #explanationBox::before{
      content:""; position:absolute; left:0; right:0; top:0; height:3px;
      background:linear-gradient(90deg,#1a3a6b,#2563eb 46%,#f3c969);
    }
    html[data-theme="sepia"] #explanationBox::before{
      background:linear-gradient(90deg,#5c3a21,#8b5a2b 46%,#c79a3b);
    }

    /* 判定横幅：随结果变色的判决条（正确绿 / 错误红 / 背题蓝） */
    #explanationBox > div:first-child{
      border-bottom:0 !important;
      border-radius:12px;
      padding:10px 12px !important;
      background:rgba(37,99,235,.055);
      border:1px solid rgba(37,99,235,.15);
      box-shadow:inset 3px 0 0 #2563eb;
    }
    #explanationBox > div:first-child:has(#resultVerdictBadge[class*="emerald"]){
      background:linear-gradient(100deg,rgba(16,185,129,.14),rgba(16,185,129,.03));
      border-color:rgba(16,185,129,.28);
      box-shadow:inset 3px 0 0 #10b981;
    }
    #explanationBox > div:first-child:has(#resultVerdictBadge[class*="rose"]){
      background:linear-gradient(100deg,rgba(244,63,94,.14),rgba(244,63,94,.03));
      border-color:rgba(244,63,94,.28);
      box-shadow:inset 3px 0 0 #f43f5e;
    }
    #explanationBox > div:first-child > div > span{
      font-size:11px !important; font-weight:700 !important;
      color:var(--text-muted); letter-spacing:.02em; gap:6px;
    }
    #explanationBox .correct-answer-chip{
      min-width:2.2em; padding:.18rem .7rem; border-radius:9px; font-size:1.05rem;
      box-shadow:0 8px 18px -10px rgba(5,150,105,.95), inset 0 1px 0 rgba(255,255,255,.3);
    }
    #explanationBox .answer-chip-user{
      min-width:2.2em; padding:.18rem .7rem; border-radius:9px; font-size:.95rem;
    }
    #resultVerdictBadge{
      border-radius:8px !important;
      padding:3px 10px !important;
      font-size:11.5px !important;
      letter-spacing:.02em;
      border:1px solid transparent;
    }
    #resultVerdictBadge[class*="emerald"]{ border-color:rgba(16,185,129,.4); }
    #resultVerdictBadge[class*="rose"]{ border-color:rgba(244,63,94,.4); }
    #resultVerdictBadge[class*="blue"]{ border-color:rgba(59,130,246,.4); }

    /* 解析小标题：书眉式标签 */
    .exp-kicker{
      font-size:11px !important; font-weight:800 !important;
      letter-spacing:.06em; color:#1d4ed8 !important; opacity:.94;
    }
    .exp-kicker svg{ width:13px !important; height:13px !important; }
    html[data-theme="dark"] .exp-kicker{ color:#93c5fd !important; }
    html[data-theme="sepia"] .exp-kicker{ color:#8b5a2b !important; }

    /* 解析正文：文档左边距书脊 */
    #explanationContent{
      margin-top:2px;
      padding-left:13px;
      border-left:2px solid rgba(37,99,235,.2);
      font-size:13px;
      line-height:1.95;
      color:var(--text-main);
    }
    html[data-theme="dark"] #explanationContent{ border-left-color:rgba(147,197,253,.24); }
    html[data-theme="sepia"] #explanationContent{ border-left-color:rgba(139,90,43,.26); }

    /* 法条依据：金色书签条 */
    #lawBasisBadge{ gap:6px !important; padding-top:4px !important; }
    #lawBasisBadge:empty{ display:none !important; }
    #lawBasisBadge > span{
      border-radius:7px !important;
      padding:3px 8px !important;
      font-size:10.5px !important;
      letter-spacing:.01em;
      background:rgba(26,58,107,.09) !important;
      color:#1e40af !important;
      border:1px solid rgba(26,58,107,.18) !important;
      box-shadow:inset 2px 0 0 #f3c969;
      font-variant-numeric:tabular-nums;
    }
    html[data-theme="dark"] #lawBasisBadge > span{
      background:rgba(96,165,250,.14) !important; color:#bfdbfe !important;
      border-color:rgba(147,197,253,.24) !important;
    }
    html[data-theme="sepia"] #lawBasisBadge > span{
      background:rgba(139,90,43,.12) !important; color:#8b5a2b !important;
      border-color:rgba(139,90,43,.26) !important;
      box-shadow:inset 2px 0 0 #c79a3b;
    }

    /* AI 追问区 */
    #aiResponseBox{ border-radius:12px !important; }
    #sendAiFollowupBtn{ border-radius:9px !important; box-shadow:0 7px 16px -10px rgba(79,70,229,.9); }

    /* ───────── 2. 题卡操作行：胶囊按钮 ───────── */
    #submitAnswerBtn{
      border-radius:999px !important;
      padding:8px 17px !important;
      background:linear-gradient(135deg,#1a3a6b,#24497f) !important;
      box-shadow:0 10px 24px -14px rgba(26,58,107,.92), inset 0 1px 0 rgba(255,255,255,.16) !important;
    }
    #submitAnswerBtn:hover{ filter:brightness(1.08); }
    #toggleAnalysisBtn, #askAiExplainBtn, #removeWrongBtn{ border-radius:999px !important; }
    #askAiExplainBtn{ background:rgba(99,102,241,.1) !important; }
    #toggleAnalysisBtn:hover{ background:var(--bg-card) !important; }

    /* 随手笔记 */
    #questionNoteInput{
      border-radius:12px !important;
      line-height:1.85;
      transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }
    #questionNoteInput:focus{
      background:var(--bg-card) !important;
      border-color:#f3c969 !important;
      box-shadow:0 0 0 3px rgba(243,201,105,.18) !important;
      outline:none;
    }
    html[data-theme="sepia"] #questionNoteInput:focus{ border-color:#c79a3b !important; }
    #insertNoteTemplateBtn{
      padding:2px 8px; border-radius:999px;
      background:rgba(37,99,235,.08); border:1px solid rgba(37,99,235,.16);
      font-weight:700; text-decoration:none !important;
    }
    #insertNoteTemplateBtn:hover{ background:rgba(37,99,235,.16); }
    #noteSavedStatus{ font-variant-numeric:tabular-nums; }

    /* ───────── 3. 错题本：计数胶囊 + 去重做按钮 ───────── */
    #wrongListCountBadge{
      font-variant-numeric:tabular-nums;
      font-size:10.5px !important;
      padding:2px 8px !important;
      border:1px solid rgba(244,63,94,.3);
      letter-spacing:.01em;
    }
    #wrongQuestionsList > div.wrong-card{
      border-radius:12px !important;
      padding:9px 11px !important;
      border-color:color-mix(in srgb,var(--border-color) 80%,#fda4af 20%) !important;
    }
    #wrongQuestionsList > div.wrong-card > button{
      border-radius:999px !important;
      padding:4px 11px !important;
      font-size:11px !important;
      background:linear-gradient(135deg,#1a3a6b,#24497f) !important;
      box-shadow:0 7px 16px -10px rgba(26,58,107,.95) !important;
    }
    #exportWrongCsvBtn{
      border-radius:999px !important;
      padding:4px 11px !important;
      font-size:11px !important;
    }

    /* ───────── 4. 答题卡弹窗：无间隙统计条 + 圆角格子 + 胶囊分页 ───────── */
    .sheet-overview{
      flex:0 0 auto !important;          /* 关键：窄屏下不被弹窗 flex 布局压缩裁切 */
      gap:0 !important;
      padding:0 !important;
      margin-top:10px;
      background:var(--bg-subtle);
      border:1px solid var(--border-color);
      border-radius:11px;
      overflow:hidden;
    }
    .sheet-stat{
      background:transparent !important;
      border:0 !important;
      border-right:1px solid var(--border-color) !important;
      border-radius:0 !important;
      padding:9px 6px 8px !important;
      position:relative;
    }
    .sheet-stat:last-child{ border-right:0 !important; }
    .sheet-stat::after{ content:""; position:absolute; left:0; right:0; top:0; height:2px; }
    .sheet-stat.ok::after{ background:#10b981; }
    .sheet-stat.bad::after{ background:#f43f5e; }
    .sheet-stat.left::after{ background:#2563eb; }
    .sheet-stat:last-child::after{ background:#f3c969; }
    .sheet-stat b{
      font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
      font-size:15px !important; letter-spacing:-.01em;
    }
    .sheet-stat span{ font-size:9.5px !important; letter-spacing:.02em; }
    #answerSheetGrid{ gap:6px !important; }
    #answerSheetGrid button{
      border-radius:9px !important;
      min-height:36px;
      font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
      font-variant-numeric:tabular-nums;
    }
    #jumpFirstUnansweredBtn{
      padding:3px 9px; border-radius:999px;
      background:rgba(37,99,235,.08); border:1px solid rgba(37,99,235,.16);
      text-decoration:none !important;
    }
    #jumpFirstUnansweredBtn:hover{ background:rgba(37,99,235,.16); }
    .pager-btn{
      border-radius:999px !important;
      height:31px !important;
      padding:0 12px !important;
    }
    .pager-btn:hover:not(:disabled){ background:rgba(37,99,235,.08) !important; border-color:#3b82f6 !important; }
    .pager-info{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; letter-spacing:.01em; }
    .pager-jump input{ border-radius:999px !important; }

    /* ───────── 5. 知识点中心：分段标签 + 卡片书脊 ───────── */
    .modal-tabs{
      gap:4px !important;
      margin-top:10px;
      padding:4px !important;
      background:var(--bg-subtle);
      border:1px solid var(--border-color);
      border-radius:11px;
    }
    .modal-tabs .m-tab{
      flex:1; justify-content:center;
      border:0 !important;
      background:transparent !important;
      border-radius:8px !important;
      padding:6px 12px !important;
      box-shadow:none !important;
    }
    .modal-tabs .m-tab.is-active{
      color:#fff !important;
      background:linear-gradient(135deg,#1a3a6b,#24497f) !important;
      box-shadow:0 8px 18px -10px rgba(26,58,107,.9) !important;
    }
    html[data-theme="sepia"] .modal-tabs .m-tab.is-active{
      background:linear-gradient(135deg,#8b5a2b,#6d4522) !important;
    }
    #myNotesCount{
      border:1px solid rgba(100,116,139,.3);
      font-variant-numeric:tabular-nums;
      font-weight:700;
    }
    .k-search input{ border-radius:999px !important; }
    .k-card{
      position:relative; overflow:hidden;
      flex:0 0 auto;                      /* 关键：禁止在 flex 列表里被压缩，改为正常滚动 */
      border-radius:13px !important;
      border-left-width:0 !important;
      padding:12px 13px 12px 15px !important;
    }
    .k-card::before{
      content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
      background:linear-gradient(180deg,#2563eb,#1a3a6b);
    }
    html[data-theme="sepia"] .k-card::before{ background:linear-gradient(180deg,#b45309,#6d4522); }
    .k-card:hover{ transform:translateY(-1px); }
    .k-subject{ border-radius:5px !important; letter-spacing:.02em; }
    .k-point{ font-size:13.5px !important; letter-spacing:-.005em; }
    .k-body{ font-size:12px !important; line-height:1.8 !important; }
    .k-chip{ padding:5px 10px !important; }
    #kResetFilterBtn{ text-decoration:none !important; }
    #kResetFilterBtn:hover{ text-decoration:underline !important; }

    /* ───────── 6. 窄屏密度 ───────── */
    @media (max-width:640px){
      #explanationBox{ padding:11px 11px 13px !important; border-radius:14px !important; }
      #explanationBox > div:first-child{ padding:9px 10px !important; gap:6px !important; }
      #explanationBox > div:first-child > div{ gap:8px !important; flex-wrap:wrap; }
      #explanationBox > div:first-child > div > span{ font-size:10.5px !important; }
      #explanationContent{ padding-left:11px; font-size:12.5px; line-height:1.9; }
      #lawBasisBadge > span{ font-size:10px !important; padding:2px 7px !important; }
      #submitAnswerBtn{ padding:8px 15px !important; font-size:12px !important; }
      #toggleAnalysisBtn, #askAiExplainBtn{ padding:7px 11px !important; font-size:11.5px !important; }
      #submitAnswerBtn, #toggleAnalysisBtn, #removeWrongBtn, #askAiExplainBtn,
      #gradeSubjectiveBtn, #speakBtn{
        white-space:nowrap !important;     /* 关键：窄屏不允许按钮文案折成两行 */
        flex-shrink:0;
      }
      #removeWrongBtn{ padding:7px 10px !important; font-size:11px !important; }
      /* 窄屏批改入口移到作答区正下方：免收键盘/滚动，且不与按钮栏重复 */
      #gradeSubjectiveBtn{ display:none !important; }
      #gradeSubjectiveInlineBtn{ display:inline-block; }
      /* 手机键盘弹出后限制作答框高度。
         iOS Safari 的 vh 按「最大视口」计算，软键盘弹出时 layout viewport
         不收缩，单用 35vh 仍会占去大半剩余可视区。改用 visualViewport 实时
         高度（--app-vv-height）并保留 200px 绝对上限做双保险。 */
      #subjectiveInput{
        max-height:min(35vh, calc(var(--app-vv-height, 100vh) * .35), 200px);
      }
      /* 手机单手刷题：主要交互控件放大到 >=44px 触摸目标（Apple HIG）。
         实测修复前：提交 35px / 解析 36px / AI 追问 32px / 批改入口 30px /
         底部 dock 40px / 错题筛选 26-28px，单手点按偏小。
         桌面端鼠标操作保持原有密度（WCAG 2.5.8 AA 要求 24x24，现有最小
         26px 已达标），故只在窄屏放大。 */
      #submitAnswerBtn, #toggleAnalysisBtn, #askAiExplainBtn,
      #speakBtn, #gradeSubjectiveInlineBtn{
        min-height:44px !important;
        display:inline-flex !important; align-items:center; justify-content:center;
      }
      #removeWrongBtn{ min-height:44px !important; }  /* ≤360px 仍由下方规则隐藏 */
      /* 需用同等作用域的更高特异性，压过上方 body > nav.fixed .grid > button
         的 min-height:40px !important，否则 dock 仍是 40px */
      body > nav.fixed.bottom-0 .grid > button{ min-height:44px !important; }
      #wrongFilterSubject, #wrongFilterReason,
      #wrongFilterResetBtn, #wrongFilterPracticeBtn{ min-height:40px; }
      .sheet-stat b{ font-size:14px !important; }
      .sheet-stat span{ font-size:9px !important; }
      #answerSheetGrid button{ min-height:34px; }
      .pager-btn{ height:30px !important; padding:0 10px !important; font-size:10.5px !important; }
      .modal-tabs .m-tab{ padding:6px 8px !important; font-size:11px !important; }
      .k-card{ padding:11px 11px 11px 13px !important; }
    }
    @media (max-width:360px){
      .pager-jump{ display:none; }
      #jumpFirstUnansweredBtn span{ display:none; }
      #removeWrongBtn{ display:none; }   /* 360 极窄：移除错题改由错题本页操作，避免挤压主 CTA */
    }
  
/* ===== inline style #6 ===== */

  /* 第三轮审计修复：窄屏下补足未达 WCAG 2.5.8 AA (24px) 的控件尺寸。
     仅调整最小尺寸，不改 flex 布局、不用伪元素（避免与选项行 ::after 冲突）。 */
  @media (max-width: 640px){
    input[type="checkbox"], input[type="radio"]{ min-width:24px; min-height:24px; }
    .mode-toggle{ min-height:24px; }
  }
  
/* ===== inline style #7 ===== */

  /* 第五轮：静态占位 → 首次真实渲染会造成一次性大位移(CLS≈0.30)。
     主内容在 initApp 完成首屏渲染前不参与布局；从 display:none 到显示
     不会计入 layout-shift。JS 被禁用时不会打标记，内容照常显示。 */
  html.fk-booting main{display:none}
  
/* ===== inline style #8 ===== */

    #splashCover{position:fixed;inset:0;z-index:2147483600;overflow:hidden;background:#f8efe6;color:#2a1420;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:max(22px,env(safe-area-inset-top)) 22px max(22px,env(safe-area-inset-bottom));font-family:system-ui,-apple-system,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;transition:opacity .5s ease,visibility .5s ease;-webkit-tap-highlight-color:transparent}
    #splashCover.sc-hide{opacity:0;visibility:hidden;pointer-events:none}
    #splashCoverCanvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0}
    #splashCover .sc-veil{position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(60% 55% at 50% 46%,rgba(255,250,244,.82) 0%,rgba(255,250,244,.38) 45%,rgba(255,250,244,0) 72%)}
    #splashCover .sc-top{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;gap:10px;padding:max(14px,env(safe-area-inset-top)) 20px 14px;font-size:12px;letter-spacing:.12em;color:#5c4650;text-transform:uppercase}
    #splashCover .sc-mark{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(145deg,#6d1b2e,#a23a54);color:#f6e2b8;font-size:15px;box-shadow:0 6px 16px -6px rgba(109,27,46,.7)}
    #splashCover .sc-mark svg{width:15px;height:15px}
    #splashCover .sc-inner{position:relative;z-index:2;width:100%;max-width:760px}
    #splashCover .sc-kicker{display:inline-flex;align-items:center;gap:8px;font-size:clamp(12px,1.6vw,14px);font-weight:700;letter-spacing:.05em;color:#6d1b2e;background:rgba(255,250,244,.55);border:1px solid rgba(184,134,46,.45);padding:5px 13px;border-radius:999px}
    #splashCover .sc-title{margin:clamp(16px,3vw,26px) 0 0;font-size:clamp(28px,6.6vw,64px);line-height:1.14;font-weight:800;letter-spacing:-.02em;color:#2a1420;overflow-wrap:anywhere;word-break:break-word}
    #splashCover .sc-grad{background:linear-gradient(92deg,#6d1b2e 0%,#a23a54 48%,#c79a3b 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
    #splashCover .sc-sub{margin:clamp(14px,2.4vw,20px) auto 0;max-width:40em;font-size:clamp(13px,1.9vw,17px);line-height:1.75;color:#5c4650}
    #splashCover .sc-sub b{color:#2a1420;font-weight:700}
    #splashCover .sc-count{display:flex;width:fit-content;margin-left:auto;margin-right:auto;align-items:center;gap:8px;margin-top:clamp(14px,2.2vw,20px);padding:7px 16px;border-radius:999px;font-size:clamp(12.5px,1.6vw,15px);color:#2a1420;background:rgba(255,250,244,.6);border:1px solid rgba(184,134,46,.5);box-shadow:0 6px 18px -12px rgba(109,27,46,.6)}
    #splashCover .sc-spark{color:#b8862e}
    #splashCover .sc-count b{font-size:1.24em;color:#6d1b2e;font-variant-numeric:tabular-nums;padding:0 2px}
    #splashCover .sc-btn{display:flex;width:fit-content;margin-left:auto;margin-right:auto;align-items:center;gap:8px;margin-top:clamp(24px,3.6vw,38px);text-decoration:none;font-weight:700;font-size:clamp(15px,2vw,18px);padding:14px 30px;border-radius:999px;cursor:pointer;color:#fbe9c8;background:linear-gradient(135deg,#6d1b2e,#8e2a44);border:1px solid rgba(217,178,95,.6);box-shadow:0 14px 30px -12px rgba(109,27,46,.9);transition:transform .14s ease,background .16s ease}
    #splashCover .sc-btn:hover{transform:translateY(-2px)}
    #splashCover .sc-btn:active{transform:translateY(0)}
    #splashCover .sc-hint{margin-top:14px;font-size:12px;color:#8a6d76;letter-spacing:.08em;opacity:.85}
    #splashCover .sc-credit{position:absolute;left:0;right:0;bottom:max(10px,env(safe-area-inset-bottom));z-index:3;font-size:10px;color:rgba(42,20,32,.42);letter-spacing:.02em;text-align:center}
    #splashCover .sc-model{width:min(56vw,240px);height:min(56vw,240px);margin:0 auto 2px;position:relative;opacity:0;transform:translateY(6px);transition:opacity .8s ease,transform .8s ease;filter:drop-shadow(0 20px 34px rgba(109,27,46,.26))}
    #splashCover .sc-model.is-ready{opacity:1;transform:translateY(0)}
    #splashCover .sc-model::before{content:"";position:absolute;inset:-10%;border-radius:50%;z-index:-1;background:radial-gradient(circle at 50% 46%,rgba(200,155,60,.24),rgba(109,27,46,.13) 46%,transparent 70%);filter:blur(4px)}
    #scModelCanvas{width:100%;height:100%;display:block}
    @media (max-height:760px){#splashCover .sc-model{width:min(40vw,168px);height:min(40vw,168px)}}
    @media (max-height:600px){#splashCover .sc-model{display:none}}
    @media (prefers-reduced-motion: reduce){#splashCover .sc-model{transition:none}}
  
/* ===== inline style #9 id="aiqa-style" ===== */

#aiqa-btn{position:fixed;right:18px;bottom:calc(76px + env(safe-area-inset-bottom) + var(--app-kb-inset, 0px));z-index:60;padding:10px 14px;border-radius:999px;background:#1a3a6b;color:#fff;border:0;font:600 14px/1 system-ui,sans-serif;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25)}
#aiqa-panel{position:fixed;right:18px;bottom:calc(126px + env(safe-area-inset-bottom) + var(--app-kb-inset, 0px));width:min(360px,calc(100vw - 36px));max-height:min(70vh, calc(var(--app-vv-height, 100vh) - 150px));background:#fff;color:#111;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.3);display:none;flex-direction:column;z-index:61;overflow:hidden;font:14px/1.5 system-ui,sans-serif}
#aiqa-panel.open{display:flex}
#aiqa-head{padding:10px 12px;background:#1a3a6b;color:#fff;font-weight:600;display:flex;justify-content:space-between;align-items:center}
#aiqa-msgs{padding:10px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:8px;background:#f6f8fb}
.aiqa-m{padding:8px 10px;border-radius:10px;max-width:90%;white-space:pre-wrap;word-break:break-word}
.aiqa-u{align-self:flex-end;background:#1a3a6b;color:#fff}
.aiqa-a{align-self:flex-start;background:#fff;border:1px solid #e3e8f0}
#aiqa-foot{display:flex;gap:6px;padding:8px;border-top:1px solid #e3e8f0;background:#fff}
#aiqa-in{flex:1;padding:8px;border:1px solid #cfd8e6;border-radius:8px;font:14px/1.4 system-ui,sans-serif}
#aiqa-send{width:auto;min-width:64px;padding:8px 14px;border:0;border-radius:9px;background:#1a3a6b;color:#fff;font-weight:600;cursor:pointer}
#aiqa-send:disabled{opacity:.5}
#aiqa-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px 2px;background:#f6f8fb}
#aiqa-chips .aiqa-chip{padding:5px 10px;border-radius:999px;border:1px solid #c9d4e6;background:#fff;color:#1a3a6b;font:13px/1 system-ui,sans-serif;cursor:pointer}
#aiqa-chips .aiqa-chip:hover{background:#eef2f8;border-color:#1a3a6b}
.aiqa-save{margin-top:6px;padding:3px 8px;border-radius:6px;border:1px solid #1a3a6b;background:transparent;color:#1a3a6b;font:12px/1.2 system-ui,sans-serif;cursor:pointer}
.aiqa-save:hover{background:#1a3a6b;color:#fff}

/* ===== inline style #10 ===== */

#verBadge{position:fixed;left:10px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:60;font:600 11px/1.3 system-ui,-apple-system,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;color:#5a1524;background:rgba(255,255,255,.72);border:1px solid rgba(90,21,36,.22);padding:3px 8px;border-radius:999px;opacity:.75;pointer-events:none;user-select:none;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
