/* ==========================================================================
   比与比例练习 /tool/ratio-proportion-drill
   视觉主题：群青图纸 —— 群青蓝 + 日光金 + 米白图纸，方角卡片 + 细网格
   ========================================================================== */

.rpd-page {
    --rpd-paper: #f6f4ee;
    --rpd-paper-2: #fdfcf9;
    --rpd-paper-3: #edeae1;
    --rpd-ink: #26303f;
    --rpd-ink-2: #56617a;
    --rpd-ink-3: #8d97ab;
    --rpd-line: #d8d4c6;
    --rpd-line-2: #e6e2d6;
    --rpd-blue: #1e4fa3;
    --rpd-blue-2: #163a7c;
    --rpd-blue-soft: #e3eaf6;
    --rpd-gold: #d99a26;
    --rpd-gold-2: #b57d12;
    --rpd-gold-soft: #f9efd8;
    --rpd-ok: #3d7d54;
    --rpd-ok-soft: #e2efe6;
    --rpd-err: #b04a42;
    --rpd-err-soft: #f6e3e1;
    --rpd-shadow: 0 10px 26px rgba(30, 79, 163, .12);
    --rpd-shadow-sm: 0 3px 10px rgba(30, 79, 163, .08);
    --rpd-radius: 10px;
}

:root[data-theme="dark"] .rpd-page {
    --rpd-paper: #1d222c;
    --rpd-paper-2: #232936;
    --rpd-paper-3: #2b3242;
    --rpd-ink: #e8ebf2;
    --rpd-ink-2: #aab4c6;
    --rpd-ink-3: #7e889c;
    --rpd-line: #3a4356;
    --rpd-line-2: #323a4c;
    --rpd-blue: #6f97dd;
    --rpd-blue-2: #8fb0e8;
    --rpd-blue-soft: #24314a;
    --rpd-gold: #e3b45c;
    --rpd-gold-2: #efc67d;
    --rpd-gold-soft: #3a3020;
    --rpd-ok: #6cb289;
    --rpd-ok-soft: #233730;
    --rpd-err: #e0837b;
    --rpd-err-soft: #40272a;
    --rpd-shadow: 0 10px 26px rgba(0, 0, 0, .42);
    --rpd-shadow-sm: 0 3px 10px rgba(0, 0, 0, .34);
}

.rpd-page {
    color: var(--rpd-ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.74;
    font-variant-numeric: tabular-nums;
    padding-bottom: 40px;
}

.rpd-page * { box-sizing: border-box; }

.rpd-page h1,
.rpd-page h2,
.rpd-page h3 {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 700;
    margin: 0;
    letter-spacing: .02em;
}

/* ===================== 首屏 ===================== */
.rpd-hero {
    background:
        linear-gradient(var(--rpd-line-2) 1px, transparent 1px) 0 0 / 100% 22px,
        linear-gradient(90deg, var(--rpd-line-2) 1px, transparent 1px) 0 0 / 22px 100%,
        linear-gradient(180deg, var(--rpd-paper-2), var(--rpd-paper));
    border: 1px solid var(--rpd-line);
    border-radius: var(--rpd-radius);
    box-shadow: var(--rpd-shadow);
    padding: 26px 26px 20px;
    margin-bottom: 18px;
}

.rpd-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.rpd-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--rpd-blue-2);
    border-left: 4px solid var(--rpd-gold);
    background: var(--rpd-blue-soft);
    padding: 3px 12px;
    margin-bottom: 10px;
    font-weight: 600;
}

.rpd-hero-copy h1 { font-size: 30px; color: var(--rpd-blue-2); margin-bottom: 8px; }

.rpd-lead { margin: 0 0 12px; color: var(--rpd-ink-2); font-size: 14.5px; max-width: 64ch; }
.rpd-lead b { color: var(--rpd-blue); }

