/* 回答页改版（设计稿：设计稿/回答页改版.dc.html）。颜色、字号、间距沿用设计稿。 */
:root {
    --r-bg: #F4F4F1; --r-ink: #18202F; --r-muted: #555C6B; --r-sub: #3A4150;
    --r-line: #E2E2DC; --r-line-soft: #ECECE7; --r-line-faint: #F0F0EB;
    --r-red: #A8231B; --r-red-bg: #FBEAE8;
    --r-blue: #1F4E8C; --r-blue-bg: #EAF0F8;
    --r-brown: #6E4600; --r-brown-ink: #4A2F00; --r-cream: #FFF8EA; --r-cream-line: #F0DDB4;
    --r-green: #1E6B45; --r-green-bg: #E6F3EC;
    --r-hl: #FFF6D9; --r-chip-bg: #F1F1EC; --r-panel: #FAFAF8;
}

/* 改版回答占满宽度；普通回答和用户气泡仍按阅读宽度 */
.thread { max-width: 1320px; }
.turn-user, .turn-ai:not(.is-rich) { max-width: var(--read-w); margin-left: auto; margin-right: auto; }
.turn-user .bubble { max-width: 640px; }
.turn-ai.is-rich { max-width: none; }

.r-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.r-main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.r-side { flex: 1 1 360px; max-width: 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1240px) {
    .r-side { position: sticky; top: 12px; max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 4px; }
}
@media (max-width: 1239px) {
    .r-side { flex-basis: 100%; max-width: none; }
}

.r-card { background: #fff; border: 1px solid var(--r-line); border-radius: 14px; overflow: hidden; }
.r-pad { padding: 20px 26px; }
.r-h { margin: 0 0 12px; font-family: var(--font-serif); font-size: 18px; color: var(--r-ink); }
.r-h-pad { margin: 12px 26px 4px; }
.r-sub { margin: -8px 0 10px; font-size: 13px; color: var(--r-muted); }
.r-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 结论卡 */
.r-verdict-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--r-line-soft); }
.r-verdict-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--r-muted); margin-bottom: 8px; }
.r-pill { padding: 2px 10px; border-radius: 999px; background: var(--r-red); color: #fff; font-weight: 700; letter-spacing: 2px; }
.r-verdict-title { margin: 0; font-family: var(--font-serif); font-size: 26px; line-height: 1.45; font-weight: 700; color: var(--r-ink); }
.r-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.r-col { padding: 18px 22px; border-right: 1px solid var(--r-line-soft); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.r-col:last-child { border-right: 0; }
.r-col-no { background: var(--r-panel); }
.r-col-head { display: flex; align-items: center; justify-content: space-between; }
.r-track { font-size: 13px; color: var(--r-muted); font-weight: 500; }
.r-tag { padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.r-tag-yes { background: var(--r-red-bg); color: var(--r-red); }
.r-tag-no { background: #E9E9E4; color: var(--r-sub); }
.r-charge { font-weight: 700; font-size: 16px; line-height: 1.5; }
.r-basis-row { display: flex; flex-wrap: wrap; gap: 6px; }
.r-basis { align-self: flex-start; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--r-blue-bg); color: var(--r-blue); }
.r-basis .cite { background: none; color: inherit; border: 0; min-width: 0; height: auto; padding: 0 1px; margin: 0; font-size: 11px; vertical-align: super; }
.r-suggest { font-size: 14px; color: var(--r-sub); }
.r-party { border-top: 1px solid var(--r-line-soft); }
.r-party-name { padding: 10px 22px 0; font-weight: 700; font-size: 14px; }
.r-property { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 26px; background: var(--r-panel); border-top: 1px solid var(--r-line-soft); font-size: 14px; }
.r-property-label { color: var(--r-muted); font-weight: 500; }
@media (max-width: 760px) {
    .r-grid { grid-template-columns: 1fr; }
    .r-col { border-right: 0; border-bottom: 1px solid var(--r-line-soft); }
    .r-verdict-title { font-size: 21px; }
}

/* 版本提醒 */
.r-note { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--r-blue-bg); color: var(--r-ink); font-size: 14px; }
.r-note-ico { flex: none; color: var(--r-blue); font-size: 18px; line-height: 1.5; }

/* 事实认定表 */
.r-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.r-table th { text-align: left; color: var(--r-muted); font-size: 13px; font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--r-line); }
.r-table th:first-child { padding-left: 0; width: 28%; }
.r-table th:last-child { width: 22%; }
.r-table td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--r-line-faint); }
.r-table td:first-child { padding-left: 0; }
.r-table tr:last-child td { border-bottom: 0; }
.r-table td:last-child .r-basis { margin: 0 6px 6px 0; }

