html {
    -webkit-text-size-adjust: 100%; /* 禁止 iOS 自动调整字体大小 */
    text-size-adjust: 100%;
}

@font-face {
    font-family: 'Fira Code';
    src: url('https://cdn.mooe.ren/font/FiraCode-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fira Code';
    src: url('https://cdn.mooe.ren/font/FiraCode-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --width: 780px;
    --font-scale: 1.1rem;
    --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;
    --main-font: sans-serif, serif;
    --heading-font: sans-serif, serif;

    /* 新增深色模式默认变量 */
    --table-cell-color: #333;
    --table-border-color: #ddd;
    --tag-bg-color: #f0f0f0;
    --tag-text-color: #555;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overscroll-behavior-y: none;
}

body {
    height: 100%;
    margin: auto;
    max-width: var(--width);
    padding-top: 70px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--main-font);
    font-size: var(--font-scale);
    font-weight: 400;
    line-height: 1.7;
    text-align: left;
    word-break: break-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

main,
main p {
    box-sizing: border-box;
    word-break: break-all;
}

h1,
h2,
h3,
h4,
h5,
h6,
.post-header h1,
.friends-header h1,
.friend-name,
.friends-note h3 {
    color: var(--heading-color);
    display: inherit;
    font-family: var(--heading-font);
}

strong,
b {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

time,
.post-header a,
.post-header p,
.intro {
    color: var(--gray-color);
    font-family: 'Fira Code', monospace, sans-serif, serif;
    font-style: normal;
    text-decoration: none !important;
    margin: 0;
}

#search-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

#search-button:hover {
    color: #3b82f6;
}

#search-button svg {
    transition: color 0.3s ease;
}

.search input {
    width: 100%;
    color: #333;
    padding: 0.6rem 0;
    border: none;
    background: none;
    border-radius: 0;
    border-bottom: 3px solid #555;
    margin-bottom: 3rem;
    font-size: 1.3rem;
    font-family: var(--main-font);
}

.search input:focus {
    outline: none;
}

.protected input {
    width: 100%;
    color: #333;
    padding: 0.6rem 0;
    border: none;
    background: none;
    border-radius: 0;
    border-bottom: 3px solid #555;
    margin-bottom: 3rem;
    font-size: 1.3rem;
    font-family: var(--main-font);
}

.protected input:focus {
    outline: none;
}

a {
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

a:hover,
.nav a:hover,
.friends-note a:hover {
    color: var(--gray-color);
    text-decoration: underline;
}
.nav a:hover {
    color: var(--link-color);
}
.title:hover {
    color: var(--text-color);
    text-decoration: none;
}

/* ========== 分页独立样式（绝对居中版） ========== */
.custom-pagination {
  margin: 0 0 5px; 
  padding: 0;
  display: block;
}

.custom-pagination .post-pagination {
  margin: 0;
  padding: 0;
}
.custom-pagination .post-pagination ol.page-navigator {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.custom-pagination .post-pagination ol.page-navigator li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  padding: 0;
  margin: 0;
}

.custom-pagination .post-pagination ol.page-navigator li a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 4px;
  text-decoration: none !important;
  background: #f8f8f8;
  color: #555;
  border: 1px solid #e0e0e0;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  font-weight: normal;
  font-family: inherit;
}

.custom-pagination .post-pagination ol.page-navigator li.current a {
  background: #333;
  color: #fff;
  border: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.custom-pagination .post-pagination ol.page-navigator li a:hover {
  background: #444;
  color: #fff !important;
  text-decoration: none !important;
  border-color: #444;
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

.custom-pagination .post-pagination ol.page-navigator li.next a,
.custom-pagination .post-pagination ol.page-navigator li.prev a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

main a,
.friends-note a {
    text-decoration: underline;
}

/* ========== 页脚基础样式 ========== */
footer,
footer a {
    color: #666666;
    font-size: 16px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.3s;
    font-family: sans-serif;
}

.footer-container {
    max-width: 780px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: inherit;
}

.footer-divider {
    border-top: 1px solid #e5e7eb;
    width: 100%;
    margin: 10px 0 5px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 电脑端默认样式：让文字之间稍微有点间距 */
.footer-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px; /* 文字项之间的间距 */
}

/* 图标组样式 */
.footer-right-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-rss-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    line-height: 1;
    text-decoration: none !important;
    margin-top: 3.7px; 
}

.footer-rss-btn svg {
    width: 21px; 
    height: 21px;
    fill: none;
    stroke: currentColor;
}

.footer-rss-btn:hover {
    color: #000;
    cursor: pointer;
}

.typecho-logo {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
}

.footer-logo {
    display: inline-block;
}

/* ========== 页脚深色模式 ========== */
@media (prefers-color-scheme: dark) {
    .footer-rss-btn {
        color: #fff;
    }
    .footer-rss-btn:hover {
        color: #fff;
    }
}

/* ========== 主体内容布局 ========== */
.main-container {
    padding-top: 70px;
}

.blog-posts {
    padding: 0;
}

ul.posts {
    list-style-type: none;
    padding: unset;
}

ul.posts li {
    display: flex;
    margin: 3px 0;
}

ul.posts li span {
    flex: 0 0 115px;
}

ul.posts li a:visited {
    color: var(--visited-color);
}

.post-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.post-item a {
    flex: 1;
    text-decoration: none;
}

.post-item time {
    --main-font: 'Fira Code', monospace;
    margin-left: 10px;
    white-space: nowrap;
}

.post-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 0.9em;
    border-bottom: #ccc 1px solid;
}

.post-header h1 {
    margin: 0;
    font-size: 1.5em;
}

.site-title,
.post-title {
    transition: opacity 0.3s ease;
    font-family: sans-serif;
}

.post-title {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scrolled .site-title {
    opacity: 0;
}

.scrolled .post-title {
    opacity: 1;
    pointer-events: auto;
}

.tags {
    display: inline-block;
    padding: 0px 6px;
    margin-top: 4px;
    border-radius: 4px;
    color: var(--tag-text-color);
    background-color: var(--tag-bg-color);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    font-family: var(--main-font);
}

.tags a {
    text-decoration: none;
    color: var(--tag-text-color);
}

.tags:hover {
    background-color: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.tags:active {
    background-color: #d0d0d0;
}

.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.post-header-tag {
    display: inline-block;
    padding: 0px 6px;
    margin-top: 4px;
    border-radius: 4px;
    color: var(--tag-text-color);
    background-color: var(--tag-bg-color);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    font-family: var(--main-font);
}

.post-content img {
    border-radius: 4px;
}

.post-cover {
    width: 100%;
    margin-bottom: 20px;
}

.post-header-tag:hover {
    background-color: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.post-header-tag:active {
    background-color: #d0d0d0;
}

pre,
code {
    font-family: 'Fira Code', monospace, sans-serif, serif !important;
    font-size: 0.9em;
    color: var(--code-color);
    background-color: var(--code-background-color);
    border-radius: 4px;
    white-space: pre-wrap;
}

pre {
    padding: 5px 12px;
    overflow: auto;
}

code {
    padding: 2px 3px;
}

pre code {
    padding: 3px 0px;
}

blockquote {
    margin: 0 0 15px 0;
    padding: 3px 10px;
    border-left: 5px solid var(--heading-color);
    background: #F9F9F9;
    border-radius: 4px;
    color: var(--blockquote-color);
    font-weight: bold;
    font-family: var(--main-font);
}

blockquote p {
    margin: 0;
}

blockquote footer {
    text-align: right;
    font-size: 0.9em;
    color: #777;
}

table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--table-border-color);
    color: var(--table-cell-color);
    transition: background-color 0.3s, transform 0.3s;
    font-family: var(--main-font);
}

th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.friends-page {
    padding: 0px 0 0px 0;
}

.friends-header {
    margin-bottom: 30px;
    text-align: center;
}

.friends-header p {
    font-size: 1em;
    color: var(--gray-color);
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 0px;
}

.friend-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.friend-card:hover {
    border-color: #ddd;
}

.friend-card a {
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}

.friend-content {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #F5F5F5;
}

.friend-avatar {
    flex: 0 0 50px;
    height: 50px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    color: var(--text-color);
    font-size: 1em;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-description {
    padding: 15px 15px 15px;
    margin: 0;
    color: var(--gray-color);
    font-size: 0.9em;
    line-height: 1.4;
}

.no-friends {
    padding: 30px 0;
    text-align: center;
    color: var(--gray-color);
}

.friends-note {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.9em;
}

.friends-note1 {
    margin-top: -40px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.9em;
}

.friends-note ul {
    margin: 10px 0;
    padding-left: 15px;
}

.friends-note li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.search-container {
    display: flex;
    align-items: center;
}

#search-button {
    padding: 8px;
    background: none;
    border: none;
    margin-top: 0px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.search-result-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.search-result-item h3 a {
    color: var(--link-color);
    text-decoration: none;
}

.search-result-item p {
    margin: 0;
    color: var(--gray-color);
    font-size: 14px;
    line-height: 1.5;
}

.search-empty,
.search-loading,
.search-error {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-color);
}

mark {
    padding: 2px 4px;
    background-color: #ffeb3b;
    border-radius: 4px;
}

hr {
    border: 0;
    border-top: 1px dashed;
}

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

sub {
    font-size: 12px;
    color: #777;
}

/* ========== 媒体查询合并+规范 ========== */
@media (max-width: 779px) {
    body {
        padding: 0 20px;
    }
    
    ul.blog-posts li a {
        margin-left: 0;
        word-break: break-all;
    }
    
    th,
    td {
        display: block;
        width: 100%;
    }
    
    th {
        position: static;
    }
    
    tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .site-title,
    .post-title {
        position: static;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .scrolled .site-title {
        opacity: 1 !important;
    }
}

@media (min-width: 780px) {
    body {
        padding: 0;
    }
}

@media (max-width: 768px) {

    .friends-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
    }
    
    .header-content {
        text-align: center;
    }
    
    .header-content .nav {
        margin: 15px 0;
        order: 2;
    }
    
    .header-content .nav ul {
        justify-content: center;
    }
    
    .header-content .search-container {
        margin: 0;
        order: 3;
    }
    
    .nav li {
        margin: 0 10px;
    }
    
    .post-title {
        display: none;
    }
    
    /* 页脚小屏适配：强制竖排居中 */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .footer-left {
        flex-direction: column;
        justify-content: center;
        gap: 5px; /* 备案号每一行的上下间距 */
    }

    .footer-right-icons {
        justify-content: center;
    }

    .footer-rss-btn {
    margin-top: 3px; 
    }
}

@media (max-width: 480px) {
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .friend-content {
        padding: 12px;
    }
    
    .friend-avatar {
        flex: 0 0 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .friend-avatar img,
    .avatar-placeholder {
        width: 35px;
        height: 35px;
    }
    
    .friend-name {
        font-size: 1em;
    }
    
    .friend-description {
        padding: 12px 12px 12px;
        font-size: 0.85em;
    }
}

/* ========== 合并所有深色模式样式 ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --heading-color: #f0f0f0;
        --text-color: #e0e0e0;
        --link-color: #e0e0e0;
        --visited-color: #c0c0c0;
        --code-background-color: #2d2d2d;
        --code-color: #f0f0f0;
        --blockquote-color: #d0d0d0;
        --gray-color: #aaa;
        --table-cell-color: #e0e0e0;
        --table-border-color: #444;
        --tag-bg-color: #3a3a3a;
        --tag-text-color: #ddd;
    }

    #header {
        background-color: #00000080;
    }

    .friend-card {
        background: #2d2d2d;
        border-color: #3d3d3d;
    }
    .friend-card:hover {
        border-color: #4d4d4d;
    }
    .friend-content {
        background-color: #252525;
    }
    .avatar-placeholder {
        background: #3d3d3d;
        color: var(--text-color);
    }
    .friends-note {
        background: #252525;
    }
    .friends-note1 {
        background: #252525;
    }

    blockquote {
        background: #2d2d2d;
    }

    th {
        background-color: #2a2a2a;
    }
    td {
        background-color: #222222;
    }

    .tags:hover,
    .post-header-tag:hover {
        background-color: #4a4a4a;
        color: #fff;
    }
    .tags:active,
    .post-header-tag:active {
        background-color: #555;
    }
    .tags a {
        color: #ffffff;
    }

    .search input,
    .protected input {
        border-bottom-color: #777;
        color: var(--text-color);
    }

    .footer-divider {
        border-top-color: #333;
    }

    mark {
        background-color: #5d4037;
        color: #ffccbc;
    }
    hr {
        border-top-color: #444;
    }

    #search-button:hover {
        color: #93c5fd;
    }

    .typecho-logo,
    .footer-logo img {
        filter: invert(1);
        transition: filter 0.3s ease;
    }

    /* 分页深色模式 */
    .custom-pagination .post-pagination ol.page-navigator li a {
        background: #2d2d2d;
        color: #ccc;
        border: 1px solid #444;
    }
    .custom-pagination .post-pagination ol.page-navigator li.current a {
        background: #444;
        color: #e5e5e5;
        border: none;
    }
    .custom-pagination .post-pagination ol.page-navigator li a:hover {
        background: #555;
        color: #e5e5e5 !important;
        border-color: #555;
    }
}

/* ========== 头部导航样式 ========== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    background-color: #00000008;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: var(--width);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    flex: 1;
    margin: 0;
    font-size: 1em;
}

.header-content .nav {
    order: 2;
    position: relative;
    display: flex;
    align-items: center;
}

.header-content .search-container {
    order: 3;
    margin-left: 10px;
}

/* 汉堡菜单按钮 */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
}

.mobile-nav-toggle svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-toggle:active svg {
    transform: scale(0.85);
}

/* 导航列表基础样式 */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-list li {
    margin: 0;
}

.nav-list li a {
    display: block;
    padding: 20px 0;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: sans-serif;
    white-space: nowrap;
    text-decoration: none !important;
}

.nav-list li a:not(.active):hover {
    color: var(--gray-color);  /* 这里使用了你主题自带的灰色变量 */
    /* 如果你想变成蓝色，可以改成: color: #3b82f6; */
}

.nav-list li a.active {
    font-weight: bold;
}

/* ========== 小屏导航样式优化 (顶栏固定 + 菜单居中版) ========== */
@media (max-width: 768px) {
    #header {
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
        overflow: hidden; 
    }

    #header.menu-open {
        height: 100vh !important; 
    }

    #header.menu-open .header-content {
        height: 50px !important; 
        align-items: center;
    }

    .nav-list {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); 
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        
        width: 100%;
        height: auto;
        
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease 0.1s;
        z-index: 999;
    }

    #header.menu-open .nav-list {
        opacity: 1;
        visibility: visible;
    }

    .nav-list li a {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text-color);
        padding: 10px 30px;
        border-radius: 50px;
        letter-spacing: 2px;
        text-decoration: none !important;
    }
    
    .nav-list li a:active {
        background-color: rgba(0,0,0,0.05); 
    }

    .mobile-nav-toggle {
        display: block;
        position: relative;
        z-index: 10001;
        padding: 0.5rem;
        cursor: pointer;
        background: transparent;
        border: none;
        outline: none;
    }

    .nav-list li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    #header.menu-open .nav-list li {
        opacity: 1;
        transform: translateY(0);
    }

    #header.menu-open .nav-list li:nth-child(1) { transition-delay: 0.10s; }
    #header.menu-open .nav-list li:nth-child(2) { transition-delay: 0.15s; }
    #header.menu-open .nav-list li:nth-child(3) { transition-delay: 0.20s; }
    #header.menu-open .nav-list li:nth-child(4) { transition-delay: 0.25s; }
    #header.menu-open .nav-list li:nth-child(5) { transition-delay: 0.30s; }
    #header.menu-open .nav-list li:nth-child(6) { transition-delay: 0.35s; }
}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .nav-list li a:active {
        background-color: rgba(255,255,255,0.1);
    }
}

