/* 引入 STIX Two Math 确保任何设备都有这几个小写手写体 */
@import url('https://fonts.googleapis.com/css2?family=STIX+Two+Math&display=swap');

/* 强制应用该字体的 CSS 类 */
.math-script-font, .math-script-font * {
    font-family: 'STIX Two Math', 'Cambria Math', serif !important;
}

/* 专门用于横向拉宽 m 的类 */
.math-wide-m {
  font-family: 'STIX Two Math', 'Cambria Math', serif !important;
  display: inline-block;
  transform: scaleX(1.35) skewX(-12deg); /* 1.35 表示宽度拉伸至 1.35 倍，你可以根据喜好微调这个数字 */
  transform-origin: center;
}




BODY {
 	MARGIN-LEFT: 12%; 
	MARGIN-RIGHT: 12%;
	background-color: #C7EDCC;
}



/* 宋体/衬线体，确保正文优先使用破折号完整的中文字体 */
body {
    font-family: 
        /* 1. macOS / iOS 优质宋体（笔画饱满，适合高清屏） */
        "Songti SC", "STSong",
        /* 2. Windows 优质现代宋体（Win10/11 自带，较 SimSun 粗实） */
        "Source Han Serif CN", "思源宋体",
        /* 3. Windows 经典宋体（通杀所有 Win XP/7/10/11，老方块机必中） */
        "SimSun", "宋体", "NSimSun", "新宋体",
        /* 4. Linux 常见开源衬线体 */
        "Noto Serif CJK SC", "AR PL UMing CN",
        /* 5. 跨系统终极回退（只要系统有任何衬线宋体，直接调出） */
        serif;
}


p.intr{
	width:100%; 
	font-size: 12px;
	margin-left :-12%;
}

h1{

	LINE-HEIGHT:200%;
	text-align: center;
}

li{
	line-height:150%;
	font-size: 100%;

}

h2{

	LINE-HEIGHT:100%;
	text-align: center;
}
h3{

	LINE-HEIGHT:100%;
	text-align: center;
}

p {
	text-indent:2em; 
	line-height:165%;
}

.notelink{

	vertical-align:super; 
	font-size:smaller;
}

.quote{
	text-indent:2em;
	margin: 10px 0 10px 30px;
	padding: 0 0 0 5px;
	border-left: 3px solid;
	font-size:90%;
	line-height: 150%;

}


div.footnote{

	padding:0.5ex 2ex;
	background-color: #c0c0c0;
	font-size:80%;

}

p.footnote{
	line-height: 100%;
}

.endnote{

	border-top: 6px solid;

}

hr.top{
	border-top: 3px solid;
	BORDER-BOTTOM:  1px solid;
	height:8px;
	color:#000000;

}

hr.bottom{
	BORDER-TOP:  1px solid;
 	BORDER-BOTTOM:  3px solid;
	height:8px;
	color:#000000;

}
pre {
	font-size:100%;
	line-height:150%;
	white-space: pre-wrap; /* css-3 */
	white-space: -moz-pre-wrap !important; /* mozilla, since 1999 */
	white-space: -pre-wrap; /* opera 4-6 */
	white-space: -o-pre-wrap; /* opera 7 */
	word-wrap: break-word; /* internet explorer 5.5+ */
}

.notelink{

	vertical-align:super; 
	font-size:smaller;
}

.main{
	width:100%;
	text-size:normal;

}

.left{
    line-height:100%;
    float: left;
    width:50%;
    overflow: auto;
	text-align:left;

}

.right{
    line-height:100%;
    float: right;
    width: 50%;
    overflow: auto;
    text-align:right;

}
.footnote-as-sidebar {
	CLEAR: none; DISPLAY: block; PADDING-LEFT: 12px; FONT-SIZE: 11pt; BORDER-LEFT-COLOR: maroon; FLOAT: right; BORDER-BOTTOM-COLOR: red; PADDING-BOTTOM: 12px; MARGIN: 12px 0px 12px 24px; WIDTH: 40%; LINE-HEIGHT: 110%; BORDER-LEFT-STYLE: solid; TEXT-ALIGN: left; BORDER-BOTTOM-STYLE: solid; border-spacing: 8px }
	
