/**
 * 模板样式表
 * 主要高亮颜色统一采用：#59b8f8
 */
:root {
    --marRadius: 10px;
    --conBgcolor: #ffffff; /* 导航、卡片、内容的背景颜色 */
    --bodyBground: #f0f4f8; /* 页面背景颜色 - 清爽浅蓝灰 */
    --fontColor: #4a5568; /* 普通文本的颜色 - 深蓝灰 */
    --aColor: #2d3748; /* a 标签的颜色 */
    --aHoverColor: #3498db; /* a 标签 hover 状态的颜色 - 亮蓝 */
    --lightColor: #718096; /* 比较浅一点的文本颜色 */

    /* 表单和按钮的常规样式 */
    --inputBgColor: #ffffff;
    --inputBorderColor: #e2e8f0;
    --inputTextColor: #2d3748;
    --buttonBgColor: #59b8f8; /* 按钮背景 - 亮蓝 */
    --buttonTextColor: #ffffff;
    --buttonBorderColor: #59b8f8;
    --selectBgColor: #ffffff;
    --selectBorderColor: #e2e8f0;
    --selectTextColor: #2d3748;
    --dividerColor: #e2e8f0;
    --dropdownDividerColor: rgba(15, 23, 42, 0.08);
    --borderColor: rgba(0, 0, 0, 0.06);
}

/* 黑夜模式 */
[data-theme="dark"] {
    --conBgcolor: #1a202c; /* 深蓝灰卡片背景 */
    --bodyBground: #171923; /* 深蓝灰页面背景 */
    --fontColor: #e2e8f0; /* 浅灰文本 */
    --aColor: #cbd5e0; /* 链接颜色 */
    --aHoverColor: #63b3ed; /* 浅蓝 Hover */
    --lightColor: #a0aec0; /* 辅助文本 */

    /* 表单和按钮的黑夜模式样式 */
    --inputBgColor: #2d3748;
    --inputBorderColor: #4a5568;
    --inputTextColor: #e2e8f0;
    --buttonBgColor: #4fb3f7; /* 蓝色按钮 */
    --buttonTextColor: #ffffff;
    --buttonBorderColor: #4fb3f7;
    --selectBgColor: #2d3748;
    --selectBorderColor: #4a5568;
    --selectTextColor: #e2e8f0;
    --dividerColor: #2d3748;
    --dropdownDividerColor: rgba(148, 163, 184, 0.28);
    --borderColor: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
    color: var(--fontColor);
    background-color: var(--bodyBground);
    font-family: helvetica neue, Helvetica, Arial, sans-serif;
}

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

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

a {
    color: var(--aColor);
    transition: all 0.2s;
    text-decoration: none;
}

a:focus, a:hover {
    color: var(--aHoverColor);
    text-decoration: none;
}

/* 表单输入框样式 */
input, textarea {
    background-color: var(--inputBgColor);
    border: 1px solid var(--inputBorderColor);
    color: var(--inputTextColor);
    padding: 12px 16px;
    border-radius: var(--marRadius);
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--buttonBgColor);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

/* 按钮样式 */
button {
    background-color: var(--buttonBgColor);
    color: var(--buttonTextColor);
    border: 1px solid var(--buttonBorderColor);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.25);
}

button:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.35);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.25);
}

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

select:focus {
    border-color: var(--buttonBgColor);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

/* 分割线样式 */
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: 0;
    padding-bottom: 40px;
}

/* 无样式列表  */
.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;
    margin-left: -10px;
    margin-right: -10px;
}

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

    /* 工具栏列 */
    .column-small {
        font-size: medium;
        padding-left: 10px;
        padding-right: 10px;
        -ms-flex: 0 0 28%;
        flex: 0 0 28%;
        max-width: 28%;
        box-sizing: border-box;
    }

    /* 文章发布时间和文章阅读评论数这两列的配置 */
    .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: 10px;
        padding-left: 10px;
        width: 100%;
        box-sizing: border-box;
    }

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

    /* 文章发布时间和文章阅读评论数两列的配置 */
    .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%;
    align-items: center; /* 网页容器在整个网页中垂直居中 */
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

/* container 在不同屏幕下的配置 */
@media (min-width: 576px) {
    .container {
        max-width: 540px
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px
    }
}

@media (min-width: 1201px) {
    .container {
        max-width: 1140px
    }
}

/* 在绝对定位情况下，主边栏的全宽(可供一些位于主边栏的难以计算宽度的对象使用)
---------------------------------------------------*/
@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;
    min-height: 100vh;
}

.blog-header {
    flex: 0 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background-color: var(--conBgcolor);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02)
}

.blog-container {
    flex: 1 0 auto;
    margin-top: calc(71.63px + 24px);
    margin-bottom: 24px;
}

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

/* 博客头部属性的配置
---------------------------------------------------*/
.blog-header-c {
    height: 71.63px;
    display: flex;
    align-items: center;
    justify-content: space-between /* 导航栏为主轴方向两端对齐，即大标题与导航两部分，一个向左靠齐，一个向右靠齐 */
}

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

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

/* 图文模式 */
.blog-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    max-width: 60%;
    z-index: 1;
}

.blog-header-brand:hover {
    text-decoration: none;
}

.blog-header-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.blog-header-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-header-brand-name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--aColor);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-header-brand:hover .blog-header-brand-name {
    color: var(--aHoverColor);
}

.blog-header-brand-desc {
    font-size: 12px;
    color: var(--lightColor);
    line-height: 1.3;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图片模式 */
.blog-header-imglink {
    display: inline-flex;
    align-items: center;
    z-index: 1;
}

.blog-header-img {
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* 导航链接的上下内边距（padding-block）要大，可使光标离开字符后一段距离依然能唤起子导航标签
 * 另外li标签的列表项标记为空 （list-style: none） */
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease
}

.nav-link:focus-visible {
    outline: 2px solid var(--buttonBgColor);
    outline-offset: 2px;
}

.nav-link.has-down {
    gap: 0.38rem;
}

/* 下拉菜单指示：给带子菜单的导航项添加箭头提示 */
.nav-link.has-down::after {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    opacity: 0.72;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.list-menu:hover > .nav-link.has-down::after,
.list-menu:focus-within > .nav-link.has-down::after {
    transform: translateY(1px) rotate(225deg);
    opacity: 1;
}

.list-menu {
    list-style: none
}

.user-menu {
    position: relative;
}

.user-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 10px;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
}

.user-menu-label {
    display: none;
    line-height: 1;
    font-size: 15px;
    font-weight: 500;
}

.user-menu-trigger:hover {
    background: rgba(52, 152, 219, 0.08);
}

.header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--borderColor);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.user-menu:hover .header-avatar,
.user-menu:focus-within .header-avatar {
    border-color: var(--buttonBgColor);
    transform: scale(1.03);
}

.user-dropdown-menus {
    min-width: 120px;
    margin-left: 0;
    left: auto;
    right: 0;
    padding: 6px;
}

.nav-link-login {
    color: var(--buttonTextColor);
    background-color: var(--buttonBgColor);
    border: 1px solid var(--buttonBorderColor);
    min-height: 32px;
    padding: 0.22rem 0.62rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(89, 184, 248, 0.14);
}

.nav-link-login:hover {
    color: var(--buttonTextColor);
    background-color: var(--buttonBgColor);
    filter: brightness(0.95);
}

.nav-link-login:focus-visible {
    outline-color: var(--buttonTextColor);
    box-shadow: 0 0 0 3px rgba(89, 184, 248, 0.22);
}

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

    .nav-list > .list-menu {
        position: relative;
    }

    /* 大屏幕列表样式 */
    .list-menu .list-menu {
        border-bottom: 1px solid var(--dropdownDividerColor);
    }

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

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