/* ========== 搜索弹窗 ========== */
.search-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); 
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.search-modal.show {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-modal-content {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 90%;
    max-width: 600px;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.search-modal.show .search-modal-content {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.search-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
}

#search-modal-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    outline: none;
    font-family: var(--main-font);
}

#search-modal-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.search-modal-results {
    padding: 20px 25px;
    color: var(--gray-color);
    font-size: 0.95rem;
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
}

@media (prefers-color-scheme: dark) {
    .search-modal-content {
        background-color: #2d2d2d;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255,255,255,0.1);
    }
    .search-modal-header {
        border-bottom-color: rgba(255,255,255,0.1);
    }
    #search-modal-input::placeholder {
        color: #666;
    }
}

@media (max-width: 768px) {
    .search-modal-content {
        top: 15%;
        width: 92%;
    }
    #search-modal-input {
        font-size: 1.2rem;
    }
}

.lock-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    font-size: 0.85em;
    position: relative;
    top: -2px;
    opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
    .lock-icon {
        opacity: 0.9;
    }
}

h1 .encrypt-label {
    font-size: 0.6em;
    color: #ff4d4f;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -3px;
    font-weight: normal;
}

@media (prefers-color-scheme: dark) {
    h1 .encrypt-label {
        color: #ff7875;
    }
}

