* {
    box-sizing: border-box;
}

.home-icon {
    display: flex;
    /* background-color: var(--lesslight); */
    /* color: var(--light); */
		align-items: center;
    margin-top: 20px;
    /* padding: 5px 10px 5px 10px; */
		padding-left: 4px;
		padding-right: 4px;
    text-decoration: none;
    font-weight: bold;
		border: 1px solid;
		border-color: var(--dark);
		flex: 1;
}


.reference :target {
	background-color: #ffff00;  /* 黄色高亮 */
	border-radius: 3px;
}

.reference :target:before {
	background-color: #ffff00;  /* 黄色高亮 */
	border-radius: 3px;
	font-size: smaller;
	content: "▶ ";
	color: #888;
}

blockquote {
  font-style: italic;        /* 设置字体为斜体 */
  color: #555555;            /* 设置字体颜色 */
  border-left: 4px solid #ccc; /* 在左侧添加一条灰色边框 */
  padding: 10px 15px;        /* 左侧内边距 */
  margin: 20px 0;            /* 上下外边距 */
  background-color: #f9f9f9; /* 设置背景颜色 */
	position: relative;
}

blockquote .quote-author {
  font-style: normal;       /* 作者名字不使用斜体 */
  font-size: 0.9em;         /* 设置字体稍小一些 */
  color: #888888;           /* 设置灰色 */
  text-align: right;        /* 文字右对齐 */
  margin-top: 10px;
}

/* 底栏的整体样式 */
.footer {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #777;
  text-align: center;
  padding: 3px;
  border-top: 1px solid #ccc;
  background-color: #FAFAFA;
	line-height: 1.3em;
}

/* 底栏内容排版 */
.footer p {
  margin: 5px 0;
}

/* 链接样式 */
.footer a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px dashed #333;
}

.footer a:hover {
  color: #000;
  border-bottom: 1px solid #000;
}

.toc-container {
    width: 90%;
    margin: 35px auto;
    background-color: #fff;
    padding: 6px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.toc {
    list-style-type: none;
    padding: 0;
		margin: 0;
}

.toc li {
    margin: 0;
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid #e1e1e1;
}

.toc li:last-child {
    border-bottom: none;
}

.toc .post-date {
    color: #999;
    font-size: 14px;
    margin-right: 20px;
}

.toc a {
    color: #007BFF;
    color: #333333;
    text-decoration: none;
    font-size: 18px;
		flex-grow: 1;
}

.toc a:hover {
    text-decoration: underline;
}

.comment {
	border: 1px solid var(--dark);
	padding: 0.3em 0.5em 0.5em;
	background: var(--light);
}

.comment p {
	margin: 10px;
}

.todo-list, .todo-list ul {
	list-style: none; /* 去掉 ul 的圆点 */
	padding-left: 1em; /* 去掉默认的内边距 */
}

.todo-list li::before {
	content: "☐"; /* 未勾选框 */
	margin-right: 10px;
	color: #000; /* 框的颜色 */
}

_ .todo-list li {
	list-style: "☐ ";
}

_ .todo-list .todo-list-done {
	list-style: "☑ ";
}

.todo-list .todo-list-done::before {
	content: "☑"; /* 已勾选框 */
	color: green; /* 勾选框的颜色 */
}

.mid::before {
    content: "|";        /* 显示 "|" 符号 */
    margin: 0 5px;      /* 左右两边留出 10px 的空隙 */
    color: #000;         /* 字符颜色为黑色 */
}

:root {
    color-scheme: light dark;
    --light: #fff;
    --lesslight: #efefef;
    --dark: #404040;
    --moredark: #000;
    --link: royalblue;
    border-top: 5px solid var(--dark);
    line-height: 1.5em;
    font-family: "Noto Serif SC", system-ui, sans-serif;
		font-weight: 500;
    font-size: 16px;
		font-optical-sizing: auto;
		font-style: normal;
		font-variation-settings: "wdth" 100;
    color: var(--dark);
}

h1 {
    line-height: 1em;
}

button, input {
    font-size: 1em; /* Override browser default font shrinking*/
}

input {
    border: 1px solid var(--dark);
    background-color: var(--lesslight);
    border-radius: .25em;
    padding: .5em;
}

pre {
    background-color: var(--lesslight);
    margin: 0.5em 0 0.5em 0;
    padding: 0.5em;
    overflow: auto;
}

code {
    background-color: var(--lesslight);
		padding: 0.5px 3px;
}

pre code {
		padding: 0;
}

body {
    background-color: var(--light);
    margin: 0;
    max-width: 800px;
    padding: 0 20px 20px 20px;
    margin-left: auto;
    margin-right: auto;
}

a {
    outline: none;
    color: var(--dark);
}

a:hover {
    text-decoration-color: var(--link);
}

img {
    max-width: 100%;
    height: auto;
}

button, .button, input[type=submit] {
    display: inline-block;
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: .5em;
    border-radius: .25em;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

button:hover, .button:hover, input[type=submit]:hover {
    color: var(--lesslight);
    background-color: var(--moredark);
}

/* Add a margin between side-by-side buttons */
button + button, .button + .button, input[type=submit] + input[type=submit] {
    margin-left: 1em;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.bordered {
    border: 3px solid;
}

.home {
    display: inline-block;
    background-color: var(--dark);
    color: var(--light);
    margin-top: 20px;
    padding: 5px 10px 5px 10px;
    text-decoration: none;
    font-weight: bold;
}


/* Desktop sizes */
@media (min-width: 600px) {
    ol.twocol {
        column-count: 2;
    }
    
    .row {
        display: flex;
        flex-direction: row;
        padding: 0;
        width: 100%;
    }

    /* Make everything in a row a column */
    .row > * {
        display: block;
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .row > *:not(:last-child) {
        margin-right: 10px;
    }
}

/* Dark mode overrides (confusingly inverse) */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #222;
        --lesslight: #333;
        --dark: #eee;
        --moredark: #fefefe;
    }
    /* This fixes an odd blue then white shadow on FF in dark mode */
    *:focus {
        outline: var(--light);
        box-shadow: 0 0 0 .25em var(--link);
    }
}

/* Printing */
@media print {
    .home {
        display: none;
    }
}