/* 小屏幕 */
@media (max-width: 767px) {
    .header {
        padding: 0.6rem 1rem;
        margin-bottom: 30px !important;
        height: 80px
    }

    .blog-header-title {
        position: absolute;
        left: 17px;
        top: 18px
    }

    .blog-header-subtitle {
        padding-top: 60px;
        left: 17px;
        top: -9px
    }

    .blog-header-brand {
        position: absolute;
        left: 17px;
        top: 50%;
        transform: translateY(-50%);
        max-width: calc(100% - 75px);
        gap: 10px;
    }

    .blog-header-brand .blog-header-logo {
        width: 32px;
        height: 32px;
        min-width: 32px;
        max-width: 32px;
        min-height: 32px;
        max-height: 32px;
        aspect-ratio: 1 / 1;
        border-radius: 5px;
    }

    .blog-header-brand-name {
        font-size: 16px;
    }

    .blog-header-brand-desc {
        font-size: 11px;
    }

    .blog-header-imglink {
        position: absolute;
        left: 17px;
        top: 50%;
        transform: translateY(-50%);
        max-width: calc(100% - 75px);
    }

    .blog-header-imglink .blog-header-img {
        height: 36px;
        width: auto;
        max-width: 100%;
    }

    /* 仅在小屏幕上显示切换菜单边框和切换菜单 */
    .blog-header-toggle {
        cursor: pointer;
        position: absolute;
        top: 25px;
        right: 25px;
    }

    .blogtoggle-icon {
        display: inline-block;
        width: 28px;
        height: 19px;
        margin-top: -3px;
        vertical-align: middle;
    }

    /* 小屏幕的导航变成侧边栏 */
    .blog-header-nav {
        display: none;
        z-index: 1100;
        position: fixed;
        width: 280px;
        height: 100vh;
        background: var(--conBgcolor);
        top: 0;
        left: -280px;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        padding-top: 20px;
        border-right: 1px solid var(--borderColor);
    }

    /* 黑暗模式下的菜单阴影优化 */
    [data-theme="dark"] .blog-header-nav {
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
    }

    /* 菜单显示状态 */
    .blog-header-nav.show {
        display: block;
        left: 0;
    }

    /* 遮罩层 */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1010;
        backdrop-filter: blur(2px);
    }

    /* 黑暗模式下的遮罩层优化 */
    [data-theme="dark"] .nav-overlay {
        background: rgba(0, 0, 0, 0.7);
    }

    .nav-overlay.show {
        display: block;
    }

    /* 小屏幕上头部的列表样式 */
    .nav-list {
        margin-top: 0px;
        margin-bottom: 5px;
        padding-left: 15px;
    }

    .list-menu {
        line-height: 32px;
        width: 100%;
    }

    .list-menu .nav-link {
        display: block;
        min-height: 44px;
        padding: 10px 15px;
        color: var(--fontColor);
        text-decoration: none;
        border-radius: 8px;
        line-height: 1.5;
        transition: background-color 0.2s;
    }

    .list-menu .nav-link.has-down {
        display: flex;
        justify-content: space-between;
    }

    .list-menu .nav-link:hover {
        background-color: var(--bodyBground);
    }

[data-theme="dark"] .list-menu .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .user-menu-trigger {
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        padding: 10px 15px;
    }

    .header-avatar {
        display: none;
    }

    .user-menu-label {
        display: inline-flex;
        align-items: center;
        color: var(--fontColor);
    }

    .user-dropdown-menus {
        right: auto;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .nav-link-login {
        justify-content: center;
        min-height: 30px;
        padding: 0.2rem 0.56rem;
    }

    .user-dropdown-menus .list-menu:first-child {
        display: none;
    }
}

/* 大屏幕下的下拉框样式，这里设置的透明度为0（opacity: 0.0;）。但小屏状态下
 * 没有隐藏，所以下面会在小屏部分，即767px及以下的部分对这个属性覆盖。 */
.dropdown-menus {
    background: var(--conBgcolor);
    opacity: 0;
    z-index: 30;
    list-style: none;
    margin-left: -26px;
    position: absolute;
    padding-left: 0;
    border: 1px solid var(--borderColor);
    border-radius: 10px;
    top: 100%;
    margin-bottom: 0;
    pointer-events: none;
    transform: translateY(6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .dropdown-menus {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.dropdown-menus .list-menu {
    padding: 0
}

.dropdown-menus .list-menu .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
}

/* 顶部菜单栏的小屏属性，“小屏”定义在767px及以下。当然这个也包含小屏的下拉框样式。 */
@media all and (max-width: 767px) {
    .nav-list {
        text-align: left !important;
        padding-left: 15px;
        padding-right: 15px;
        letter-spacing: normal;
        line-height: 1.5;
    }

    .dropdown-menus {
        opacity: 1;
        margin-left: 0;
        position: unset;
        padding-left: 0;
        border: none;
        width: 100%;
        top: 0;
        margin-top: 2px;
        margin-bottom: 8px;
        background: transparent;
        box-shadow: none;
        transform: none;
        pointer-events: auto;
    }

    .dropdown-menus .list-menu .nav-link {
        min-height: 40px;
        padding: 8px 15px;
        font-size: 0.92em;
        line-height: 1.5;
        color: var(--fontColor-sec);
        position: relative;
        opacity: 0.85;
    }

    .dropdown-menus .list-menu .nav-link::before {
        display: none;
    }

    .dropdown-menus .list-menu .nav-link:hover {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.03);
    }
}

/* 下拉框的样式 */
.list-menu:hover .dropdown-menus {
    opacity: 0.95;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease
}

.list-menu:focus-within .dropdown-menus {
    opacity: 0.95;
    pointer-events: auto;
    transform: translateY(0);
}

/* 列出文章（或文章条目）页
---------------------------------------------------*/
/* 卡片上的文章发布时间这部分的属性 */
.info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 1.25rem 1.25rem;
    margin: 0;
}

/* 文章阅读页
---------------------------------------------------*/
/* 文章作者、时间等信息下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 {
    cursor: pointer;
    color: var(--buttonTextColor);
    background-color: var(--buttonBgColor);
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 30px;
    margin: 10px 0;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.25);
}

.btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.35);
}

.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: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-radius: var(--marRadius);
    background-color: var(--conBgcolor);
}

/* 日历样式
---------------------------------------------------*/
/* 日历的加载样式，防止翻页造成太大的视觉变化 */
.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: #2b6cb0;
    background: #ebf8ff;
    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: var(--aHoverColor);
}

[data-theme="dark"] .day {
    color: #e2e8f0;
    background: #2d3748;
    border-radius: var(--marRadius);
}

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

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

[data-theme="dark"] .loglist-sort {
    background-color: rgba(66, 153, 225, 0.15);
    color: #63b3ed;
}

[data-theme="dark"] .loglist-sort a {
    color: #63b3ed;
}

[data-theme="dark"] .log-topflg {
    background-color: rgba(252, 129, 129, 0.15);
    color: #fc8181;
}


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

.side-bar .widget {
    margin-bottom: 24px;
    padding: 20px;
    overflow: hidden;
}

/* 边栏组件的标题 */
.side-bar h3 {
    position: relative;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px
}

.side-bar .widget li {
    position: relative;
    color: #6f6f6f;
    line-height: 2
}

/* 分页按钮样式
---------------------------------------------------*/
.pagination {
    font-size: 14px;
    padding: 10px;
    text-align: center
}

.pagination span {
    padding: 5.5px 6px 3px 6px;
    margin: 0 5px;
    border-radius: 8px;
    line-height: 3;
    color: #858796
}

.pagination a {
    color: var(--buttonTextColor);
    padding: 5.5px 10px 6px 10px;
    background: var(--buttonBgColor);
    margin: 0 5px;
    line-height: 3;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.25);
}

.pagination a:hover {
    text-decoration: none;
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.35);
}

#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 {
        min-height: 210px
    }
}

#comments {
    margin-top: 80px;
    margin-bottom: 32px;
}

.comment-name {
    border-radius: 10px 0 0 10px !important;
}

.comment-mail {
    border-radius: 0 !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;
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 0;
}

.com_control {
    display: block;
    border-radius: 0;
    border: 1px var(--borderColor) solid;
    border-right: 0;
    height: 50px;
    flex: 1;
    min-width: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-name {
    border-radius: 10px 0 0 10px !important;
}

.comment-mail {
    border-radius: 0 !important;
}

.comment-url {
    border-radius: 0 !important;
}

.comment-info > .com_control:last-child {
    border-radius: 0 10px 10px 0 !important;
    border-right: 1px solid var(--borderColor);
}

.captcha-container {
    flex: 1;
    min-width: 150px;
    border-radius: 0 10px 10px 0;
    border: 1px solid var(--borderColor);
    border-left: 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 50px;
    background-color: var(--inputBgColor);
}

.comment-post {
    clear: both;
    padding: 12px 0 0;
    border: none;
    border-radius: 0;
    background: var(--conBgcolor);
}

#comments .commentform {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-container img {
    height: 34px;
    cursor: pointer;
    margin-right: 8px;
    border-radius: 4px;
}

