/**
 * 模板样式表
 */
:root {
    /* 搜索栏样式 */
.search-header {
    background: #eeeeee ;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    /*border-radius: var(--radius-lg);*/
}

.search-title {
    font-size: 2.5rem;
    /*font-weight: bold;*/
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: black;
    opacity: 0.9;
}

.search-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: black;
}

.search-box-container {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    padding-right: 100px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.search-button {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
        background-color: #ff7992;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: calc(100% - 6px);
    display: flex;
    align-items: center;
    box-shadow: none;
}

.search-button:hover {
    background-color: #ff7992;
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 768px) {
    .search-title {
        font-size: 1.5rem;
    }
    .search-box-container {
        flex-direction: row;
        gap: 0;
    }
    .search-input {
        border-radius: 25px;
        padding: 10px 16px;
        padding-right: 80px;
        font-size: 0.9rem;
    }
    .search-button {
        position: absolute;
        right: 2px;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 23px;
        width: auto;
        min-width: 60px;
        font-size: 0.8rem;
        padding: 5px 15px;
        height: calc(100% - 4px);
        margin: 0;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 8px 14px;
        padding-right: 70px;
        font-size: 0.85rem;
    }
    .search-button {
        
        min-width: 55px;
    }
}

/* 基础变量 - 布局 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;
    --container-max-width: 1200px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 20px;

    /* 基础变量 - 颜色 */
    --color-primary: #ff4d6d; /* 主色调 - 浪漫粉 */
    --color-primary-light: #ff758f; /* 浅粉色 */
    --color-primary-dark: #c9184a; /* 深粉色 */
    --color-secondary: #f9c74f; /* 辅助色 - 暖黄色 */
    --color-text: #334155; /* 主要文本 */
    --color-text-light: #64748b; /* 次要文本 */
    --color-text-lighter: #94a3b8; /* 提示文本 */
    --color-background: #f8fafc; /* 页面背景 */
    --color-card: #ffffff; /* 卡片背景 */
    --color-border: #e2e8f0; /* 边框颜色 */
    --color-divider: #cbd5e1; /* 分割线颜色 */
    --color-success: #10b981; /* 成功色 */
    --color-warning: #f59e0b; /* 警告色 */
    --color-danger: #ef4444; /* 危险色 */

    /* 组件变量 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* 表单和按钮 */
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-text: #334155;
    --input-focus: #93c5fd;
    --button-primary-bg: var(--color-primary);
    --button-primary-text: #ffffff;
    --button-secondary-bg: #f1f5f9;
    --button-secondary-text: var(--color-text);
}

/* 深色模式变量覆盖 */
[data-theme="dark"] {
    --color-text: #e2e8f0;
    --color-text-light: #94a3b8;
    --color-text-lighter: #64748b;
    --color-background: #0f172a;
    --color-card: #1e293b;
    --color-border: #334155;
    --color-divider: #334155;
    --button-secondary-bg: #334155;
    --button-secondary-text: #e2e8f0;
    --input-bg: #334155;
    --input-border: #475569;
    --input-text: #e2e8f0;
}

/* 夜间模式下的搜索栏样式 */
[data-theme="dark"] .search-header {
    background: #1e293b;
    color: var(--color-text);
}

[data-theme="dark"] .search-title {
    color: var(--color-text);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .search-subtitle {
    color: var(--color-text-light);
}

[data-theme="dark"] .search-input {
    background-color: var(--input-bg);
    color: var(--input-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] .search-input::placeholder {
    color: var(--color-text-lighter);
}

[data-theme="dark"] .search-button {
    background-color: var(--color-primary);
    color: #ffffff;
}

body {
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-background);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: var(--transition-normal);
}

/* 其他样式 */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 400;
}

p {
    line-height: 2;
    margin: 30px 0;
}

a {
    color: var(--color-primary);
    transition: var(--transition-fast);
    text-decoration: none;
    font-weight: 500;
}

a:focus, a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 表单输入框样式 */
input, textarea, select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 发布表白弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-content h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--color-text);
}

.modal-content input,
.modal-content textarea {
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 77, 109, 0.2);
}