/* 一本通专栏 */
.r-book { background: var(--r-cream); border: 1px solid var(--r-cream-line); border-radius: 14px; padding: 20px 26px; display: flex; flex-direction: column; gap: 14px; }
.r-book-head { display: flex; align-items: center; gap: 10px; }
.r-book-ico { width: 22px; height: 22px; border-radius: 5px; background: var(--r-brown); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.r-h-book { margin: 0; color: var(--r-brown-ink); }
.r-book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.r-book-point { background: #fff; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.r-page { align-self: flex-start; padding: 1px 8px; border-radius: 6px; background: var(--r-brown); color: #fff; font-size: 13px; font-weight: 500; cursor: default; }
button.r-page { cursor: pointer; }
.r-similar { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #4A3A1A; }
.r-similar-title { font-weight: 700; color: var(--r-brown-ink); }
.r-similar-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.r-similar-why { color: #6B5A3A; }
.r-link { color: var(--r-blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; font-size: inherit; }
@media (max-width: 760px) { .r-book-grid { grid-template-columns: 1fr; } }

/* 分析过程 */
.r-analysis { padding: 8px 0 0; }
.r-sec { border-top: 1px solid var(--r-line-faint); }
.r-sec-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 26px; min-height: 52px; background: transparent; text-align: left; cursor: pointer; color: var(--r-ink); }
.r-sec-btn:hover { background: var(--r-panel); }
.r-sec-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--r-chip-bg); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.r-sec-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.r-sec-title { font-weight: 700; font-size: 15px; }
.r-sec-lead { font-size: 14px; color: var(--r-muted); }
.r-sec-act { flex: none; font-size: 13px; color: var(--r-blue); }
.r-sec-body { padding: 0 26px 18px 66px; font-size: 15px; color: #2A3140; }
.r-full-wrap { border-top: 1px solid var(--r-line-faint); padding: 10px 26px 14px; }
.r-fullbtn { font-size: 13px; }
.r-full { margin-top: 10px; padding: 12px 14px; background: var(--r-panel); border-radius: 10px; }

/* 还需要查明 */
.r-todo { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 14px; }
.r-todo li { display: flex; gap: 8px; }
.r-box { color: var(--r-red); }
@media (max-width: 760px) { .r-todo { grid-template-columns: 1fr; } .r-pad { padding: 18px; } .r-sec-btn { padding: 12px 16px; } .r-sec-body { padding: 0 16px 16px 16px; } .r-book { padding: 16px; } }

/* 引用核对条、动作条在改版里也放主栏宽度内 */
.is-rich .answer-tail { max-width: 880px; }

/* 右栏 */
.r-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.r-side-head .r-h { margin: 0; }
.r-side-hint { font-size: 12px; color: var(--r-muted); }
.r-group { font-size: 13px; color: var(--r-muted); font-weight: 500; margin-top: 6px; }
.rsrc { background: #fff; border: 1px solid var(--r-line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; scroll-margin: 12px; }
.rsrc.flash { box-shadow: 0 0 0 3px rgba(31, 78, 140, .35); transition: box-shadow .4s; }
.rsrc-head { display: flex; align-items: flex-start; gap: 8px; }
.rsrc-no { flex: none; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--r-blue-bg); color: var(--r-blue); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rsrc-title { font-weight: 700; font-size: 15px; line-height: 1.5; }
.rsrc-chapter { font-size: 12.5px; color: var(--r-muted); }
.rsrc-chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.rc { padding: 0 8px; border-radius: 999px; background: var(--r-chip-bg); color: var(--r-sub); }
.rc-red { background: var(--r-red); color: #fff; }
.rc-green { background: var(--r-green-bg); color: var(--r-green); }
.rc-brown { background: #FFF1D6; color: var(--r-brown); }
.rc-warn { background: #FFF1D6; color: #9a5b00; }
.r-src-text { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-serif); font-size: 14px; line-height: 1.85; color: var(--r-ink); }
.r-src-text p { margin: 0; padding: 0 10px; }
.r-src-text p.hl { padding: 6px 10px; border-radius: 8px; background: var(--r-hl); }
.r-src-text p.dim { color: var(--r-muted); }
.rsrc.source-card { margin-bottom: 0; }
.r-tag-tbd { background: #FFF1D6; color: #9a5b00; }
button.r-basis { cursor: pointer; border: 0; font-family: inherit; text-align: left; }
button.r-basis:hover { background: #dbe6f5; }
.r-basis sup { margin-left: 2px; font-size: 11px; }
.r-basis-off { background: #FFF1D6; color: #9a5b00; }
.r-note-basis { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: middle; }
.r-book-tags { display: flex; align-items: center; gap: 8px; }
.r-case-tag { font-size: 12px; padding: 0 6px; border: 1px solid var(--r-brown); color: var(--r-brown); border-radius: 5px; }
.r-intro { padding: 4px 26px 14px; font-size: 15px; }
.r-nofold { padding: 6px 26px 18px; }
@media (max-width: 760px) { .r-intro, .r-nofold { padding-left: 16px; padding-right: 16px; } }
.r-act-name { padding: 10px 22px 0; font-size: 13px; font-weight: 700; color: var(--r-red); }
.r-others { border: 1px dashed var(--r-line); border-radius: 12px; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.r-others > summary { cursor: pointer; padding: 8px 0; font-size: 13px; color: var(--r-blue); }
.r-others[open] > summary { margin-bottom: 4px; }
.r-overall { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 12px 22px 16px; padding: 10px 14px; border-radius: 10px; background: var(--r-red-bg); color: var(--r-ink); font-size: 14.5px; }
.r-overall-label { padding: 1px 10px; border-radius: 999px; background: var(--r-red); color: #fff; font-size: 12.5px; font-weight: 700; }
.r-note-auto { background: #FFF1D6; border: 1px solid #E3B25A; }
.r-note-auto .r-note-ico { width: 22px; height: 22px; border-radius: 50%; background: #d98a00; color: #fff; font-size: 14px; font-weight: 700; display: inline-grid; place-items: center; margin-top: 1px; }

/* ---- 2026-10-06 反馈改版 ---- */
/* 右栏：留出内边距，卡片的边框和高亮外圈不被滚动容器裁掉 */
.r-side { padding: 4px 6px 4px 4px; }
.rsrc.is-target { border-color: var(--r-blue); background: #F3F7FD; box-shadow: 0 0 0 2px rgba(31, 78, 140, .35); }
.rsrc.flash { animation: r-flash 1.2s ease-out 1; }
@keyframes r-flash { 0% { box-shadow: 0 0 0 6px rgba(31, 78, 140, .45); } 100% { box-shadow: 0 0 0 2px rgba(31, 78, 140, .35); } }

/* 结论与依据合并块 */
.r-group-box { border-top: 1px solid var(--r-line-soft); }
.r-group-box:first-of-type { border-top: 0; }
.r-group-box.is-multi { padding-bottom: 6px; }
.r-facts { padding: 14px 22px 4px; }
.r-facts-label { font-size: 12.5px; font-weight: 700; color: var(--r-muted); letter-spacing: 1px; margin-bottom: 6px; }
.r-facts-label-2 { padding: 10px 22px 6px; margin: 0; }
.r-facts .r-table { min-width: 440px; }
.r-facts .r-table td { padding-top: 8px; padding-bottom: 8px; }
.r-group-box .r-grid { border-top: 1px solid var(--r-line-faint); }

/* 工具书专栏 */
.r-book-cite { font-size: 14px; color: var(--r-brown-ink); }
.r-cases { display: flex; flex-direction: column; gap: 8px; }
.r-case { background: #fff; border: 1px solid var(--r-cream-line); border-radius: 10px; }
.r-case > summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; list-style-position: inside; }
.r-case-name { font-weight: 700; color: var(--r-brown-ink); }
.r-case-body { padding: 4px 16px 14px; display: grid; gap: 12px; border-top: 1px dashed var(--r-cream-line); }
.r-case-part-title { font-size: 12.5px; font-weight: 700; color: var(--r-brown); margin: 8px 0 4px; letter-spacing: 1px; }
.r-case-part-text { font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.r-case-empty { font-size: 13.5px; color: var(--r-muted); }

/* 分析过程：重点文字用淡色底色标出 */
.r-sec-body strong, .r-intro strong, .r-nofold strong { background: linear-gradient(transparent 58%, #FFE6A0 58%); font-weight: 700; }
.r-mark { background: #EAF2FB; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* 尾部版本提醒 */
.r-note-tail .r-note-list { margin: 4px 0 0; padding-left: 1.2em; }
.r-note-tail .r-note-list li { margin: 3px 0; }
.r-note-tail .r-note-list li.is-auto { font-weight: 500; }

/* 追问建议 */
.followups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.followups-label { width: 100%; font-size: 12.5px; color: var(--r-muted, #555C6B); }
.followup-btn2 { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer; line-height: 1.5; }
.followup-btn2:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.r-case-part-text + .r-case-part-text { margin-top: 6px; }
.r-case-none { color: var(--r-muted); font-style: italic; }
.r-basis-plain { background: #F1F1EC; color: var(--r-sub); }

.r-conflict { margin: 0; padding: 14px 26px; background: #fff4e5; border-bottom: 1px solid #f0c78a; color: #7a3e00; font-size: 14px; line-height: 1.7; }
.r-conflict-title { font-weight: 700; margin-bottom: 6px; }
.r-conflict-item + .r-conflict-item { margin-top: 8px; }
.r-conflict-what { font-size: 13px; opacity: .85; }
.r-conflict-tag { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 3px; background: #f7d9ab; font-size: 12px; font-weight: 600; }
@media (max-width: 720px) { .r-conflict { padding: 12px 16px; } }

/* —— 结论框：一人一线一框，每个行为一行 —— */
.r-ident { padding: 6px 22px 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--r-sub); }
.r-ident span + span::before { content: '·'; margin-right: 16px; color: var(--r-muted); }
.r-rows { min-width: 640px; }
.r-rows td { vertical-align: top; padding: 10px 14px; line-height: 1.7; }
.r-rows .r-c-fact { width: 30%; }
.r-rows .r-c-basis { width: 22%; }
.r-rows .r-c-charge { width: 22%; }
.r-fact-line + .r-fact-line { margin-top: 4px; }
.r-rows .r-charge { color: var(--r-red); }
.r-rows tr.is-tbd td { color: var(--r-muted); background: var(--r-panel); }
.r-rows .r-charge-tbd { color: var(--r-muted); font-weight: 600; margin-top: 4px; }

/* —— 工具书：按书分组，横排小框，点开看原文 —— */
.r-book-group { display: flex; flex-direction: column; gap: 10px; }
.r-book-group + .r-book-group { padding-top: 14px; border-top: 1px dashed var(--r-cream-line); }
.r-book-group .r-book-cite { font-weight: 700; }
.r-tiles { display: flex; flex-flow: row wrap; gap: 8px; }
.r-tile { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--r-cream-line); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 13.5px; line-height: 1.4; color: inherit; text-align: left; white-space: nowrap; max-width: 100%; }
button.r-tile { cursor: pointer; }
button.r-tile:hover { border-color: var(--r-brown); }
.r-tile.is-open { border-color: var(--r-brown); background: #fffaf0; box-shadow: 0 0 0 1px var(--r-brown); }
.r-tile-kind { font-size: 11.5px; padding: 0 5px; border: 1px solid var(--r-brown); color: var(--r-brown); border-radius: 4px; }
.r-tile-title { overflow: hidden; text-overflow: ellipsis; }
.r-tile-page { color: var(--r-muted); font-size: 12.5px; }
.r-book-open { background: #fff; border: 1px solid var(--r-cream-line); border-radius: 10px; overflow: hidden; }
.r-book-open-head { padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--r-brown-ink); background: #fbf5e8; border-bottom: 1px solid var(--r-cream-line); }
.r-book-open-body { max-height: 420px; overflow-y: auto; padding: 4px 18px 14px; }
.r-book-text p { margin: 6px 0; font-size: 14px; line-height: 1.85; }
.r-book-sec { margin-top: 12px; font-weight: 700; color: var(--r-brown); font-size: 13.5px; }
.r-table.r-rows th:first-child, .r-table.r-rows td:first-child { padding-left: 22px; }
.r-table.r-rows th:last-child, .r-table.r-rows td:last-child { padding-right: 22px; }
.r-tile-ref { font-size: 11.5px; color: var(--r-muted); border: 1px dashed var(--r-cream-line); border-radius: 4px; padding: 0 4px; }
.followup-btn2.is-picked { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* —— 终版版式（用户 10-06 规范）：结论按人分卡片，列宽固定对齐 —— */
.r-persons { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; }
.r-person { border: 1px solid var(--r-line-soft); border-radius: 12px; overflow: hidden; background: #fff; }
.r-person-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 18px; background: var(--r-panel); border-bottom: 1px solid var(--r-line-soft); }
.r-person-name { font-size: 16px; }
.r-person-head .r-ident { padding: 0; font-size: 14px; }
.r-table.r-rows { table-layout: fixed; width: 100%; min-width: 540px; }
.r-rows th { text-align: left; font-size: 12.5px; color: var(--r-muted); font-weight: 600; padding: 8px 14px; border-bottom: 1px solid var(--r-line-soft); }
.r-rows td { border-bottom: 1px solid var(--r-line-faint); overflow-wrap: anywhere; }
.r-rows .r-c-fact, .r-rows .r-c-basis, .r-rows .r-c-charge { width: auto; }
.r-track-row td { padding: 10px 14px 4px !important; border-bottom: 0 !important; background: #fff; }
.r-track-label { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--r-chip-bg); color: var(--r-ink); }
.r-track-label.tk-0 { background: #F6E3DC; color: #8C2F1B; }
.r-track-label.tk-1 { background: #E4ECF7; color: #1F4E8C; }
.r-track-label.tk-2 { background: #EDE6D8; color: #5A4318; }
.r-overall { margin: 4px 20px 14px; }
.r-persons + .r-overall { margin-top: 0; }

/* 分析过程：不再有编号小圆点；“还需要查明”是末尾小节 */
.r-todo-sec { padding: 6px 26px 18px; border-top: 1px solid var(--r-line-soft); margin-top: 6px; }
.r-todo-title { margin: 14px 0 2px; font-size: 15px; }
.r-case-block + .r-case-block { margin-top: 4px; }
.r-remind .r-note { margin-top: 10px; }
.r-remind .check { margin-top: 12px; }
.r-tile-page { color: var(--r-muted); font-size: 12.5px; }
@media (max-width: 760px) { .r-persons { padding: 12px; } .r-todo-sec { padding: 6px 16px 14px; } }
.r-table.r-rows th:first-child, .r-table.r-rows td:first-child { padding-left: 18px; }
.r-table.r-rows th:last-child, .r-table.r-rows td:last-child { padding-right: 18px; }
.r-rows td { padding: 10px 10px; font-size: 14px; }

/* 右栏来源标签（官方来源 / 出自《书名》转录）：小号灰色 */
.rc.rc-src { font-size: 11.5px; padding: 0 6px; background: transparent; color: var(--r-muted); border: 1px solid var(--r-line-soft); }

/* 手机窄屏：结论表每行竖排（案情/依据/构成什么/建议），不横向溢出 */
@media (max-width: 760px) {
    .r-table.r-rows { display: block; min-width: 0; table-layout: auto; }
    .r-rows colgroup, .r-rows thead { display: none; }
    .r-rows tbody, .r-rows tr { display: block; }
    .r-rows tr { padding: 8px 0; border-bottom: 1px solid var(--r-line-faint); }
    .r-rows tr.r-track-row { padding: 6px 0 0; border-bottom: 0; }
    .r-rows td { display: block; width: auto; border: 0; padding: 4px 14px !important; }
    .r-rows td:empty { display: none; }
    .r-rows td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--r-muted); margin-bottom: 2px; }
    .r-rows .r-track-row td { padding: 4px 14px !important; }
}

/* 案例小框：标题行 + 下方一行小号灰字（display_subtitle） */
.r-tile { flex-direction: column; align-items: flex-start; gap: 3px; }
.r-tile-row { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.r-tile-sub { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--r-muted); }
.r-book-open-sub { margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--r-muted); }
.r-lead { padding: 14px 26px 20px; font-size: 16px; line-height: 1.85; }
.r-lead p { margin: 0 0 6px; }
@media (max-width: 760px) { .r-lead { padding: 12px 16px 16px; } }

/* ---------- 右侧“法条与纪律原文”可收起 ---------- */
.r-side-toggle { margin-left: auto; font-size: 12.5px; color: var(--r-muted); padding: 2px 8px; border: 1px solid var(--r-line-soft); border-radius: 8px; background: #fff; cursor: pointer; white-space: nowrap; }
.r-side-toggle:hover { color: var(--r-ink); border-color: var(--r-muted); }
.r-side-toggle .on-closed, body.rside-collapsed .r-side-toggle .on-open { display: none; }
body.rside-collapsed .r-side-toggle .on-closed { display: inline; }
body.rside-collapsed .r-side > :not(.r-side-head) { display: none; }
body.rside-collapsed .r-side { flex: 0 0 auto; max-width: none; position: static; max-height: none; overflow: visible; }
body.rside-collapsed .r-side-hint { display: none; }
body.rside-collapsed .r-side-head { gap: 12px; }
body.rside-collapsed .r-side .r-h { font-size: 15px; }

/* 收起态：约 40px 窄条（竖排“法条”），正文占满剩下的宽度 */
body.rside-collapsed .r-side { flex: 0 0 40px; width: 40px; padding: 0; gap: 0; }
body.rside-collapsed .r-side-head { display: block; }
body.rside-collapsed .r-side-head .r-h { display: none; }
body.rside-collapsed .r-side-toggle { margin: 0; width: 40px; padding: 12px 0; writing-mode: vertical-rl; letter-spacing: 3px; border-radius: 10px; }
@media (max-width: 1239px) {
    body.rside-collapsed .r-side { flex: 0 0 100%; width: auto; }
    body.rside-collapsed .r-side-toggle { width: auto; padding: 6px 14px; writing-mode: horizontal-tb; letter-spacing: 0; }
}

/* ---------- 新版工具书块：本案要素 / 相近案例分档 / 权威解释 ---------- */
.r-lib-sec { display: flex; flex-direction: column; gap: 8px; }
.r-lib-sec + .r-lib-sec { padding-top: 12px; border-top: 1px dashed var(--r-cream-line); }
.r-lib-title { font-weight: 700; color: var(--r-brown-ink); }
.r-parts { display: grid; gap: 6px; }
.r-part { display: grid; grid-template-columns: 9em 1fr; gap: 10px; font-size: 14px; line-height: 1.7; }
.r-part-label { color: var(--r-brown); font-weight: 600; }
.r-lib-empty { font-size: 14px; color: var(--r-muted); }
.r-tier + .r-tier { margin-top: 10px; }
.r-tier-name { font-size: 13px; font-weight: 700; color: var(--r-brown); margin-bottom: 6px; }
.r-ccard { background: #fff; border: 1px solid var(--r-cream-line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.r-ccard-head { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; padding: 10px 14px; text-align: left; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.r-ccard-head:hover { background: #fffaf0; }
.r-ccard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 100%; }
.r-ccard-title { font-weight: 600; }
.r-ccard-sub { max-width: 100%; white-space: normal; }
.r-ccard-src, .r-ccard-note { font-size: 12px; color: var(--r-muted); }
.r-score { font-size: 12px; padding: 0 7px; border-radius: 999px; background: #F6E3DC; color: #8C2F1B; font-weight: 700; }
.r-dims { display: inline-flex; gap: 2px; margin-left: 4px; }
.r-dim { font-size: 11px; padding: 0 4px; border-radius: 4px; background: #eee; color: var(--r-muted); }
.r-dim.d20 { background: #D8EBD4; color: #25601D; }
.r-dim.d15 { background: #E4F0D2; color: #4A6A1D; }
.r-dim.d6 { background: #F6EBC8; color: #7A5A12; }
.r-ccard-why { padding: 0 14px 10px; font-size: 13px; line-height: 1.7; display: grid; gap: 2px; }
.r-why-yes b { color: #25601D; }
.r-why-no b { color: #8C2F1B; }
.r-ccard-body { border-top: 1px dashed var(--r-cream-line); }
@media (max-width: 760px) { .r-part { grid-template-columns: 1fr; gap: 0; } }
.r-dim.d10 { background: #EFEFC9; color: #66621A; }
.r-tag-cited { font-size: 12px; padding: 0 8px; border-radius: 999px; background: var(--r-brown); color: #fff; font-weight: 600; }

.r-cat { margin-left: 10px; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: #EDE6D8; color: var(--r-brown-ink); }
.r-auth-quote { font-size: 13px; line-height: 1.7; color: #4A3A1A; }
.r-auth-note { font-size: 12.5px; color: #8a5a00; background: #FFF1D6; border-radius: 6px; padding: 1px 8px; }
.r-lib-pending { padding: 4px 0 2px; font-size: 14px; }