.captcha-container input[name="imgcode"] {
    border: none;
    background: transparent;
    padding: 5px;
    height: 100%;
    width: 100%;
    outline: none;
}

/* 评论处的输入框提示 */
.com_control::placeholder {
    color: rgba(116, 116, 116, 0.336);
    transition: color 0.2s;
}

.com_control:focus::placeholder {
    color: transparent;
}

.captcha-container input[name="imgcode"]::placeholder {
    color: rgba(116, 116, 116, 0.336);
    transition: color 0.2s;
}

.captcha-container input[name="imgcode"]:focus::placeholder {
    color: transparent;
}

@media (min-width: 578px) {
    .com_control::placeholder,
    .captcha-container input[name="imgcode"]::placeholder {
        text-align: center;
    }
}

.comment-header {
    margin: 26px 0 14px;
    height: auto;
    font-size: 18px;
    line-height: 1.4;
}

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

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

.comment-post input {
    padding: 7px 16px;
    font-size: small;
    color: #848797;
    width: auto;
}

.comment-post #comment {
    width: 100%;
    border: 1px var(--borderColor) solid;
    font-size: 15px;
    line-height: 1.75;
    border-radius: 12px;
    min-height: 168px;
    height: auto;
    resize: vertical;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--bodyBground) 42%, var(--conBgcolor));
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.comment-post #comment:focus {
    border-color: rgba(89, 184, 248, 0.65);
    box-shadow: 0 0 0 3px rgba(89, 184, 248, 0.16);
    background: var(--conBgcolor);
}

#comments .comment-info {
    margin-top: 0;
    gap: 10px;
    overflow: visible;
}

.comment-post #comment_submit {
    width: auto;
    min-width: 112px;
    height: 42px;
    text-align: center;
    font-size: 14px;
    margin: 0;
    float: none;
    border-radius: 999px;
    border: 1px solid var(--buttonBgColor);
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--buttonBgColor);
    color: var(--buttonTextColor);
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.25);
}

.comment-post #cancel-reply {
    display: none;
    width: auto;
    min-width: 88px;
    height: 42px;
    text-align: center;
    font-size: 14px;
    margin: 0;
    float: none;
    border-radius: 999px;
    border: 1px solid var(--borderColor);
    padding: 0 16px;
    background-color: transparent;
    color: var(--fontColor);
    transition: all 0.3s;
}

.comment-post #cancel-reply:hover {
    cursor: pointer;
    filter: brightness(0.95);
}

.comment-post #comment_submit:hover {
    cursor: pointer;
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.35);
}

.com_submit_p {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

#comments .com_control {
    height: 48px;
    min-width: 180px;
    border-right: 1px solid var(--borderColor);
    border-radius: 12px !important;
    background: var(--conBgcolor);
}

#comments .com_control:focus {
    border-color: rgba(89, 184, 248, 0.65);
    box-shadow: 0 0 0 3px rgba(89, 184, 248, 0.13);
}

#comments .com_control::placeholder,
#comments .captcha-container input[name="imgcode"]::placeholder {
    color: color-mix(in srgb, var(--lightColor) 66%, #ffffff 34%);
}

#comments .com_control:focus::placeholder,
#comments .captcha-container input[name="imgcode"]:focus::placeholder {
    color: color-mix(in srgb, var(--lightColor) 46%, #ffffff 54%);
}

#comments .captcha-container {
    min-width: 210px;
    height: 48px;
    border: 1px solid var(--borderColor);
    border-left: 1px solid var(--borderColor);
    border-radius: 12px;
    padding: 0 10px;
}

#comments .captcha-container img {
    width: 108px;
    height: 34px;
    object-fit: cover;
}

[data-theme="dark"] #comments .comment-post #comment {
    background: color-mix(in srgb, var(--inputBgColor) 88%, #000000 12%);
}

[data-theme="dark"] #comments .comment-post #comment:focus {
    background: var(--inputBgColor);
}

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

.comment {
    margin: 14px 0;
    padding: 2px 0;
    font-size: medium;
    overflow: visible;
    color: #333
}

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

