/* Apple 风格 - 极简、毛玻璃、半透明 */

/* ============================================
   头像区域整体美化 - Apple 风格
   ============================================ */
.left-sidebar header {
    padding: 24px 0 20px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid var(--apple-border) !important;
}

/* 头像容器 */
.site-avatar {
    width: 100%;
    max-width: 100px;
    margin: 0 auto 20px !important;
    position: relative;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 头像图片 - 圆形设计 */
.site-avatar img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 2px;
}

.site-avatar img:hover {
    transform: scale(1.08) rotate(2deg) !important;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.site-avatar a {
    display: block;
    position: relative;
    border-radius: 50%;
    overflow: visible;
}

/* Emoji 装饰 - 更精美的设计 */
.site-avatar .emoji {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4),
                0 2px 6px rgba(0, 0, 0, 0.1) !important;
    border: 3px solid rgba(255, 255, 255, 0.95) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    z-index: 10 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.site-avatar:hover .emoji {
    transform: scale(1.1) rotate(10deg) !important;
    box-shadow: 0 6px 16px rgba(238, 90, 111, 0.5),
                0 3px 8px rgba(0, 0, 0, 0.15) !important;
}

/* 网站元信息区域 */
.site-meta {
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

    --apple-blue: #8b5cf6;
    --apple-blue-hover: #a78bfa;
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.site-name a {
    color: var(--apple-text) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, var(--apple-text) 0%, var(--apple-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-name a:hover {
    background: linear-gradient(135deg, var(--apple-blue) 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-1px);
}

/* 网站描述 */
.site-description {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--apple-text-secondary) !important;
    letter-spacing: 0.01em !important;
    line-height: 1.5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.left-sidebar header:hover .site-description {
    opacity: 1;
}

/* 暗色模式适配 */
.dark .site-avatar img {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.dark .site-avatar img:hover {
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35),
                0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.dark .site-avatar .emoji {
    border-color: rgba(28, 28, 30, 0.95) !important;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.5),
                0 2px 6px rgba(0, 0, 0, 0.3) !important;
}
/* 文章标题 */
.article-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "PingFang SC", "Hiragino Sans GB", !important;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* 首页文章卡片样式优化 */
body:not(.article-page) .article-title {
    font-size: 1.75rem;
}

/* 首页文章摘要样式 */
body:not(.article-page) .article-content {
    font-size: 1.05rem;
    line-height: 1.6;
}

body:not(.article-page) .article-summary,
body:not(.article-page) .article-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 首页文章元信息样式 */
body:not(.article-page) .article-meta {
    font-size: 0.85rem;
}

/* 首页文章卡片整体样式 */
body:not(.article-page) .article {
    font-size: 1.05rem;
}

body:not(.article-page) .article p {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* CSS 变量 - 极客风格紫色系 */
:root {
    --apple-gray: #f5f5f7;
    --apple-gray-dark: #1d1d1f;
    --apple-blue: #8b5cf6;
    --apple-blue-hover: #a78bfa;
    --apple-text: #1d1d1f;
    --apple-text-secondary: #86868b;
    --apple-card-bg: rgba(255, 255, 255, 0.8);
    --apple-border: rgba(0, 0, 0, 0.04);
    --apple-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --apple-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.dark {
    --apple-card-bg: rgba(28, 28, 30, 0.8);
    --apple-border: rgba(255, 255, 255, 0.1);
    --apple-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --apple-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.6);
    --apple-text: #f5f5f7;
    --apple-text-secondary: #a1a1a6;
}

/* Widget 卡片 - Apple 毛玻璃风格 */
.sidebar.right-sidebar .widget {
    background: var(--apple-card-bg);
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: var(--apple-shadow);
    border: 1px solid var(--apple-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.right-sidebar .widget:hover {
    box-shadow: var(--apple-shadow-hover);
    transform: scale(1.01);
}

/* Widget 标题 - Apple 排版风格 */
.widget-title.section-title {
    font-size: 11px;
    font-weight: 600 !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--apple-text-secondary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--apple-border);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "PingFang SC", sans-serif;
}

/* Widget 图标 */
.widget-icon {
    display: none;
}

/* ============================================
   分类模块 - 现代卡片式设计
   ============================================ */
.categories-widget {
    margin-top: 48px !important;
}

.categories-widget .categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 4px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8b5cf6 0%, #c4b5fd 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.category-card:nth-child(1)::before {
    background: linear-gradient(180deg, #8b5cf6 0%, #c4b5fd 100%);
}

.category-card:nth-child(2)::before {
    background: linear-gradient(180deg, #ff3b30 0%, #ff6b6b 100%);
}

.category-card:nth-child(3)::before {
    background: linear-gradient(180deg, #34c759 0%, #30d158 100%);
}

.category-card:nth-child(4)::before {
    background: linear-gradient(180deg, #ff9500 0%, #ffcc00 100%);
}

.category-card:nth-child(5)::before {
    background: linear-gradient(180deg, #af52de 0%, #bf5af2 100%);
}

.category-card:nth-child(6)::before {
    background: linear-gradient(180deg, #00c7be 0%, #64d2ff 100%);
}

.category-card:hover::before {
    transform: scaleY(1);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-card:nth-child(1) .category-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.category-card:nth-child(2) .category-icon {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.category-card:nth-child(3) .category-icon {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.category-card:nth-child(4) .category-icon {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.category-card:nth-child(5) .category-icon {
    background: rgba(175, 82, 222, 0.1);
    color: #af52de;
}

.category-card:nth-child(6) .category-icon {
    background: rgba(0, 199, 190, 0.1);
    color: #00c7be;
}

.category-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--apple-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
}

.category-count {
    font-size: 12px;
    color: var(--apple-text-secondary);
    font-weight: 400;
    letter-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.dark .category-card {
    background: linear-gradient(135deg, rgba(28, 28, 30, 0.8) 0%, rgba(44, 44, 46, 0.8) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.4);
}

/* ============================================
   标签云模块 - 现代标签云设计
   ============================================ */
.tag-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.8;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    font-size: calc(var(--tag-size) * 14px);
    font-weight: 500;
    color: var(--apple-text);
    text-decoration: none;
    border-radius: 20px;
    background: rgba(139, 92, 246, calc(var(--tag-opacity) * 0.15));
    border: 1px solid rgba(139, 92, 246, calc(var(--tag-opacity) * 0.25));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
    letter-spacing: -0.01em;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* 不同标签的渐变色 */
.tag-item:nth-child(6n+1) {
    background: rgba(139, 92, 246, calc(var(--tag-opacity) * 0.15));
    border-color: rgba(139, 92, 246, calc(var(--tag-opacity) * 0.3));
    color: #8b5cf6;
}

.tag-item:nth-child(6n+2) {
    background: rgba(255, 59, 48, calc(var(--tag-opacity) * 0.15));
    border-color: rgba(255, 59, 48, calc(var(--tag-opacity) * 0.3));
    color: #ff3b30;
}

.tag-item:nth-child(6n+3) {
    background: rgba(52, 199, 89, calc(var(--tag-opacity) * 0.15));
    border-color: rgba(52, 199, 89, calc(var(--tag-opacity) * 0.3));
    color: #34c759;
}

.tag-item:nth-child(6n+4) {
    background: rgba(255, 149, 0, calc(var(--tag-opacity) * 0.15));
    border-color: rgba(255, 149, 0, calc(var(--tag-opacity) * 0.3));
    color: #ff9500;
}

.tag-item:nth-child(6n+5) {
    background: rgba(175, 82, 222, calc(var(--tag-opacity) * 0.15));
    border-color: rgba(175, 82, 222, calc(var(--tag-opacity) * 0.3));
    color: #af52de;
}

.tag-item:nth-child(6n+6) {
    background: rgba(0, 199, 190, calc(var(--tag-opacity) * 0.15));
    border-color: rgba(0, 199, 190, calc(var(--tag-opacity) * 0.3));
    color: #00c7be;
}

.tag-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tag-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-width: 1.5px;
}

.tag-item:hover::before {
    left: 100%;
}

.dark .tag-item {
    opacity: 0.9;
}

.dark .tag-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

/* 兼容旧的标签云样式（如果主题其他地方还在使用） */
.tagCloud-tags {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    max-height: 200px !important;
    overflow-y: scroll !important;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.tagCloud-tags::-webkit-scrollbar {
    width: 6px;
}

.tagCloud-tags::-webkit-scrollbar-track {
    background: transparent;
}

.tagCloud-tags::-webkit-scrollbar-thumb {
    background: rgba(134, 134, 139, 0.2);
    border-radius: 3px;
}

.tagCloud-tags::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 134, 139, 0.4);
}

/* 归档列表 - Apple 风格 */
.widget.archives ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget.archives li {
    margin-bottom: 1px;
}

.widget.archives a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--apple-text);
    font-size: 14px !important;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "PingFang SC", sans-serif;
}

.widget.archives a:hover {
    background: var(--apple-gray);
    color: var(--apple-blue);
    transform: translateX(3px);
}

.dark .widget.archives a:hover {
    background: rgba(58, 58, 60, 0.6);
}

/* 搜索框 - Apple 风格 */
.widget.search input {
    width: 100%;
    padding: 12px 16px;
    border: none !important;
    border-radius: 12px;
    background: var(--apple-gray);
    color: var(--apple-text);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "PingFang SC", sans-serif;
}

.widget.search input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.dark .widget.search input {
    background: rgba(58, 58, 60, 0.6);
}

.dark .widget.search input:focus {
    background: rgba(58, 58, 60, 0.8);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.widget.search input::placeholder {
    color: var(--apple-text-secondary);
}

/* 侧边栏容器优化 */
.sidebar.right-sidebar {
    padding: 0;
}

.sidebar.right-sidebar .widget:first-child {
    margin-top: 0;
}

/* 滚动条美化 - Apple 风格 */
.sidebar.right-sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar.right-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar.right-sidebar::-webkit-scrollbar-thumb {
    background: rgba(134, 134, 139, 0.3);
    border-radius: 4px;
}

.sidebar.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 134, 139, 0.5);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .sidebar.right-sidebar .widget {
        border-radius: 16px;
        padding: 20px 16px;
    }
}

/* 分页样式 - 超简洁风格 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin: 2.5rem 0 1.5rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "PingFang SC", sans-serif;
    border-radius: 4px;
}

/* 普通分页链接 */
.pagination a {
    background: transparent;
    color: var(--apple-text-secondary);
}

.pagination a:hover {
    color: var(--apple-blue);
    background: transparent;
}

/* 当前页 */
.pagination .current {
    background: var(--apple-blue) !important;
    color: white !important;
    font-weight: 500;
}

/* 禁用状态 */
.pagination .disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* 上一页/下一页按钮 */
.pagination .next,
.pagination .previous {
    padding: 0 8px;
}

/* 暗色模式 */
.dark .pagination a {
    color: var(--apple-text-secondary);
}

.dark .pagination a:hover {
    color: var(--apple-blue);
}

.dark .pagination .current {
    background: var(--apple-blue);
    color: white;
}

/* 文章详情页 - 全屏居中模式 */
body.article-page {
    background: var(--card-background);
}

/* 隐藏左侧边栏及其所有内容 */
body.article-page aside.left-sidebar,
body.article-page aside.left-sidebar header,
body.article-page aside.left-sidebar .site-avatar,
body.article-page aside.left-sidebar .site-meta,
body.article-page aside.left-sidebar .site-name,
body.article-page aside.left-sidebar .site-description,
body.article-page aside.left-sidebar ol.menu,
body.article-page aside.left-sidebar ol.menu li,
body.article-page aside.left-sidebar ol.menu li a,
body.article-page aside.left-sidebar ol.menu li a span {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -99999px !important;
}

/* 隐藏页面左上角的导航栏（hamburger菜单等） */
body.article-page .hamburger {
    display: none !important;
}

/* 将右侧TOC移到左侧，占满高度 */
body.article-page .right-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    transform: none !important;
    max-width: 240px !important;
    width: 240px !important;
    max-height: 100vh !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 100 !important;
    background: var(--apple-card-bg) !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08) !important;
    border-right: 1px solid var(--apple-border) !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding: 0.8rem 0.6rem !important;
}

/* 隐藏右侧边栏中除目录外的所有widget */
body.article-page .right-sidebar section.widget {
    display: none !important;
}

/* 只显示包含目录的section */
body.article-page .right-sidebar section.widget:has(.widget--toc) {
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 目录标题样式 - 极简风格 */
body.article-page .right-sidebar .widget-title {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 0.2rem;
    padding-bottom: 0.1rem;
    border-bottom: 1px solid var(--apple-border);
    color: var(--apple-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 目录样式优化 */
body.article-page .widget--toc {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* 目录整体样式 */
.article-page .toc {
    font-size: 11px;
}

/* 目录列表重置 */
.article-page .toc ul {
    list-style: none;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* 嵌套列表样式 */
.article-page .toc ul ul {
    padding-left: 0 !important;
    margin: 0 !important;
}

.article-page .toc li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* 目录链接样式 - 极简风格 */
.article-page .toc a {
    color: var(--apple-text-secondary) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
    padding: 1px 0 !important;
    display: block !important;
    line-height: 1.2 !important;
    font-size: 11px !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.article-page .toc a:hover {
    color: var(--apple-blue) !important;
    background: transparent !important;
}

/* 不同层级的样式 - 极简风格 */
.article-page .toc > ul > li > a {
    font-weight: 500 !important;
    font-size: 11px !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

.article-page .toc ul ul a {
    font-weight: 400 !important;
    font-size: 11px !important;
    margin-left: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    opacity: 0.85;
}

.article-page .toc ul ul ul a {
    font-size: 11px !important;
    margin-left: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    opacity: 0.75;
}

/* 目录激活状态 - 极简风格 */
.article-page .toc a.active {
    color: var(--apple-blue);
    background: transparent;
    border-left: none;
    font-weight: 500;
}

/* 强调文本样式 */
body.article-page .article-content strong,
body.article-page .article-content b {
    font-weight: 700;
    color: var(--apple-text);
}

/* 链接样式优化 */
body.article-page .article-content a {
    color: var(--apple-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

body.article-page .article-content a:hover {
    border-bottom-color: var(--apple-blue);
}

/* 主容器宽度调整 */
body.article-page .main-container {
    max-width: 100%;
    margin-left: 240px;
}

/* 文章内容加宽，提高阅读体验 */
body.article-page .main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem !important;
}

/* 文章卡片样式 - MCP 博客风格 */
body.article-page .article {
    background: var(--apple-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem 2rem !important;
    box-shadow: var(--apple-shadow);
    border: 1px solid var(--apple-border);
    line-height: 1.6;
}

/* 文章内容容器 - 最佳阅读宽度 */
body.article-page .article-content {
    max-width: 750px;
    margin: 0 auto;
}

/* 文章标题样式 - MCP 博客风格 */
body.article-page .article-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

/* 文章元信息 */
body.article-page .article-header {
    margin-top: 24px !important;
    bottom: auto !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--apple-border);
}

/* 文章元信息样式优化 */
body.article-page .article-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--apple-text-secondary);
}

body.article-page .article-meta a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

body.article-page .article-meta a:hover {
    opacity: 0.8;
}

/* 文章内容优化 - MCP 博客风格 */
body.article-page .article-content {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* 文章段落优化 - 更紧凑 */
body.article-page .article-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* 文章标题层级 - MCP 博客风格 */
body.article-page .article-content h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

body.article-page .article-content h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-top: 1.3rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

body.article-page .article-content h3 {
    font-size: 19px !important;
    font-weight: 600 !important;
    margin-top: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

body.article-page .article-content h4 {
    font-size: 17px !important;
    font-weight: 600 !important;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* 代码块样式 - JetBrains Mono 字体 */
body.article-page .article-content pre {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.2rem 0;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
}

body.article-page .article-content code {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
}

body.article-page .article-content pre code {
    background: transparent;
    padding: 0;
}

/* 列表样式 - MCP 博客风格 */
body.article-page .article-content ul,
body.article-page .article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

body.article-page .article-content li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

body.article-page .article-content li > ul,
body.article-page .article-content li > ol {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

/* 引用块样式 - MCP 博客风格 */
body.article-page .article-content blockquote {
    border-left: 4px solid var(--apple-blue);
    padding: 0.8rem 1.2rem;
    margin: 1.2rem 0;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 0 8px 8px 0;
    color: var(--apple-text-secondary);
    font-style: italic;
    line-height: 1.6;
}

/* 图片样式优化 - MCP 博客风格 */
body.article-page .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 表格样式优化 - MCP 博客风格 */
body.article-page .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.article-page .article-content th,
body.article-page .article-content td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--apple-border);
}

body.article-page .article-content th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
}

body.article-page .article-content tr:hover {
    background: rgba(139, 92, 246, 0.03);
}

/* 分隔线样式 */
body.article-page .article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--apple-border), transparent);
    margin: 3rem 0;
}

/* 水平列表样式优化 */
body.article-page .article-content dl {
    margin: 1.5rem 0;
}

body.article-page .article-content dt {
    font-weight: 600;
    margin-top: 1rem;
    color: var(--apple-text);
}

body.article-page .article-content dd {
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--apple-text-secondary);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    body.article-page .right-sidebar {
        display: none;
    }

    body.article-page .main-container {
        margin-left: 0;
    }

    body.article-page .main {
        padding: 3rem 2rem !important;
        max-width: 900px;
    }

    body.article-page .article {
        padding: 2.5rem 2rem !important;
    }
}

@media (max-width: 768px) {
    body.article-page .main {
        padding: 2rem 1.5rem !important;
        max-width: 100%;
    }

    body.article-page .article {
        padding: 2rem 1.5rem !important;
        border-radius: 16px;
    }
}

/* 回到首页按钮 - 固定在左侧边栏顶部，更易访问 */
body.article-page .back-to-home {
    position: fixed !important;
    top: 16px !important;
    left: 12px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: calc(240px - 24px) !important;
    min-width: auto !important;
    max-width: calc(240px - 24px) !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.article-page .back-to-home:hover {
    background: var(--apple-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

body.article-page .back-to-home svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

body.article-page .back-to-home:hover svg {
    transform: translateX(-2px);
}


/* ============================================
   首页按钮美化 - Apple 风格
   ============================================ */
.left-sidebar .menu li a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: var(--apple-text) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    position: relative !important;
    overflow: hidden !important;
}

.left-sidebar .menu li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(66, 165, 245, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.left-sidebar .menu li a:hover {
    background: rgba(139, 92, 246, 0.08) !important;
    color: var(--apple-blue) !important;
    transform: translateX(4px) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}

.left-sidebar .menu li a:hover::before {
    opacity: 1;
}

.left-sidebar .menu li a svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.5 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.left-sidebar .menu li a:hover svg {
    transform: scale(1.1) !important;
    color: var(--apple-blue) !important;
}

/* 当前激活状态 */
.left-sidebar .menu li.current a {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(66, 165, 245, 0.12) 100%) !important;
    color: var(--apple-blue) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15) !important;
}

.left-sidebar .menu li.current a::before {
    opacity: 1;
}

.left-sidebar .menu li.current a svg {
    color: var(--apple-blue) !important;
}

/* 暗色模式适配 */
.dark .left-sidebar .menu li a:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.dark .left-sidebar .menu li.current a {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(66, 165, 245, 0.2) 100%) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25) !important;
}
/* ============================================
   头像区域整体美化 - Apple 风格
   ============================================ */
.left-sidebar header {
    padding: 24px 0 20px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid var(--apple-border) !important;
}

/* 头像容器 */
.site-avatar {
    width: 100%;
    max-width: 100px;
    margin: 0 auto 20px !important;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 头像图片 - 圆形设计 */
.site-avatar img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 2px;
}

.site-avatar img:hover {
    transform: scale(1.08) rotate(2deg) !important;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.site-avatar a {
    display: block;
    position: relative;
    border-radius: 50%;
    overflow: visible;
}

/* Emoji 装饰 - 更精美的设计 */
.site-avatar .emoji {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4),
                0 2px 6px rgba(0, 0, 0, 0.1) !important;
    border: 3px solid rgba(255, 255, 255, 0.95) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    z-index: 10 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.site-avatar:hover .emoji {
    transform: scale(1.1) rotate(10deg) !important;
    box-shadow: 0 6px 16px rgba(238, 90, 111, 0.5),
                0 3px 8px rgba(0, 0, 0, 0.15) !important;
}

/* 网站元信息区域 */
.site-meta {
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* 网站名称 */
.site-name {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.site-name a {
    color: var(--apple-text) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, var(--apple-text) 0%, var(--apple-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-name a:hover {
    background: linear-gradient(135deg, var(--apple-blue) 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-1px);
}

/* 网站描述 */
.site-description {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--apple-text-secondary) !important;
    letter-spacing: 0.01em !important;
    line-height: 1.5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.left-sidebar header:hover .site-description {
    opacity: 1;
}

/* 暗色模式适配 */
.dark .site-avatar img {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.dark .site-avatar img:hover {
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35),
                0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.dark .site-avatar .emoji {
    border-color: rgba(28, 28, 30, 0.95) !important;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.5),
                0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================
   极客风格首页优化 - Geek Style
   ============================================ */

/* 极客风格配色 */
:root {
    --geek-primary: #00d9ff;
    --geek-secondary: #00ff88;
    --geek-accent: #ff6b6b;
    --geek-bg-dark: #0a0e27;
    --geek-bg-light: #f8f9fa;
    --geek-border: #1a1f3a;
    --geek-text-code: #00d9ff;
    --geek-text-muted: #6c757d;
}

/* 文章列表 - 极客风格 */
body:not(.article-page) .article-list {
    gap: 24px !important;
}

body:not(.article-page) article {
    background: var(--apple-card-bg) !important;
    border: 1px solid var(--apple-border) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

body:not(.article-page) article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--apple-blue) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:not(.article-page) article:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}

body:not(.article-page) article:hover::before {
    opacity: 1;
}

/* 文章详情区域 */
body:not(.article-page) .article-details {
    padding: 24px 28px !important;
    background: transparent !important;
}

/* 分类标签 - 极客风格 */
body:not(.article-page) .article-category {
    margin-bottom: 16px !important;
}

body:not(.article-page) .article-category a {
    display: inline-block !important;
    padding: 4px 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    background: rgba(139, 92, 246, 0.08) !important;
    color: var(--apple-blue) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace !important;
    transition: all 0.2s ease !important;
}

body:not(.article-page) .article-category a:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* 文章标题 - 极客风格 */
body:not(.article-page) .article-title {
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.02em !important;
}

body:not(.article-page) .article-title a {
    color: var(--apple-text) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

body:not(.article-page) .article-title a:hover {
    color: var(--apple-blue) !important;
}

/* 文章副标题 */
body:not(.article-page) .article-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: var(--apple-text-secondary) !important;
    margin: 0 0 16px 0 !important;
    font-weight: 400 !important;
}

/* 文章元信息 - 极客风格（等宽字体） */
body:not(.article-page) .article-time {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--apple-border) !important;
    margin-top: 16px !important;
    font-size: 12px !important;
}

body:not(.article-page) .article-time > div {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--apple-text-secondary) !important;
}

body:not(.article-page) .article-time svg {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.6 !important;
}

body:not(.article-page) .article-time--published,
body:not(.article-page) .article-time--reading {
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace !important;
    font-size: 11px !important;
    letter-spacing: 0.3px !important;
    color: var(--apple-text-secondary) !important;
}

/* 文章标题包装器 */
body:not(.article-page) .article-title-wrapper {
    margin-bottom: 12px !important;
}

/* 文章头部 */
body:not(.article-page) .article-header {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 极客风格装饰元素 - 添加代码风格的装饰线 */

/* 优化文章卡片间距 */
body:not(.article-page) .article-list article:not(:last-child) {
    margin-bottom: 0;
}

/* 暗色模式极客风格 */
.dark body:not(.article-page) article {
    background: rgba(28, 28, 30, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark body:not(.article-page) article:hover {
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2) !important;
}

.dark body:not(.article-page) .article-category a {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    body:not(.article-page) .article-details {
        padding: 20px !important;
    }
    
    body:not(.article-page) .article-title {
        font-size: 1.4rem !important;
    }
}


/* ============================================
   极客风格布局优化
   ============================================ */

/* 主容器优化 */
body:not(.article-page) .main {
    max-width: 900px !important;
    padding: 0 24px !important;
}

/* 文章列表容器 */
body:not(.article-page) .article-list {
    padding: 0 !important;
    margin: 0 !important;
}

/* 优化整体间距 */
body:not(.article-page) .main-container {
    gap: 32px !important;
}

/* 侧边栏优化 - 更紧凑 */
body:not(.article-page) .right-sidebar {
    max-width: 280px !important;
}

/* 分类和标签云 - 极客风格优化 */
body:not(.article-page) .categories-widget,
body:not(.article-page) .tag-cloud-widget {
    border-left: 2px solid transparent !important;
    transition: border-color 0.3s ease !important;
}

body:not(.article-page) .categories-widget:hover,
body:not(.article-page) .tag-cloud-widget:hover {
    border-left-color: var(--apple-blue) !important;
}

/* Widget 标题 - 极客风格 */
body:not(.article-page) .widget-title {
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace !important;
    font-size: 10px !important;
    letter-spacing: 1.2px !important;
}

/* 分页器 - 极客风格 */
body:not(.article-page) .pagination {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

/* 添加极客风格的装饰元素 */
body:not(.article-page) .main::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--apple-border), transparent);
    margin-bottom: 32px;
}

/* 优化文章卡片内部布局 */
body:not(.article-page) .article-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* 文章标题区域优化 */
body:not(.article-page) .article-title-wrapper {
    order: 2;
}

body:not(.article-page) .article-category {
    order: 1;
}

body:not(.article-page) .article-time {
    order: 3;
}

/* 添加代码风格的序号（可选，如果需要） */
body:not(.article-page) .article-list article {
    counter-increment: article-counter;
}

body:not(.article-page) .article-list {
    counter-reset: article-counter;
}

/* 优化空状态 */
body:not(.article-page) .article-list:empty::after {
    content: "// No posts found";
    display: block;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    color: var(--apple-text-secondary);
    text-align: center;
    padding: 40px 0;
    opacity: 0.5;
}

/* 极客风格滚动条（Webkit浏览器） */
body:not(.article-page) .main::-webkit-scrollbar {
    width: 6px;
}

body:not(.article-page) .main::-webkit-scrollbar-track {
    background: transparent;
}

body:not(.article-page) .main::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
}

body:not(.article-page) .main::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}


/* ============================================
   极客风格最终优化 - 细节完善
   ============================================ */

/* 优化文章卡片悬停效果 */
body:not(.article-page) article {
    position: relative;
}

body:not(.article-page) article::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent rgba(139, 92, 246, 0.1) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:not(.article-page) article:hover::after {
    opacity: 1;
}

/* 优化分类标签颜色循环 */
body:not(.article-page) .article-category a:nth-child(1) {
    background: rgba(139, 92, 246, 0.08) !important;
    color: #8b5cf6 !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}

body:not(.article-page) .article-category a:nth-child(2) {
    background: rgba(52, 199, 89, 0.08) !important;
    color: #34c759 !important;
    border-color: rgba(52, 199, 89, 0.2) !important;
}

body:not(.article-page) .article-category a:nth-child(3) {
    background: rgba(255, 149, 0, 0.08) !important;
    color: #ff9500 !important;
    border-color: rgba(255, 149, 0, 0.2) !important;
}

/* 优化阅读时间显示 */
body:not(.article-page) .article-time--reading::before {
    content: "~";
    margin-right: 2px;
    opacity: 0.5;
}

/* 优化日期显示格式 */
body:not(.article-page) .article-time--published {
    position: relative;
}

/* 添加极客风格的图标样式 */
body:not(.article-page) .article-time svg {
    filter: grayscale(0.3);
    transition: filter 0.2s ease;
}

body:not(.article-page) article:hover .article-time svg {
    filter: grayscale(0);
}

/* 优化文章标题链接 */
body:not(.article-page) .article-title a {
    position: relative;
    display: inline-block;
}

body:not(.article-page) .article-title a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--apple-blue);
    transition: width 0.3s ease;
}

body:not(.article-page) article:hover .article-title a::after {
    width: 100%;
}

/* 优化副标题显示 */
body:not(.article-page) .article-subtitle {
    position: relative;
    padding-left: 12px;
}

body:not(.article-page) .article-subtitle::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--apple-blue);
    opacity: 0.4;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}

/* 优化整体视觉层次 */
body:not(.article-page) .article-list article:nth-child(odd) {
    background: var(--apple-card-bg) !important;
}

body:not(.article-page) .article-list article:nth-child(even) {
    background: rgba(248, 249, 250, 0.5) !important;
}

.dark body:not(.article-page) .article-list article:nth-child(even) {
    background: rgba(28, 28, 30, 0.4) !important;
}

/* 添加微妙的网格背景（可选） */
body:not(.article-page) .main {
    position: relative;
}

body:not(.article-page) .main::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

body:not(.article-page) .article-list {
    position: relative;
    z-index: 1;
}

.dark body:not(.article-page) .main::after {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* 优化响应式设计 */
@media (max-width: 1200px) {
    body:not(.article-page) .main {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    body:not(.article-page) .article-list {
        gap: 20px !important;
    }
    
    body:not(.article-page) .article-details {
        padding: 20px !important;
    }
    
    body:not(.article-page) .article-title {
        font-size: 1.35rem !important;
    }
    
    body:not(.article-page) .article-subtitle {
        font-size: 0.9rem !important;
    }
}


/* ============================================
   字体和布局优化
   ============================================ */

/* 增大副标题字体 */
body:not(.article-page) .article-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}

/* 右侧分类widget高度对齐 */
body:not(.article-page) .right-sidebar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

body:not(.article-page) .categories-widget {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

body:not(.article-page) .categories-widget .categories-grid {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* 确保分类widget和文章列表高度一致 */
body:not(.article-page) .main-container {
    align-items: flex-start !important;
}

body:not(.article-page) .right-sidebar {
    position: sticky !important;
    top: 24px !important;
    max-height: calc(100vh - 48px) !important;
    overflow-y: auto !important;
}


/* ============================================
   右侧分类widget高度对齐优化
   ============================================ */

/* 让右侧边栏和文章列表高度对齐 */
body:not(.article-page) .main-container {
    align-items: flex-start !important;
}

body:not(.article-page) .right-sidebar {
    position: sticky !important;
    top: 24px !important;
    height: fit-content !important;
    max-height: calc(100vh - 48px) !important;
}

/* 分类widget高度优化 */
body:not(.article-page) .categories-widget {
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
}

body:not(.article-page) .categories-widget .categories-grid {
    flex: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

/* 确保分类卡片填满空间 */
body:not(.article-page) .categories-widget .category-card {
    flex-shrink: 0 !important;
}

/* 如果分类数量少，添加间距填充 */
body:not(.article-page) .categories-widget .categories-grid::after {
    content: "";
    flex: 1;
    min-height: 0;
}


/* ============================================
   MCP 风格目录优化 - 参考 modelcontextprotocol.io
   ============================================ */

/* 左侧边栏整体样式 - MCP 风格 */
body.article-page .right-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
    padding: 24px 20px !important;
    width: 280px !important;
    max-width: 280px !important;
}

.dark body.article-page .right-sidebar {
    background: #1a1a1a !important;
    border-right-color: #2d2d2d !important;
}

/* 目录标题 - MCP 风格 */
body.article-page .right-sidebar .widget-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
}

.dark body.article-page .right-sidebar .widget-title {
    color: #9ca3af !important;
    border-bottom-color: #2d2d2d !important;
}

/* 目录容器 */
body.article-page .widget--toc {
    padding: 0 !important;
}

/* 目录列表基础样式 */
.article-page .toc {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.article-page .toc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.article-page .toc li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
}

/* 一级目录项 - MCP 风格 */
.article-page .toc > ul > li {
    margin-bottom: 4px !important;
}

.article-page .toc > ul > li > a {
    display: block !important;
    padding: 6px 12px 6px 0 !important;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
}

.dark .article-page .toc > ul > li > a {
    color: #d1d5db !important;
}

.article-page .toc > ul > li > a:hover {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.05) !important;
}

.dark .article-page .toc > ul > li > a:hover {
    background: rgba(139, 92, 246, 0.1) !important;
}

/* 二级目录项 - MCP 风格 */
.article-page .toc ul ul {
    margin-top: 2px !important;
    margin-left: 0 !important;
    padding-left: 16px !important;
    border-left: 1px solid #e5e7eb !important;
}

.dark .article-page .toc ul ul {
    border-left-color: #2d2d2d !important;
}

.article-page .toc ul ul > li {
    margin-bottom: 2px !important;
}

.article-page .toc ul ul > li > a {
    display: block !important;
    padding: 4px 12px 4px 12px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
}

.dark .article-page .toc ul ul > li > a {
    color: #9ca3af !important;
}

.article-page .toc ul ul > li > a:hover {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.05) !important;
}

.dark .article-page .toc ul ul > li > a:hover {
    background: rgba(139, 92, 246, 0.1) !important;
}

/* 三级目录项 - MCP 风格 */
.article-page .toc ul ul ul {
    margin-top: 2px !important;
    margin-left: 0 !important;
    padding-left: 16px !important;
    border-left: 1px solid #e5e7eb !important;
}

.dark .article-page .toc ul ul ul {
    border-left-color: #2d2d2d !important;
}

.article-page .toc ul ul ul > li > a {
    display: block !important;
    padding: 4px 12px 4px 12px !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
}

.dark .article-page .toc ul ul ul > li > a {
    color: #6b7280 !important;
}

.article-page .toc ul ul ul > li > a:hover {
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.05) !important;
}

.dark .article-page .toc ul ul ul > li > a:hover {
    background: rgba(139, 92, 246, 0.1) !important;
}

/* 激活状态 - MCP 风格（左侧蓝色指示条） */
.article-page .toc a.active {
    color: #8b5cf6 !important;
    font-weight: 600 !important;
    background: rgba(139, 92, 246, 0.08) !important;
    position: relative !important;
}

.article-page .toc a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #8b5cf6;
    border-radius: 0 2px 2px 0;
}

/* 一级激活状态 */
.article-page .toc > ul > li > a.active {
    padding-left: 12px !important;
}

.article-page .toc > ul > li > a.active::before {
    left: 0;
}

/* 二级激活状态 */
.article-page .toc ul ul > li > a.active {
    padding-left: 28px !important;
}

.article-page .toc ul ul > li > a.active::before {
    left: 16px;
}

/* 三级激活状态 */
.article-page .toc ul ul ul > li > a.active {
    padding-left: 44px !important;
}

.article-page .toc ul ul ul > li > a.active::before {
    left: 32px;
}

/* 优化滚动条 - MCP 风格 */
body.article-page .right-sidebar::-webkit-scrollbar {
    width: 6px;
}

body.article-page .right-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

body.article-page .right-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

body.article-page .right-sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.dark body.article-page .right-sidebar::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark body.article-page .right-sidebar::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* 响应式优化 */
@media (max-width: 1200px) {
    body.article-page .right-sidebar {
        width: 260px !important;
        max-width: 260px !important;
        padding: 20px 16px !important;
    }
}


/* ============================================
/* 如果菜单为空，隐藏整个菜单容器 */
.left-sidebar .menu:empty,
.left-sidebar .menu:has(> li:only-child.menu-bottom-section) {
    display: none !important;
}


/* ============================================
.left-sidebar .menu li:has(a[href="/"]) {
    display: none !important;
}

/* 备用方案：通过父元素隐藏 */
.left-sidebar .menu > li > a[href="/"] {
    display: none !important;
}

.left-sidebar .menu > li:has(> a[href="/"]) {
    display: none !important;
}


/* ============================================
   隐藏首页按钮
   ============================================ */
/* 隐藏首页菜单项 */
.left-sidebar .menu li a[href="/"],
.left-sidebar .menu li a[href="/"] + span,
.left-sidebar .menu li:has(a[href="/"]) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 隐藏包含首页链接的整个li元素 */
.left-sidebar .menu > li:has(> a[href="/"]) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}


/* ============================================
   资深前端设计师优化建议 - 视觉增强
   ============================================ */

/* 1. 添加微妙的渐变背景 */
body:not(.article-page) {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%) !important;
    background-attachment: fixed !important;
}

.dark body:not(.article-page) {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a1a 50%, #0f1419 100%) !important;
}

/* 2. 添加文章卡片的微妙动画效果 */
body:not(.article-page) .article-list article {
    animation: fadeInUp 0.6s ease-out backwards;
}

body:not(.article-page) .article-list article:nth-child(1) {
    animation-delay: 0.1s;
}

body:not(.article-page) .article-list article:nth-child(2) {
    animation-delay: 0.2s;
}

body:not(.article-page) .article-list article:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. 添加文章卡片的3D悬停效果 */
body:not(.article-page) article {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

body:not(.article-page) article:hover {
    transform: translateY(-4px) rotateX(1deg) !important;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15) !important;
}



@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* 5. 添加文章阅读进度指示器（悬停时显示） */
body:not(.article-page) article::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--apple-blue), #c4b5fd);
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

body:not(.article-page) article:hover::after {
    width: 100%;
}

/* 6. 优化分类标签的悬停效果 */
body:not(.article-page) .article-category a {
    position: relative;
    overflow: hidden;
}

body:not(.article-page) .article-category a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

body:not(.article-page) .article-category a:hover::after {
    width: 200px;
    height: 200px;
}

/* 7. 添加微妙的装饰性几何图形 */
body:not(.article-page) .main::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* 8. 优化文章元信息的图标动画 */
body:not(.article-page) .article-time svg {
    transition: transform 0.3s ease;
}

body:not(.article-page) article:hover .article-time svg {
    transform: rotate(5deg) scale(1.1);
}

/* 9. 添加文章卡片的边框光效 */
body:not(.article-page) article {
    position: relative;
    overflow: hidden;
}

body:not(.article-page) article::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

body:not(.article-page) article:hover::before {
    left: 100%;
}

body:not(.article-page) .article-details {
    position: relative;
    z-index: 1;
}

/* 10. 优化右侧边栏的视觉层次 */
body:not(.article-page) .right-sidebar .widget {
    position: relative;
    overflow: hidden;
}

body:not(.article-page) .right-sidebar .widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--apple-blue), #c4b5fd);
    transition: height 0.3s ease;
}

body:not(.article-page) .right-sidebar .widget:hover::before {
    height: 100%;
}

/* 11. 添加滚动时的视差效果 */
body:not(.article-page) .article-list article {
    transition: transform 0.3s ease;
}

/* 12. 优化标签云的动态效果 */
body:not(.article-page) .tag-item {
    position: relative;
    overflow: hidden;
}

body:not(.article-page) .tag-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

body:not(.article-page) .tag-item:hover::before {
    left: 100%;
}

/* 13. 添加页面加载时的淡入效果 */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body:not(.article-page) .main-container {
    animation: pageLoad 0.6s ease-out;
}

/* 14. 优化分类卡片的图标动画 */
body:not(.article-page) .category-icon {
    transition: transform 0.3s ease;
}

body:not(.article-page) .category-card:hover .category-icon {
    transform: rotate(5deg) scale(1.1);
}

/* 15. 添加微妙的阴影层次 */
body:not(.article-page) .article-list article:nth-child(1) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body:not(.article-page) .article-list article:nth-child(2) {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
}

body:not(.article-page) .article-list article:nth-child(3) {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* 16. 优化响应式动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}




/* 隐藏 LATEST POSTS 标题和装饰点 */
body:not(.article-page) .article-list::before,
body:not(.article-page) .article-list::after {
    display: none !important;
    content: none !important;
}


/* ============================================
   增加主内容区域左右间距
   ============================================ */
body:not(.article-page) .main {
    padding-left: 48px !important;
    padding-right: 48px !important;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    body:not(.article-page) .main {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

@media (max-width: 768px) {
    body:not(.article-page) .main {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


/* ============================================
   增加主内容区域顶部间距
   ============================================ */
body:not(.article-page) .main {
    padding-top: 48px !important;
}

body:not(.article-page) .main-container {
    padding-top: 24px !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body:not(.article-page) .main {
        padding-top: 32px !important;
    }
    
    body:not(.article-page) .main-container {
        padding-top: 16px !important;
    }
}


/* ============================================
   首页顶部信息栏 - 极客风格
   ============================================ */
.homepage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--apple-border);
    flex-wrap: wrap;
    gap: 16px;
}

.stats-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--apple-blue);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    color: var(--apple-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-divider {
    color: var(--apple-text-secondary);
    opacity: 0.3;
    font-size: 14px;
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-label {
    font-size: 11px;
    color: var(--apple-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
}

.tech-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--apple-blue);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .homepage-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
        margin-bottom: 24px;
    }
    
    .stats-bar {
        width: 100%;
    }
    
    .tech-stack {
        width: 100%;
    }
}

/* 暗色模式适配 */
.dark .tech-tag {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.dark .tech-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}


/* ============================================
   优化回到首页按钮位置 - 更符合人类使用习惯
   ============================================ */
/* 将按钮移到左侧边栏顶部，更容易访问 */
body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.article-page .back-to-home:hover {
    background: var(--apple-blue-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

body.article-page .back-to-home svg {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease !important;
}

body.article-page .back-to-home:hover svg {
    transform: translateX(-2px) !important;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
}

@media (max-width: 768px) {
    body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
    
    body.article-page .back-to-home svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* ============================================
   优化回到首页按钮 - 放在目录上方，更易访问
   ============================================ */
body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.article-page .back-to-home:hover {
    background: var(--apple-blue-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

body.article-page .back-to-home svg {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease !important;
}

body.article-page .back-to-home:hover svg {
    transform: translateX(-2px) !important;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
}

@media (max-width: 768px) {
    body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
    
    body.article-page .back-to-home svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* 响应式调整 - 回到首页按钮 */
@media (max-width: 1200px) {
    body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
}

@media (max-width: 768px) {
    body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
    
    body.article-page .back-to-home svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* 响应式调整 - 回到首页按钮 */
@media (max-width: 1200px) {
    body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
}

@media (max-width: 768px) {
    body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    background: var(--apple-blue) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
    
    body.article-page .back-to-home svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* ============================================
   优化回到首页按钮位置 - 移到顶部更易访问
   ============================================ */
body.article-page .back-to-home {
    position: fixed !important;
    top: 24px !important;
    left: 20px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    width: auto !important;
    min-width: 100px !important;
    max-width: 240px !important;
    padding: 10px 16px !important;
    gap: 8px !important;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    body.article-page .back-to-home {
        left: 280px !important;
    }
}

@media (max-width: 768px) {
    body.article-page .back-to-home {
        top: 16px !important;
        left: 16px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-width: 80px !important;
    }
    
    body.article-page .back-to-home svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* ============================================
   修正回到首页按钮位置 - 在左侧边栏内部
   ============================================ */
body.article-page .back-to-home {
    top: 16px !important;
    left: 12px !important;
    width: calc(240px - 24px) !important;
    min-width: auto !important;
    max-width: calc(240px - 24px) !important;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    body.article-page .back-to-home {
        left: 16px !important;
        width: auto !important;
        min-width: 100px !important;
        max-width: 200px !important;
    }
}

@media (max-width: 768px) {
    body.article-page .back-to-home {
        top: 12px !important;
        left: 12px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        width: auto !important;
        min-width: 80px !important;
        max-width: 150px !important;
    }
}


/* ============================================
   首页按钮全新设计 - 极简现代风格
   ============================================ */
body.article-page .back-to-home {
    position: fixed !important;
    top: 20px !important;
    left: 12px !important;
    bottom: auto !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: calc(240px - 24px) !important;
    min-width: auto !important;
    max-width: calc(240px - 24px) !important;
    padding: 12px 18px !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 14px !important;
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 2px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    text-decoration: none !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
}

/* 按钮背景光效 */
body.article-page .back-to-home::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

body.article-page .back-to-home:hover::before {
    left: 100% !important;
}

/* 悬停效果 */
body.article-page .back-to-home:hover {
    background: linear-gradient(135deg, #9d6af7 0%, #8b5cf6 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 8px 28px rgba(139, 92, 246, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

body.article-page .back-to-home:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 
        0 2px 12px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

/* 图标样式 */
body.article-page .back-to-home svg {
    width: 18px !important;
    height: 18px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) !important;
    position: relative !important;
    z-index: 1 !important;
}

body.article-page .back-to-home:hover svg {
    transform: translateX(-3px) scale(1.1) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)) !important;
}

/* 文字样式 */
body.article-page .back-to-home span {
    position: relative !important;
    z-index: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* 暗色模式适配 */
.dark body.article-page .back-to-home {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.dark body.article-page .back-to-home:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    box-shadow: 
        0 8px 28px rgba(139, 92, 246, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    body.article-page .back-to-home {
        left: 16px !important;
        width: auto !important;
        min-width: 100px !important;
        max-width: 200px !important;
    }
}

@media (max-width: 768px) {
    body.article-page .back-to-home {
        top: 16px !important;
        left: 12px !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        width: auto !important;
        min-width: 85px !important;
        max-width: 140px !important;
        gap: 8px !important;
    }
    
    body.article-page .back-to-home svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* ============================================
   确保首页按钮可见 - 强制显示
   ============================================ */
body.article-page .back-to-home {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 20px !important;
    left: 12px !important;
    z-index: 10000 !important;
    width: calc(240px - 24px) !important;
    min-width: 180px !important;
    max-width: calc(240px - 24px) !important;
    padding: 12px 18px !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
    border-radius: 14px !important;
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.article-page .back-to-home:hover {
    background: linear-gradient(135deg, #9d6af7 0%, #8b5cf6 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 8px 28px rgba(139, 92, 246, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
}

body.article-page .back-to-home svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

body.article-page .back-to-home span {
    display: inline-block !important;
    white-space: nowrap !important;
}


/* ============================================
   首页按钮精美设计 - 极简优雅风格
   ============================================ */
body.article-page .back-to-home {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 16px !important;
    left: 12px !important;
    z-index: 10000 !important;
    width: auto !important;
    min-width: 90px !important;
    max-width: 200px !important;
    padding: 8px 14px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 10px !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06) !important;
    text-decoration: none !important;
    color: #8b5cf6 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 悬停效果 - 精致优雅 */
body.article-page .back-to-home:hover {
    background: rgba(139, 92, 246, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: #7c3aed !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* 点击效果 */
body.article-page .back-to-home:active {
    transform: translateY(0) !important;
    box-shadow: 
        0 1px 4px rgba(139, 92, 246, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* 图标样式 - 精致小巧 */
body.article-page .back-to-home svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke-width: 2.2 !important;
    transition: all 0.25s ease !important;
    color: inherit !important;
}

body.article-page .back-to-home:hover svg {
    transform: translateX(-2px) !important;
}

/* 文字样式 */
body.article-page .back-to-home span {
    display: inline-block !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

/* 暗色模式适配 */
.dark body.article-page .back-to-home {
    background: rgba(30, 30, 30, 0.95) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: #a78bfa !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.dark body.article-page .back-to-home:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    color: #c4b5fd !important;
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    body.article-page .back-to-home {
        left: 16px !important;
        min-width: 85px !important;
        max-width: 180px !important;
    }
}

@media (max-width: 768px) {
    body.article-page .back-to-home {
        top: 12px !important;
        left: 12px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-width: 75px !important;
        max-width: 120px !important;
        gap: 5px !important;
    }
    
    body.article-page .back-to-home svg {
        width: 14px !important;
        height: 14px !important;
    }
}


/* ============================================
   调整目录位置 - 从首页按钮下方开始到底部
   ============================================ */
body.article-page .right-sidebar {
    padding-top: 60px !important;
}

/* 目录标题从按钮下方开始 */
body.article-page .right-sidebar .widget-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 确保目录内容可以滚动到底部 */
body.article-page .right-sidebar section.widget:has(.widget--toc) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