.close {
    color: var(--color-text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--color-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 600px) {
    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%;
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

/* 下拉选择框样式 */
select {
    background-color: var(--selectBgColor);
    border: 1px solid var(--selectBorderColor);
    color: var(--selectTextColor);
    padding: 10px;
    border-radius: var(--marRadius);
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* 分割线样式 */
hr {
    border: none;
    border-top: 1px solid var(--dividerColor);
    margin: 20px 0;
}

.small {
    font-size: 12px;
}

.m-r-3 {
    margin-right: 3px;
}

.m-r-5 {
    margin-right: 5px;
}

.m-r-10 {
    margin-right: 10px;
}

/* 定义所有元素的 width =（border+padding），方便后续计算 */
* {
    box-sizing: border-box
}

img {
    max-width: 100%
}

hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1)
}

blockquote {
    font-style: italic;
    color: #868e96
}

input, textarea {
    font-family: inherit;
    color: #848797;
    outline: none
}

input[type="submit"] {
    cursor: pointer
}

textarea {
    padding: 1rem 0.75rem
}

footer {
    margin-top: 60px;
    background-color: var(--conBgcolor);
}

footer .list-inline {
    margin: 0;
    padding: 0
}

footer .copyright {
    font-size: 14px;
    margin-bottom: 0;
    text-align: center
}

/* 无样式列表  */
.unstyle-li {
    padding-left: 0px;
    list-style: none;
    margin-block: 8px;
    font-size: medium
}

/* 卡片属性。页面以卡片形式组成，这里直接配置，让整个页面的卡片有统一的内边距。 */
.card-padding {
    padding: 1.25rem
}

/* 布局
   行（row）上选择flex布局，并设置允许换行（wrap）
   列（col）则需要通过根据大小屏分别配置，这是网页最重要的地方，是整个网页的骨架
---------------------------------------------------*/
.row {
    display: flex;
    flex-wrap: wrap;
}

/* 大屏下的列 */
@media (min-width: 768px) {
    .column-big {
        padding-right: 10px;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* 工具栏列 */
    .column-small {
        font-size: medium;
        padding-left: 20px;
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%
    }

    /* 文章发布时间和文章阅读评论数这两列的配置 */
    .info-row {
        padding: 1rem !important
    }

    .log-info {
        flex: 0 0 66.666667%;
        max-width: 66.666667%
    }

    .log-count {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        text-align: right
    }
}

/* 小屏下的列 */
@media (max-width: 767px) {

    .column-big {
        padding-right: 8px;
        padding-left: 8px;
        width: 100%
    }

    /* 工具栏列 */
    .column-small {
        padding-right: 8px;
        padding-left: 8px;
        width: 100%
    }

    /* 文章发布时间和文章阅读评论数两列的配置 */
    .log-info {
        flex: 0 0 60%;
        max-width: 60%
    }

    .log-count {
        white-space: nowrap;
        flex: 0 0 40%;
        max-width: 40%;
        text-align: right
    }
}

/* 最外层整体容器的响应式配置，即 container 配置
---------------------------------------------------*/
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-right: auto;
    margin-left: auto;
    padding: 0 var(--spacing-md);
}

/* 移除冗余的媒体查询，使用CSS原生容器查询或简化断点 */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* 设置 container 在小型屏幕上的内外边距 ，使其更符合小型屏幕的观感体验 */
@media (min-width: 768px) {
    .container {
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto
    }
}

/* 在绝对定位情况下，主边栏的全宽(可供一些位于主边栏的难以计算宽度的对象使用)
---------------------------------------------------*/
@media (min-width: 1px) {
    .rea-width {
        width: calc(100% - 18px)
    }
}

@media (min-width: 576px) {
    .rea-width {
        width: 524px
    }
}

@media (min-width: 768px) {
    .rea-width {
        width: 450px
    }
}

@media (min-width: 992px) {
    .rea-width {
        width: 609px
    }
}

@media (min-width: 1201px) {
    .rea-width {
        width: 730px
    }
}

/* 博客页面底部（footer）没有空隙（即防止 footer 在页面中间位置出现的诡异现象）
---------------------------------------------------*/
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.blog-header {
    flex: 0 0 auto;
}

.blog-container {
    flex: 1 0 auto;
}

.blog-footer {
    flex: 0 0 auto;
}

/* 博客头部属性的配置
---------------------------------------------------*/
.blog-header {
    /*margin-bottom: var(--spacing-xl);*/
    background-color: var(--color-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #f86f6f 0%, #53cac1 100%);
}

.blog-header-c {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-md);
    position: relative;
}

/* 固定位置的头部元素 */
.blog-header-title {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    z-index: 1;
    color: #fff;
    white-space: nowrap;
}

#publishBtn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
}