/* 强制去除页脚左侧备案链接的下划线和边框 */
.footer-left .footer-item a,
.footer-left .footer-item a:hover,
.footer-left .footer-item a:visited,
.footer-left .footer-item a:active {
    text-decoration: none !important;  /* 核心：强制无下划线 */
    border-bottom: none !important;    /* 防止部分主题用边框模拟下划线 */
    color: inherit;                    /* 颜色跟随父级，避免变成蓝色链接 */
    cursor: pointer;                   /* 保持手型光标 */
}

@media (max-width: 768px) {
    /* 1. 强制覆盖字号变量 */
    :root {
        /* 原来是 1.1rem，手机上我们可以改成 1.2rem 甚至 18px */
        /* 稍微调大一点点，抵消“字体显瘦”带来的视觉误差 */
        --font-scale: 18px; 
    }

    /* 2. 针对正文优化阅读体验 */
    body {
        /* 增加字重：把字体搞“黑”一点，看起来就不虚了 */
        font-weight: 500; 
        
        /* 增加行高：手机屏幕窄，行高大一点读起来不累 */
        line-height: 1.8;
        
        /* 强制指定字体渲染方式，让字体看起来更锐利 */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* 3. (可选) 如果觉得标题也小了，可以单独把标题加大 */
    h1, h2, h3, .post-title {
        font-weight: 700; /* 标题加粗 */
        letter-spacing: 0.5px; /* 字间距稍微拉开一点点 */
    }
}