html {
    font-size: 62.5%; /* 10px */
}

* {
    margin: 0;
    padding: 0;
    line-height: 150%;
    text-decoration: none;
}

a:link, a:visited, a:active {
    color: rgb(18, 103, 125);
}
a:hover {
    color: rgb(100, 100, 100);
}

img {
    max-width: 100%;
}

.post-image-zoomable {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.post-image-zoomable:active {
    transform: scale(0.97);
}
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.image-lightbox--visible {
    opacity: 1;
    pointer-events: auto;
}
.image-lightbox__img {
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}
body.image-lightbox-open {
    overflow: hidden;
}

html, body {
    height: 100%;
}

/*导航栏内容设置--------------------------------*/
nav .navbar {
    display: flex;
    flex-wrap: wrap;
    background-color: rgb(2, 48, 71);
    list-style: none;
    padding-left: 20%;
    padding-right: 20%;
	padding-top: 10px;
    padding-bottom: 10px;
    justify-content: space-around;
}
nav .navbar #site_search {
    flex: 0 0 100px;
    max-width: 100px;
    position: relative;
    margin-right: 10px;
    z-index: 1200;
}
body.search-active nav .navbar #site_search {
    position: fixed;
    top: 8vh;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(360px, 55vw, 640px);
    max-width: none;
    margin-right: 0;
    z-index: 1600;
}
body.search-active nav .navbar #site_search .form-group {
    width: 100%;
}
body.search-active nav .navbar #site_search input {
    font-size: 1.6rem;
    padding: 8px 16px 8px 40px;
    box-shadow: 0 8px 20px rgba(2, 48, 71, 0.2);
    border: 1px solid rgba(2, 48, 71, 0.3);
}
body.search-active nav .navbar #site_search .search-icon {
    left: 16px;
    font-size: 1.6rem;
    color: rgba(2, 48, 71, 0.75);
}
nav .navbar #site_search .form-group {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}
nav .navbar #site_search input {
    width: 100%;
    padding: 4px 12px 4px 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.85);
    color: #023047;
    font-size: 1.4rem;
    outline: none;
    transition: box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 1201;
}
nav .navbar #site_search .search-icon {
    position: absolute;
    left: 12px;
    font-size: 1.4rem;
    color: rgba(2, 48, 71, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1202;
}
nav .navbar #site_search input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
nav .navbar #site_search input::placeholder {
    color: rgba(2, 48, 71, 0.6);
}
nav .navbar #local-search-result {
    display: none;
    position: fixed;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(360px, 55vw, 720px);
    min-height: 120px;
    max-height: 70vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(2, 48, 71, 0.18);
    overflow-y: auto;
    z-index: 1500;
    padding: 20px 24px;
}
nav .navbar #local-search-result:not(:empty) {
    display: block;
}
body.search-active nav .navbar #local-search-result {
    top: calc(8vh + 5px);
}
#local-search-result .search-result-list {
    list-style: none;
}
#local-search-result .search-result-list li + li {
    margin-top: 12px;
    border-top: 1px solid rgba(2, 48, 71, 0.08);
    padding-top: 12px;
}
#local-search-result .search-result-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #023047;
}
#local-search-result .search-result {
    margin-top: 6px;
    font-size: 1.4rem;
    color: rgba(2, 48, 71, 0.75);
    line-height: 1.5;
}
.search-keyword {
    background: rgba(2, 48, 71, 0.12);
    color: #023047;
    padding: 0 3px;
    border-radius: 4px;
}
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 48, 71, 0.45);
    z-index: 900;
    pointer-events: none;
    transition: opacity 0.2s ease;
    opacity: 0;
}
.search-overlay.active {
    display: block;
    pointer-events: auto;
    opacity: 1;
}
body.search-active {
    overflow: hidden;
}
nav .navbar a:link, nav .navbar a:visited, nav .navbar a:active {
	font-family: "微软正黑体";
    font-size: 2rem;
    height: auto;
    text-decoration: none;
    text-align: center;
    color: rgb(255, 255, 255);
}
nav .navbar a:hover {
	background-color: rgb(100, 100, 100);
}
nav #navbar-toggle {
    display: none;
}