.comment .comment-time {
    color: #999999;
    display: inline-block;
    font-size: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.comment .avatar {
    float: left;
    margin: 6px 8px 0 0;
}

.comment .comment-infos {
    background: var(--bodyBground);
    padding: 14px 14px 12px;
    border-radius: 12px;
    margin-top: 0;
    margin-left: 56px;
    border: 1px solid rgba(89, 184, 248, 0.14);
    color: var(--fontColor);
    position: relative;
    line-height: 1.7;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment:hover > .comment-infos {
    border-color: rgba(89, 184, 248, 0.24);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.comment-infos b a {
    color: inherit;
    text-decoration: none;
}

.comment-infos b a:hover {
    color: var(--primaryColor, #59b8f8);
    text-decoration: underline;
}

[data-theme="dark"] .comment .comment-infos {
    border-color: rgba(148, 163, 184, 0.26);
}

[data-theme="dark"] .comment:hover > .comment-infos {
    border-color: rgba(99, 179, 237, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

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

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

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

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

.comment .comment-reply {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.comment .com-reply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid var(--borderColor);
    border-radius: 999px;
    box-shadow: none;
    appearance: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: var(--lightColor);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.comment .com-reply:hover {
    color: var(--buttonBgColor);
    border-color: rgba(89, 184, 248, 0.4);
    background: rgba(89, 184, 248, 0.1);
}

.comment .com-reply:focus-visible {
    outline: 2px solid rgba(89, 184, 248, 0.45);
    outline-offset: 2px;
}

[data-theme="dark"] .comment .com-reply {
    border-color: rgba(148, 163, 184, 0.34);
}

.comment-children {
    margin: 14px 0 4px 28px;
    clear: both;
    border: none;
    padding: 0;
}

.comment .comment-post {
    width: 100%;
    margin: 12px 0 0;
    padding: 12px 0 0;
    background: transparent;
    border-top: 1px dashed var(--borderColor);
    border-radius: 0;
    clear: both;
}

.comment .comment-post .comment-info {
    margin-top: 8px;
    gap: 10px;
}

.comment .comment-post .com_control,
.comment .comment-post .captcha-container {
    border: 1px solid var(--borderColor);
    border-right: 1px solid var(--borderColor);
    border-radius: 10px !important;
}

.comment .comment-post .captcha-container {
    border-left: 1px solid var(--borderColor);
}

.comment-info {
    overflow: hidden;
    margin-top: -8px;
}

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

.cancel-reply {
    font-size: large
}

/* 评论人的头像 */
.avatar img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    margin-top: 0;
    margin-right: 4px;
    border-radius: 50%;
    border: 1px solid var(--borderColor);
}

.unstyle-li input[type="submit"] {
    background-color: var(--buttonBgColor);
    color: var(--buttonTextColor);
    float: left;
    margin-left: -1px;
    height: 40px;
    width: 25%;
    border: 0;
    border-radius: 0 20px 20px 0;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.unstyle-li input[type="submit"]:hover {
    filter: brightness(0.9);
}

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

/* 文章条目中的置顶图案 */
.log-topflg {
    user-select: none;
    display: inline-block;
    position: relative;
    height: 26px;
    padding: 3px 10px;
    bottom: 3.5px;
    font-size: 13px;
    margin-left: 8px;
    cursor: default;
    background-color: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border-radius: 13px;
    line-height: 1.5;
    font-weight: 600;
}

/* 文章内容页样式
---------------------------------------------------*/
.log-con {
    background-color: var(--conBgcolor);
    border-radius: var(--marRadius);
    max-width: 960px;
    padding: 1.25rem;
    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
}

.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 {
    font-size: small;
    padding-bottom: 0.5rem;
}

.loglist-body p {
    margin: 0;
}

/* 文章标题和标签等 */
.loglist-title {
    font-size: x-large
}

.loglist-tag {
    margin-top: 30px;
    line-height: 2;
    color: #000000
}

.loglist-tag a {
    color: #929292
}

.loglist-cover {
    width: 100%;
    height: 205px;
    border-radius: var(--marRadius) var(--marRadius) 0 0;
    overflow: hidden;
    position: relative;
}

.loglist-cover img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s;
    display: block;
}

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

.log-cover {
    width: 100%;
    border-radius: var(--marRadius);
    overflow: hidden;
}

.log-cover img {
    width: 100% !important;
    height: auto;
    display: block;
    border-radius: var(--marRadius);
}

/* 文章分类 */
.loglist-sort {
    user-select: none;
    display: inline-block;
    position: relative;
    height: 26px;
    padding: 3px 10px;
    bottom: 3.5px;
    font-size: 13px;
    margin-left: 8px;
    cursor: default;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--buttonBgColor);
    border-radius: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.loglist-sort a {
    color: var(--buttonBgColor);
}

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

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

/* 条目的其他内容 */
.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;
    object-fit: cover;
    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: 75%;
    box-shadow: none;
    float: left;
    font-size: 1rem;
    padding: 8px 16px;
    height: 40px;
    line-height: 1.5;
    color: var(--inputTextColor);
    border: 1px solid var(--inputBorderColor);
    margin-block: 0;
    border-radius: 20px 0 0 20px;
    outline: none;
    transition: all 0.3s;
}

.search:focus {
    border-color: var(--buttonBgColor);
    z-index: 2;
    position: relative;
}

/* 文章阅读和文章条目的标签 */
.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;
    object-fit: cover;
    margin-bottom: 4px;
    margin-right: 3px;
    border-radius: 50%;
    vertical-align: middle;
    border-style: none
}

/* 侧边栏：最新评论与微语的轻量列表样式 */
.side-bar .side-comment-list,
.side-bar .side-twitter-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.side-bar .side-comment-list .comment-info,
.side-bar .side-twitter-list .side-twitter-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 4px;
    align-items: center;
    margin-top: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--borderColor);
    border-radius: 0;
    background: transparent;
    line-height: 1.5;
    transition: color 0.2s, border-color 0.2s;
}

.side-bar .side-comment-list .comment-info:hover,
.side-bar .side-twitter-list .side-twitter-item:hover {
    border-color: rgba(89, 184, 248, 0.28);
}

[data-theme="dark"] .side-bar .side-comment-list .comment-info:hover,
[data-theme="dark"] .side-bar .side-twitter-list .side-twitter-item:hover {
    border-color: rgba(99, 179, 237, 0.45);
}

.side-bar .side-comment-list li:last-child,
.side-bar .side-twitter-list li:last-child {
    border-bottom: 0;
}

.side-bar .side-comment-list .comment-info_img {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 28px;
    height: 28px;
    margin-right: 0;
    margin-bottom: 0;
    border: 0;
}

.side-bar .side-comment-list .comm-lates-name,
.side-bar .side-twitter-list .comm-lates-name {
    grid-column: 2;
    grid-row: 1;
    display: block;
    max-width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--fontColor);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    min-width: 0;
}

.side-bar .side-comment-list .logcom-latest-time,
.side-bar .side-twitter-list .logcom-latest-time {
    grid-column: 3;
    grid-row: 1;
    position: static;
    justify-self: end;
    margin-left: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    color: var(--lightColor);
}

[data-theme="dark"] .side-bar .side-comment-list .logcom-latest-time,
[data-theme="dark"] .side-bar .side-twitter-list .logcom-latest-time {
    color: var(--lightColor);
}

.side-bar .side-comment-list .comment-info a {
    grid-column: 2 / 4;
    grid-row: 2;
    display: -webkit-box;
    margin-top: 0;
    padding-left: 0;
    color: var(--fontColor);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-bar .side-twitter-list .side-twitter-item {
    color: var(--fontColor);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-bar .side-twitter-list .side-twitter-item .comm-lates-name {
    max-width: 100%;
}

.side-bar .side-twitter-list .side-twitter-content {
    grid-column: 2 / 4;
    grid-row: 2;
    display: -webkit-box;
    margin-top: 0;
    color: var(--fontColor);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-bar .side-twitter-list .side-twitter-content p {
    margin: 0;
}

.side-bar .side-twitter-list .side-twitter-content br {
    line-height: 1;
}

.side-bar .side-comment-list hr,
.side-bar .side-twitter-list hr {
    display: none;
}

.side-bar .side-comment-list br,
.side-bar .side-twitter-list br {
    display: none;
}

@media (max-width: 575px) {
    .side-bar .side-comment-list .logcom-latest-time,
    .side-bar .side-twitter-list .logcom-latest-time {
        position: static;
        display: inline-flex;
        margin-left: 8px;
        vertical-align: middle;
    }
}

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

.date a {
    color: #7f7f7f
}

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

.log-title {
    text-align: left;
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.25;
    overflow-wrap: anywhere
}

.log-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px
}

.log-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin: 0;
    color: var(--lightColor);
    font-size: 14px;
    line-height: 1.6
}

.log-meta-left, .log-meta-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px
}

.log-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap
}

.log-meta a {
    color: inherit
}

.log-meta .iconfont {
    font-size: 14px
}

@media (max-width: 480px) {
    .log-title {
        font-size: 1.55rem
    }

    .log-meta-item {
        white-space: normal
    }
}

.page-title {
    margin-bottom: 30px;
    font-size: 1.75rem
}

/* 相邻文章按钮的样式 */
.neighbor-log {
    display: flex;
    gap: 12px;
    margin-block: 20px
}

.prev-log {
    flex: 1;
    min-width: 0
}

.next-log {
    flex: 1;
    min-width: 0
}

.neighbor-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--borderColor);
    border-radius: 0.75rem;
    transition: background-color 0.2s, border-color 0.2s
}

.neighbor-link:hover {
    background-color: rgba(89, 184, 248, 0.08);
    border-color: rgba(89, 184, 248, 0.28)
}

.neighbor-dir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--lightColor);
    line-height: 1.2
}

.neighbor-title {
    font-size: 14px;
    line-height: 1.4;
    color: var(--fontColor);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.next-log .neighbor-dir {
    justify-content: flex-end
}

.next-log .neighbor-title {
    text-align: right
}

@media (max-width: 600px) {
    .neighbor-log {
        flex-direction: column
    }

    .neighbor-title {
        white-space: normal;
        overflow-wrap: anywhere
    }
}

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

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

/* 网页足部
---------------------------------------------------*/
.footinfo {
    line-height: 2;
    padding-block: 30px;
    text-align: center !important;
    color: var(--lightColor);
    font-size: 14px;
    border-top: 1px solid var(--borderColor);
}

.footinfo a {
    color: var(--lightColor);
}

.footinfo a:hover {
    color: var(--aHoverColor);
}

/* 图片放大
---------------------------------------------------*/
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;
    z-index: 1000;
}

.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
    }

    .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-container {
        margin-top: calc(74px + 15px);
        margin-bottom: 15px;
    }

    /* 评论的信息栏变化 */
    .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,
    .log-con {
        padding: 14px;
    }

    .side-bar .widget {
        margin-bottom: 1.5rem
    }

    .pagination:after {
        content: "";
        margin-bottom: 20px;
        display: block;
        clear: both
    }

    .bar_top_line {
        display: block;
        margin-bottom: 23px
    }

    .pagination span {
        padding: 5.5px 9px 3px 9px
    }

    .pagination a {
        padding: 5.5px 9px 3px 9px
    }

    .com_control {
        height: 44px
    }

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

    #pagenavi {
        line-height: 45px
    }

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

    /* 评论相关 */
    .comment-post #comment {
        border-radius: 10px;
        min-height: 112px;
    }

    .comment-post input {
        width: 100%
    }

    .commentform .comment-info {
        margin-top: 8px;
        gap: 10px;
    }

    #comments {
        margin-bottom: 64px
    }

    .com_control {
        border: 1px solid var(--borderColor);
        border-radius: 6px !important;
        margin-top: 0;
        border-right: 1px solid var(--borderColor);
    }

    .comment-mail {
        margin-bottom: 0;
    }

    .comment-url {
        margin-bottom: 0;
    }

    .comment-name {
        margin-bottom: 0;
    }

    .comment .comment-post {
        display: block;
        width: 100%;
    }

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

    .comment .comment-infos {
        margin-left: 38px;
        font-size: 14px;
        padding: 12px;
    }

    .comment .avatar {
        margin: 0 0 8px;
        height: 30px;
        width: 30px;
        float: left;
    }

    .comment .avatar img {
        height: 30px;
        width: 30px;
        margin-top: 0;
    }

    .comment {
        margin: 12px 0;
    }

    .comment-children {
        margin-left: 12px;
        padding-left: 8px;
    }

    .comment .comment-reply {
        margin-top: 10px;
    }

    .comment .com-reply {
        min-height: 32px;
        padding: 0 11px;
    }

    .comment-post {
        padding: 10px 0 0;
    }

    .comment-post #comment_submit,
    .comment-post #cancel-reply {
        width: 100%;
        min-width: 0;
        height: 44px;
    }

    #comments .comment-info {
        gap: 8px;
    }

    #comments .com_control,
    #comments .captcha-container {
        min-width: 100%;
        height: 44px;
    }

    #comments .captcha-container img {
        width: 96px;
        height: 30px;
    }

    .com_submit_p {
        gap: 6px;
    }

    .com_submit_p > * {
        width: 100%;
    }

    /* 摘要的溢出（overflow）操作 在 小屏幕上要截得多一点 */
    .subtitle-overflow {
        max-width: 80%
    }

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

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

    .toc-con div {
        height: calc(100vh - 60px) !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: 1000px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
    border-radius: var(--marRadius);
    overflow: hidden;
}

