:root {
	--width:900px;
	--font-scale: 16px;
	--background-color:#fff;
	--heading-color:#222;
	--text-color:#222;
	--link-color:#222;
	--visited-color:#222;
	--code-background-color:#F0F0F0;
	--code-color:#222;
	--blockquote-color:#222;
	--gray-color:#666;
}
/*
@media (prefers-color-scheme:dark) {
	:root {
	--background-color:#111;
	--heading-color:#eee;
	--text-color:#ddd;
	--link-color:#ddd;
	--visited-color:#fff;
	--code-background-color:#000;
	--code-color:#ddd;
	--blockquote-color:#ccc;
	--gray-color:#999;}
} */
body {
	font-size:var(--font-scale);
	margin:auto;
	max-width:var(--width);
	text-align:justify;
	background-color:var(--background-color);
	word-wrap:break-word;
	overflow-wrap:break-word;
	line-height:1.7;
	color:var(--text-color);
	font-family: "微軟正黑體","Droid Serif","Times New Roman","PingFang SC","Hiragino Sans GB","Source Han Sans CN","WenQuanYi Micro Hei","Microsoft Yahei",serif, Source Han Serif CN VF, sans-serif; 
	height:100%;
}
html {
	scroll-behavior:smooth;
	height:100%;
}
.title_a {
    color: #B94A48;
}
time {
	font-family: consolas,monospace;
	font-style:normal;
}
h1,h2,h3,h4,h5,h6 {
	color:var(--heading-color);
	display:inherit;
}
h3 {
	text-transform: uppercase;
}
a {
	color:var(--link-color);
	cursor:pointer;
	text-decoration:none;
	border-bottom:1px solid transparent;
}
a:hover,nav .current {
	color:var(--gray-color);
	text-decoration:none;
}
nav a {
	margin-right:8px;
}

.avatar-name{display:flex;flex-direction:column;align-items:left;border-bottom:0px solid #979797;padding-top:30px;}
.avatar-name .avatar{width:120px;height:120px;padding:10px;box-sizing:border-box;}
.avatar-name .avatar img{width:100px;height:100px;border-radius:50%}
.avatar-name .radius img{border-radius:50%}

strong,b {
	color:var(--heading-color);
}
button {
	margin:0;
	cursor:pointer;
}
table {
	width:100%;
}
pre {
	padding:5px 12px;
	overflow:auto;
}
hr {
	border:0;
	border-top:1px dashed;
}
img {
	max-width:100%;
	height:auto;
	border-radius:12px;
}
time,.intro {
	color:var(--gray-color);
}
pre,code {
	font-size:0.9em;
	font-family:"Roboto Mono",monospace,serif;
	background-color:var(--code-background-color);
	color:var(--code-color);
	border-radius:6px;
}
code {
	padding:0px 3px;
	border-radius:6px;
	color: #B94A48;
        padding-right: 5px;
}
blockquote {
	margin: 1em 0;
	padding-left: 1.0em;
        padding-right: 5px;
	border-left: 4px solid #2d96bd;
	color: #666;
	background-color: #e9f5fa;
}
input {
	border-radius:4px;
	border:1px solid var(--gray-color);
	margin:0 0 15px 0;
	padding:10px;
	width:50%;
}
input:focus {
	outline:0;
}
input[type="submit"] {
	padding:9px 10px;
	text-align:center;
	width:80px;
	display:inline-flex;
	background-color:var(--heading-color);
	color:var(--code-background-color);
	border:none;
}
input[type="submit"]:hover {
	cursor:pointer;
	opacity:.7;
}
header,footer {
	padding:10px 0;
}
.title h1,.title h2 {
	font-size:3.0em;
}
.title:hover {
	text-decoration:none;
}
main {
	margin-top:10px;
	flex:1;
	/* 让 main 填充剩余空间 */
    box-sizing:border-box;
	/* 确保 padding 不影响宽度 */
}
.post-meta, .post-meta a {
    color: #999;
    transition:color 0.3s;
    font-size:14px;
    text-transform: uppercase;
}
.post-meta a:hover {
    color: #999;
    text-decoration: underline;
}
.post-link a:hover {
    color: #999;
    text-decoration: underline;
}
.post-link, .post-link a {
    color: #222;
    transition:color 0.3s;
    font-size:16px;
}
.content a {
/*  border-bottom:0px solid var(--link-color); */
    border-bottom: 0px solid #999;
}
nav a {
	font-size:1.2em;
}
ul.posts {
	list-style-type:none;
	padding:0px;
}
ul.posts li {
	display:flex;
	margin:0px 0;
}
ul.posts li span {
	flex:0 0 115px;
}
ul.posts li a:visited {
	color:var(--visited-color);
}
.tags {
	margin-top:30px;
	color:var(--gray-color);
        text-transform: uppercase;
}
.tags a {
	color: #888;
	margin:0 5px 0 2px;
        text-transform: uppercase;
}
.post-item {
	display:flex;
	/* 使用 Flexbox 布局 */
    justify-content:space-between;
	/* 使链接和时间在两端对齐 */
    align-items:center;
	/* 垂直居中对齐 */
    margin-bottom:10px;
	/* 每个项目之间的间距 */
    text-transform: uppercase;
    /* 所有字母强制大写 */
}
.post-item a{
	flex:1;
	/* 使链接填满可用空间 */
}
.post-item a:hover{
    text-decoration:underline;
}
.post-item time {
	margin-left:10px;
	/* 给时间标签添加一点左边距 */
    white-space:nowrap;
	/* 防止时间换行 */
}
footer {
	color:#999;
	/* 设置链接颜色 */
    text-decoration:none;
	/* 去掉下划线 */
    transition:color 0.3s;
	/* 增加过渡效果 */
    font-size:12px;
}
footer a {
	color:#999;
	/* 设置链接颜色 */
    text-decoration:underline;
}

.home {
	display:flex;
	flex-direction:column;
	min-height:100vh;
	/* 使其至少占满整个视口高度 */
}
/* 针对手机设备设置 padding */
        @media (max-width:768px) {
	/* 768px 是常见的平板和手机的屏幕宽度 */
            body {
	padding:0px 10px;
	/* 手机上设置 padding */
}
}/* 针对电脑设备去掉 padding（默认情况下没有设置） */
        @media (min-width:769px) {
	body {
	padding:0;
	/* 在电脑上去掉 padding */
}
}
.new {
    color: #008080;
    font-style: italic;
}

.post-pagination ol{list-style: none;display:inline-flex;padding: 0;}
.linked-pagination span,.linked-pagination a:hover span,.post-pagination .page-numbers,.post-pagination ol a{width:35px;height:35px;line-height:35px;margin-right:8px;display:inline-block;text-align:center;border-radius:20px;}
.linked-pagination span,.linked-pagination a:hover span,.post-pagination .pagination a:hover,.post-pagination .pagination .current,.post-pagination ol a:hover,.post-pagination ol .current a{background:#333;color:#fff}
.linked-pagination a span,.post-pagination .page-numbers,.post-pagination ol a{background:#f8f8f8;color:#555}
.linked-pagination,.post-pagination{margin:80px 0 50px}