/*左侧目录内容设置--------------------------------*/
aside {
    margin-top: 20px;
	line-height: 1.4;
	font-family: "微软正黑体";
    font-size: 2rem;
    height: 40px;
    float: right;
    width: 28%;
    margin-right: 2%;
    position: fixed;
}
/* 目录容器 */
aside {
	margin: 0;
    padding-top: 20px;
    padding-left: 15%;
    width: calc(15% - 40px);
    overflow-y: auto;
    overflow-x: auto;
	height: 100vh;
}
/* toc */
aside div ol {
    list-style: none;
}
aside div ol li a:link, aside div ol li a:visited, aside div ol li a:active {
    text-decoration: none;
    color: #3c3c43c7;
}
aside div ol li a:hover {
	color: #3451b2;
}
li.toc-level-1 {
    font-size: 2rem;
    margin-top: 12px;
}
li.toc-level-2 {
    font-size: 1.8rem;
    list-style-type: none;
    margin-top: 12px;
    border-top: 1px solid rgba(2, 48, 71, 0.15);
}
li.toc-level-2 > a {
    display: block;
    padding: 6px 0;
}
li.toc-level-2.has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    cursor: pointer;
}
li.toc-level-2.has-children > a::after {
    content: "▾";
    font-size: 1.2rem;
    color: rgba(2, 48, 71, 0.6);
    transition: transform 0.2s ease;
}
li.toc-level-2.is-collapsed > a::after {
    transform: rotate(-90deg);
}
li.toc-level-2 > ol {
    margin-top: 4px;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(2, 48, 71, 0.1);
    transition: max-height 0.25s ease, opacity 0.25s ease;
    max-height: 1200px;
    overflow: hidden;
    opacity: 1;
}
li.toc-level-2.is-collapsed > ol {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
li.toc-level-2.is-active > a,
li.toc-level-3.is-active > a {
    color: #023047;
}
li.toc-level-3 {
    font-size: 1.6rem;
    list-style-type: none;
}


/*文章内容设置--------------------------------*/
#content {
    width: 40%;
    margin-left: 30%;
    margin-right: 30%;
    min-height: 100vh;
    font-size: 1.6rem;
}

#content li {
	margin-left: 20px;
}
#content .list_item_no_link {
    text-decoration: none;
    color: inherit;
}
h1 {
    font-size: 3rem;
    padding-top: 20px;
    padding-bottom: 20px;
}
h2 {
    font-size: 2.5rem;
    padding-top: 10px;
    padding-bottom: 10px;
}
h3 {
    font-size: 1.6rem;
    padding-top: 10px;
    padding-bottom: 10px;
}
/*段落间距*/
#content p {
    font-size: 1.6rem;
	margin-top: 0.5em; 
    margin-bottom: 0.5em; 
}
div.TagAndDate {
    margin-left: 30%;
    margin-right: 30%;
    width: 40%;
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: Consolas, '微软雅黑', 'Courier New', monospace;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.5);
    font-weight: normal;
    font-size: 1.6rem;
    float: left;
}
div.TagAndDate div.tag {
    float: left;
}
div.TagAndDate div.date {
    float: right;
    margin-right: 20px;
    display: flex;
    gap: 15px; /* 创建时间和更新时间之间的间距 */
    flex-wrap: wrap; /* 允许换行 */
}

/*文章内容(无目录版)设置--------------------------------*/
#content_noTOC {
    font-size: 1.6rem;
    width: 40%;
    margin-left: 30%;
    margin-right: 30%;
    min-height: 100vh;
}
#content_noTOC ul {
    display: flex;
    flex-direction: column;
  }