.mySlides img {
    border-radius: var(--marRadius);
    display: block;
    object-fit: cover;
}

.slideshow-prev,
.slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
}

.slideshow-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

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

.slideshow-text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.active {
    background-color: #717171;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

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

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

/* 右侧悬浮工具栏 */
.side-toolbar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-btn {
    width: 40px;
    height: 40px;
    background-color: var(--conBgcolor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    color: var(--fontColor);
}

.side-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--buttonBgColor);
    color: var(--buttonTextColor);
}

.side-btn svg {
    width: 20px;
    height: 20px;
}

#back-to-prev {
    display: flex;
}

/* 黑暗模式下的样式调整 */
[data-theme="dark"] .side-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .side-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 主题图标切换逻辑 */
.icon-sun {
    display: none;
}
.icon-moon {
    display: block;
}

[data-theme="dark"] .icon-sun {
    display: block;
}
[data-theme="dark"] .icon-moon {
    display: none;
}

/* 修复放大图片被遮挡的问题 */
.zoom-fix-container {
    overflow: visible !important;
}

.zoom-fix-card {
    z-index: 1000 !important;
    position: relative; /* 确保 z-index 生效 */
}

.auth-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    z-index: 1090;
    backdrop-filter: blur(2px);
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-card {
    width: 100%;
    max-width: 430px;
    background: var(--conBgcolor);
    border-radius: 14px;
    border: 1px solid var(--borderColor);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    padding: 24px;
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--borderColor);
    background: transparent;
    box-shadow: none;
    color: var(--fontColor);
    padding: 0;
    line-height: 1;
}

.auth-modal-close:hover {
    transform: none;
    filter: none;
    background: var(--bodyBground);
    box-shadow: none;
}

.auth-modal-head h3 {
    margin-bottom: 4px;
    font-size: 22px;
    font-weight: 600;
}

.auth-modal-head p {
    margin: 0 0 18px 0;
    color: var(--lightColor);
    font-size: 14px;
    line-height: 1.5;
}

.auth-modal-alert {
    display: none;
    margin-bottom: 14px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
}

.auth-modal-alert.show {
    display: block;
}

.auth-modal-alert.success {
    background: rgba(56, 161, 105, 0.15);
    color: #2f855a;
}

