@import url("/fonts/sinog-cjk-ext.css?v=20261126-ext1");
.doc li.collapsed ul {
		display: none;
}

.content { color: #202823; font-size: 15px; }

.content .pingze,
.content .rhymeRule,
.content .sentenceRhyme,
.content .div_tangpoem h3,
.content .div_songpoem h3
{
	display: none;
}

.content li { list-style:none; }
.content a img { border: none; }
.content em { color: OrangeRed; font-style:normal; font-weight: bold; font-size: 110%; }

.content h1 { margin: 1em 0 0.5em 0; }
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 { margin: 0.5em 0; }

.content a, .content span { font-size: 1em; color: #007D34;}
.content h1 { font-size: 1.5em; }
.content h2 { font-size: 1.3em; }
.content h3 { font-size: 1.1em; }
.content h4 { font-size: 1.1em; }
.content h5 { font-size: 1em; }
.content h6 { font-size: 1em; }

.content ul.breadcrumb { margin: 14px 20px; line-height: 1.3em; list-style-position: none; }  
.content ul.breadcrumb ul { margin-left: 6px; padding-left: 14px; list-style-type: none; float: left; background: transparent url(circle.gif) no-repeat center left; }
.content ul.breadcrumb li { list-style-type: none;  }
.content ul.breadcrumb a { float: left; color: #007D34;}

.content ul.resources { margin: 10px 0; list-style: none; }
.content ul.resources li { }
.content ul.resources li ul { margin: 7px 0 7px 15px; }
.content ul.resources li a { display: block; padding: 4px 9px; font-weight: normal; text-decoration: none;
							  color: #007D34; border: 1px solid #657F4B; /*border-bottom: none; */ background: #D8DEBA; }
															
.content ul.counts li   { font-weight: bold; /*font-size: 14px; */line-height: 1.2em; color: DarkSlateGray; }
.content ul.counts li a { font-weight: normal; /*font-size: 12px;*/ line-height: 1.2em; }

.content ul.resources li a:hover { background: lavender; }
.content ul.resources li .abs_content { margin: 0 0 10px 0; padding: 12px; background: transparent; border: 0px solid #657F4B; border-top-style: dotted; }
.content ul.resources li .abs_content h1 { font-size: 1.5em; margin:0; padding: 4px 0; }

.content ul.resources_libs li a { border: 1px solid #dfdebb; }
.content ul.resources_libs li a:hover { border: 1px solid #657F4B; }

.content .div_fulltext { font-size: 1.1em; }
.content .abs_content .div_fulltext { font-size: 1em; }

.content .content  { line-height: 1.3em; }
.content .content p { padding: 0.2em 0.5em; margin: 0.2em 0; font-size: 1.1em; }
.content .content li  { padding: 0.2em 0.5em; }

.content .children li       { padding: 0 1.5em; }
.content .children li input { float: left; clear: left; display: block;
                              width: 16px; height: 16px line-height: 14px; font-size: 14px; 
                              background: transparent; border: none; }
.content .children li a     { float: left; 
	                            display: block; width: 60%; padding: 1px 9px; font-weight: 13px; font-weight: normal; text-decoration: none;
                              color: #007D34; border: 1px solid #dfdebb; }
.content .children li a:hover { color: #007D34; background: lavender; border: 1px solid CornflowerBlue; }
.content .children li ul      { margin-left: 0.5em; }

.content .doc            { font-size: 1.1em; margin-bottom: 15px; }
.content .doc p          { font-size: 1.1em; text-indent: 2em; line-height: 1.4em; }
.content .doc blockquote { color: DarkSlateGray; background: lavender; margin: 1em; padding: 1em; border: 1px dotted CornflowerBlue; }
.content .doc .abstract  { color: DarkSlateGray; background: white; margin: 1em; padding: 1em; border: 1px dotted silver; }
.content .abs_content .comment,
.content .doc span.comment   { font-size: 0.8em; color: Peru; margin: auto 4px; font-weight: normal!important;}

span.ab { color: #5f7f94!important; }
span.cd { color: OrangeRed!important; }

.content .navigation .turnpage  { height: 24px; line-height: 24px; }
.content .navigation .turnpage a { display: block; height: 24px; padding: 1px 9px; font-weight: 13px; font-weight: normal; text-decoration: none;
                                   color: #007D34; border: 1px solid #dfdebb; }
.content .navigation .turnpage a:hover { color: #007D34; background-color: lavender; border: 1px solid CornflowerBlue; }
.content .navigation .turnpage a.prev { float: left;  padding-left: 24px;  background: transparent url(turnpage.gif) no-repeat 0 0px; }
.content .navigation .turnpage a.next { float: right; padding-right: 24px; background: transparent url(turnpage.gif) no-repeat right -24px; }

.content .highlight    { color: white; font-weight: bold; padding: 0 1px; margin: 0 1px; background-color: MidnightBlue; }
.content .highlight_1  { background-color: SlateBlue; }
.content .highlight_2  { background-color: MediumTurquoise; }
.content .highlight_3  { background-color: MediumOrchid; }
.content .highlight_4  { background-color: Brown; }
.content .highlight_5  { background-color: Sienna; }
.content .highlight_6  { background-color: SeaGreen; }
.content .highlight_y  { background-color: LightCoral; }
.content .highlight_8  { background-color: Khaki; }
.content .highlight_9  { background-color: LightGreen; }
.content .highlight_10 { background-color: SkyBlue; }
.content .highlight_11 { background-color: Violet; }
.content .highlight_12 { background-color: Wheat; }

.content .doc .mark { border-bottom: 2px solid black; }

.content .keywords { display: none; }

.content li.book { float: left; margin: 10px; }

@media screen and (max-width: 768px) {
	html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
	.content { font-size: 18px; line-height: 1.75; }
	.content h1 { font-size: 1.45em; line-height: 1.35; }
	.content h2 { font-size: 1.3em; line-height: 1.4; }
	.content .doc,
	.content .div_fulltext { font-size: 1em; }
	.content .doc p,
	.content .content p,
	.content .content li {
		box-sizing: border-box;
		font-size: 1em;
		line-height: 1.85;
		padding-left: 0;
		padding-right: 0;
	}
	.content .navigation { clear: both; margin: 0 0 20px; }
	.content .navigation ul.breadcrumb { display: none !important; }
	.content .navigation .turnpage {
		display: flex;
		align-items: stretch;
		gap: 10px;
		height: auto;
		min-height: 44px;
	}
	.content .navigation .turnpage a {
		box-sizing: border-box;
		display: flex;
		align-items: center;
		float: none;
		flex: 1 1 0;
		max-width: calc(50% - 5px);
		height: 44px;
		min-height: 44px;
		padding: 9px 10px;
		font-size: 0;
		line-height: 1.45;
		background-color: rgba(216, 222, 186, .72);
		background-image: none;
		white-space: nowrap;
	}
	.content .navigation .turnpage a.prev {
		order: 1;
		padding-left: 10px;
		text-align: left;
		justify-content: flex-start;
	}
	.content .navigation .turnpage a.next {
		order: 2;
		margin-left: auto;
		padding-right: 10px;
		text-align: right;
		justify-content: flex-end;
	}
	.content .navigation .turnpage a.prev::before {
		content: "← 上一卷";
		font-size: 15px;
	}
	.content .navigation .turnpage a.next::after {
		content: "下一卷 →";
		font-size: 15px;
	}
	.content .navigation .turnpage .clear { display: none; }
	.content .children li { padding: 0; }
	.content .children li a {
		box-sizing: border-box;
		width: calc(100% - 24px);
		padding: 7px 9px;
	}
	.content ul.h25 {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
	.content ul.h25 li.book { float: none; margin: 0; }
	.content ul.h25 li.book a {
		box-sizing: border-box;
		width: 100% !important;
		height: 170px !important;
		margin: 0 !important;
		padding: 18px 12px !important;
		background-position: left top !important;
		background-size: cover !important;
		writing-mode: vertical-rl;
		text-orientation: upright;
	}
}

/* === 語詞知識庫·説文解字注（矢量小篆＋古文篆圖＋許書正文＋段玉裁注） === */
.content .sw-entry {
	font-family: "SinogExt", "Noto Serif CJK TC", "Songti TC", "STSong", simsun, "SimSun-ExtB", "SimSun-ExtG", "Jigmo", "Jigmo2", "Jigmo3", "Plangothic P1", "Plangothic P2", serif;
	color: #241d15;
	line-height: 1.95;
}
.content .sw-entry .sw-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 4px 0 16px;
	padding-bottom: 12px;
	border-bottom: 1.5px solid #c9b594;
}
.content .sw-entry .sw-zhuan-box {
	width: 86px;
	height: 86px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: #fcf8ee !important;
	border: 1px solid #c9b594;
	border-radius: 4px;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), 0 1px 4px rgba(80, 56, 28, 0.08);
	flex-shrink: 0;
	box-sizing: border-box;
}
.content .sw-entry img.sw-zhuan-svg {
	display: block;
	width: 68px;
	height: 68px;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.content .sw-entry .sw-head-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}
.content .sw-entry h1.sw-kai {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 30px !important;
	font-weight: bold !important;
	line-height: 1.25 !important;
	color: #ae165e !important;
	text-align: left !important;
}
.content .sw-entry h1.sw-kai span,
.content .sw-entry h1.sw-kai .highlight {
	font-size: 30px !important;
	font-weight: bold !important;
	color: #ae165e !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
}
.content .sw-entry h2.sw-loc {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 14px !important;
	font-weight: normal !important;
	line-height: 1.4 !important;
	color: #6b563e !important;
	text-align: left !important;
}
.content .sw-entry .sw-body p {
	margin: 0 0 12px !important;
	padding: 0 !important;
	text-indent: 0 !important;
	font-size: 17px !important;
	line-height: 2.0 !important;
	color: #241d15 !important;
}
.content .sw-entry .sw-pinyin {
	display: inline-block;
	margin-right: 8px;
	padding: 0 7px;
	font-size: 14.5px !important;
	font-style: italic;
	color: #866000 !important;
	background: #f6eedc !important;
	border: 1px solid #d7c5a5;
	border-radius: 3px;
	vertical-align: baseline;
}
.content .sw-entry .sw-xu {
	color: #193a7d !important;
	font-weight: bold !important;
}
.content .sw-entry .sw-fanqie {
	color: #24633a !important;
	background: rgba(226, 240, 229, 0.7);
	padding: 0 4px;
	border-radius: 2px;
}
.content .sw-entry .sw-yunbu {
	color: #7c4d1a !important;
	font-weight: bold;
}
.content .sw-entry .sw-count {
	color: #650065 !important;
	font-weight: bold;
}
.content .sw-entry u {
	text-decoration: none;
	border-bottom: 1px solid #8a7356;
	padding-bottom: 1px;
}
.content .sw-entry img.sw-inline-svg {
	display: inline-block;
	width: 1.55em;
	height: 1.55em;
	vertical-align: -0.32em;
	margin: 0 2px;
	object-fit: contain;
}
.content .sw-entry img.sw-inline-png {
	display: inline-block;
	max-height: 2.2em;
	width: auto;
	vertical-align: middle;
	margin: 0 3px;
}

/* SinogExt global fallback */
body, .content, .doc, .doc p, .doc h1, .doc h2, .catalog li a { font-family: "SinogExt", "Noto Serif CJK TC", "Songti TC", "STSong", simsun, serif; }

/* === 語詞知識庫·漢語大詞典（單字頭＋複詞條＋原書插圖） === */
.content .hy-entry {
	font-family: "SinogExt", "Noto Serif CJK TC", "Songti TC", "STSong", simsun, serif;
	color: #231c15;
	line-height: 1.95;
}
.content .hy-entry .hy-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 4px 0 6px;
	padding-bottom: 8px;
	border-bottom: 1.5px solid #c9b594;
}
.content .hy-entry h1.hy-title {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 28px !important;
	font-weight: bold !important;
	line-height: 1.3 !important;
	color: #8c2419 !important;
	text-align: left !important;
}
.content .hy-entry h1.hy-title span,
.content .hy-entry h1.hy-title .highlight {
	font-size: 28px !important;
	font-weight: bold !important;
	color: #8c2419 !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
}
.content .hy-entry .hy-badge {
	display: inline-block;
	padding: 1px 7px;
	font-size: 12px !important;
	color: #5b4328 !important;
	background: #f4ecda !important;
	border: 1px solid #d5c3a3;
	border-radius: 3px;
}
.content .hy-entry .hy-meta {
	margin: 0 0 12px;
	font-size: 13.5px;
	color: #6b563e;
}
.content .hy-entry h2.hy-pron {
	margin: 14px 0 6px !important;
	padding: 4px 10px !important;
	border: 0 !important;
	border-left: 3px solid #28435b !important;
	background: #f3ede0;
	font-size: 17px !important;
	color: #1f364d !important;
	text-align: left !important;
}
.content .hy-entry p.hy-rhyme {
	margin: 0 0 8px !important;
	padding: 0 !important;
	text-indent: 0 !important;
	font-size: 14.5px !important;
	color: #24633a !important;
}
.content .hy-entry .hy-body p {
	margin: 0 0 10px !important;
	padding: 0 !important;
	text-indent: 0 !important;
	font-size: 16.5px !important;
	line-height: 1.95 !important;
	color: #231c15 !important;
}
.content .hy-entry strong.hy-num {
	color: #8c2419 !important;
	margin-right: 3px;
}
.content .hy-entry .hy-ref {
	color: #193a7d !important;
	font-weight: bold;
}
.content .hy-entry u {
	text-decoration: none;
	border-bottom: 1px solid #8a7356;
	padding-bottom: 1px;
}
.content .hy-entry .hy-fig {
	display: block;
	margin: 12px 0;
	padding: 10px;
	background: #fcf9f2;
	border: 1px solid #d5c6ae;
	border-radius: 4px;
	text-align: center;
}
.content .hy-entry img.hy-img {
	display: block;
	max-width: 100%;
	max-height: 360px;
	height: auto;
	margin: 0 auto 6px;
}
.content .hy-entry .hy-cap {
	display: block;
	font-size: 13px !important;
	color: #6b563e !important;
}

/* === 前景檢索結果頁樣式 === */
.content .fg-search-wrap {
	font-family: "SinogExt", "Noto Serif CJK TC", "Songti TC", "STSong", simsun, serif;
	color: #231c15;
}
.content .fg-search-header {
	margin: 4px 0 14px;
	padding-bottom: 10px;
	border-bottom: 1.5px solid #c9b594;
}
.content .fg-search-header h1 {
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-size: 22px !important;
	color: #231c15 !important;
	line-height: 1.4 !important;
}
.content .fg-search-meta {
	font-size: 13.5px;
	color: #6b563e;
}
.content .fg-search-meta a.fg-switch-bg {
	color: #8c2419 !important;
	font-weight: bold;
	text-decoration: none;
}
.content .fg-search-meta a.fg-switch-bg:hover {
	text-decoration: underline;
}
.content .fg-empty {
	padding: 18px 14px;
	background: rgba(255, 253, 248, 0.85);
	border: 1px solid #d7c7ad;
	border-radius: 3px;
	font-size: 15px;
	color: #5c4b37;
}
.content .fg-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin: 10px 0 14px;
}
.content .fg-pager a,
.content .fg-pager .fg-cur {
	display: inline-block;
	padding: 3px 9px;
	font-size: 13px !important;
	border: 1px solid #c3b296;
	border-radius: 3px;
	text-decoration: none;
	line-height: 1.4;
}
.content .fg-pager a {
	color: #3a2d1e !important;
	background: #faf5e9;
}
.content .fg-pager a:hover {
	background: #efe5cf;
	border-color: #8c2419;
	color: #8c2419 !important;
}
.content .fg-pager .fg-cur {
	color: #fffdf8 !important;
	background: #8c2419;
	border-color: #8c2419;
	font-weight: bold;
}
.content ul.fg-results {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.content ul.fg-results li.fg-item {
	list-style: none !important;
	margin: 0 0 12px !important;
	padding: 10px 14px !important;
	background: rgba(255, 253, 248, 0.86);
	border: 1px solid #ddd1bc;
	border-left: 3px solid #8c2419;
	border-radius: 3px;
}
.content ul.fg-results li.fg-item a.fg-item-title {
	display: inline-block;
	font-size: 17px !important;
	font-weight: bold !important;
	color: #193a7d !important;
	text-decoration: none;
	line-height: 1.45;
}
.content ul.fg-results li.fg-item a.fg-item-title:hover {
	color: #8c2419 !important;
	text-decoration: underline;
}
.content ul.fg-results li.fg-item .fg-item-idx {
	color: #8c2419 !important;
	margin-right: 4px;
}
.content ul.fg-results li.fg-item .fg-item-trail {
	margin: 2px 0 6px;
	font-size: 12.5px;
	color: #7c6b56;
}
.content ul.fg-results li.fg-item .fg-item-snip {
	font-size: 15px;
	line-height: 1.85;
	color: #2b2218;
}
