@font-face {
    font-family: "DingTalk JinBuTi";
    src: url("../fonts/DingTalk-JinBuTi.woff2") format("woff2");
    font-display: swap;
}

/* 只改文字，不动图标 */
body,
.aside-btn span,
.navbar-brand,
.site-name,
.post-title,
h1, h2, h3, h4, h5, h6,
p {
    font-family: "DingTalk JinBuTi", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 兜底：图标仍强制 iconfont */
.iconfont {
    font-family: "iconfont" !important;
}

/* 优化标题字体权重 */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: .5rem;
    font-weight: 300 !important;
    line-height: 1.2;
}

/* ======================= 以下为优化卡片显示效果 ========================= */

/* ----------------------- 优化卡片悬停效果 ------------------------- */
/* 优化卡片悬停效果：悬停时显示阴影和边框 */
.posts-item:not(.site-is-sticky):hover {
    box-shadow: inset 0 0 0 0 var(--muted-shadow), 0 2px 30px 0 var(--main-shadow) !important;
    border: 1px solid var(--theme-color) !important;
}

/* ----------------------- 优化卡片非悬停效果 ----------------------- */

/* 优化卡片非悬停效果：非悬停时显示无阴影 */
.show-card .posts-item {
    box-shadow: none !important;
}

/* 优化卡片非悬停效果：非悬停时显示灰色边框 */
.posts-item {
    border: 1px solid var(--border-light);
    overflow: hidden !important;
}

/* 优化卡片悬停效果：悬停时显示模糊背景放大2倍 */
.posts-item.sites-item:hover .blur-img-bg {
    transform: scale(2) !important;
}

/* 优化卡片悬停效果：悬停时显示直达按钮 */
.sites-item:not(.style-sites-max):hover .togo {
    opacity: 0.8;
    transform: translate(0, 0) !important;
}

/* 优化卡片非悬停效果：非悬停时显示直达按钮 */
.sites-item:not(.style-sites-max) .togo {
    position: absolute;
    right: 5px;
    top: 5%;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s ease;
    transform: translate(-20px, 0) !important;
}