/*====================================================================
 * 主题 UI 界面全面升级
 * 包含: 毛玻璃 / 现代卡片 / 流畅动效 / 间距优化 / 按钮美化 / 暗色优化
 *====================================================================*/

/* ================================================================
 * 1. 全局基础变量与平滑体验
 * ================================================================ */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    --main-radius: 12px;
    --main-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --main-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.10);
    --card-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.10);
    --float-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 全局 box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.25);
    border-radius: 10px;
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.45);
}

/* ================================================================
 * 2. 顶部导航栏 - 毛玻璃升级
 * ================================================================ */
.header {
    z-index: 1030;
}

.navbar-top {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-smooth);
}

/* 导航栏滚动后增加阴影 */
.navbar-top.affix,
.navbar-top.navbar-scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

/* 导航菜单项动效 */
.navbar-nav > li > a {
    position: relative;
    transition: color var(--transition-fast);
    font-weight: 500;
}
.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--theme-color);
    border-radius: 1px;
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
}
.navbar-nav > li > a:hover::after,
.navbar-nav > li.active > a::after {
    width: 60%;
}

/* Logo 微动效 */
.navbar-brand img {
    transition: transform var(--transition-bounce);
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* 导航按钮圆角统一 */
.navbar-top .but,
.navbar-top .signin-loader,
.navbar-top .signup-loader {
    border-radius: 20px !important;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.navbar-top .but:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ================================================================
 * 3. 内容区域 - 卡片/列表现代化
 * ================================================================ */

/* 卡片容器 - 毛玻璃 + 圆角 */
.zib-widget,
.theme-box,
.box-body {
    border-radius: var(--custom-radius-lg, 16px) !important;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

/* 主内容区卡片 */
.main-content .zib-widget:hover {
    box-shadow: var(--card-shadow-hover);
}

/* 文章卡片 - 全面升级 */
.posts-item.card {
    border-radius: var(--custom-radius-lg, 16px) !important;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-bounce);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.posts-item.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.06);
}

/* 卡片封面图优化 */
.posts-item.card .item-thumbnail {
    border-radius: 0 !important;
    overflow: hidden;
    position: relative;
}
.posts-item.card .item-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent);
    pointer-events: none;
    z-index: 1;
    transition: opacity var(--transition-smooth);
}
.posts-item.card:hover .item-thumbnail::after {
    opacity: 0.6;
}
.posts-item.card .item-thumbnail img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.posts-item.card:hover .item-thumbnail img {
    transform: scale(1.06);
}

/* 卡片内容区 */
.posts-item.card .item-body {
    padding: 16px !important;
}

/* 卡片标题 */
.posts-item .item-heading a {
    font-weight: 600;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

/* 列表模式优化 */
.posts-item.list {
    border-radius: var(--custom-radius-lg, 16px) !important;
    padding: 16px !important;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-bounce);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 16px !important;
}
.posts-item.list:hover {
    transform: translateX(4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 0, 0, 0.06);
}

/* 列表缩略图 */
.posts-item.list .item-thumbnail {
    border-radius: var(--custom-radius-md, 12px) !important;
    overflow: hidden;
}
.posts-item.list .item-thumbnail img {
    transition: transform 0.5s ease;
}
.posts-item.list:hover .item-thumbnail img {
    transform: scale(1.05);
}

/* 迷你列表 */
.posts-mini .posts-mini {
    border-radius: var(--custom-radius-sm, 8px);
    padding: 10px;
    transition: background var(--transition-fast);
}
.posts-mini .posts-mini:hover {
    background: rgba(128, 128, 128, 0.05);
}

/* ================================================================
 * 4. 文章内页 - 阅读体验优化
 * ================================================================ */

/* 文章主体卡片 */
.article {
    border-radius: var(--custom-radius-lg, 16px) !important;
    padding: 30px !important;
}
@media (max-width: 768px) {
    .article {
        padding: 20px !important;
    }
}

/* 文章标题 */
.article .article-header h1,
.article .article-header .article-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* 文章内容排版 */
.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    letter-spacing: 0.01em;
}
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(128, 128, 128, 0.12);
    letter-spacing: -0.01em;
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.article-content p {
    margin-bottom: 1.2em;
}
.article-content blockquote {
    border-left: 4px solid var(--theme-color);
    background: rgba(128, 128, 128, 0.03);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 1.5em 0;
    font-style: italic;
}
.article-content img {
    border-radius: var(--custom-radius-md, 12px);
    box-shadow: var(--card-shadow);
}

