#contentall {
	background: white;
}

table#tlayout {
	border: none;
	border-collapse: separate;
	background: white;
}

body {
	background: #E6E6E6;
	font-family: Georgia, serif;
	padding-bottom: 8px;
	margin: 0;
}

#layout-menu {
	background: #f6f6f6;
	border: 1px solid #dddddd;
	padding-top: 0.5em;
	padding-left: 8px;
	padding-right: 8px;
	font-size: 1.0em;
	width: auto;
	white-space: nowrap;
	text-align: left;
	vertical-align: top;
}

#layout-menu td {
	background: #f4f4f4;
	vertical-align: top;
}

#layout-content {
	padding-top: 0.3em;
	padding-left: 0em;
	padding-right: 0em;
	border: none;
	background: #E6E6E6;
	text-align: left;
	vertical-align: top;
}

#layout-menu a {
	line-height: 1.5em;
	margin-left: 0.5em;
}

tt {
	background: #ffffdd;
}

pre,
tt {
	font-size: 90%;
	font-family: monaco, monospace;
}

a,
a>tt {
	color: #224b8d;
	text-decoration: none;
}

a:hover {
	border-bottom: 1px #E6E6E6 dotted;
}

#layout-menu a.current:link,
#layout-menu a.current:visited {
	color: #022b6d;
	border-bottom: 1px #E6E6E6 solid;
}

#layout-menu a:link,
#layout-menu a:visited,
#layout-menu a:hover {
	color: #0000ff;
	text-decoration: none;
}

#layout-menu a:hover {
	text-decoration: none;
}

div.menu-category {
	border-bottom: 1px solid gray;
	margin-top: 0.8em;
	padding-top: 0.2em;
	padding-bottom: 0.1em;
	font-weight: bold;
}

div.menu-item {
	padding-left: 16px;
	text-indent: -16px;
}

div#toptitle {
	padding-bottom: 0.2em;
	margin-bottom: 1.5em;
	border-bottom: 3px double gray;
}

/* Reduce space if we begin the page with a title. */
div#toptitle+h2,
div#toptitle+h3 {
	margin-top: -1.0em;
}

div#subtitle {
	margin-top: 0.0em;
	margin-bottom: 0.0em;
	padding-top: 0em;
	padding-bottom: 0.1em;
}

em {
	font-style: italic;
}

strong {
	font-weight: bold;
}


h1,
h2,
h3 {
	color: #0000ff;
	margin-top: 0.7em;
	margin-bottom: 0.3em;
	padding-bottom: 0.2em;
	line-height: 1.0;
	padding-top: 0.5em;
	border-bottom: 1px solid #aaaaaa;

}

h1 {
	font-size: 200%;
}

h1.title1 {
	font-size: 1em;
	font-style: italic;
	font-family: Comic Sans MS;
	color: black;
}

h1.title2 {
	font-size: 1em;
	font-family: STXinwei;
	color: black;
}

h1.section {
	color: #2C3E50;
	padding-left: 0.3em;
	font-family: Courier New;
	font-size: 175%;
	font-weight: bold;
}


h2 {
	color: #337ab7;
	padding-top: 0.8em;
	padding-left: 0.15em;
	font-size: 150%;
	font-family: cursive;
}

@font-face {
	font-family: 'ChallengerProRegular';
	src: url('../fonts/ChallengerPro-Regular.eot');
	src: local('ChallengerPro Regular'), local('ChallengerPro'),
		url('../fonts/ChallengerPro-Regular.eot?#iefix') format('embedded-opentype'),
		url('../fonts/ChallengerPro-Regular.woff') format('woff'),
		url('../fonts/ChallengerPro-Regular.ttf') format('truetype'),
		url('../fonts/ChallengerPro-Regular.svg#ChallengerPro') format('svg');
}

@font-face {
	font-family: 'DaZiRegular';
	src: url('../fonts/DaZi.eot');
	src: local('DaZi Regular'), local('DaZi'),
		url('../fonts/DaZi.eot?#iefix') format('embedded-opentype'),
		url('../fonts/DaZi.woff') format('woff'),
		url('../fonts/DaZi.ttf') format('truetype'),
		url('../fonts/DaZi.svg#DaZi') format('svg');
}

