/* ===========================================================
   精选练习·试题精讲页（左试题 + 右公众号/热门关注）
   主题色：#e00505；干净试卷风，无胶囊框，答案直出
   =========================================================== */
body.is-exam {
	background: linear-gradient(180deg, #f6f7fa 0%, #eef1f6 100%);
}
.is-exam, .is-exam p, .is-exam h1, .is-exam h2, .is-exam h3, .is-exam h4,
.is-exam ul, .is-exam li, .is-exam span, .is-exam em, .is-exam div,
.is-exam a {
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuan Micro Hei", Arial, sans-serif;
	box-sizing: border-box;
}

/* ============ 两栏布局 ============ */
.exam-layout {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.exam-main  { flex: 1 1 auto; min-width: 0; }
/* 整卷模式：标题卡与各题型卡之间留间距 */
.exam-main .exam-card + .exam-card { margin-top: 18px; }
.exam-right { flex: 0 0 300px; width: 300px; display: flex; flex-direction: column; gap: 18px; }

/* ============ 试题卡片（白底，无渐变彩条） ============ */
.exam-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 26px rgba(31,45,80,.07);
	padding: 30px 34px 32px;
	border-top: 3px solid #e00505;
}

/* ---- 头部：题型文字 + 红色短竖条 ---- */
.ex-head {
	display: flex;
	align-items: baseline;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid #f0f1f4;
}
.ex-type {
	display: inline-flex;
	align-items: center;
	font-size: 18px;
	font-weight: bold;
	color: #e00505;
}
.ex-type-bar {
	display: inline-block;
	width: 4px;
	height: 18px;
	margin-right: 9px;
	border-radius: 2px;
	background: #e00505;
}
.ex-tip { display: none; }
.ex-qno { display: none; }

/* ---- 题干：默认常规字重（简答/材料长文不粗黑） ---- */
.ex-stem {
	font-size: 17px;
	color: #33383f;
	font-weight: 400;
	line-height: 1.9;
	margin-bottom: 26px;
}
/* 单选 / 多选 / 判断题题干较短，适度加重、字号略大 */
.ex-stem.is-single,
.ex-stem.is-multi,
.ex-stem.is-judge {
	font-size: 18px;
	color: #1f2329;
	font-weight: 400;
	line-height: 1.85;
}
/* 题干内“【问题】”等小标题 */
.ex-stem b, .ex-stem strong { font-weight: 400; color: #1f2329; }

/* ---- 选项（简洁，正确项绿色标识） ---- */
.ex-options { display: flex; flex-direction: column; gap: 10px; }
.ex-opt {
	display: flex;
	align-items: center;
	padding: 13px 16px;
	border: 1px solid #edf0f4;
	border-radius: 10px;
	background: #fff;
}
.ex-opt-key {
	flex: 0 0 auto;
	width: 30px; height: 30px;
	margin-right: 13px;
	border-radius: 50%;
	background: #f3f5f8;
	color: #6b7280;
	font-size: 15px;
	font-weight: bold;
	text-align: center;
	line-height: 30px;
}
.ex-opt-txt { flex: 1 1 auto; min-width: 0; font-size: 16px; color: #3b3f47; line-height: 1.6; }

/* 正确项 */
.ex-opt.is-correct {
	border-color: #bfe9d4;
	background: #f6fdfa;
}
.ex-opt.is-correct .ex-opt-key {
	background: #18b476;
	color: #fff;
}
.ex-opt-check {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	margin-left: 10px;
}
.ex-opt-check svg { width: 22px; height: 22px; }
.ex-opt-check svg path {
	fill: none; stroke: #18b476; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- 参考答案（标题与字母同一排） ---- */
.ex-answer {
	display: flex;
	align-items: center;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px dashed #e6e9ee;
}
.ex-answer-title {
	display: flex;
	align-items: center;
	margin: 0 16px 0 0;
	font-size: 17px;
	font-weight: bold;
	color: #18b476;
}
.ex-answer-title .ex-type-bar { background: #18b476; height: 17px; }
.ex-answer-letters { display: inline-flex; gap: 6px; }
.ex-answer-letters i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px; height: 30px;
	border-radius: 7px;
	background: #18b476;
	color: #fff;
	font-style: normal;
	font-size: 16px;
	font-weight: bold;
}

/* 判断题答案徽章 */
.ex-answer-badge {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 14px;
	border-radius: 8px;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
}
.ex-answer-badge svg { width: 17px; height: 17px; margin-right: 5px; }
.ex-answer-badge svg path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ex-answer-badge.is-true  { background: #18b476; }
.ex-answer-badge.is-false { background: #f04646; }
.ex-answer-text { font-size: 16px; color: #454b55; }

/* ---- 简答/填空等文字参考答案（标题一行，正文在下方） ---- */
.ex-textanswer { margin-top: 26px; }
.ex-textanswer-title {
	display: flex;
	align-items: center;
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: bold;
	color: #18b476;
}
.ex-textanswer-title .ex-type-bar { background: #18b476; height: 17px; }
.ex-textanswer-body {
	font-size: 16px;
	line-height: 1.95;
	color: #444b55;
	padding: 14px 18px;
	background: #f5fcf9;
	border: 1px solid #e2f4ec;
	border-radius: 10px;
}

/* ---- 解析 ---- */
.ex-analysis { margin-top: 24px; }
.ex-analysis-title {
	display: flex;
	align-items: center;
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: bold;
	color: #18b476;
}
.ex-analysis-title .ex-type-bar { background: #18b476; height: 17px; }
.ex-analysis-body {
	font-size: 16px;
	line-height: 1.95;
	color: #555c68;
	padding: 14px 18px;
	background: #f8f9fc;
	border-radius: 10px;
}
/* ---- 通用真正段落：题干 / 答案 / 解析内的每个分段、序号条目 ---- */
.ex-p {
	margin: 0 0 12px;
}
.ex-p:last-child { margin-bottom: 0; }
/* 图片段：居中 */
.ex-p-img {
	text-align: center;
	margin: 14px 0;
}
.ex-p-img img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #eceef2;
}

/* ---- 配图（题干 / 解析内旧结构兼容） ---- */
.ex-stem .ex-img,
.ex-analysis-body .ex-img {
	display: block;
	margin: 14px 0 6px;
}
.ex-stem .ex-img img,
.ex-analysis-body .ex-img img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid #eceef2;
}
.ex-empty { margin: 16px 0 0; color: #aab0ba; font-size: 14px; }

/* ---- 表格：整表居中、宽度自适应容器、边框合并 ---- */
.ex-table {
	width: 100%;
	max-width: 100%;
	margin: 14px auto;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	word-break: break-word;
	font-size: 15px;
}
.ex-table th,
.ex-table td {
	border: 1px solid #dcdfe6;
	padding: 8px 10px;
	vertical-align: middle;
	line-height: 1.6;
	/* 表格文字两端对齐（中文按字符断行，多行左右顶格，最后一行左对齐） */
	text-align: justify;
	-webkit-text-align-last: left;
	text-align-last: left;
}
.ex-table th {
	background: #f5f7fa;
	font-weight: 600;
}
/* 表格内图片随格宽缩放并居中 */
.ex-table img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
}

/* ============ 材料题：共享材料卡 ============ */
.ex-material { margin-top: 4px; }
.ex-material-title {
	display: flex;
	align-items: center;
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: bold;
	color: #1f2329;
}
.ex-material-title .ex-type-bar { background: #e00505; height: 17px; }
.ex-material-body {
	font-size: 16px;
	line-height: 1.95;
	color: #3b414c;
	padding: 16px 20px;
	border-left: 4px solid #d7deea;
	border-radius: 0 10px 10px 0;
}

/* ============ 材料题：各小题（同在一张卡内，分隔线区隔） ============ */
.ex-sub {
	margin-top: 30px;
	padding-top: 28px;
	border-top: 1px solid #e9ecf1;
}
.ex-sub-head {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin-bottom: 14px;
}
.ex-sub-no {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: flex-start;
	margin-top: 4px;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: none;
	color: #e00505;
	font-size: 17px;
	font-weight: bold;
	line-height: 1.85;
	white-space: nowrap;
}
/* 轻量题号：红色数字 + 实心点，不占色块 */
.ex-sub-no::after { content: "."; }
/* 小题题干：与题型名 badge 同一行起排，过长自然换行，badge 始终贴首行 */
.ex-sub-stem {
	flex: 1 1 auto;
	min-width: 0;
	margin-bottom: 0;
}
/* 题头行内的题干不再叠加 .ex-stem 默认下边距，收紧题干与选项间距 */
.ex-sub-head .ex-stem { margin-bottom: 0; }

/* 跨行选项（会计分录）：顶部对齐，圆钮与首行对齐 */
.ex-opt.is-multiline { align-items: flex-start; }
.ex-opt.is-multiline .ex-opt-key { margin-top: 2px; }
/* 多行会计分录：每行独立块级，保证逐行换行（不依赖 <br>） */
.ex-opt-txt .ex-opt-line { display: block; }

/* ============ 整卷模式（历年真题：一篇文章 = 一套试卷） ============ */
.ex-paper-head { padding: 26px 34px; }
.ex-paper-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: bold;
	color: #1f2329;
	line-height: 1.5;
}
.ex-paper-meta { font-size: 14px; color: #9aa2af; }
.ex-sec {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 4px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f0f1f4;
}
.ex-sec-tt { font-size: 19px; font-weight: bold; color: #1f2329; }
.ex-sec-cnt { font-size: 13px; color: #9aa2af; }
.ex-sec-desc { font-size: 13px; color: #8a92a0; margin: -2px 0 10px; }
.ex-case-badge {
	display: inline-flex;
	align-items: center;
	height: 30px;
	margin: 26px 0 14px;
	padding: 0 16px;
	border-radius: 8px;
	background: #e00505;
	color: #fff;
	font-size: 15px;
	font-weight: bold;
}
.ex-prob b { color: #1f2329; }
.ex-paper-card .ex-sub:first-of-type { margin-top: 18px; }
.ex-q .ex-sub-no { min-width: 22px; }

/* 案例大题：每个案例独立成一张卡，标题加大加粗，前面带红色竖杠 */
.ex-sec.is-case { padding-bottom: 12px; margin-bottom: 8px; }
.ex-sec-tt.is-case {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 21px;
	font-weight: bold;
	color: #1f2329;
	line-height: 1.35;
}
.ex-sec-tt.is-case .ex-case-bar {
	display: inline-block;
	flex: 0 0 auto;
	width: 5px;
	height: 22px;
	border-radius: 3px;
	background: #e00505;
}
/* 整卷内题干 / 案例材料 / 答案 / 解析统一字号 */
.ex-paper-card .ex-stem { font-size: 18px; line-height: 1.85; }
.ex-paper-card .ex-material-body,
.ex-paper-card .ex-textanswer-body,
.ex-paper-card .ex-analysis-body { font-size: 17px; }
/* 案例大组内未包"背景材料"框的散段（采集卷常无【背景资料】标记），字号与材料一致 */
.ex-paper-card > .ex-p { font-size: 17px; line-height: 1.9; color: #3b414c; }

/* 大组答案 / 解析合并版块：一问一条，编号绿色（与参考答案同色） */
.ex-ans-item { display: flex; gap: 8px; margin: 0 0 14px; }
.ex-ans-item:last-child { margin-bottom: 0; }
.ex-ans-no {
	flex: 0 0 auto;
	color: #18b476;
	font-size: 17px;
	font-weight: bold;
	line-height: 1.9;
}
.ex-ans-no::after { content: "."; }
.ex-ans-txt { flex: 1 1 auto; min-width: 0; }

/* ---- 上一题 / 下一题 ---- */
.ex-pnbar {
	display: flex;
	gap: 14px;
	margin-top: 22px;
}
.ex-pn {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(31,45,80,.06);
	text-decoration: none;
	color: #555d6b;
	font-size: 15px;
	font-weight: bold;
	transition: transform .15s, box-shadow .15s, color .15s;
}
.ex-pn:hover { transform: translateY(-2px); color: #e00505; box-shadow: 0 10px 22px rgba(224,5,5,.12); }
.ex-pn[aria-disabled="true"] { color: #c2c8d2; cursor: not-allowed; box-shadow: none; }
.ex-pn[aria-disabled="true"]:hover { transform: none; color: #c2c8d2; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
	.exam-right { flex-basis: 260px; width: 260px; }
}
@media (max-width: 900px) {
	.exam-layout { flex-direction: column; }
	.exam-main, .exam-right { flex: 1 1 auto; width: 100%; }
	.exam-card { padding: 24px 18px; }
}