/* 代码块优化 */
.article-content pre,
.article-content code {
    border-radius: var(--custom-radius-md, 12px) !important;
}

/* ================================================================
 * 5. 按钮系统 - 全面美化
 * ================================================================ */

/* 通用按钮增强 */
.but,
.btn,
.button,
[class*="but-"] {
    border-radius: 20px !important;
    font-weight: 500;
    padding: 8px 20px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* 按钮涟漪效果 */
.but::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.but:active::after {
    opacity: 1;
    transition: opacity 0s;
}

.but:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* 主要按钮 */
.but.jb-blue,
.but.c-blue {
    background: linear-gradient(135deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 80%, #6366f1));
    box-shadow: 0 4px 14px var(--focus-color-opacity3);
}
.but.jb-blue:hover,
.but.c-blue:hover {
    box-shadow: 0 6px 22px var(--focus-color-opacity6);
    transform: translateY(-2px);
}

/* 发布按钮 */
.but.jb-red {
    border-radius: 24px !important;
    background: linear-gradient(135deg, #f546e8 10%, #ff648f 100%);
    box-shadow: 0 4px 14px rgba(245, 70, 232, 0.3);
    font-weight: 600;
}
.but.jb-red:hover {
    box-shadow: 0 6px 22px rgba(245, 70, 232, 0.45);
    transform: translateY(-2px);
}

/* ================================================================
 * 6. 侧边栏小工具 - 精致化
 * ================================================================ */

.sidebar .zib-widget,
.sidebar .widget {
    border-radius: var(--custom-radius-lg, 16px) !important;
    padding: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.sidebar .widget-title,
.sidebar .box-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(128, 128, 128, 0.1);
    position: relative;
}
.sidebar .widget-title::after,
.sidebar .box-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--theme-color);
    border-radius: 1px;
}

/* 侧边栏文章列表 */
.sidebar .posts-mini .posts-mini {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 2px;
    transition: all var(--transition-fast);
}
.sidebar .posts-mini .posts-mini:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(3px);
}
.sidebar .posts-mini .item-thumbnail {
    border-radius: 8px !important;
    overflow: hidden;
}

/* 标签云 */
.sidebar .tagcloud a,
.sidebar .widget_tag_cloud a {
    border-radius: 16px !important;
    padding: 5px 14px !important;
    background: rgba(128, 128, 128, 0.05);
    transition: all var(--transition-fast);
    font-size: 13px !important;
}
.sidebar .tagcloud a:hover,
.sidebar .widget_tag_cloud a:hover {
    background: var(--focus-color-opacity1);
    color: var(--theme-color);
    transform: translateY(-1px);
}

/* ================================================================
 * 7. 评论区 - 现代化
 * ================================================================ */

#comments,
.comments-main {
    border-radius: var(--custom-radius-lg, 16px) !important;
    padding: 24px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 评论输入框 */
.comment-form textarea {
    border-radius: var(--custom-radius-md, 12px) !important;
    border: 2px solid rgba(128, 128, 128, 0.12);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    resize: vertical;
    padding: 14px;
}
.comment-form textarea:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px var(--focus-color-opacity1);
    outline: none;
}

/* 评论提交按钮 */
.comment-form .submit {
    border-radius: 20px !important;
    font-weight: 600;
    padding: 10px 28px;
}

/* 评论列表项 */
.commentlist .comment {
    border-radius: var(--custom-radius-md, 12px);
    padding: 16px;
    margin-bottom: 12px;
    transition: background var(--transition-fast);
}
.commentlist .comment:hover {
    background: rgba(128, 128, 128, 0.02);
}

/* ================================================================
 * 8. 右侧浮动按钮 - 美化
 * ================================================================ */

.float-right {
    gap: 10px;
}
.float-right .float-btn {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--float-shadow);
    transition: all var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-right .float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    background: #fff;
}

/* 返回顶部按钮高亮 */
.float-right .back-top-btn {
    background: var(--theme-color) !important;
    color: #fff !important;
    border-color: var(--theme-color);
    box-shadow: 0 4px 16px var(--focus-color-opacity3);
}
.float-right .back-top-btn:hover {
    box-shadow: 0 6px 24px var(--focus-color-opacity6);
    transform: scale(1.12);
}

