/* loading */
#loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #f4f5f5;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.loader-inner {
    will-change: transform;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #3742fa;
    border-radius: 50%;
    animation: scaleout 0.6s infinite ease-in-out forwards;
    text-indent: -99999px;
    z-index: 999991;
    box-shadow: 0 0 20px rgba(55, 66, 250, 0.3);
}
@keyframes scaleout {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* 添加blogStats */
.profile-msg p:nth-child(3) {
    margin-top: 0;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 0 6px rgba(21, 23, 40, 0.6);
    letter-spacing: 0.3px;
}
.profile-msg p:nth-child(3) span {
    margin-right: 8px;
}

/* 自定义日历隐藏 */
#custom-calendar {
    display: none;
}

/* 文章目录优化 */
#catalog ul li a {
    transition: all 0.22s ease;
    border-radius: 6px;
}
#catalog ul li a:hover {
    background: rgba(80, 80, 80, .06);
    color: #807dd4;
    padding-left: 4px;
}
h3.catalog-title {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}
h3.catalog-title:before {
    content: '📖';
    position: relative;
    display: inline-block;
    margin-right: 8px;
}
h3.catalog-title:after {
    font-weight: 900;
    transform: rotate(90deg);
    content: "\25B2";
    font-variant: normal;
    text-rendering: auto;
    display: flex;
    background: 0 0;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    justify-content: center;
    align-items: center;
    transition: transform .24s ease, -webkit-transform .24s ease;
    font-family: iconfont !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    opacity: 0.7;
}
h3.catalog-title.is-active:after {
    transform: rotate(180deg);
}

/* 代码块 */
pre.highlighter-hljs {
    background: rgb(245, 245, 250);
    border-radius: 10px;
    box-shadow: 
        0 4px 14px -2px rgba(37, 44, 97, 0.12),
        0 1px 4px 0 rgba(93, 100, 148, 0.06);
    transition: all 0.24s ease;
    border: 1px solid rgba(93, 100, 148, 0.08);
}
pre.highlighter-hljs:hover {
    box-shadow: 
        0 6px 18px -2px rgba(37, 44, 97, 0.16),
        0 2px 6px 0 rgba(93, 100, 148, 0.08);
}
.hljs {
    background: #f5f5fa;
}

/* 表情框 */
.anim-scale-in {
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    transition: all 0.24s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 博客合集 */
.current-collection {
    max-width: none;
}

/* 文章内容首图 */
.medium-zoom-image {
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.18);
    border-radius: 12px !important;
    transition: all 0.3s ease;
}
.medium-zoom-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.22);
}

/* 文章内容图片 */
#post_detail img {
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.16);
    border-radius: 12px !important;
    transition: all 0.28s ease;
}
#post_detail img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.22);
}

/* 博客列表图片 */
.custom-card img {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.16);
    border-radius: 10px !important;
    transition: all 0.24s ease;
}
.custom-card:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
}

/* 博客列表标题 */
.custom-card-title {
    height: 45px;
    overflow: hidden;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s ease;
}

/* logo */
.logo-avatar {
    position: absolute;
    align-items: center;
    display: flex;
    z-index: 1;
    bottom: 8px;
    left: 24px;
}
.logo-avatar .avatar {
    border-radius: 50%;
    border: 4px solid var(--geek-color-1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.24s ease;
}
.logo-avatar .avatar:hover {
    transform: scale(1.08);
}
.logo-msg {
    position: absolute;
    z-index: 1;
    bottom: 8px;
    left: 68px;
    height: 40px;
}
.logo-msg p {
    font-size: 16px;
    line-height: 40px;
}
.logo-msg a {
    height: 40px;
    letter-spacing: normal;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(51, 53, 75, 0.6);
    transition: color 0.2s ease;
}

/* 旧links */
@media screen and (max-width: 768px) {
    #left-side .links {
        display: none !important;
    }
}

