/* ===========================================================
   考试介绍·文档页（左树 + 中正文 + 右公众号/热门排行）
   主题色：#e00505；全部白底圆角卡片
   =========================================================== */
body.is-doc { background: #f5f5f5; }
.is-doc, .is-doc p, .is-doc h1, .is-doc h2, .is-doc h3, .is-doc h4,
.is-doc ul, .is-doc li, .is-doc span, .is-doc em, .is-doc div,
.is-doc a, .is-doc table, .is-doc button {
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuan Micro Hei", Arial, sans-serif;
	box-sizing: border-box;
}

/* 面包屑：强制单行，最后一项（文章标题）超长时省略号截断 */
.doc-position .bread-1 ul { display: flex; flex-wrap: nowrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.doc-position .bread-1 li { font-size: 14px; color: #888; flex: 0 0 auto; white-space: nowrap; min-width: 0; }
.doc-position .bread-1 li + li::before { content: ">"; margin: 0 8px; color: #bbb; }
.doc-position .bread-1 li:last-child { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-position .bread-1 li:last-child a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-position .bread-1 a { color: #666; text-decoration: none; }
.doc-position .bread-1 a:hover { color: #e00505; }

/* ============ 三栏布局 ============ */
.doc-layout {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.doc-side   { flex: 0 0 248px; width: 248px; }
.doc-main   { flex: 1 1 auto; min-width: 0; }
.doc-right  { flex: 0 0 300px; width: 300px; }

.doc-side, .doc-main {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

/* ===========================================================
   左侧：树形导航
   =========================================================== */
.doc-side { padding: 14px 12px; }
.doc-tree { display: flex; flex-direction: column; gap: 10px; }

.doc-tree-group {
	border-radius: 10px;
	background: #fafafa;
	border: 1px solid transparent;
	overflow: hidden;
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.doc-tree-group.is-active {
	background: #fafafa;
	border-color: transparent;
	box-shadow: none;
}

.doc-tree-parent {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 13px 12px;
	border: none;
	background: transparent;
	cursor: pointer;
	text-align: left;
	color: #333;
	font-size: 17px;
	font-weight: bold;
	line-height: 1.2;
}
.doc-tree-parent .txt { flex: 1 1 auto; min-width: 0; }

/* 图标：红色渐变圆角方块 */
.doc-nav-ico {
	flex: 0 0 auto;
	width: 36px; height: 36px;
	margin-right: 11px;
	padding: 6px;
	border-radius: 9px;
	background: linear-gradient(135deg, #ff7a7a, #e00505);
	box-shadow: 0 3px 8px rgba(224,5,5,.28);
}
.doc-nav-ico rect, .doc-nav-ico circle { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.doc-nav-ico path { stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* 展开箭头 */
.doc-tree-arrow {
	flex: 0 0 auto;
	width: 9px; height: 9px;
	margin-left: 4px;
	border-right: 2.5px solid #b8b8b8;
	border-bottom: 2.5px solid #b8b8b8;
	transform: rotate(45deg);
	transition: transform .22s;
}
.doc-tree-parent[aria-expanded="true"] .doc-tree-arrow { transform: rotate(-135deg); margin-top: 5px; border-color: #e00505; }

/* 子项 */
.doc-tree-children { padding: 0 12px 10px 59px; }
.doc-tree-children[hidden] { display: none; }
.doc-tree-link {
	display: flex;
	align-items: center;
	padding: 9px 8px;
	font-size: 15px;
	color: #666;
	text-decoration: none;
	border-radius: 8px;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.doc-tree-link .tick {
	flex: 0 0 auto;
	width: 6px; height: 6px;
	margin-right: 10px;
	border-radius: 50%;
	background: #c4cdd4;
}
.doc-tree-link:hover { color: #e00505; background: #fff; }
.doc-tree-link:hover .tick { background: #e00505; }
.doc-tree-link.on { color: #e00505; font-weight: bold; background: #fff; }
.doc-tree-link.on .tick { background: #e00505; box-shadow: 0 0 0 3px rgba(224,5,5,.15); }
.doc-tree-link.is-disabled { color: #bdbdbd; cursor: default; }
.doc-tree-link.is-disabled .tick { background: #e3e3e3; }

/* ===========================================================
   中侧：主内容区
   =========================================================== */
.doc-main { padding: 26px 34px 30px; }

/* 标题胶囊（纯红 #e00505） */
.doc-title-tag { margin-bottom: 22px; }
.doc-title-badge {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 12px 28px;
	border-radius: 999px;
	background: #e00505;
	color: #fff;
	font-size: 24px;
	font-weight: bold;
	line-height: 1.25;
	box-shadow: 0 8px 18px rgba(224,5,5,.25), inset 0 -3px 0 rgba(0,0,0,.10), inset 0 2px 0 rgba(255,255,255,.18);
}
.doc-title-ico {
	flex: 0 0 auto;
	width: 24px; height: 24px;
	margin-right: 10px;
}
.doc-title-ico path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 正文排版 */
.doc-body { font-size: 16px; color: #333; line-height: 1.9; }
.doc-body p { margin: 0 0 14px; }
.doc-body a { color: #e00505; text-decoration: underline; }
.doc-body a:hover { color: #b80404; }
.doc-body img { max-width: 100%; height: auto; border-radius: 6px; }
.doc-body h2, .doc-body h3 { color: #1f1f1f; margin: 24px 0 12px; }

/* 表格 */
.doc-body table {
	width: 100%;
	margin: 18px 0;
	border-collapse: collapse;
	border: 1px solid #9a9a9a;
	font-size: 16px;
}
.doc-body table th,
.doc-body table td {
	border: 1px solid #9a9a9a;
	padding: 14px 16px;
	text-align: center;
	vertical-align: middle;
	line-height: 1.7;
}
.doc-body table th { background: #fafafa; font-weight: bold; color: #222; }
.doc-body table tr:nth-child(even) td { background: #fdfdfd; }
.doc-body ul, .doc-body ol { padding-left: 26px; margin: 0 0 14px; }
.doc-body blockquote {
	margin: 16px 0;
	padding: 12px 18px;
	border-left: 4px solid #e00505;
	background: #fdf3f3;
	color: #666;
	border-radius: 0 8px 8px 0;
}

.doc-note {
	margin: 24px 0 0;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
	font-size: 14px;
	color: #999;
	line-height: 1.8;
}

/* ===========================================================
   右侧：关注公众号 + 热门排行
   =========================================================== */
.doc-right { display: flex; flex-direction: column; gap: 18px; }

/* 关注公众号：红底圆角 */
.dr-wx {
	background: #e00505;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(224,5,5,.18);
	padding: 16px 16px 18px;
}
.dr-wx-tit { font-size: 15px; color: #fff; line-height: 30px; margin-bottom: 12px; }
.dr-wx-name {
	float: right;
	display: inline-block;
	background: #fff;
	color: #e00505;
	font-size: 14px;
	font-weight: bold;
	height: 30px;
	line-height: 30px;
	padding: 0 10px;
	border-radius: 6px;
}
.dr-wx-add {
	background: #fff;
	border-radius: 10px;
	padding: 12px 12px;
	display: flex;
	align-items: center;
}
.dr-qr img { width: 96px; height: 96px; display: block; border-radius: 6px; }
.dr-wx-info { flex: 1; min-width: 0; text-align: center; }
.dr-wx-line { font-size: 14px; color: #333; margin-bottom: 8px; }
.dr-wx-tag {
	display: inline-block;
	font-size: 12px;
	color: #fff;
	height: 25px;
	line-height: 25px;
	padding: 0 14px;
	border-radius: 13px;
	background: #e00505;
}

/* 热门排行：白底圆角卡片 */
.dr-hot {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0,0,0,.06);
	padding: 18px 16px 12px;
}
.dr-hot-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	margin-bottom: 4px;
	border-bottom: 1px solid #f0f0f0;
}
.dr-hot-hd h4 {
	display: flex;
	align-items: center;
	margin: 0;
	font-size: 18px;
	font-weight: bold;
	color: #1a1a1a;
}
.dr-hot-ico {
	width: 20px; height: 20px;
	margin-right: 7px;
}
.dr-hot-ico path { fill: #e00505; }
.dr-hot-more { font-size: 13px; color: #999; text-decoration: none; }
.dr-hot-more:hover { color: #e00505; }

.dr-hot-list { list-style: none; margin: 0; padding: 0; }
.dr-hot-list li { padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.dr-hot-list li:last-child { border-bottom: none; }
.dr-hot-link {
	display: flex;
	align-items: flex-start;
	text-decoration: none;
}
.dr-hot-link .rank {
	flex: 0 0 auto;
	width: 22px; height: 22px;
	margin-right: 9px;
	border-radius: 6px;
	background: #f0f0f0;
	color: #999;
	font-size: 13px;
	font-weight: bold;
	font-style: normal;
	text-align: center;
	line-height: 22px;
}
.dr-hot-link .rank-top { background: #e00505; color: #fff; box-shadow: 0 2px 6px rgba(224,5,5,.3); }
.dr-hot-link .rank-2 { background: #ff5c5c; }
.dr-hot-link .rank-3 { background: #ff8f8f; }
.dr-hot-link .t {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15px;
	color: #333;
	line-height: 22px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.dr-hot-link:hover .t { color: #e00505; }
.dr-hot-list .hits { font-size: 12px; color: #b5b5b5; margin: 5px 0 0 31px; }
.dr-hot-empty { list-style: none; padding: 24px 0; color: #999; font-size: 14px; text-align: center; }