@font-face {
	font-family: 'WangDuoRegular';
	src: url('../fonts/WangDuo.eot');
	src: local('WangDuo Regular'), local('WangDuo'),
		url('../fonts/WangDuo.eot?#iefix') format('embedded-opentype'),
		url('../fonts/WangDuo.woff') format('woff'),
		url('../fonts/WangDuo.ttf') format('truetype'),
		url('../fonts/WangDuo.svg#WangDuo') format('svg');
}

h2.section {
	color: #2C3E50;
	padding-left: 0.3em;
	font-family: DaZiRegular;
	font-size: 175%;
	font-weight: bold;
}

h2+h3 {
	padding-top: 0.2em;
}

h3 {
	font-size: 110%;
	border-bottom: none;
}

p {
	margin-top: 0.0em;
	margin-bottom: 0.8em;
	padding: 0;
	line-height: 1.3;
}

pre {
	padding: 0;
	margin: 0;
}

div#footer {
	font-size: small;
	border-top: 1px solid #c0c0c0;
	padding-top: 0.1em;
	margin-top: 4.0em;
	color: #c0c0c0;
}

div#footer a {
	color: #80a0b0;
}

div#footer-text {
	float: left;
	padding-bottom: 8px;
}

ul,
ol,
dl {
	margin-top: 0.2em;
	padding-top: 0;
	margin-bottom: 0.8em;
}

dt {
	margin-top: 0.5em;
	margin-bottom: 0;
}

dl {
	margin-left: 20px;
}

dd {
	color: #222222;
}

dd>*:first-child {
	margin-top: 0;
}

ul {
	list-style-position: outside;
	list-style-type: square;
}

p+ul,
p+ol {
	margin-top: -0.5em;
}

li ul,
li ol {
	margin-top: -0.3em;
}

ol {
	list-style-position: outside;
	list-style-type: decimal;
}

li p,
dd p {
	margin-bottom: 0.3em;
}


ol ol {
	list-style-type: lower-alpha;
}

ol ol ol {
	list-style-type: lower-roman;
}

p+div.codeblock {
	margin-top: -0.6em;
}

div.codeblock,
div.infoblock {
	margin-right: 0%;
	margin-top: 1.2em;
	margin-bottom: 1.3em;
}

div.blocktitle {
	font-weight: bold;
	color: #cd7b62;
	margin-top: 1.2em;
	margin-bottom: 0.1em;
}

div.blockcontent {
	border: 1px solid silver;
	padding: 0.3em 0.5em;
}

div.infoblock>div.blockcontent {
	background: #ffffee;
}

div.blockcontent p+ul,
div.blockcontent p+ol {
	margin-top: 0.4em;
}

div.infoblock p {
	margin-bottom: 0em;
}

div.infoblock li p,
div.infoblock dd p {
	margin-bottom: 0.5em;
}

div.infoblock p+p {
	margin-top: 0.8em;
}

div.codeblock>div.blockcontent {
	background: #f6f6f6;
}

span.pycommand {
	color: #000070;
}

span.statement {
	color: #008800;
}

span.builtin {
	color: #000088;
}

span.special {
	color: #990000;
}

span.operator {
	color: #880000;
}

span.error {
	color: #aa0000;
}

span.comment,
span.comment>*,
span.string,
span.string>* {
	color: #606060;
}

@media print {
	#layout-menu {
		display: none;
	}
}

#fwtitle {
	margin: 2px;
}

#fwtitle #toptitle {
	padding-left: 0.5em;
	margin-bottom: 0.5em;
}

#layout-content h1:first-child,
#layout-content h2:first-child,
#layout-content h3:first-child {
	margin-top: 0.7em;
}

div#toptitle h1,
#layout-content div#toptitle h1 {
	margin-bottom: 0.0em;
	padding-bottom: 0.1em;
	padding-top: 0;
	margin-top: 0.5em;
	border-bottom: none;
}