.blog-header-nav {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* 移除原有的flex布局 */
.blog-header-c > *:not(.blog-header-title):not(#publishBtn):not(.blog-header-nav) {
    display: none;
}

/* 博客标题和副标题 */
.blog-header-title {
    font-size: 20px;
    z-index: 1;
    color: #fff;
}

.blog-header-subtitle {
    font-size: small;
    letter-spacing: 0.2rem;
    position: absolute;
    padding-top: 48px;
    z-index: 0
}

/* 导航链接的上下内边距（padding-block）要大，可使光标离开字符后一段距离依然能唤起子导航标签
 * 另外li标签的列表项标记为空 （list-style: none） */
.nav-link {
    padding: 1rem 0.5rem 1rem 0.5rem;
        color: #ffffff;
}

.list-menu {
    list-style: none
}

/* 导航列表的响应式配置
   在不同大小的屏幕上，导航菜单会有不同的样式。
   样式根据屏幕大小分为两种：767px以上，767px以下
---------------------------------------------------*/
/* 大屏幕 */
@media (min-width: 768px) {
    .nav-list {
        display: flex;
        padding-block: 4.5px;
        text-align: center
    }

    /* 大屏幕列表样式 */
    .list-menu .list-menu {
        border-bottom: 1px solid #f1f1f1;
    }

    .list-menu:last-child {
        border-bottom: unset
    }

    .blog-header-toggle {
        display: none
    }
}

/* 小屏幕 - 完全与PC端一致的样式 */
@media (max-width: 767px) {
    .header {
        padding: 1rem 0;
        margin-bottom: 30px !important;
        height: auto;
    }

    .blog-header-c {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        padding: 0 15px;
        max-width: 100%;
    }

    .blog-header-title {
        position: static;
        left: auto;
        top: auto;
        margin-right: 20px;
        white-space: nowrap;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .blog-header-subtitle {
        padding-top: 0;
        left: auto;
        top: auto;
        margin-right: 20px;
        white-space: nowrap;
        font-size: 0.875rem;
        opacity: 0.8;
    }

    /* 隐藏汉堡菜单按钮 */
    .blog-header-toggle {
        display: none !important;
    }

    /* 显示导航栏，保持水平布局 */
    .blog-header-nav {
        display: block !important;
        position: static;
        width: auto;
        background: transparent;
        top: auto;
        left: auto;
        margin-left: auto;
    }

    /* 调整导航列表样式 */
    .nav-list {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .list-menu {
        line-height: normal;
        margin: 0;
        padding: 0;
    }

    /* 确保发布按钮也显示 */
    #publishBtn {
        margin-left: 20px;
        white-space: nowrap;
    }
}

/* 超小屏幕适配 - 保持固定位置 */
@media (max-width: 480px) {
    .blog-header-c {
        position: relative;
        height: 72px;
        padding: 0 8px;
    }
    
    .blog-header-title {
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    #publishBtn {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 0.8rem;
        padding: 5px 10px;
        white-space: nowrap;
    }
    
    .blog-header-nav {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-list {
        gap: 10px;
    }
}

/* 大屏幕下的下拉框样式，这里设置的透明度为0（opacity: 0.0;）。但小屏状态下
 * 没有隐藏，所以下面会在小屏部分，即767px及以下的部分对这个属性覆盖。 */
.dropdown-menus {
    background: white;
    opacity: 0.0;
    z-index: 4;
    list-style: none;
    margin-left: -26px;
    position: absolute;
    padding-left: 0px;
    border: 1px solid var(--borderColor);
    border-radius: 4px;
    top: -3000px;
    margin-bottom: -34px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02)
}

.dropdown-menus .list-menu {
    padding: 6px
}

/* 移动端保持固定位置布局 */
@media all and (max-width: 767px) {
    .blog-header-c {
        position: relative;
        height: 72px;
        padding: 0 10px;
    }
    
    .blog-header-title {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.25rem;
        white-space: nowrap;
    }
    
    #publishBtn {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 0.875rem;
        padding: 6px 12px;
        white-space: nowrap;
    }
    
    .blog-header-nav {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 0;
        padding: 0;
        text-align: left;
        letter-spacing: normal;
        line-height: normal;
    }

    .list-menu {
        display: inline-block;
        margin: 0;
        padding: 0;
        line-height: normal;
    }

    .dropdown-menus {
        opacity: 0.95;
        position: absolute;
        top: 56px;
        left: 0;
        background: var(--color-card);
        border: 1px solid var(--color-border);
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
}

/* 下拉框的样式 */
.list-menu:hover .dropdown-menus {
    opacity: 0.95;
    top: 56px;
    transition: opacity 0.2s
}

/* 列出文章（或文章条目）页
---------------------------------------------------*/
/* 卡片上的文章发布时间这部分的属性 */
.info-row {
    padding: 1rem;
    padding-bottom: 8px !important
}

/* 文章阅读页
---------------------------------------------------*/
/* 文章作者、时间等信息下hr水平线的属性，设置margin-bottom为四级 */
.bottom-5 {
    margin-bottom: 1.5rem !important
}

/* 标签的属性，设置margin-top为三级 */
.top-5, .mtop-5 {
    margin-top: 3rem !important
}

/* 验证码模态窗的配置 */
.modal-dialog {
    display: none;
    background-color: var(--conBgcolor);
    border-radius: var(--marRadius);
    border: 1px solid var(--borderColor);
    position: fixed;
    z-index: 100;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    max-width: 90%;
    padding: 20px;
}

/* 验证码模态窗的按钮 */
.btn {
        font-weight: 600;
    border: none;
    transition: background-color 0.3s;
    display: inline-block;
    margin: 0 2px;
    padding: 7px 20px;
    background-image: linear-gradient(200deg, #ff758f, #ffacbc);
    color: #fff;
}

.btn:hover {
    color: #ffffff
}

.modal-header {
    text-align: center;
    border-bottom: 1px solid var(--dividerColor);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.modal-content img {
    display: block;
    margin: 0 auto 20px;
    height: 40px;
}

.modal-content input[name="imgcode"] {
    padding: 10px;
    margin: 10px 0;
    width: calc(100% - 20px);
    border: 1px solid var(--borderColor);
    border-radius: var(--marRadius);
    box-sizing: border-box;
}

.modal-content .modal-footer {
    text-align: center;
    padding-top: 10px;
}

/* 弹出验证码模态窗后，屏幕背景要锁住 */
.lock-screen {
    display: none;
    z-index: 99;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
}

/* 验证码的点击样式 */
#captcha {
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

/* 禁止滚动 */
.scroll-fix {
    overflow: hidden
}

/* 阴影
   文章列出页的文章摘要卡片和边栏组件卡的阴影和鼠标浮动后的阴影
---------------------------------------------------*/
.shadow-theme {
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    background-color: var(--color-card);
    transition: box-shadow var(--transition-normal);
}

.shadow-theme:hover {
    box-shadow: var(--shadow-lg);
}

/* 日历样式
---------------------------------------------------*/
/* 日历的加载样式，防止翻页造成太大的视觉变化 */
.cal_loading {
    margin-bottom: 243px;
}

#calendar {
    color: #212529;
}

.calendartop {
    letter-spacing: 3px;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    color: #000;
}

.calendartop a {
    font-weight: 100 !important;
}

.calendar {
    margin-bottom: -10px;
    width: 100%;
}

.calendar td {
    text-align: center;
    padding: 1px 10px;
    line-height: 1.6;
}

.calendar td a:link {
    color: #000;
    font-weight: bolder;
    text-decoration: underline;
}

.calendar td a:hover {
    color: #886353;
    text-decoration: none;
}

.calendar tr {
    height: 40px;
}

.day {
    color: #212529;
    background: #eaeaea;
    border-radius: var(--marRadius);
}

.sun {
    color: #333;
}

.week {
    color: #333;
}

/* 黑夜模式下的日历样式 */
[data-theme="dark"] #calendar {
    color: #cfcfcf;
}

[data-theme="dark"] .calendartop {
    color: #cfcfcf;
}

[data-theme="dark"] .calendar td {
    color: #cfcfcf;
}

[data-theme="dark"] .calendar td a:link {
    color: #cfcfcf;
}

[data-theme="dark"] .calendar td a:hover {
    color: #f6607d;
}

[data-theme="dark"] .day {
    color: #cfcfcf;
    background: #3a3a3a;
    border-radius: var(--marRadius);
}

[data-theme="dark"] .sun {
    color: #a8a8a8;
}

[data-theme="dark"] .week {
    color: #a8a8a8;
}


/* 侧边栏卡片样式
---------------------------------------------------*/
/* 卡片的内边距和外边距 */
.side-bar {
    font-size: 14px;
}

.side-bar .widget {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    background-color: var(--color-card);
    box-shadow: var(--shadow-sm);
}

/* 边栏组件的标题 */
.side-bar h3 {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.side-bar .widget li {
    position: relative;
    color: var(--color-text);
    line-height: 1.8;
    padding: 4px 0;
}

.side-bar .widget a {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.side-bar .widget a:hover {
    transform: translateX(3px);
}

/* 筛选标签样式
--------------------------------------------------*/
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--color-primary-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 25px;
}

/* 响应式筛选按钮 */
@media (max-width: 768px) {
    .filter-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 分页按钮样式 - 美化版
--------------------------------------------------*/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    list-style: none;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    margin: 0;
}

/* 当前页码样式 */
.pagination span {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}

/* 普通页码样式 */
.pagination a {
    color: var(--color-text);
    background: var(--color-card);
    border: 1px solid var(--color-border);
}

/* 悬停效果 */
.pagination a:hover {
    background: var(--color-primary-light);
    color: white;
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 77, 109, 0.2);
    text-decoration: none;
}

/* 禁用状态（如果有） */
.pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .pagination {
        gap: 5px;
    }
    .pagination a,
    .pagination span {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

#pagenavi {
    text-align: center;
    font-size: 14px
}

#pagenavi span {
    padding: 4.5px 9px 4px 9px;
    margin: 0 5px;
    line-height: 3;
    border-radius: var(--marRadius);
    color: #000
}

#pagenavi a {
    color: #c0bcbc;
    padding: 4.5px 9px 4px 9px;
    font-family: serif, monospace;
    margin: 0 5px;
    line-height: 3;
    border-radius: var(--marRadius)
}

