@font-face {
	font-family: "Computer Modern";
	src: url(cmunrm.ttf);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Computer Modern', 'Times New Roman', serif;
	font-size: 17px;
}

p {
	margin-bottom: 15px;
}

h2 {
	margin-bottom: 40px;
}

/*
-------------
   SIDEBAR
-------------
*/

.sidebar {
	height: 100vh;
	width: 250px;
	border-right: 1px solid #c0c0c0;
	position: absolute;
	left: 0;
}

.header {
	padding: 30px;
}

#mugshot {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	overflow: hidden;
}

.sidebar li {
	border-top: 1px solid #c0c0c0;
	height: 50px;
	text-transform: uppercase;
	margin: 0px auto; 
	line-height: 50px;
	padding-left: 30px;
}

.sidebar ul:last-child {
	border-bottom: 1px solid #c0c0c0;
}

.sidebar li:hover {
	background-color: #f0f0f0;
}

.sidebar a {
	text-decoration: none;
	color: black;
}

.sidebar a:visited {
	color: black;
}

.selected {
	color: rgb(078, 042, 132);
	background-color: #f0f0f0;
}

/*
-------------
    MAIN
-------------
*/

.main {
	height: 100vh;
	margin-left: 250px;
	padding: 30px 50px;
	overflow: auto;
}

section {
	display: none;
}

.active {
	display: block;
}

section ul {
	margin: 15px 15px 15px 30px;

}
/* 让 About 里前两段左右两端对齐 */
#about p:nth-of-type(1),
#about p:nth-of-type(2) {
  text-align: justify;
  text-justify: inter-word;   /* 主要给旧版 IE/Edge，其他浏览器忽略也没关系 */
  -webkit-hyphens: auto;      /* Safari/Chrome 支持的断字 */
  -ms-hyphens: auto;          /* 旧版 Edge/IE */
  hyphens: auto;              /* 标准属性：英文更自然断词配合 justify */
}

/* 加粗且保持为黑色 */
#about .label {
  font-weight: 700;
  color: #000;
}
#about a { text-decoration: none; }
#about a:hover { text-decoration: underline; } /* 悬停时给个可见的提示 */


.site-stats{
  margin-top: 24px;
  padding: 12px 16px;
  border-top: 1px solid #e5e5e5;
  color: #555;
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-stats .flag{ font-size: 16px; margin: 0 4px 0 6px; }
.site-stats .sep{ opacity: .6; }