div.hackhome {
	border: 2px dashed #987cb9;
	background-color: #fad8be;
}

div.menu {
	width: 100%;

	background: #EEFAFF;
	margin-top: 2em;
	margin-bottom: 1em;
}

div.menu p {
	text-align: center;
	margin-top: 0.1em;
	margin-bottom: 0.1em;
	padding: 0.5em;
}

div.interest i {
	color: #8a6d3b;
}



img.eq {
	padding: 0;
	padding-left: 0.1em;
	padding-right: 0.1em;
	margin: 0;
}

img.eqwl {
	padding-left: 2em;
	padding-top: 0.6em;
	padding-bottom: 0.2em;
	margin: 0;
}

img.right {
	float: right;
	padding: 0;
	width: 100%;
}

img.left {
	float: left;
	padding: 0;
	width: 100%;
	height: 12em;
}

img.news {
	float: left;
	padding: 0;
	width: 100%;
	height: auto;
}

table {
	border: 2px solid black;
	border-collapse: collapse;
}

td {
	padding: 2px;
	padding-top: 5px;
	padding-left: 0.5em;
	padding-right: 0.5em;
	text-align: center;
	border: 1px solid gray;
}

table+table {
	margin-top: 1em;
}

tr.heading {
	font-weight: bold;
	border-bottom: 2px solid black;
}

img {
	border: none;
}

table.imgtable,
table.imgtable td {
	border: none;
	text-align: left;
	font-size: large;
}

#RED {
	color: red
}

/* 整行标题(anchor)当 Flex 容器来排版 */
.section-toggle {
	display: flex !important;
	/* 横向排列 */
	align-items: center;
	/* 垂直居中 */
	gap: .4em;
	/* 文本 ↔ 徽章 间隔 */
	position: relative;
	/* 让 :after 箭头还能绝对定位 */
}

/* 右对齐徽章，只需 margin‑left:auto 把它挤到最右 (箭头在伪元素里还会更靠右) */
.section-toggle .badge-paper {
	margin-left: auto !important;
	display:inline-block;   /* 让 background 作为整体绘制 */
	white-space:nowrap;     /* 禁止在空格处自动换行 */
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: .75em;
	/* 略微缩小，看起来算“标注” */
	background: #f08a5d;
	/* 主色：和 h2 蓝色区分开 */
	color: #fff;
	border-radius: 12px;
	transition: background .25s, filter .25s;
}

/* Hover 时稍微加深 */
.section-toggle:hover .badge-paper {
	background: #d95c4c;
	box-shadow: 0 0 0 3px #e0f0ff inset;
}

/* 折叠状态(默认 .collapsed)，徽章改成静态灰，展开时再亮起来 */
.section-toggle.collapsed .badge-paper {
	background: #83d986;
	filter: grayscale(.2);
}
/* 箭头旋转动画 */
.section-toggle.collapsed:after {
	transform: rotate(90deg);
	transition: .25s;
}

/* 箭头伪元素稍往右让一让，别压着徽章 */
.section-toggle:after {
	margin-left: .5em;
}

.card.card-body {
	overflow: hidden;
	/* 最简单的 clearfix：让高度重新包住浮动 */
}

/* 伪元素 clearfix */
.card.card-body::after {
	content: "";
	display: block;
	clear: both;
}

/* ———  把相邻折叠标题之间的空白缩小一半 ——— */
.section-title {
	/* 原来 margin:1.2em 0; */
	margin: .6em 0;
	/* 上下各 0.6em 更紧凑 */
}

/* hover 时再加深一点 */
.section-title,
.card {
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .08);
}

@media (max-width:480px){
    .badge-paper{
        font-size:.7em;     /* 略微缩字，Pill 更协调 */
        padding:.15em .6em; /* 窄一点的内边距 */
    }
    /* 标题 + 徽章 + 箭头确实放不下一行，可以这样让徽章自觉换到下一行 */
   
    .section-toggle{flex-wrap:wrap;}
    .badge-paper{margin-left:0; margin-top:.4em;}
    
}