#content_noTOC li {
    width: calc(100% - 30px);
	margin-left: 20px;
    margin-right: 10px;
}
#content_noTOC .list_item_no_link {
    text-decoration: none;
    color: inherit;
}
#content_noTOC .post_title {
    width: 80%;
    float: left;
}
#content_noTOC .post_date {
    width: 20%;
    float: right;
    text-align: right;
    font-family: Consolas, '微软雅黑', 'Courier New', monospace;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.592);
    font-weight: normal;
    font-size: 1.2rem;
}
/* 代码块设置 */
.code-block,
figure.highlight,
div.highlight,
#content pre,
#content_noTOC pre {
    position: relative;
    padding: 6px 8px;
    margin: 5px 0px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: auto;
    max-height: 600px;
    font-family: Consolas, "Courier New", monospace;
    color: #333;
}
#content pre code,
#content_noTOC pre code,
.code-block code,
figure.highlight code,
div.highlight code {
    background: transparent;
    padding: 0;
    color: inherit;
}
#content code,
#content_noTOC code {
    display: inline;
    background: #f5f5f5;
    color: #000000;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.4rem;
    word-break: break-all;
}
.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 3;
}
.code-copy-btn:hover {
    background-color: #e2e8f0;
}
.code-copy-btn.is-copied {
    background-color: rgba(233, 248, 238, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    border-color: #1a7f37;
}
.code-copy-btn.is-failed {
    background-color: rgba(252, 235, 233, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    border-color: #c0392b;
}
.code-block:hover .code-copy-btn,
.code-block:focus-within .code-copy-btn {
    opacity: 1;
    pointer-events: auto;
}
.code-copy-btn:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

/*主页内容设置--------------------------------*/
#homepage {
    width: 50%;
    margin-left: 20%;
    margin-right: 0%;
    float: left;
}

#homepage div.smallgraytext {
    font-family: Consolas, '黑体', 'Courier New', monospace;
    width: 100%;
    padding-left: 1%;
    padding-top: 1%;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.592);
    font-weight: normal;
    font-size: 1.6rem;
    float: left;
}

#homepage section {
	border-style: none;
	border-radius: 10px;
	float: left;
    width: 48%;
    height: 300px;
    margin: 1%;
	padding: 0px;
    background:rgb(255, 255, 255);
    box-shadow: 0px 0px 5px #888888;
}

#homepage section:hover {
	box-shadow: 2px 2px 2px #888888;
}

#homepage section div.img {
    width: 100%;
    height: 230px;
    overflow: hidden;
}
#homepage section div.img img {
    width: 100%;
    height: 100%;
    float: center;
    object-fit: contain;
}
#homepage section div.img_text {
    height: 50px;
    padding: 10px;
    overflow: hidden;
}

#homepage section div.img_text div.post_title {
    font-family: Consolas, '黑体', 'Courier New', monospace;
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: normal;
    font-size: 2rem;
    width: 100%;
    max-height: 1.5em;
    overflow: hidden;
}

#homepage section div.img_text div.tag {
    font-family: Consolas, '微软雅黑', 'Courier New', monospace;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.716);
    font-weight: normal;
    font-size: 1.2rem;
    float: left;
    overflow: hidden;
}

#homepage section div.img_text div.date {
    font-family: Consolas, '微软雅黑', 'Courier New', monospace;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.592);
    font-weight: normal;
    font-size: 1.2rem;
    float: right;
}



/* 主页底部分页导航 */
#page-nav {
    margin-top: 40px;
    width: 100%;
    float: left;
    text-align: center;
    font-size: 2rem;
}
/* 分页链接样式 */
#page-nav a, #page-nav span {
    color: #000000;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}
/* 悬停效果 */
#page-nav a:hover {
    background-color: #023047;
    color: white;
}
/* 活跃页码样式 */
#page-nav .current {
    background-color: #02304778;
    color: white;
    cursor: default;
    pointer-events: none;
}
/* "上一页" 和 "下一页" 的特殊样式 */
#page-nav .next,
#page-nav .prev {
    font-weight: bold;
}