/* ================================================================
 * 9. 移动端底部 Tab 栏 - 精致化
 * ================================================================ */

.footer-tabbar {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.04);
    padding: 4px 0 6px;
    height: auto;
}

.footer-tabbar .tabbar-item {
    border-radius: 12px;
    padding: 6px 8px;
    transition: all var(--transition-fast);
    position: relative;
}
.footer-tabbar .tabbar-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--theme-color);
    border-radius: 0 0 3px 3px;
}
.footer-tabbar .tabbar-item .tabbar-icon {
    font-size: 22px;
    transition: transform var(--transition-bounce);
}
.footer-tabbar .tabbar-item:active .tabbar-icon {
    transform: scale(0.85);
}

/* 移动端发布按钮 */
.footer-tabbar .tabbar-item.add-modal .tabbar-icon {
    background: linear-gradient(135deg, #f546e8 10%, #ff648f 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 70, 232, 0.35);
    margin-top: -10px;
}

/* ================================================================
 * 10. 弹窗/对话框 - 毛玻璃升级
 * ================================================================ */

.modal-content,
.modal-body {
    border-radius: var(--custom-radius-lg, 16px) !important;
    overflow: hidden;
    border: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    padding: 18px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid rgba(128, 128, 128, 0.1);
    padding: 16px 24px;
}

/* 搜索弹窗 */
.main-search {
    border-radius: var(--custom-radius-lg, 16px) !important;
}

/* 登录弹窗 */
.signin-box,
.sign-register {
    border-radius: var(--custom-radius-lg, 16px) !important;
}

.signin-box .signin-logo img {
    border-radius: var(--custom-radius-md, 12px);
    transition: transform var(--transition-bounce);
}
.signin-box .signin-logo img:hover {
    transform: scale(1.08);
}

/* ================================================================
 * 11. 分页系统 - 美化
 * ================================================================ */

.pagination .page-numbers,
.ajax-pag .page-numbers {
    border-radius: 10px !important;
    margin: 0 3px;
    font-weight: 500;
    transition: all var(--transition-fast);
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
}
.pagination .page-numbers.current,
.ajax-pag .page-numbers.current {
    background: var(--theme-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px var(--focus-color-opacity3);
}
.pagination .page-numbers:hover:not(.current),
.ajax-pag .page-numbers:hover:not(.current) {
    background: var(--focus-color-opacity05);
    transform: translateY(-1px);
}

/* ================================================================
 * 12. 搜索框 - 增强
 * ================================================================ */

.navbar-search .search-input,
.search-form .search-input,
input.search-input {
    border-radius: 24px !important;
    padding: 10px 18px;
    border: 2px solid rgba(128, 128, 128, 0.12);
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.5);
}
.navbar-search .search-input:focus,
.search-form .search-input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 4px var(--focus-color-opacity05);
    background: #fff;
    outline: none;
}

/* ================================================================
 * 13. Tab 标签页 - 优化
 * ================================================================ */

.nav-tabs > li > a,
.tab-nav .tab-link {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}
.nav-tabs > li.active > a {
    color: var(--theme-color);
    font-weight: 600;
}

/* 首页 Tab 栏 */
.home-tab-nav-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--custom-radius-lg, 16px);
    padding: 8px 12px;
    box-shadow: var(--card-shadow);
}
.home-tab-nav-box ul li a {
    border-radius: 20px !important;
    padding: 8px 18px !important;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.home-tab-nav-box ul li.active a {
    background: var(--theme-color) !important;
    color: #fff !important;
}

/* ================================================================
 * 14. 面包屑导航
 * ================================================================ */

.breadcrumb {
    background: transparent;
    padding: 8px 0;
    font-size: 13px;
}
.breadcrumb > li + li::before {
    content: '/';
    padding: 0 6px;
    color: #ccc;
}

/* ================================================================
 * 15. 响应式移动端优化
 * ================================================================ */

@media (max-width: 768px) {
    /* 卡片缩小间距 */
    .posts-item.card,
    .posts-item.list {
        margin-bottom: 12px !important;
    }

    /* 导航栏 */
    .navbar-top {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    /* 文章卡片调整 */
    .posts-item.card .item-body {
        padding: 12px !important;
    }
    .posts-item.list {
        padding: 12px !important;
    }

    /* 评论区域 */
    #comments,
    .comments-main {
        padding: 16px;
    }

    /* 按钮适配 */
    .but {
        padding: 7px 16px;
        font-size: 13px;
    }

    /* 侧边栏 */
    .sidebar .zib-widget {
        padding: 16px;
    }

    /* 文章标题缩小 */
    .article .article-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article {
        padding: 16px !important;
    }
}

/* ================================================================
 * 16. 图片懒加载 - 优雅渐入
 * ================================================================ */

img.lazyload {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
img.lazyloaded {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
 * 17. 动画关键帧
 * ================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--theme-color-rgb, 240, 68, 148), 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(var(--theme-color-rgb, 240, 68, 148), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--theme-color-rgb, 240, 68, 148), 0);
    }
}