/* 评论样式
---------------------------------------------------*/
/* 发表评论表单样式 */
@media (min-width: 768px) {
    .commentform {
        height: 210px
    }
}

#comments {
    margin-top: 80px;
}

.comment-name {
    float: left;
    border-bottom-left-radius: 10px !important
}

.comment-mail {
    border-right: 1px var(--borderColor) solid !important;
    border-bottom-right-radius: 10px !important
}

.form-controls {
    display: block;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--borderColor);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-in-out
}

.comment-info {
    width: auto
}

.com_control {
    display: block;
    border-radius: 0px;
    border: 1px var(--borderColor) solid;
    border-right: 0px;
    height: 50px
}

/* 评论处的输入框提示，居中、隐藏 */
.com_control:focus::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0)
}

.com_control::-webkit-input-placeholder {
    color: rgba(116, 116, 116, 0.336)
}

@media (min-width: 578px) {
    .com_control::-webkit-input-placeholder {
        text-align: center
    }
}

.comment-header {
    margin-block: 30px;
    height: 0
}

.comment-post {
    clear: both
}

.comment-post p {
    margin: 5px 0px
}

.comment-post small {
    font-size: 12px;
    color: #999
}

.comment-post input {
    padding: 7px 40px;
    font-size: small;
    color: #848797;
    width: 50%
}

.comment-post #comment {
    width: 100%;
    border: 1px var(--borderColor) solid;
    font-size: small;
    border-radius: var(--marRadius) 10px 0 0;
    height: 130px;
    resize: none
}

.comment-post #comment_submit {
    width: 84px;
    height: 35px;
    text-align: center;
    font-size: 14px;
    margin: 10px 0px;
    float: right;
    margin-right: 1px;
    border-radius: 8px;
    border: 1px solid var(--borderColor);
    padding: 7px 10px;
    justify-content: center
}

.comment-post #comment_submit:hover {
    cursor: pointer;
    color: var(--inputTextColor);
    background-color: var(--buttonBgColor);
}

.comment-post .input {
    width: 100px
}

.comment {
    margin: 10px 0;
    padding: 10px 0px;
    font-size: medium;
    overflow: hidden;
    color: #333
}

.comment span {
    color: var(--fontColor);
}

.comment .comment-time {
    color: #999999;
    display: inline;
    font-size: 10px
}

.comment .avatar {
    float: left;
    margin: 5px 4px
}

.comment .comment-infos {
    background: var(--bodyBground);
    padding: 12px 12px 5px;
    border-radius: var(--marRadius);
    margin-top: 9px;
    margin-left: 58px;
    color: var(--fontColor);
}

.comment .comment-infos-unGravatar {
    padding: 5px
}

.com-bottom {
    margin-bottom: 80px;
}

/* 评论列表中指向评论者头像的箭头 */
.arrow {
    position: absolute;
    margin-top: 3px;
    margin-left: -34px;
    border-width: 13px;
    border-style: solid;
    border-color: transparent var(--bodyBground) transparent transparent
}

.comment .comment-content {
    margin: 8px 0 0 0;
    word-break: break-word;
    color: var(--fontColor);
}

.comment .comment-reply {
    float: right;
    font-size: 12px;
    cursor: pointer;
    margin-top: -15px
}

.comment .comment-reply:hover {
    text-decoration: underline
}

.comment-children {
    margin: 20px 10px 10px 20px;
    clear: both;
    border: none;
    padding: 0
}

.comment .comment-post {
    width: 90%;
    margin: 15px auto
}

.comment-info {
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: -8px;
    white-space: nowrap
}

/* 边栏处的最新评论信息margin-top应该是0 */
.unstyle-li .comment-info {
    margin-top: 4px
}

.cancel-reply {
    font-size: large
}

/* 评论人的头像 */
.avatar img {
    width: 40px;
    height: 40px;
    margin-top: 9px;
    margin-right: 4px;
    border-radius: 50%
}

.unstyle-li input[type="submit"] {
    background-color: var(--inputBorderColor);
    color: var(--buttonTextColor);
    margin-left: -25px;
    height: 39px;
    width: 55px;
    border: 0;
    border-radius: 0 3px 3px 0;
    padding: 0
}

/*文章条目中的部分样式
---------------------------------------------------*/
/* 文章条目的标题 */
.card-title {
    margin-bottom: 30px
}

/* 文章条目中的置顶图案 */
.log-topflg {
    user-select: none;
    display: inline-block;
    position: relative;
    height: 26px;
    padding: 3px 4.5px;
    bottom: 3.5px;
    font-size: 14px;
    margin-left: 8px;
    cursor: default;
    background-color: antiquewhite;
    border-radius: 3px;
}