.auth-switch-links {
    text-align: left;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-switch-link {
    color: var(--lightColor);
    text-decoration: none !important;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0;
    transition: color 0.15s ease;
}

.auth-switch-link:hover {
    color: var(--buttonBgColor);
}

.auth-switch-link.active {
    color: var(--buttonBgColor);
    font-weight: 600;
}

.auth-switch-sep {
    margin: 0 5px;
    color: var(--borderColor);
    font-size: 12px;
}

.auth-modal button,
.auth-modal .btn,
.auth-modal .auth-submit,
.auth-modal .auth-inline-btn,
.auth-modal input,
.auth-modal a {
    box-shadow: none !important;
    transform: none !important;
}

.auth-modal button:hover,
.auth-modal .btn:hover,
.auth-modal .auth-submit:hover,
.auth-modal .auth-inline-btn:hover,
.auth-modal input:hover,
.auth-modal a:hover {
    box-shadow: none !important;
    transform: none !important;
}

.auth-modal button:active,
.auth-modal .btn:active,
.auth-modal .auth-submit:active,
.auth-modal .auth-inline-btn:active {
    box-shadow: none !important;
    transform: none !important;
}

.auth-form-row {
    margin-bottom: 12px;
}

.auth-form-row input {
    height: 46px;
    border: 1px solid var(--inputBorderColor) !important;
    box-shadow: none !important;
}

.auth-form-row input:focus {
    border-color: var(--buttonBgColor) !important;
    box-shadow: none !important;
    outline: none !important;
}

.auth-captcha-row,
.auth-inline-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-captcha-row input,
.auth-inline-row input {
    flex: 1;
}

.auth-captcha-row img {
    width: 110px;
    height: 46px;
    border-radius: var(--marRadius, 8px);
    border: 1px solid var(--inputBorderColor) !important;
    box-shadow: none !important;
    cursor: pointer;
    background: var(--inputBgColor);
}

.auth-inline-btn {
    margin: 0;
    height: 46px;
    line-height: 44px;
    white-space: nowrap;
    padding: 0 16px;
    border-radius: var(--marRadius, 8px);
    font-size: 14px;
    background: var(--inputBgColor);
    color: var(--buttonBgColor);
    border: 1px solid var(--inputBorderColor) !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-inline-btn:hover:not(:disabled) {
    background: var(--buttonBgColor);
    color: var(--buttonTextColor);
    border-color: var(--buttonBgColor) !important;
    box-shadow: none !important;
    transform: none !important;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--lightColor);
    margin: 2px 0 10px;
    cursor: pointer;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
}

.auth-submit {
    width: 100%;
    margin: 4px 0 0;
}

.auth-login-ext {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-login-ext a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.auth-login-ext img {
    display: block;
    max-height: 28px;
}

.auth-submit:disabled,
.auth-inline-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-modal-switch {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.auth-modal-switch a {
    color: var(--buttonBgColor);
}

[data-theme="dark"] .auth-modal-alert {
    background: rgba(252, 129, 129, 0.2);
    color: #feb2b2;
}

[data-theme="dark"] .auth-modal-alert.success {
    background: rgba(72, 187, 120, 0.2);
    color: #9ae6b4;
}

@media (max-width: 577px) {
    .auth-modal {
        align-items: flex-end;
        padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
    }

    .auth-modal-card {
        max-width: none;
        max-height: min(86vh, 640px);
        border-radius: 16px 16px 12px 12px;
        padding: 18px 16px 16px;
        overflow-y: auto;
    }

    .auth-modal-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }

    .auth-captcha-row {
        gap: 8px;
    }

    .auth-captcha-row img {
        width: 96px;
    }

    .auth-inline-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-inline-btn {
        width: 100%;
    }

    .auth-login-ext img {
        max-height: 24px;
    }
}

/* Yuanmeng Journal — responsive editorial skin */
:root{--ym-ink:#202a38;--ym-muted:#7c8796;--ym-line:#e8ebef;--ym-blue:#3f6f9f}
html{scroll-behavior:smooth;scroll-padding-top:90px}body{background:#f5f6f8;color:#384353;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;line-height:1.75;font-size:15px}.blog-header{background:rgba(255,255,255,.95);border-bottom:1px solid #e9edf1;box-shadow:0 3px 18px rgba(31,45,61,.025);backdrop-filter:blur(16px);position:sticky;top:0;z-index:50}.blog-header-c{max-width:1160px;min-height:76px;padding-top:0;padding-bottom:0;gap:26px}.blog-header-title,.blog-header-brand-name{font-size:22px;font-weight:750;letter-spacing:-.5px;color:#202a38}.blog-header-nav a{font-size:14px;font-weight:550;padding:10px 12px;border-radius:8px}.blog-header-nav a:hover{background:#f2f5f8;color:var(--ym-blue)}.blog-container{max-width:1160px;padding-top:30px;padding-bottom:50px}.ym-home{padding-top:30px}
.ym-hero{min-height:270px;background:#eaf0f5;border:1px solid #e2e9ef;border-radius:22px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:space-between;padding:42px 54px;margin-bottom:36px}.ym-hero:after{content:"";position:absolute;width:390px;height:390px;right:6%;top:-245px;border:1px solid rgba(63,111,159,.12);border-radius:50%;box-shadow:0 0 0 34px rgba(255,255,255,.16),0 0 0 70px rgba(255,255,255,.12);pointer-events:none}.ym-hero-copy{position:relative;z-index:2;max-width:610px}.ym-eyebrow,.ym-section-kicker{display:inline-flex;align-items:center;gap:9px;color:#69819a;font-size:10px;letter-spacing:2px;font-weight:750}.ym-eyebrow i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#5c87ad}.ym-hero h1{font-size:clamp(30px,4vw,43px);line-height:1.25;letter-spacing:-1.5px;color:#25374a;font-weight:750;margin:13px 0 10px}.ym-hero p{font-size:15px;color:#687b8e;line-height:1.9;margin:0;max-width:540px}.ym-hero-actions{display:flex;align-items:center;gap:20px;margin-top:25px}.ym-primary-link{display:inline-flex;align-items:center;gap:15px;background:#2f4e6c;color:#fff;padding:10px 17px;border-radius:8px;font-size:13px;font-weight:650;transition:transform .2s,background .2s}.ym-primary-link:hover{background:#213e5b;color:#fff;transform:translateY(-2px)}.ym-hero-note{font-size:12px;color:#8b9aaa;letter-spacing:.5px}.ym-hero-art{width:245px;height:220px;flex:0 0 245px;position:relative;margin-right:28px}.ym-orbit{position:absolute;border:1px solid rgba(82,119,151,.22);border-radius:50%;transform:rotate(-25deg)}.ym-orbit-one{width:240px;height:110px;left:0;top:52px}.ym-orbit-two{width:205px;height:150px;left:17px;top:30px;transform:rotate(38deg)}.ym-art-card{position:absolute;width:135px;height:158px;left:55px;top:28px;background:rgba(255,255,255,.88);border:1px solid #fff;border-radius:13px;box-shadow:0 18px 45px rgba(54,79,102,.13);padding:18px 16px;transform:rotate(5deg)}.ym-art-mark{display:block;font-size:32px;line-height:1;font-weight:800;color:#466c8f;letter-spacing:-3px;margin-bottom:25px}.ym-art-line{height:5px;width:90px;background:#dce5ed;border-radius:8px;display:block;margin:8px 0}.ym-art-line.short{width:58px}.ym-art-caption{position:absolute;bottom:15px;left:16px;font-size:6px;letter-spacing:1.2px;color:#94a4b4}.ym-art-dot{position:absolute;width:9px;height:9px;background:#7197b8;border-radius:50%;box-shadow:0 0 0 7px rgba(113,151,184,.13)}.dot-one{top:24px;right:16px}.dot-two{bottom:19px;left:17px;width:6px;height:6px}
.ym-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:28px;align-items:start}.ym-post-column{min-width:0}.ym-section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 18px;padding:0 2px}.ym-section-heading h2{font-size:24px;line-height:1.3;color:#263444;letter-spacing:-.6px;font-weight:750;margin:5px 0 0}.ym-section-side{font-size:12px;color:#9aa3ad;padding-bottom:4px}.ym-post-card{display:flex;gap:22px;padding:22px;background:#fff;border:1px solid #e9edf1;border-radius:15px;margin-bottom:15px;transition:border-color .2s,transform .2s,box-shadow .2s;min-width:0}.ym-post-card:hover{border-color:#d6e0e9;transform:translateY(-2px);box-shadow:0 10px 26px rgba(32,49,66,.045)}.ym-post-cover{width:190px;flex:0 0 190px;align-self:stretch;min-height:145px;overflow:hidden;border-radius:10px;background:#edf1f5}.ym-post-cover img{display:block;width:100%;height:100%;min-height:145px;object-fit:cover;transition:transform .35s}.ym-post-card:hover .ym-post-cover img{transform:scale(1.035)}.ym-post-main{min-width:0;display:flex;flex-direction:column;flex:1}.ym-post-meta{display:flex;align-items:center;gap:9px;color:#97a1ad;font-size:12px;margin:1px 0 8px}.ym-post-meta a{color:inherit}.ym-meta-dot{width:3px;height:3px;background:#b6c0ca;border-radius:50%}.ym-post-main h3{font-size:19px;line-height:1.5;font-weight:700;letter-spacing:-.35px;margin:0 0 7px;color:#263444}.ym-post-main h3 a{color:#263444}.ym-post-main h3 a:hover{color:#416f98}.ym-post-excerpt{font-size:13px;line-height:1.85;color:#7b8795;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ym-post-excerpt p{margin:0;line-height:inherit}.ym-post-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:15px}.ym-post-tags{min-width:0;overflow:hidden;white-space:nowrap}.ym-post-tags a{font-size:11px;color:#6c8297;background:#f2f5f8;padding:4px 8px;border-radius:5px;margin-right:5px}.ym-post-stats{display:flex;gap:12px;flex-shrink:0;color:#9aa4af;font-size:11px}.ym-post-stats a{color:#9aa4af}.ym-post-stats a:hover{color:#416f98}.ym-empty{padding:55px 20px;text-align:center;background:#fff;border:1px solid #e9edf1;border-radius:15px}.ym-empty-icon{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#edf3f8;color:#597b9b;font-size:23px}.ym-empty h3{font-size:17px;color:#344252;margin:15px 0 3px}.ym-empty p{font-size:13px;color:#929eaa;margin:0}
.side-bar{display:flex;flex-direction:column;gap:16px;min-width:0}.side-bar>div,.side-bar .shadow-theme,.side-bar .widget{background:#fff;border:1px solid #e9edf1;border-radius:14px;box-shadow:none!important;padding:20px;margin:0 0 15px}.side-bar h4,.side-bar .widget-title{font-size:15px;color:#2c3948;font-weight:700;margin:0 0 14px}.side-bar a{color:#596878}.side-bar a:hover{color:#416f98}.ym-slideshow{border-radius:14px;overflow:hidden;margin-bottom:18px}.ym-slideshow img{width:100%;height:230px;object-fit:cover}.ym-slideshow .slideshow-text{left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(20,32,45,.65));padding:30px 18px 15px;color:#fff}.ym-pagination{margin:26px 0 0}.ym-pagination a,.ym-pagination span{border-radius:7px!important;border:1px solid #e2e8ee!important;background:#fff!important;color:#617181!important;padding:8px 12px!important}.ym-pagination .current,.ym-pagination span.current{background:#314f6b!important;color:#fff!important;border-color:#314f6b!important}
.ym-article{background:#fff;border:1px solid #e8edf1;border-radius:17px;padding:clamp(24px,4vw,48px);margin-top:28px;margin-bottom:42px;box-shadow:0 5px 22px rgba(31,45,61,.025)}.ym-article .ym-section-kicker{margin-bottom:10px}.ym-article .log-title{font-size:clamp(28px,4vw,38px);line-height:1.4;letter-spacing:-.8px;font-weight:750;color:#263444;margin:0 0 17px}.ym-article .log-meta{font-size:12px;color:#8c98a5;display:flex;flex-wrap:wrap;gap:10px}.ym-article hr{border-color:#e9edf1;margin:25px 0}.ym-article #articleContent{font-size:16px;line-height:2;color:#414d5a;overflow-wrap:anywhere}.ym-article #articleContent h2,.ym-article #articleContent h3{color:#263444;font-weight:700;margin-top:1.8em}.ym-article #articleContent img{max-width:100%;height:auto;border-radius:8px}.ym-article .log-cover img{max-width:100%;height:auto;border-radius:12px}.ym-article .neighbor-log{border-top:1px solid #e9edf1;border-bottom:1px solid #e9edf1;padding:17px 0;margin:25px 0}.ym-footer{background:transparent;border-top:1px solid #e5e9ee;color:#8d98a4;font-size:12px;margin-top:15px}.ym-footer .footinfo{padding-top:28px;padding-bottom:28px}.ym-footer a{color:#687a8d}.side-toolbar .side-btn{border:1px solid #e1e7ed;background:#fff;color:#68798a;box-shadow:0 5px 18px rgba(31,45,61,.08);border-radius:10px}.side-toolbar .side-btn:hover{color:#315675}input,textarea,select,button,.btn{border-radius:8px;box-shadow:none!important}
@media(max-width:900px){.blog-header-c{min-height:68px}.ym-content-grid{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.ym-hero{padding:34px 35px}.ym-hero-art{transform:scale(.85);transform-origin:center right;margin-right:0}.ym-post-cover{width:155px;flex-basis:155px}.ym-post-card{gap:17px;padding:18px}}
@media(max-width:720px){.blog-container{padding-top:18px;padding-bottom:30px}.ym-hero{min-height:0;padding:30px 25px;border-radius:16px;margin-bottom:28px}.ym-hero-art{display:none}.ym-hero h1{font-size:32px}.ym-hero p{font-size:14px}.ym-content-grid{display:flex;flex-direction:column}.ym-post-column,.side-bar{width:100%}.side-bar{margin-top:8px}.ym-section-heading h2{font-size:22px}.ym-section-side{display:none}.ym-post-card{padding:16px;gap:14px}.ym-post-cover{width:112px;flex-basis:112px;min-height:112px;max-height:128px}.ym-post-cover img{min-height:112px}.ym-post-main h3{font-size:16px;line-height:1.45}.ym-post-excerpt{font-size:12px;-webkit-line-clamp:2}.ym-post-bottom{padding-top:10px}.ym-post-stats{gap:8px}.ym-post-tags a{font-size:10px}.ym-article{padding:24px 20px;margin-top:16px;border-radius:13px}.ym-article .log-title{font-size:27px}.ym-article #articleContent{font-size:15px}.ym-slideshow img{height:175px}}
@media(max-width:420px){.ym-post-cover{width:92px;flex-basis:92px;min-height:100px;max-height:112px}.ym-post-cover img{min-height:100px}.ym-post-card{gap:12px;padding:13px}.ym-post-meta{font-size:10px;gap:6px}.ym-post-main h3{font-size:15px}.ym-post-excerpt{font-size:11px}.ym-post-stats{font-size:10px}.ym-post-bottom{align-items:flex-start;flex-direction:column;gap:7px}.ym-hero-actions{gap:12px}.ym-hero-note{font-size:11px}}

/* 修复：原默认模板 .column-small 在桌面端固定为 28%，与新版 CSS Grid 冲突，导致侧栏被压窄 */
.ym-content-grid > .side-bar,
.ym-content-grid .side-bar.column-small {
    display: flex;
    flex: initial !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
    align-self: start;
}
.ym-content-grid > .ym-post-column { min-width: 0; width: auto; }
.ym-content-grid .side-bar > .widget,
.ym-content-grid .side-bar > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}
.ym-content-grid .side-bar img,
.ym-content-grid .side-bar iframe,
.ym-content-grid .side-bar input,
.ym-content-grid .side-bar select,
.ym-content-grid .side-bar textarea {
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 720px) {
    .ym-content-grid > .side-bar,
    .ym-content-grid .side-bar.column-small { width: 100% !important; max-width: 100% !important; }
}

/* Yuanmeng Journal — redesigned article detail page */
.ym-article-page { padding-top: 30px; }
.ym-article-layout { align-items: flex-start; gap: 28px; }
.ym-article-main-column { min-width: 0; }
.ym-article-page .ym-article { margin: 0 0 42px; }
.ym-article-header { position: relative; padding: 0 0 25px; margin: 0 0 28px; border: 0; }
.ym-article-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ym-article-topline .ym-section-kicker { margin: 0; }
.ym-article-topline .ym-section-kicker i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6b91b3; }
.ym-article-type { font-size: 10px; letter-spacing: 1.3px; color: #9aa6b2; font-weight: 650; }
.ym-article-type span { padding: 0 5px; color: #c2cbd3; }
.ym-article-page .ym-article .log-title { max-width: 900px; font-size: clamp(30px, 4vw, 42px); line-height: 1.35; letter-spacing: -1.1px; margin: 0 0 20px; overflow-wrap: anywhere; }
.ym-article-meta { align-items: center; justify-content: space-between; gap: 12px 20px; }
.ym-article-meta .log-meta-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 13px; min-width: 0; }
.ym-article-meta .log-meta-item { display: inline-flex; align-items: center; gap: 6px; line-height: 1.7; }
.ym-article-meta .ym-author-meta { color: #526a80; font-weight: 650; }
.ym-meta-avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #edf3f8; color: #52789a; font-size: 11px; }
.ym-meta-separator { width: 3px; height: 3px; border-radius: 50%; background: #c2ccd5; }
.ym-category-meta a { display: inline-flex; padding: 3px 9px; border-radius: 5px; background: #f0f4f7; color: #607c96; }
.ym-article-rule { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: #e9edf1; }
.ym-article-rule span { display: block; width: 52px; height: 2px; background: #5e83a5; position: relative; top: -1px; }
.ym-article-cover { margin: 0 0 30px; }
.ym-article-cover img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; }
.ym-article-page .ym-article-content { color: #414e5c; font-size: 16px; line-height: 2.05; overflow-wrap: anywhere; }
.ym-article-page .ym-article-content > :first-child { margin-top: 0; }
.ym-article-page .ym-article-content p { margin: 0 0 1.35em; }
.ym-article-page .ym-article-content h2 { font-size: 25px; line-height: 1.5; padding-left: 14px; border-left: 3px solid #7192b0; margin: 2em 0 .8em; }
.ym-article-page .ym-article-content h3 { font-size: 20px; margin: 1.8em 0 .7em; }
.ym-article-page .ym-article-content h4 { font-size: 17px; margin: 1.6em 0 .6em; }
.ym-article-page .ym-article-content a { color: #416f98; text-decoration: underline; text-decoration-color: #c5d4e0; text-underline-offset: 3px; }
.ym-article-page .ym-article-content blockquote { margin: 1.6em 0; padding: 15px 20px; background: #f5f8fa; border-left: 3px solid #8da9c1; border-radius: 0 9px 9px 0; color: #697b8b; }
.ym-article-page .ym-article-content pre { max-width: 100%; overflow: auto; padding: 18px 20px; border-radius: 10px; background: #202a35; color: #e9eff5; line-height: 1.75; font-size: 13px; }
.ym-article-page .ym-article-content code { font-size: .9em; }
.ym-article-page .ym-article-content :not(pre) > code { background: #f0f4f7; padding: 2px 5px; border-radius: 4px; color: #4e6c86; }
.ym-article-page .ym-article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.ym-article-page .ym-article-content th, .ym-article-page .ym-article-content td { border: 1px solid #e3e9ee; padding: 9px 12px; }
.ym-article-page .ym-article-content th { background: #f4f7f9; }
.ym-article-page .ym-article-content hr { border: 0; border-top: 1px solid #e8edf1; margin: 2em 0; }
.ym-article-page .ym-article-content img, .ym-article-page .ym-article-content video, .ym-article-page .ym-article-content iframe { max-width: 100%; }
.ym-article-footer { border-top: 1px solid #e9edf1; margin-top: 32px; padding-top: 22px; }
.ym-article-tags { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ym-footer-label { flex: 0 0 auto; color: #8a97a4; font-size: 12px; padding-top: 3px; }
.ym-article-tags a { display: inline-block; padding: 4px 10px; margin: 0 5px 6px 0; border-radius: 6px; background: #f0f4f7; color: #607b94; font-size: 12px; }
.ym-article-tags a:hover { background: #e5edf4; color: #355b7c; }
.ym-article-endmark { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 25px 0 5px; }
.ym-article-endmark span { width: 4px; height: 4px; border-radius: 50%; background: #b9c8d5; }
.ym-article-endmark span:nth-child(2) { width: 18px; border-radius: 5px; background: #7394b2; }
.ym-article-related:empty { display: none; }
.ym-neighbor-log { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0 !important; padding: 0 !important; margin: 25px 0 35px !important; }
.ym-neighbor-label { grid-column: 1 / -1; color: #82909e; font-size: 11px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; }
.ym-neighbor-log a { display: block; min-width: 0; padding: 14px 16px; border: 1px solid #e7edf1; border-radius: 10px; background: #f9fafb; color: #455a6e; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.ym-neighbor-log a:hover { border-color: #cad9e5; background: #f3f7fa; color: #315b7d; }
.ym-comments-section { border-top: 1px solid #e9edf1; padding-top: 30px; margin-top: 26px; }
.ym-comments-heading { margin-bottom: 22px; }
.ym-comments-heading .ym-section-kicker { font-size: 9px; }
.ym-comments-heading h2 { margin: 7px 0 4px; font-size: 23px; line-height: 1.4; color: #2b3948; letter-spacing: -.5px; }
.ym-comments-heading p { margin: 0; color: #8995a1; font-size: 13px; }
.ym-comment-form-wrap { padding: 20px; border: 1px solid #e8edf1; border-radius: 12px; background: #f9fafb; margin-bottom: 24px; }
.ym-comment-form-wrap textarea, .ym-comment-form-wrap input[type="text"], .ym-comment-form-wrap input[type="email"], .ym-comment-form-wrap input[type="url"] { border: 1px solid #e0e7ed; background: #fff; border-radius: 8px; box-shadow: none; }
.ym-comment-form-wrap textarea:focus, .ym-comment-form-wrap input:focus { border-color: #91abc2; outline: 0; }
.ym-comment-form-wrap button, .ym-comment-form-wrap input[type="submit"], .ym-comment-form-wrap .btn { border-radius: 8px; background: #365a79; color: #fff; border: 0; padding: 10px 18px; }
.ym-comment-list-wrap { min-width: 0; }
.ym-comment-list-wrap > * { max-width: 100%; }
.ym-article-page .side-bar { flex: 0 0 28%; max-width: 28%; min-width: 0; }
.ym-article-page .side-bar > div, .ym-article-page .side-bar .widget { width: 100%; min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .ym-article-layout { gap: 18px; }
  .ym-article-page .side-bar { flex-basis: 30%; max-width: 30%; }
  .ym-article-page .ym-article { padding: 30px; }
}
@media (max-width: 720px) {
  .ym-article-page { padding-top: 18px; }
  .ym-article-layout { display: flex; flex-direction: column; }
  .ym-article-main-column, .ym-article-page .side-bar { width: 100%; max-width: 100%; flex: 0 0 100%; }
  .ym-article-page .ym-article { padding: 23px 19px; border-radius: 13px; }
  .ym-article-topline { margin-bottom: 14px; }
  .ym-article-page .ym-article .log-title { font-size: 28px; letter-spacing: -.6px; }
  .ym-article-meta .log-meta-left { gap: 8px 10px; }
  .ym-article-page .ym-article-content { font-size: 15px; line-height: 1.95; }
  .ym-article-page .ym-article-content h2 { font-size: 22px; }
  .ym-comment-form-wrap { padding: 14px; }
}
@media (max-width: 480px) {
  .ym-article-type { display: none; }
  .ym-article-page .ym-article .log-title { font-size: 25px; }
  .ym-neighbor-log { grid-template-columns: 1fr; }
  .ym-neighbor-label { grid-column: auto; }
  .ym-article-page .ym-article-content pre { padding: 14px; font-size: 12px; }
}


/* ===== Emlog adaptation v1.1: layout follows the supplied HTML reference ===== */
/* Avoid legacy Bootstrap .row/.column-small sizing from shrinking the sidebar. */
.ym-home,
.ym-article-page {
  width: min(1160px, calc(100% - 40px)) !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.ym-home .ym-content-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  align-items: start !important;
  gap: 24px !important;
  width: 100% !important;
}
.ym-home .ym-post-column {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: initial !important;
}
.ym-home .ym-content-grid > .side-bar,
.ym-home .ym-content-grid > div.side-bar,
.ym-home .ym-content-grid .side-bar.column-small {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 300px !important;
  max-width: 300px !important;
  min-width: 0 !important;
  flex: 0 0 300px !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  align-self: start !important;
}
.ym-home .ym-content-grid .side-bar > *,
.ym-home .ym-content-grid .side-bar > div,
.ym-home .ym-content-grid .side-bar .widget,
.ym-home .ym-content-grid .side-bar .shadow-theme {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: initial !important;
  float: none !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere;
  word-break: normal;
}
.ym-home .ym-content-grid .side-bar img,
.ym-home .ym-content-grid .side-bar iframe,
.ym-home .ym-content-grid .side-bar input,
.ym-home .ym-content-grid .side-bar select,
.ym-home .ym-content-grid .side-bar textarea {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.ym-home .ym-hero {
  background: transparent !important;
}
.ym-home .ym-hero .ym-hero-panel,
.ym-home .ym-hero > div {
  box-sizing: border-box;
}
.ym-home .ym-hero {
  margin-top: 30px;
  margin-bottom: 24px;
}
.ym-home .ym-hero-copy {
  position: relative;
  z-index: 2;
}
.ym-home .ym-hero {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 36px 42px;
  display: flex;
  align-items: center;
  border-radius: 22px;
  color: #fff;
  background: #202c46 !important;
  box-shadow: 0 14px 35px rgba(32,44,70,.07);
}
.ym-home .ym-hero .ym-eyebrow { color: #a9c0ff; }
.ym-home .ym-hero h1 { color: #fff; }
.ym-home .ym-hero p { color: #c5cede; }
.ym-home .ym-hero .ym-primary-link { background: #fff; color: #202c46; }
.ym-home .ym-hero .ym-hero-note { color: #d4ddf2; }
.ym-home .ym-post-card { border-radius: 14px; }
.ym-home .ym-section-heading h2 { font-size: 22px; }
.ym-home .side-bar > div,
.ym-home .side-bar .widget,
.ym-home .side-bar .shadow-theme {
  background: #fff !important;
  border: 1px solid #e9ecf1 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  padding: 20px !important;
}
.ym-home .side-bar h3,
.ym-home .side-bar h4,
.ym-home .side-bar .widget-title {
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
}
.ym-home .side-bar ul,
.ym-home .side-bar ol { padding-left: 18px; }
.ym-home .side-bar p { max-width: 100%; }
@media (max-width: 900px) {
  .ym-home .ym-content-grid {
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 18px !important;
  }
  .ym-home .ym-content-grid > .side-bar,
  .ym-home .ym-content-grid > div.side-bar,
  .ym-home .ym-content-grid .side-bar.column-small {
    width: 260px !important;
    max-width: 260px !important;
    flex-basis: 260px !important;
  }
}
@media (max-width: 760px) {
  .ym-home, .ym-article-page {
    width: calc(100% - 28px) !important;
  }
  .ym-home .ym-content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  .ym-home .ym-content-grid > .side-bar,
  .ym-home .ym-content-grid > div.side-bar,
  .ym-home .ym-content-grid .side-bar.column-small {
    width: 100% !important;
    max-width: 100% !important;
    flex: initial !important;
    margin-top: 0 !important;
  }
  .ym-home .ym-hero {
    min-height: 235px;
    padding: 29px 25px;
    border-radius: 17px;
  }
}


/* v1.2: remove legacy column sizing at the markup level; follow the reference HTML layout */
main.container.blog-container.ym-home {
  display: block !important;
  width: min(1160px, calc(100% - 40px)) !important;
  max-width: 1160px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
main.container.blog-container.ym-home > .ym-content-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  column-gap: 24px !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
}
main.container.blog-container.ym-home > .ym-content-grid > .ym-post-column {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
}
main.container.blog-container.ym-home > .ym-content-grid > aside.ym-sidebar {
  grid-column: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  height: auto !important;
  float: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
main.container.blog-container.ym-home > .ym-content-grid > aside.ym-sidebar > * {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none !important;
  box-sizing: border-box !important;
  writing-mode: horizontal-tb !important;
  overflow-wrap: break-word !important;
}
main.container.blog-container.ym-home .ym-sidebar h1,
main.container.blog-container.ym-home .ym-sidebar h2,
main.container.blog-container.ym-home .ym-sidebar h3,
main.container.blog-container.ym-home .ym-sidebar h4,
main.container.blog-container.ym-home .ym-sidebar p,
main.container.blog-container.ym-home .ym-sidebar a,
main.container.blog-container.ym-home .ym-sidebar label {
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 760px) {
  main.container.blog-container.ym-home {
    width: calc(100% - 28px) !important;
  }
  main.container.blog-container.ym-home > .ym-content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  main.container.blog-container.ym-home > .ym-content-grid > aside.ym-sidebar {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