.rpd-tags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rpd-tags li {
    font-size: 12px; color: var(--rpd-ink-2);
    border: 1px solid var(--rpd-line); background: var(--rpd-paper-2);
    border-radius: 4px; padding: 2px 9px;
}

/* ---- 练习入口 ---- */
.rpd-entry {
    background: var(--rpd-paper-2);
    border: 1px solid var(--rpd-line);
    border-radius: var(--rpd-radius);
    box-shadow: var(--rpd-shadow-sm);
    padding: 16px 18px 18px;
}

.rpd-entry-head {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
    border-bottom: 2px dashed var(--rpd-line);
    padding-bottom: 10px; margin-bottom: 12px;
}
.rpd-entry-head b { font-size: 16px; color: var(--rpd-ink); }
.rpd-entry-head > span:last-child { font-size: 12.5px; color: var(--rpd-ink-3); }
.rpd-sheet-no {
    font-size: 11px; letter-spacing: 1px; color: var(--rpd-gold-2);
    border: 1px solid var(--rpd-gold); border-radius: 3px; padding: 1px 8px;
    font-weight: 600;
}

.rpd-type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rpd-chip { position: relative; cursor: pointer; }
.rpd-chip input { position: absolute; opacity: 0; inset: 0; }
.rpd-chip span {
    display: inline-block; font-size: 13.5px; color: var(--rpd-ink-2);
    border: 1px solid var(--rpd-line); border-radius: 6px;
    padding: 6px 14px; background: var(--rpd-paper);
    transition: all .15s;
}
.rpd-chip input:checked + span {
    color: #fff; background: var(--rpd-blue); border-color: var(--rpd-blue);
    font-weight: 600; box-shadow: var(--rpd-shadow-sm);
}
.rpd-chip input:focus-visible + span { outline: 2px solid var(--rpd-gold); outline-offset: 2px; }

.rpd-entry-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

.rpd-select,
.rpd-input {
    font: inherit; font-size: 14px; color: var(--rpd-ink);
    background: var(--rpd-paper); border: 1px solid var(--rpd-line);
    border-radius: 6px; padding: 8px 12px; width: 100%;
}
.rpd-select { width: auto; min-width: 180px; }
.rpd-input:focus, .rpd-select:focus { outline: 2px solid var(--rpd-blue); outline-offset: 0; border-color: var(--rpd-blue); }
.rpd-input--sm { padding: 6px 10px; font-size: 13.5px; }