/* 文章内容页样式
---------------------------------------------------*/
.log-con {
    background-color: var(--conBgcolor);
    border-radius: var(--marRadius);
    max-width: 960px;
    padding: 30px;
    font-size: 16px;
    height: fit-content;
    letter-spacing: 0.5px
}

.log-con p {
    margin-top: 0;
    margin-bottom: 16px
}

.log-con .date {
    margin-bottom: 0px
}

.log-con .markdown {
    margin-inline: 5px;
}

.loglist-content h1 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content h2 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content h3 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content h4 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content h5 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content p {
    font-size: medium;
    font-family: inherit;
    margin: 0
}

/* 需要改名，侧边栏链接卡片的友情链接属性 */
.no-margin-bottom {
    font-size: medium;
    padding-left: 10px
}

/* 摘要内容部分 */
.loglist-body {
    margin-bottom: -22px;
    font-size: small
}

.loglist-body p {
    margin: 0 -6px 0 0
}

/* 文章标题和标签等 */
.loglist-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.loglist-title a:hover {
    text-decoration: none;
}

.loglist-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.loglist-tag {
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loglist-tag a {
    color: var(--color-text-light);
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    transition: var(--transition-fast);
}

.loglist-tag a:hover {
    background-color: #e2e8f0;
    color: var(--color-primary);
}

[data-theme="dark"] .loglist-tag a {
    background-color: #334155;
    color: var(--color-text-lighter);
}

[data-theme="dark"] .loglist-tag a:hover {
    background-color: #475569;
}

.loglist-cover {
    height: 220px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    position: relative;
}

.loglist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.loglist-cover img:hover {
    transform: scale(1.03);
}

/* 文章分类 */
.loglist-sort {
    user-select: none;
    display: inline-block;
    position: relative;
    height: 26px;
    padding: 3px 4.5px;
    bottom: 3.5px;
    font-size: 14px;
    margin-left: 8px;
    cursor: default;
    background-color: Lavender;
    border-radius: 3px;
}

@media (max-width: 415px) {
    .loglist-cover {
        height: 160px;
        overflow: hidden
    }

    .loglist-cover img {
        position: unset;
        width: 730px;
    }
}

@media (max-width: 375px) {
    .loglist-cover {
        height: 140px;
        overflow: hidden
    }

    .loglist-cover img {
        position: unset;
        width: 730px;
    }
}

/* 条目的其他内容 */
.loglist-content {
    font-size: medium;
    margin-left: 1px;
    margin-bottom: 5px;
    margin-right: 3px;
    margin-top: 30px
}

.log-info {
    font-size: small;
    letter-spacing: 0.5px;
}

.log-info a {
    color: var(--lightColor)
}

.log-count {
    font-size: small
}

.log-count a {
    color: var(--fontColor)
}

/* 侧边栏组件的一些样式 */
.bloggerinfo {
    margin-bottom: -10px;
    text-align: center
}

.bloggerinfo-img {
    width: 100px;
    height: 100px;
    border: 0px solid var(--borderColor);
    border-radius: 50%
}

.comm-lates-name {
    font-weight: bolder
}

.bloginfo-name {
    font-size: x-large;
    margin-top: 15px;
    margin-bottom: 0px
}

.bloginfo-descript {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #929292
}

/* 搜索栏 */
.search {
    width: 80%;
    box-shadow: none;
    float: left;
    font-size: 1rem;
    padding: 0.4rem 0.75rem;
    line-height: 1.5;
    color: #495057;
    border: 1px solid var(--borderColor);
    /* 兼容 Safari ，Safari默认input会有1px的上下外边距 */
    margin-block: 0;
    border-radius: 0.25rem
}

/* 文章阅读和文章条目的标签 */
.tags {
    border: 1px solid var(--borderColor);
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap
}

/* 侧边栏组件中的标签 */
.tag-container {
    margin-block: 0;
    text-overflow: ellipsis
}

.tags-side {
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap
}

/* 侧边栏组件中的最新文章样式 */
.blog-lates, .blog-hot {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

/* 返回上页图标 */
.back-top {
    font-size: 20px;
    text-align: center;
    height: 34px;
    width: 34px;
    margin-left: -90px;
    position: absolute;
    top: 151px;
    border: 2px solid var(--borderColor);
    color: var(--fontColor);
    border-radius: 50%;
    cursor: pointer
}

.back-top:hover {
    border: 2px solid var(--borderColor);
    color: #bbbbbb
}

/* 文章条目中的分割线 */
.list-line {
    border: 0;
    margin-top: 12px;
    margin-bottom: -7px;
    border-top: 1px solid rgb(245, 245, 246)
}

/* 侧边栏组件中的文章分类 */
.log-classify-f {
    letter-spacing: 1px;
    font-size: 16px;
    font-weight: 400
}

.log-classify-c {
    margin-left: -27px;
    list-style: none;
    font-size: medium
}

/* 侧边栏组件中的最新评论 */
.logcom-latest-time {
    position: absolute;
    right: 10px;
    color: var(--lightColor);
    margin-left: 10px;
    font-size: small
}

.comment-info_img {
    width: 27px;
    height: 27px;
    margin-bottom: 4px;
    margin-right: 3px;
    border-radius: 50%;
    vertical-align: middle;
    border-style: none
}

/* 各处的日期文字样式 */
.date {
    margin: 0;
    text-align: center;
    color: #7f7f7f
}

.date a {
    color: #7f7f7f
}

.log-con .date {
    font-size: small
}

.log-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.75rem
}

.page-title {
    margin-bottom: 30px;
    font-size: 1.75rem
}
.confession-grid {
                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                    gap: 20px;
                    margin-bottom: 20px;
                }
                
 @media (max-width: 992px) {
.confession-grid {
                        grid-template-columns: repeat(2, 1fr);
                    }
                }
                
 @media (max-width: 768px) {
.confession-grid {
                        grid-template-columns: 1fr;
                    }
                }
                
                .confession-card {
                    margin-bottom: 0;
                }
/* 相邻文章按钮的样式 */
.neighbor-log {
    overflow: hidden;
    margin-block: 20px
}

.prev-log {
    margin: 3px 0;
    float: left;
    padding: 4px 8px 4px 8px;
    font-size: small;
    border: 1px solid var(--borderColor);
    border-radius: 0.5rem
}

.next-log {
    margin: 3px 0;
    float: right;
    padding: 4px 8px 4px 8px;
    font-size: small;
    border: 1px solid var(--borderColor);
    border-radius: 0.5rem;
}

.comment-info a {
    color: var(--lightColor);
    padding-left: 5px
}

.comment-info hr {
    margin: 4px 0px
}

/* 网页足部
---------------------------------------------------*/
.blog-footer {
    background: linear-gradient(135deg, #ff758f 0%, #ff758f 100%);
    color: white;
    margin-top: 60px;
    padding: 20px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.icp-info {
    margin-bottom: 10px;
}

.icp-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.icp-info a:hover {
    color: white;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.copyright p {
    margin: 5px 0;
}

/* 响应式footer样式 */
@media (max-width: 768px) {
    .blog-footer {
        padding: 20px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
}

/* 保留原有的footinfo样式作为兼容性 */
.footinfo {
    line-height: 2;
    padding-block: 20px;
    text-align: center !important;
}

/* 图片放大
---------------------------------------------------*/
img[data-action="zoom"] {
    cursor: zoom-in
}

.zoom-img,
.zoom-img-wrap {
    position: relative;
    z-index: 666;
    -webkit-transition: all 300ms;
    -o-transition: all 300ms;
    transition: all 300ms;
}

img.zoom-img {
    cursor: zoom-out
}

.zoom-overlay {
    z-index: 420;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity 300ms;
    -o-transition: opacity 300ms;
    transition: opacity 300ms;
}

.zoom-overlay-open .zoom-overlay {
    opacity: 1;
}

.zoom-overlay-open,
.zoom-overlay-transitioning {
    cursor: default;
}

.cover-unclip {
    /* 放大后的图片无裁剪、无圆角、无透明度 */
    clip: unset !important;
    border-radius: unset !important;
    opacity: 1 !important
}

/* toc
---------------------------------------------------*/
.toc-con {
    padding: 30px;
    padding-right: 50px;
    left: 150px;
    width: 300px;
    position: absolute;
    top: 200px
}

.toc-con .close-toc {
    color: #dcdcdd;
    left: 0px;
    position: absolute;
    padding-top: 5px;
}

.toc-con ul {
    margin: 0;
    padding: 0
}

.toc-con li {
    font-size: 14px;
    line-height: 1.8rem;
    cursor: pointer;
    list-style: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.toc-con div {
    scrollbar-color: #0000002b #fff0
}

.toc-con div::-webkit-scrollbar {
    width: 5px;
    background-color: rgb(0 0 0 / 0%)
}

.toc-con div::-webkit-scrollbar-thumb {
    background-color: rgb(0 0 0 / 10%)
}

/* page 页面 */
#page {
    margin-bottom: 24px
}

/* 摘要的溢出（overflow）操作 
---------------------------------------------------*/
.subtitle-overflow {
    max-width: 700px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* 「归档」的样式 
---------------------------------------------------*/
.archive {
    color: #929292;
    font-size: 16px;
    padding: 4px;
    border-color: #ced4da
}

/* 文章列出页 编辑 链接的样式 
---------------------------------------------------*/
.loglist-article-edit a {
    color: #929292
}

/* 一些适应各屏幕尺寸显示效果的样式
---------------------------------------------------*/
@media all and (max-width: 1200px) and (min-width: 992px) {

    /* mh 是方便在中、小屏幕隐藏元素的 class */
    .mh {
        display: none
    }

    .bloggerinfo-img {
        width: 70px;
        height: 70px
    }

    .bloginfo-name {
        margin-top: 32px
    }

    /* 中型屏状态下的日历 */
    #calendar {
        margin-left: -8px;
    }
}

@media all and (max-width: 991px) {
    /* 头部无容器的限宽 */
    .blog-header-c {
        max-width: unset !important
    }

    .blog-header-c {
        height: 74px
    }

    body {
        width: 100%;
        margin: -2px;
        padding-left: 2px
    }

    /* mh 是方便在中、小屏幕隐藏元素的 class */
    .mh {
        display: none
    }

    .loglist-title {
        font-size: 18px;
        font-weight: 500
    }

    .bloggerinfo {
        margin-bottom: 0px
    }

    .mb-5, .mtop-5 {
        margin-bottom: 2rem !important
    }

    .log-title {
        text-align: left
    }

    .log-con {
        padding: 30px 16px
    }

    .commentform .comment-info {
        width: 100%
    }

    /* 展开菜单后，博客头部的下边距变大 */
    .bottom-change {
        margin-bottom: 13px
    }

    /* 为文章列出页卡片在小屏幕的观感体验优化 */
    .card-title {
        margin-bottom: 10px
    }

    .loglist-content {
        margin-top: 10px
    }

    .loglist-tag {
        margin-top: 10px
    }

    /* 博客头部的下边距 */
    .blog-header {
        /*margin-bottom: 1.6rem*/
    }

    /* 评论的信息栏变化 */
    .comment-post input {
        padding: 0.5em 0.75em
    }

    /* 侧边栏日历 */
    #calendar {
        margin-left: 0
    }
}

/* 在平板一些处于中间尺寸的不常见设备所做的缩放和其他一些调整样式 */
@media all and (max-width: 991px) and (min-width: 768px) {

    #calendar {
        transform: scale(0.8);
        margin-left: -14px;
        margin-top: -14px
    }

    .unstyle-li form {
        transform: scale(0.7);
        width: 255px;
        margin-left: -47px
    }

    /* 中屏幕下缩短边栏评论日期显示 */
    .logcom-latest-time {
        max-width: 60px
    }

}

/* 对一些极小尺寸屏幕所做的比较妥协的缩放等调整 */
@media all and (max-width: 349px) {

    #calendar {
        transform: scale(0.7);
        margin-left: -46px;
        margin-top: -14px
    }

    .unstyle-li form {
        transform: scale(0.7);
        width: 255px;
        margin-left: -47px
    }

    .bloginfo-name {
        font-size: small
    }
}

/* 普通移动设备的显示样式 */
@media all and (max-width: 577px) {
    .dropdown-menus .list-menu {
        padding-bottom: 0px
    }

    .nav-link {
        padding: 8px;
    }

    /* 卡片容器内边距略小一点 */
    .card-padding {
        padding: var(--spacing-md);
    }

    .side-bar .widget {
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-md);
    }

    /* 优化移动端文章卡片布局 */
    .loglist-cover {
        height: 160px;
    }

    .loglist-title {
        font-size: 1.2rem;
    }

    .loglist-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination:after {
        content: "";
        margin-bottom: var(--spacing-lg);
        display: block;
        clear: both
    }

    .bar_top_line {
        display: block;
        margin-bottom: var(--spacing-md);
    }

    .pagination span,
    .pagination a {
        padding: 5px 8px;
        font-size: 13px;
    }

    .comment .comment-info {
        float: left;
        margin-left: unset;
        width: 100%
    }

    .com_control {
        height: 44px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md) !important;
        margin-top: var(--spacing-xs);
    }

    .mb-5, .mtop-5 {
        margin-bottom: 1.6rem !important
    }

    #pagenavi {
        line-height: 45px
    }

    .loglist-content p {
        font-size: 14px;
    }

    /* 评论相关优化 */
    .comment-post #comment {
        border-radius: var(--radius-md);
        min-height: 120px;
    }

    .comment-post input {
        width: 100%;
        padding: 10px;
    }

    .commentform .comment-info {
        margin-top: -5px
    }

    #comments {
        margin-bottom: var(--spacing-xxl);
    }

    .comment-mail,
    .comment-name {
        margin-bottom: var(--spacing-xs);
    }

    .comment .comment-post {
        display: table
    }

    /* 评论列表换新样式 */
    .arrow {
        display: none
    }

    .comment .comment-infos {
        margin-left: 0;
        font-size: 14px;
        padding: 10px;
    }

    .comment .avatar {
        margin: 6px 8px;
        height: 36px;
        width: 36px;
    }

    /* 摘要的溢出控制 */
    .subtitle-overflow {
        max-width: 100%;
    }

    /* 网页顶部的下拉菜单在移动端的显示优化 */
    .dropdown-menus .list-menu {
        padding: 0px;
        letter-spacing: 2px
    }

    /* 轮播图适配 */
    .slideshow-text {
        font-size: 14px;
        padding: 12px;
    }

    .slideshow-prev,
    .slideshow-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* 为 toc 移动端设立的样式 */