/* 移动端links */
@media screen and (max-width: 768px) {
    #left-side #cnblog-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    #left-side #cnblog-nav ul a {
        width: 15% !important;
    }
}

/* 移动端侧边栏 */
.mobile-menu #sideBar {
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.25);
    border-radius: 0 12px 12px 0;
}

/* 内容区滚动条隐藏 */
#mainContent::-webkit-scrollbar {
    display: none;
}

/* 左侧链接滚动条隐藏 */
#left-side::-webkit-scrollbar {
    display: none;
}

/* 博客列表卡片 */
.custom-card {
    transition: all 0.26s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    overflow: hidden;
}
.custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.18);
}

/* 公众号卡片 */
.card-widget#card-wechat.wechat::before {
    background: var(--wechat-ico-background-url) center center no-repeat;
    background-size: cover;
}
.card-widget#card-wechat::before {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    content: '';
    background-size: cover;
    transition: 0.24s cubic-bezier(.45,.04,.43,1.21);
}
.card-widget {
    box-shadow: 0 8px 20px -4px rgba(44, 45, 48, 0.08);
    background: #fff;
    border: 1px solid rgba(227, 232, 247, 0.6);
    border-radius: 12px;
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    gap: 8px;
    flex-direction: column;
}
.card-widget:hover {
    box-shadow: 0 12px 28px -4px rgba(44, 45, 48, 0.12);
    transform: translateY(-3px);
}
.card-widget#card-wechat.wechat {
    background: #57bd6a;
}
.card-widget#card-wechat {
    margin: 8px;
    background: #57bd6a;
    display: flex;
    justify-content: center;
    align-content: center;
    padding: 0;
    cursor: pointer;
    border: none;
    height: 110px;
}
#flip-wrapper {
    -webkit-perspective: 1000;
    perspective: 1000;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
}
#flip-content {
    width: 235px;
    height: 110px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: cubic-bezier(0,0,0,1.29) .35s;
}
.wechat .face {
    background: var(--face-background-url) center center no-repeat;
    background-size: cover;
}
.face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
}
.wechat .back.face {
    background: var(--wechat-card-background-url) center center no-repeat;
    background-size: cover;
}
.back.face {
    display: block;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    box-sizing: border-box;
}
body {
    position: relative;
    min-height: 100%;
    background: #f7f9fe;
    color: #363636;
    font-size: 16px;
    font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
    line-height: 2;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}
#flip-wrapper:hover #flip-content {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
.card-widget#card-wechat:hover:before {
    top: 100%;
    opacity: 0;
    transition: .3s ease-out;
}

/* 公众号卡片变量 */
:root {
    --wechat-ico-background-url: url(https://img2024.cnblogs.com/blog/3680164/202508/3680164-20250809105643703-384249641.png);
    --face-background-url: url(https://img2024.cnblogs.com/blog/3680164/202508/3680164-20250809104933944-1832994192.png);
    --wechat-card-background-url: url(https://img2024.cnblogs.com/blog/3680164/202508/3680164-20250809103201513-1557381086.png);
}

/* 定义列表 */
dl dt {
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 4px;
}
dl dd {
    margin: 0 0 15px;
    padding: 0 15px;
    color: #4a4a4a;
}

/* 下标 */
sub {
    vertical-align: sub !important;
    font-size: smaller !important;
}

/* 上标 */
sup {
    font-size: .83em !important;
    vertical-align: super !important;
    line-height: 0 !important;
}

/* 高亮 */
#mainContent .cnblogs-markdown mark {
    display: block;
    border: 1px solid #f98e8b;
    border-radius: 10px;
    padding: 16px;
    background-color: #fde2e2 !important;
    box-shadow: 0 2px 8px rgba(249, 142, 139, 0.15);
    transition: all 0.2s ease;
}
#mainContent .cnblogs-markdown mark:hover {
    box-shadow: 0 4px 12px rgba(249, 142, 139, 0.2);
}