.rpd-btn {
    font: inherit; font-size: 14px; font-weight: 600;
    border: 1px solid var(--rpd-blue); border-radius: 6px;
    background: var(--rpd-paper-2); color: var(--rpd-blue);
    padding: 8px 18px; cursor: pointer; transition: all .15s;
}
.rpd-btn:hover { transform: translateY(-1px); box-shadow: var(--rpd-shadow-sm); }
.rpd-btn--primary { background: var(--rpd-blue); color: #fff; }
:root[data-theme="dark"] .rpd-btn--primary { color: #10151f; }
.rpd-btn--gold { background: var(--rpd-gold); border-color: var(--rpd-gold); color: #241a05; }
.rpd-btn--ghost { border-color: var(--rpd-line); color: var(--rpd-ink-2); background: transparent; }

.rpd-question {
    border: 1px solid var(--rpd-blue-soft); border-left: 4px solid var(--rpd-blue);
    background: var(--rpd-paper); border-radius: 6px; padding: 12px 14px;
}
.rpd-question-meta {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
    font-size: 12px; color: var(--rpd-ink-3); margin-bottom: 6px;
}
.rpd-question-meta #rpdQTag {
    color: var(--rpd-blue); font-weight: 600;
    border: 1px solid var(--rpd-blue); border-radius: 3px; padding: 0 8px;
}
.rpd-question-text { margin: 0 0 10px; font-size: 15.5px; font-weight: 600; line-height: 1.8; }
.rpd-answer-row { display: flex; gap: 8px; }
.rpd-answer-row .rpd-input { max-width: 420px; }
.rpd-answer-hint { font-size: 12px; color: var(--rpd-ink-3); margin-top: 6px; }

.rpd-quiz-feedback { margin-top: 10px; border-radius: 6px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.rpd-quiz-feedback.rpd-ok { background: var(--rpd-ok-soft); color: var(--rpd-ok); border: 1px solid var(--rpd-ok); }
.rpd-quiz-feedback.rpd-bad { background: var(--rpd-err-soft); color: var(--rpd-err); border: 1px solid var(--rpd-err); }

.rpd-explain {
    margin-top: 10px; background: var(--rpd-blue-soft);
    border: 1px dashed var(--rpd-blue); border-radius: 6px;
    padding: 12px 14px; font-size: 13.5px; line-height: 1.9;
}
.rpd-explain h4 { margin: 0 0 6px; font-size: 13px; color: var(--rpd-blue-2); letter-spacing: 1px; }
.rpd-explain ol { margin: 0; padding-left: 20px; }
.rpd-explain b { color: var(--rpd-blue); }

/* ---- 比例天平 ---- */
.rpd-balance {
    background: var(--rpd-paper-2);
    border: 1px solid var(--rpd-line);
    border-top: 5px solid var(--rpd-gold);
    border-radius: var(--rpd-radius);
    box-shadow: var(--rpd-shadow-sm);
    overflow: hidden;
}
.rpd-balance-head {
    font-size: 12px; letter-spacing: 4px; font-weight: 700;
    color: var(--rpd-gold-2); text-align: center;
    padding: 10px 0 8px; border-bottom: 1px dashed var(--rpd-line);
}
.rpd-balance-body { padding: 14px 16px 16px; }
.rpd-field { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--rpd-ink-2); }
.rpd-field span { flex: 0 0 34px; }
.rpd-bal-bars { margin: 12px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.rpd-bal-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; font-size: 12.5px; color: var(--rpd-ink-2); }
.rpd-bal-track { background: var(--rpd-paper-3); border-radius: 4px; height: 22px; overflow: hidden; }
.rpd-bal-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--rpd-blue), var(--rpd-blue-2));
    min-width: 2px; transition: width .35s ease;
    display: flex; align-items: center; justify-content: flex-end;
    color: #fff; font-size: 11.5px; padding-right: 6px; white-space: nowrap;
}
:root[data-theme="dark"] .rpd-bal-fill { color: #10151f; }
.rpd-bal-row:nth-child(2) .rpd-bal-fill { background: linear-gradient(90deg, var(--rpd-gold), var(--rpd-gold-2)); }
.rpd-bal-row:nth-child(3) .rpd-bal-fill { background: linear-gradient(90deg, #4a7fc1, var(--rpd-blue)); }
.rpd-bal-kv {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    font-size: 13px; border-top: 1px dashed var(--rpd-line); padding-top: 10px;
}
.rpd-bal-kv div { display: flex; justify-content: space-between; gap: 6px; }
.rpd-bal-kv b { color: var(--rpd-blue); }
.rpd-bal-warn { font-size: 12.5px; color: var(--rpd-err); margin: 8px 0 0; }

/* ---- 预置 ---- */
.rpd-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.rpd-presets--panel { margin-top: 0; }
.rpd-presets-label { font-size: 12.5px; color: var(--rpd-ink-3); font-weight: 600; }
.rpd-presets button {
    font: inherit; font-size: 12.5px; color: var(--rpd-ink-2);
    background: var(--rpd-paper-2); border: 1px solid var(--rpd-line);
    border-radius: 999px; padding: 4px 13px; cursor: pointer; transition: all .15s;
}
.rpd-presets button:hover { border-color: var(--rpd-blue); color: var(--rpd-blue); }

/* ===================== 校验提示 ===================== */
.rpd-errbar {
    background: var(--rpd-err-soft); border: 1px solid var(--rpd-err);
    color: var(--rpd-err); border-radius: 6px;
    padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px;
}

/* ===================== 面板 ===================== */
.rpd-panel {
    background: var(--rpd-paper-2);
    border: 1px solid var(--rpd-line);
    border-radius: var(--rpd-radius);
    box-shadow: var(--rpd-shadow-sm);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.rpd-panel-head { margin-bottom: 14px; }
.rpd-panel-kicker {
    display: inline-block; font-size: 11px; letter-spacing: 3px;
    color: var(--rpd-gold-2); font-weight: 700; margin-bottom: 4px;
}
.rpd-panel-head h2 { font-size: 21px; color: var(--rpd-ink); margin-bottom: 6px; }
.rpd-panel-head p { margin: 0; font-size: 13.5px; color: var(--rpd-ink-2); max-width: 78ch; }
.rpd-panel-head p b { color: var(--rpd-blue); }

/* ---- 联动讲解 ---- */
.rpd-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rpd-link-card {
    background: var(--rpd-paper); border: 1px solid var(--rpd-line);
    border-top: 3px solid var(--rpd-blue); border-radius: 8px; padding: 14px 16px;
}
.rpd-link-card--alt { border-top-color: var(--rpd-gold); }
.rpd-link-card--note { border-top-color: var(--rpd-ok); }
.rpd-link-card h3 { font-size: 15px; margin-bottom: 8px; color: var(--rpd-ink); }
.rpd-link-card ol, .rpd-link-card p { margin: 0; font-size: 13.5px; color: var(--rpd-ink-2); }
.rpd-link-card ol { padding-left: 18px; }
.rpd-link-card li { margin-bottom: 4px; }
.rpd-link-card b { color: var(--rpd-blue); }
.rpd-link-card--alt b { color: var(--rpd-gold-2); }
.rpd-link-card--note b { color: var(--rpd-ok); }

/* ---- 战绩 ---- */
.rpd-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.rpd-stat {
    background: var(--rpd-paper); border: 1px solid var(--rpd-line);
    border-radius: 8px; padding: 10px 14px;
    display: flex; flex-direction: column; gap: 2px;
}
.rpd-stat span { font-size: 12px; color: var(--rpd-ink-3); }
.rpd-stat b { font-size: 22px; color: var(--rpd-blue); font-variant-numeric: tabular-nums; }
.rpd-stat-bar {
    height: 8px; background: var(--rpd-paper-3); border-radius: 999px; overflow: hidden; margin-bottom: 14px;
}
.rpd-stat-bar-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--rpd-blue), var(--rpd-gold));
    transition: width .3s ease;
}

.rpd-history-wrap { overflow-x: auto; }
.rpd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rpd-table th, .rpd-table td {
    border: 1px solid var(--rpd-line-2); padding: 7px 10px; text-align: left;
    white-space: nowrap;
}
.rpd-table td.rpd-wrap, .rpd-table th.rpd-wrap { white-space: normal; min-width: 200px; }
.rpd-table th { background: var(--rpd-blue-soft); color: var(--rpd-blue-2); font-weight: 600; }
.rpd-table .rpd-empty td { text-align: center; color: var(--rpd-ink-3); padding: 16px; }
.rpd-mark-ok { color: var(--rpd-ok); font-weight: 700; }
.rpd-mark-bad { color: var(--rpd-err); font-weight: 700; }

/* ---- 错题本 ---- */
.rpd-batch-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rpd-batch-best { margin: 0; font-size: 13px; color: var(--rpd-ink-2); }

/* ---- 导出 ---- */
.rpd-pre {
    background: var(--rpd-paper); border: 1px solid var(--rpd-line);
    border-radius: 6px; padding: 12px 14px;
    font-family: Consolas, "Courier New", monospace; font-size: 12.5px;
    color: var(--rpd-ink-2); overflow-x: auto; white-space: pre; margin: 0 0 12px;
    max-height: 220px;
}
.rpd-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- FAQ ---- */
.rpd-faq-item {
    border: 1px solid var(--rpd-line); border-radius: 8px;
    background: var(--rpd-paper); margin-bottom: 10px; overflow: hidden;
}
.rpd-faq-item summary {
    cursor: pointer; font-weight: 600; font-size: 14.5px;
    padding: 11px 16px; color: var(--rpd-ink);
    list-style: none; position: relative; padding-right: 40px;
}
.rpd-faq-item summary::-webkit-details-marker { display: none; }
.rpd-faq-item summary::after {
    content: "+"; position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%); color: var(--rpd-blue); font-weight: 700;
}
.rpd-faq-item[open] summary::after { content: "−"; }
.rpd-faq-a { padding: 0 16px 13px; font-size: 13.5px; color: var(--rpd-ink-2); line-height: 1.9; }
.rpd-faq-a b { color: var(--rpd-blue); }