@media all and (max-width: 1274px) {
    .toc-con {
        height: 100vh;
        width: 60%;
        max-width: 300px;
        padding-right: 30px;
        /* 磨砂效果 */
        background: rgba(237, 237, 237, 0.8);
        backdrop-filter: blur(2px);
        /* 兼容 Safari 磨砂效果 */
        -webkit-backdrop-filter: blur(2px);
        /* 始终固定位置 */
        z-index: 2;
        position: fixed !important;
        top: 0 !important
    }

    .toc-link {
        color: rgb(189, 189, 189);
        font-size: 10px;
        padding-left: 10px;
    }
}

/* 侧边栏文章封面样式 */
.side-cover-image {
    position: relative;
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
}

.side-title-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.side-title-container a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px;
}

#theme-toggle {
    cursor: pointer;
    padding: 8px;
}

/* 首页轮播图样式 */
* {
    box-sizing: border-box;
}

.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: 0 auto var(--spacing-xxl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mySlides {
    display: none;
}

.slideshow-prev,
.slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-fast);
    border: none;
    margin: 0 var(--spacing-sm);
}

.slideshow-next {
    right: 0;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.slideshow-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 16px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    text-align: left;
}

.slideshow-dots {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slideshow-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.fade {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0.4; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

@-webkit-keyframes fade {
    from {
        opacity: .4;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade {
    from {
        opacity: .4;
    }
    to {
        opacity: 1;
    }
}
.confession-card {
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(255, 77, 109, 0.1);
    background-color: var(--color-card);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.confession-card:hover {
    transform: translateY(-5px);
}
.confession-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-primary);
    text-align: center;
}
.confession-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    padding: 10px 0;
    margin-bottom: 10px;
    text-align: center;
}
.read-more {
    display: inline-block;
    color: var(--color-primary);
    font-size: 14px;
    margin-top: 5px;
    text-decoration: none;
}
.read-more:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}
.confession-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed var(--color-border);
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 10px;
}
.confession-author {
    background-color: var(--color-primary-light);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}