.content {LINE-HEIGHT:165%; FONT-FAMILY:"����"; MARGIN-left:12%; MARGIN-right: 12%;}
.content IMG {MARGIN: 7px}
.TitleLinks {TEXT-ALIGN: center}
.TitleLinks .content {LINE-HEIGHT: 20pt}
.TitleLinks .content IMG {MARGIN-TOP: 7px; MARGIN-BOTTOM: 7px}
A:link {COLOR: #0033cc; TEXT-DECORATION: none}
A:visited {COLOR: #0033cc; TEXT-DECORATION: none}
A:active {COLOR: #0000ff; TEXT-DECORATION: none}
A:hover {COLOR: #ff0000; TEXT-DECORATION: underline}


/* =====================================*/
/* Adjustments for Mobile Devices       */
/* =====================================*/

@media (max-width: 480px) {
  p { font-size: 12pt; margin-left: 1%; margin-right: 1%; margin-bottom: 4pt; margin-top: 4pt; line-height: 125%; }
  p.indentb { margin-left: 6%; margin-right: 1%; }
  p.quoteb { margin-left: 6%; margin-right: 1%; }
  p.index { margin-left: 6%; margin-right: 1%; }
  h1 { font-size: 18pt; margin-left: 1%; margin-right: 1%; }
  h2 { font-size: 16pt; margin-left: 1%; margin-right: 1%; }
  h3 { font-size: 14pt; margin-left: 1%; margin-right: 1%; }
  h4 { font-size: 13pt; }
  h5 { margin-left: 1%; }
  h6 { margin-left: 1%; }
  img { width: 150px; height: auto; }
  img.auto {width: auto ; height: auto; }
  blockquote {margin-left: 1%; }
}

/* =================================================== */
/* Pandoc 现代排版：图片缩放、图注居中、目录居中 */
/* =================================================== */

/* 1. 限制图片最大宽度，居中显示，防止高清图表溢出屏幕 */
img {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 1em auto;
}

/* 2. 标准语义化图表容器与图注（figcaption）居中、去首行缩进 */
figure {
    text-align: center;
    margin: 1.8em auto;
    text-indent: 0;
}

figcaption {
    text-align: center;
    font-size: 90%;
    font-weight: bold;
    margin-top: 0.5em;
    text-indent: 0;
}

/* 兼容未转为 figure 的普通图注段落及资料来源行 */
p.caption {
    text-align: center;
    text-indent: 0;
    font-size: 90%;
}

/* 3. 开头本章子目录 (#TOC) 整体块居中（内部条目保持左对齐美观） */
#TOC {
    text-align: center;
    margin: 1.5em auto 2.5em auto;
    padding: 1em 2em;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    width: fit-content;
    min-width: 40%;
}

#TOC ul {
    display: inline-block;
    text-align: left;
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

#TOC ul ul {
    display: block;
    padding-left: 2em;
}

/* 4. Pandoc 底部脚注区域美化，消除首行缩进错位 */
section.footnotes p {
    text-indent: 0;
    margin: 0.4em 0;
    font-size: 90%;
}


/* =================================================== */
/* 学术表格美化：网格线、居中、表头加粗                     */
/* =================================================== */
table {
    margin: 1.5em auto;
    border-collapse: collapse;
    width: 85%;
    background-color: #f7fbf8;
    font-size: 95%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

th, td {
    border: 1px solid #8ba88e;
    padding: 10px 14px;
    text-align: left;
    line-height: 1.45;
}

th {
    background-color: #dbebe0;
    color: #111;
    font-weight: bold;
    text-align: center;
}

/* 单元格首行缩进归零 */
td p, th p {
    text-indent: 0;
    margin: 0;
}







/* 附录四级小标题与图表资料词条样式 */
h4 {
    text-align: left;
    margin: 1.2em 0 0.4em 0;
    font-size: 1.05em;
    line-height: 1.4;
    color: #111;
}

/* 防止附录超宽表格撑破页面 */
table {
    display: table;
    max-width: 96%;
    overflow-x: auto;
}

.noindent p, p.noindent {
    text-indent: 0 !important;
}







/* 左上角面包屑导航样式 */
p.intr {
    text-align: left;
    /* text-indent: 0 !important; */
    font-size: 0.9em;
    color: #555;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-top: 10px;
}
p.intr a {
    color: #000080; /* 中马库经典的深蓝色链接 */
    text-decoration: none;
}
p.intr a:hover {
    text-decoration: underline;
}




/* ==================================================
   短段引文框样式 (Blockquote)
   默认主题：深海蓝
================================================== */
blockquote{
    background-color: #f0f4f8;        /* 柔和的浅蓝背景 */
    border-left: 10px solid #31708f;   /* 深蓝色左侧粗边框 */
    border-radius: 8px;               /* 圆角设计 */
    padding: 15px 20px;               /* 内边距 */
    margin: 1.5em 0;                  /* 上下外边距 */
    color: #444;                      /* 字体颜色稍微柔和 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); /* 轻微的阴影增加立体感 */
}

/* 覆盖引文内部的段落默认样式 */
blockquote p {
        font-family: 
        /* 1. macOS / iOS 优先调用 */
        "STKaitiSC-Regular", "KaiTi_SC", "STKaiti",
        /* 2. Windows 系统的楷体（英文名与中文名双重保底） */
        "KaiTi", "楷体", "STKaiti", "华文楷体",
        /* 3. 极老旧 Windows (如 XP) 常见的楷体别名 */
        "KaiTi_GB2312", "楷体_GB2312",
        /* 4. 通用衬线体后备（若完全没有楷体，至少呈现衬线书卷感，避免崩成黑体） */
        serif !important;
    text-indent: 0 !important;        /* 引文内部通常不首行缩进 */
    margin-top: 0;
    margin-bottom: 0.8em;
    font-size: 0.95em;                /* 引文字号略小于正文 */
    line-height: 1.6;
}
blockquote p:last-child {
    margin-bottom: 0;                 /* 消除最后一段的底部多余空白 */
}

/* ==================================================
   引文框颜色变体：砖红与秋黄
================================================== */
/* 红色 */
.quote-red blockquote {
    background-color: #fdf5f5;
    border-left-color: #a94442;
}

/* 黄色 */
.quote-yellow blockquote {
    background-color: #fcf8e3;
    border-left-color: #8a6d3b;
}


/* 
::: quote-yellow
> 黄色引文框。圆角、取消首行缩进
::: */