.rpd-comments { margin-bottom: 10px; }

/* ===================== 口径说明与常见误填 ===================== */
.rpd-criteria-head {
    display: flex; justify-content: space-between; align-items: baseline;
    flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.rpd-criteria-head h2 { font-size: 18px; color: var(--rpd-ink); }
.rpd-criteria-head > span { font-size: 12.5px; color: var(--rpd-ink-3); }
.rpd-note-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rpd-note-table th, .rpd-note-table td {
    border-bottom: 1px solid var(--rpd-line-2);
    padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.8;
}
.rpd-note-table tr:last-child th, .rpd-note-table tr:last-child td { border-bottom: none; }
.rpd-note-table th {
    width: 96px; color: var(--rpd-ink); font-weight: 700; white-space: nowrap;
}
.rpd-note-table td { color: var(--rpd-ink-2); }
.rpd-note-table td b { color: var(--rpd-blue); }

/* ===================== 底部信息标签页 ===================== */
.rpd-tabs {
    display: flex; flex-wrap: wrap; gap: 2px;
    border-bottom: 2px solid var(--rpd-line);
    margin: 22px 0 0;
}
.rpd-tab {
    font: inherit; font-size: 14px; font-weight: 600;
    color: var(--rpd-ink-2); background: transparent;
    border: none; border-bottom: 2px solid transparent;
    padding: 10px 16px; margin-bottom: -2px; cursor: pointer; transition: all .15s;
}
.rpd-tab:hover { color: var(--rpd-blue); }
.rpd-tab.active { color: var(--rpd-blue-2); border-bottom-color: var(--rpd-gold); }
.rpd-tabpane {
    display: none;
    background: var(--rpd-paper-2);
    border: 1px solid var(--rpd-line); border-top: none;
    border-radius: 0 0 var(--rpd-radius) var(--rpd-radius);
    box-shadow: var(--rpd-shadow-sm);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.rpd-tabpane.active { display: block; }
.rpd-tabpane h2 { font-size: 17px; color: var(--rpd-ink); margin: 0 0 10px; }
.rpd-tabpane h2:not(:first-child) { margin-top: 18px; }
.rpd-tabpane p { margin: 0 0 6px; font-size: 14px; color: var(--rpd-ink-2); line-height: 2; }
.rpd-tabpane p b { color: var(--rpd-blue); }
.rpd-tabpane ol { margin: 0; padding-left: 22px; font-size: 14px; color: var(--rpd-ink-2); line-height: 2.1; }
.rpd-tabpane ol b { color: var(--rpd-blue); }

.rpd-timeline { list-style: none; margin: 0; padding: 0; }
.rpd-timeline li {
    display: flex; gap: 10px; align-items: baseline;
    padding: 10px 0; border-bottom: 1px dashed var(--rpd-line-2);
    font-size: 13.5px; color: var(--rpd-ink-2); line-height: 1.9;
}
.rpd-timeline li:last-child { border-bottom: none; }
.rpd-timeline .ver {
    flex: 0 0 auto; font-size: 11.5px; font-weight: 700;
    color: var(--rpd-blue-2); background: var(--rpd-blue-soft);
    border-radius: 4px; padding: 1px 9px;
}
.rpd-timeline .date { flex: 0 0 auto; color: var(--rpd-ink-3); font-size: 12.5px; }

/* ===================== 相关工具 ===================== */
.rpd-related { margin-bottom: 10px; }
.rpd-related h2 { font-size: 19px; color: var(--rpd-ink); margin: 0 0 12px; }
.rpd-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.rpd-rel {
    display: flex; align-items: center; gap: 10px;
    background: var(--rpd-paper-2); border: 1px solid var(--rpd-line);
    border-radius: 10px; padding: 12px 14px; text-decoration: none;
    transition: all .15s;
}
.rpd-rel:hover { border-color: var(--rpd-blue); box-shadow: var(--rpd-shadow-sm); transform: translateY(-1px); }
.rpd-rel .ri {
    flex: 0 0 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: var(--rpd-blue-soft); border-radius: 8px; font-size: 17px;
}
.rpd-rel b { display: block; font-size: 13.5px; color: var(--rpd-ink); }
.rpd-rel small { display: block; font-size: 12px; color: var(--rpd-ink-3); margin-top: 2px; }

/* ===================== A4 练习卷 ===================== */
.rpd-sheet { display: none; }

/* ===================== 弹窗与 toast ===================== */
.rpd-overlay[hidden] { display: none; }
.rpd-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(22, 30, 46, .5);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.rpd-modal {
    background: var(--rpd-paper-2); color: var(--rpd-ink);
    border: 1px solid var(--rpd-line); border-top: 5px solid var(--rpd-gold);
    border-radius: 12px; box-shadow: var(--rpd-shadow);
    max-width: 460px; width: 100%; padding: 22px 24px;
}
.rpd-modal h3 { font-size: 19px; color: var(--rpd-blue-2); margin-bottom: 8px; }
.rpd-modal-sum { font-size: 14.5px; color: var(--rpd-ink-2); line-height: 1.9; margin: 0 0 16px; }
.rpd-modal-sum b { color: var(--rpd-blue); }
.rpd-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.rpd-toast {
    position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
    background: var(--rpd-blue-2); color: #fff;
    font-size: 14px; font-weight: 600; padding: 10px 22px;
    border-radius: 999px; box-shadow: var(--rpd-shadow);
    opacity: 0; pointer-events: none; transition: all .25s; z-index: 1000;
}
:root[data-theme="dark"] .rpd-toast { background: var(--rpd-gold); color: #241a05; }
.rpd-toast.rpd-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== 响应式 ===================== */
@media (max-width: 960px) {
    .rpd-hero-grid { grid-template-columns: 1fr; }
    .rpd-hero { padding: 20px 16px 16px; }
    .rpd-panel { padding: 16px; }
    .rpd-hero-copy h1 { font-size: 25px; }
    .rpd-answer-row { flex-wrap: wrap; }
    .rpd-answer-row .rpd-input { max-width: none; }
}

/* ===================== 打印 ===================== */
@media print {
    body * { visibility: hidden !important; }
    .rpd-sheet, .rpd-sheet * { visibility: visible !important; }
    .rpd-sheet {
        display: block !important; position: absolute; inset: 0;
        background: #fff; color: #222; padding: 12mm; font-size: 13px;
    }
    .rpd-sheet h2 { font-size: 18px; margin: 0 0 4px; }
    .rpd-sheet .rpd-sheet-sub { font-size: 12px; color: #555; margin-bottom: 10px; }
    .rpd-sheet ol { padding-left: 22px; margin: 0; }
    .rpd-sheet li { margin-bottom: 10px; line-height: 1.7; }
    .rpd-sheet .rpd-print-ans { color: #333; font-weight: 700; }
}