.confession-actions a {
    color: var(--color-text-light);
    transition: color 0.2s ease;
}
.confession-actions a:hover {
    color: var(--color-primary);
    text-decoration: none;
}
#pagenavi {
    text-align: center;
    font-size: 14px
}

#pagenavi span {
    padding: 4.5px 9px 4px 9px;
    margin: 0 5px;
    line-height: 3;
    border-radius: var(--marRadius);
    color: #000
}

#pagenavi a {
    color: #c0bcbc;
    padding: 4.5px 9px 4px 9px;
    font-family: serif, monospace;
    margin: 0 5px;
    line-height: 3;
    border-radius: var(--marRadius)
}

/* 评论样式
---------------------------------------------------*/
/* 发表评论表单样式 */
@media (min-width: 768px) {
    .commentform {
        height: 210px
    }
}

#comments {
    margin-top: 80px;
}

.comment-name {
    float: left;
    border-bottom-left-radius: 10px !important
}

.comment-mail {
    border-right: 1px var(--borderColor) solid !important;
    border-bottom-right-radius: 10px !important
}

.form-controls {
    display: block;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--borderColor);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-in-out
}

.comment-info {
    width: auto
}

.com_control {
    display: block;
    border-radius: 0px;
    border: 1px var(--borderColor) solid;
    border-right: 0px;
    height: 50px
}