/*主页右侧联系方式设置--------------------------------*/
#selfie {
    width: 8%;
    margin-left: 2%;
    margin-right: 20%;
    margin-top: 20px;
    float: right;
}
#selfie p {
    padding-top: 10px;
}
#selfie p.head img {
    width: 100%;
    border-radius: 5%;
    box-shadow: 0px 0px 5px #888888;
}
#selfie p.name {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: rgb(2, 48, 71);
}
#selfie p.email {
    text-align: center;
    color:rgb(100, 100, 100)
}
#selfie p {
    text-align: left;
    font-size: 1.2rem;
}
#selfie div.icon{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 2.5rem;
}


/* github仓库按钮 */
.github-button:link, .github-button:visited, .github-button:active {
    display: inline-block;
    background-color: #023047;
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}
.github-button:hover {
    background-color: #444;
}

/*尾注内容设置--------------------------------*/
footer {
    margin-top: 50px;
    float: left;
    width: 100%;
    background-color: #023047; /* Dark background */
    color: #fff; /* White text color */
    padding: 10px 0;
    font-size: 1.4rem;
}
footer .container a {
    color: #fff; /* White link color */
    text-decoration: none;
}
footer .container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
.footer-copyright,
.footer-contact, 
.footer-social{
    margin: 5px 0;
}
.footer-contact a,
.footer-social a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}
.footer-contact a:hover,
.footer-social a:hover {
    color: #8e4caf; /* Change to your preferred color */
}
.footer-social a {
    font-size: 2rem; /* Adjust icon size as needed */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 20%; /* Could be more or less, depending on screen size */
}
.close {
    color: #aaa;
    float: right;
    font-size: 2.8rem;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Twikoo comment area -------------------------------------------------- */
#twikoo,
.twikoo {
    width: 40%;
    margin-left: 30%;
    margin-right: 30%;
    margin-top: 60px;
    background: #ffffff;
    border-top: 1px solid rgba(2, 48, 71, 0.15);
}
.twikoo {
    font-size: 1.6rem;
    color: #023047;
}
.twikoo .tk-header,
.twikoo .tk-submit {
    padding: 12px 0;
    border-bottom: 1px solid rgba(2, 48, 71, 0.08);
}
.twikoo .tk-header:last-of-type,
.twikoo .tk-submit {
    border-bottom: none;
}
.twikoo input,
.twikoo textarea {
    width: 100%;
    border: 1px solid rgba(2, 48, 71, 0.15);
    background: #f7fbff;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 1.5rem;
    color: #023047;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.twikoo textarea {
    min-height: 160px;
}
.twikoo input:focus,
.twikoo textarea:focus {
    border-color: #219ebc;
    box-shadow: 0 0 0 3px rgba(33, 158, 188, 0.2);
    outline: none;
}
.twikoo .tk-submit button {
    background: linear-gradient(135deg, #219ebc, #48cae4);
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
}
.twikoo .tk-submit button:hover {
    transform: translateY(-2px);
}
.twikoo .tk-comments-container {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.twikoo .tk-comment {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fdfdfd;
}
.twikoo .tk-main {
    line-height: 1.7;
    color: rgba(2, 48, 71, 0.85);
}
.twikoo .tk-time {
    font-size: 1.3rem;
    color: rgba(2, 48, 71, 0.5);
}
.twikoo .tk-action a {
    color: #219ebc;
    font-weight: 600;
}
.twikoo .tk-avatar {
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(33, 158, 188, 0.2);
}

@media screen and (max-width: 1024px) {
    #twikoo,
    .twikoo {
        width: 80%;
        margin: 10%;
    }
}


/* 响应式布局 */
@media screen and (max-width: 1200px) {
    html {
        font-size: 125%; /* 放大基础字体 */
    }
    /* 手机端导航栏 */
    nav .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(2, 48, 71, 0.96);
        backdrop-filter: blur(2px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2.4rem;
        padding: 9rem 2.4rem 4rem;
        transform: translateY(-110%);
        transition: transform 0.3s ease-in-out;
        box-shadow: none;
        z-index: 1400;
        overflow-y: auto;
    }
    nav .navbar.nav-active {
        transform: translateY(0);
    }
    body.search-active nav .navbar {
        transform: translateY(0);
        overflow: visible;
    }
    nav .navbar > div {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    nav .navbar a {
        width: 100%;
        text-align: center;
        font-size: 2.4rem;
        padding: 12px 0;
        border-radius: 14px;
        transition: background 0.25s ease;
    }
    nav .navbar a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    nav .navbar #site_search {
        width: clamp(260px, 82vw, 420px);
        max-width: none;
        margin: 0 auto;
    }
    nav .navbar #site_search .form-group {
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
    }
    nav .navbar #site_search input {
        padding: 10px 18px 10px 80px;
        font-size: 1.8rem;
        border-radius: 18px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
        width: 100%;
    }
    nav .navbar #site_search .search-icon {
        left: 18px;
        font-size: 1.8rem;
    }
    nav .navbar #local-search-result {
        position: static;
        transform: none;
        width: 100%;
        min-height: auto;
        max-height: 45vh;
        margin-top: 1.6rem;
        padding: 18px 20px;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(2, 48, 71, 0.22);
        border-radius: 18px;
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
    }
    body.search-active nav .navbar {
        padding: 0;
        justify-content: flex-start;
    }
    body.search-active nav .navbar > div:not(#site_search) {
        opacity: 0;
        pointer-events: none;
    }
    body.search-active nav .navbar #site_search {
        position: fixed;
        top: 12vh;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(280px, 92vw, 520px);
        box-shadow: 0 16px 32px rgba(2, 48, 71, 0.24);
        margin: 0;
        z-index: 1600;
    }
    body.search-active nav .navbar #site_search input {
        font-size: 2rem;
        padding: 14px 24px 14px 80px;
    }
    body.search-active nav .navbar #site_search .search-icon {
        left: 22px;
        font-size: 2rem;
    }
    body.search-active nav .navbar #local-search-result {
        position: fixed;
        top: calc(12vh + 96px);
        transform: translateX(-50%);
        width: 95vh;
        max-height: 95vh;
        margin: 0;
        padding: 20px 24px;
        z-index: 1500;
    }

    /* 手机端导航栏按钮 */
    nav #navbar-toggle {
        display: flex;
        position: fixed;
        top: 1.2rem;
        left: 1.2rem;
        background: rgba(2, 48, 71, 0.94);
        color: #fff;
        padding: 0.8rem 1.4rem;
        border-radius: 999px;
        cursor: pointer;
        font-size: 2.6rem;
        z-index: 1500;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, background 0.3s ease;
    }
    nav #navbar-toggle:hover {
        background: rgba(2, 48, 71, 0.85);
    }
    nav #navbar-toggle a {
        color: inherit;
        text-decoration: none;
        line-height: 1;
    }
    nav #navbar-toggle.nav-hidden {
        transform: translateY(-150%);
    }

    /* 手机端无目录内容post */
    #content_noTOC {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
        margin-top: 4rem; /* 添加顶部边距，避免被导航栏遮挡 */
    }
    
    /* 手机端post */
    div.TagAndDate {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }
    div.TagAndDate div.date {
        flex-direction: column; /* 手机端垂直排列 */
        gap: 5px; /* 减小间距 */
    }
    #content {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
        margin-top: 6rem; /* 添加顶部边距，避免被导航栏遮挡 */
    }

    /* 主页内容区域也需要添加顶部边距 */
    #homepage {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
        margin-top: 6rem; /* 添加顶部边距 */
    }
    /* selfie隐藏 */
    #selfie {
        display: none;
    }
    #homepage section {
        width: 100%;
        height: 400px;
    }
    #homepage section div.img {
        height: 330px;
    }
    /* 目录隐藏 */
    aside div {
        display: none;
    }
    /* 页脚 */
    footer .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}