/* 交错渐入动画 */
.ajax-item {
    animation: fadeInUp 0.5s ease both;
}
.ajax-item:nth-child(1)  { animation-delay: 0.05s; }
.ajax-item:nth-child(2)  { animation-delay: 0.10s; }
.ajax-item:nth-child(3)  { animation-delay: 0.15s; }
.ajax-item:nth-child(4)  { animation-delay: 0.20s; }
.ajax-item:nth-child(5)  { animation-delay: 0.25s; }
.ajax-item:nth-child(6)  { animation-delay: 0.30s; }
.ajax-item:nth-child(7)  { animation-delay: 0.35s; }
.ajax-item:nth-child(8)  { animation-delay: 0.40s; }

/* ================================================================
 * 18. 骨架屏占位优化
 * ================================================================ */

.placeholder,
.skeleton {
    background: linear-gradient(90deg, rgba(128, 128, 128, 0.06) 25%, rgba(128, 128, 128, 0.10) 37%, rgba(128, 128, 128, 0.06) 63%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: 8px;
}

/* ================================================================
 * 19. 选择文本颜色
 * ================================================================ */

::selection {
    background: var(--focus-color-opacity3);
    color: var(--theme-color);
}

/* ================================================================
 * 20. 点赞/收藏等互动按钮
 * ================================================================ */

.action-btns .but {
    border-radius: 20px !important;
    padding: 8px 18px;
    font-weight: 500;
}
.action-btns .but:hover {
    transform: scale(1.05);
}

/* 动作栏图标按钮 */
.article-action .action-item {
    border-radius: 20px;
    padding: 6px 14px;
    transition: all var(--transition-fast);
}
.article-action .action-item:hover {
    background: var(--focus-color-opacity05);
}

/* ================================================================
 * 21. 暗色模式适配
 * ================================================================ */

body.dark-theme .navbar-top {
    background: rgba(30, 30, 35, 0.72) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
body.dark-theme .navbar-top.affix,
body.dark-theme .navbar-top.navbar-scrolled {
    background: rgba(30, 30, 35, 0.88) !important;
}

body.dark-theme .posts-item.card {
    background: rgba(45, 45, 52, 0.75);
    border-color: rgba(255, 255, 255, 0.06);
}
body.dark-theme .posts-item.card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .posts-item.list {
    background: rgba(45, 45, 52, 0.65);
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-theme .sidebar .zib-widget,
body.dark-theme .sidebar .widget {
    background: rgba(45, 45, 52, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-theme #comments,
body.dark-theme .comments-main {
    background: rgba(45, 45, 52, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-theme .float-right .float-btn {
    background: rgba(45, 45, 52, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-theme .float-right .float-btn:hover {
    background: rgba(55, 55, 62, 0.9);
}

body.dark-theme .modal-content {
    background: rgba(35, 35, 40, 0.9);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.dark-theme .footer-tabbar {
    background: rgba(30, 30, 35, 0.82) !important;
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-theme .home-tab-nav-box {
    background: rgba(45, 45, 52, 0.65);
}

body.dark-theme .article-content {
    color: #d0d0d0;
}
body.dark-theme .article-content blockquote {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-theme .article-content h2 {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .comment-form textarea {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d0d0d0;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}
body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ================================================================
 * 22. 性能优化 - 减少重绘
 * ================================================================ */

.posts-item,
.zib-widget,
.float-right .float-btn,
.navbar-top,
.footer-tabbar,
.modal-content {
    will-change: transform;
}

/* 降低动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