/* 评论处的输入框提示，居中、隐藏 */
.com_control:focus::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0)
}

.com_control::-webkit-input-placeholder {
    color: rgba(116, 116, 116, 0.336)
}

@media (min-width: 578px) {
    .com_control::-webkit-input-placeholder {
        text-align: center
    }
}

.comment-header {
    margin-block: 30px;
    height: 0
}

.comment-post {
    clear: both
}

.comment-post p {
    margin: 5px 0px
}

.comment-post small {
    font-size: 12px;
    color: #999
}

.comment-post input {
    padding: 7px 40px;
    font-size: small;
    color: #848797;
    width: 50%
}

.comment-post #comment {
    width: 100%;
    border: 1px var(--borderColor) solid;
    font-size: small;
    border-radius: var(--marRadius) 10px 0 0;
    height: 130px;
    resize: none
}

.comment-post #comment_submit {
    width: 84px;
    height: 35px;
    text-align: center;
    font-size: 14px;
    margin: 10px 0px;
    float: right;
    margin-right: 1px;
    border-radius: 8px;
    border: 1px solid var(--borderColor);
    padding: 7px 10px;
    justify-content: center
}

.comment-post #comment_submit:hover {
    cursor: pointer;
    color: var(--inputTextColor);
    background-color: var(--buttonBgColor);
}

.comment-post .input {
    width: 100px
}

.comment {
    margin: 10px 0;
    padding: 10px 0px;
    font-size: medium;
    overflow: hidden;
    color: #333
}

.comment span {
    color: var(--fontColor);
}

.comment .comment-time {
    color: #999999;
    display: inline;
    font-size: 10px
}

.comment .avatar {
    float: left;
    margin: 5px 4px
}

.comment .comment-infos {
    background: var(--bodyBground);
    padding: 12px 12px 5px;
    border-radius: var(--marRadius);
    margin-top: 9px;
    margin-left: 58px;
    color: var(--fontColor);
}

.comment .comment-infos-unGravatar {
    padding: 5px
}

.com-bottom {
    margin-bottom: 80px;
}

/* 评论列表中指向评论者头像的箭头 */
.arrow {
    position: absolute;
    margin-top: 3px;
    margin-left: -34px;
    border-width: 13px;
    border-style: solid;
    border-color: transparent var(--bodyBground) transparent transparent
}

.comment .comment-content {
    margin: 8px 0 0 0;
    word-break: break-word;
    color: var(--fontColor);
}

.comment .comment-reply {
    float: right;
    font-size: 12px;
    cursor: pointer;
    margin-top: -15px
}

.comment .comment-reply:hover {
    text-decoration: underline
}

.comment-children {
    margin: 20px 10px 10px 20px;
    clear: both;
    border: none;
    padding: 0
}

.comment .comment-post {
    width: 90%;
    margin: 15px auto
}

.comment-info {
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: -8px;
    white-space: nowrap
}

/* 边栏处的最新评论信息margin-top应该是0 */
.unstyle-li .comment-info {
    margin-top: 4px
}

.cancel-reply {
    font-size: large
}

/* 评论人的头像 */
.avatar img {
    width: 40px;
    height: 40px;
    margin-top: 9px;
    margin-right: 4px;
    border-radius: 50%
}

.unstyle-li input[type="submit"] {
    background-color: var(--inputBorderColor);
    color: var(--buttonTextColor);
    margin-left: -25px;
    height: 39px;
    width: 55px;
    border: 0;
    border-radius: 0 3px 3px 0;
    padding: 0
}

/*文章条目中的部分样式
---------------------------------------------------*/
/* 文章条目的标题 */
.card-title {
    margin-bottom: 30px
}

/* 文章条目中的置顶图案 */
.log-topflg {
    user-select: none;
    display: inline-block;
    position: relative;
    height: 26px;
    padding: 3px 4.5px;
    bottom: 3.5px;
    font-size: 14px;
    margin-left: 8px;
    cursor: default;
    background-color: antiquewhite;
    border-radius: 3px;
}

/* 文章内容页样式
---------------------------------------------------*/
.log-con {
    background-color: var(--conBgcolor);
    border-radius: var(--marRadius);
    max-width: 960px;
    padding: 30px;
    font-size: 16px;
    height: fit-content;
    letter-spacing: 0.5px
}

.log-con p {
    margin-top: 0;
    margin-bottom: 16px
}

.log-con .date {
    margin-bottom: 0px
}

.log-con .markdown {
    margin-inline: 5px;
}

.loglist-content h1 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content h2 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content h3 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content h4 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content h5 {
    font-size: medium;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin: 0
}

.loglist-content p {
    font-size: medium;
    font-family: inherit;
    margin: 0
}

/* 需要改名，侧边栏链接卡片的友情链接属性 */
.no-margin-bottom {
    font-size: medium;
    padding-left: 10px
}

/* 摘要内容部分 */
.loglist-body {
    margin-bottom: -22px;
    font-size: small
}

.loglist-body p {
    margin: 0 -6px 0 0
}

/* 文章标题和标签等 */
.loglist-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.loglist-title a:hover {
    text-decoration: none;
}

.loglist-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.loglist-tag {
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loglist-tag a {
    color: var(--color-text-light);
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    transition: var(--transition-fast);
}

.loglist-tag a:hover {
    background-color: #e2e8f0;
    color: var(--color-primary);
}

[data-theme="dark"] .loglist-tag a {
    background-color: #334155;
    color: var(--color-text-lighter);
}

[data-theme="dark"] .loglist-tag a:hover {
    background-color: #475569;
}

.loglist-cover {
    height: 220px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    position: relative;
}

.loglist-cover img {
    width: 100%;
    height: 100