/*
Theme Name: 拾谷 (Shigu)
Theme URI: https://744h.com
Author: 老何
Author URI: https://744h.com
Description: 拾谷是一款面向中文博客与资讯站点的轻量经典主题。移动优先、支持深色模式、内置文章目录/相关文章/面包屑/阅读时间/分享按钮，后台 Customizer 可配置配色、布局、广告位与统计代码，并对 SEO 友好（OG 标签 + 结构化数据）。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shigu
Tags: blog, news, one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* ==========================================================================
   1. 设计变量
   ========================================================================== */
:root {
    --c-bg: #faf9f6;
    --c-surface: #ffffff;
    --c-surface-2: #f4f2ec;
    --c-card-bg: #ffffff;
    --c-text: #26241f;
    --c-muted: #6f6a60;
    --c-border: #e7e3d9;
    --c-accent: #e2711d;
    --c-accent-strong: #c75f12;
    --c-accent-soft: #fdf0e3;
    --c-header-bg: rgba(255, 255, 255, 0.92);
    --c-footer-bg: #211f19;
    --c-footer-text: #e9e5da;
    --c-footer-muted: #a29b8d;
    --c-footer-border: #3a362d;
    --c-code-bg: #f3f1ea;
    --c-quote-border: #e2711d;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(30, 25, 15, 0.06), 0 4px 14px rgba(30, 25, 15, 0.05);
    --shadow-lg: 0 8px 30px rgba(30, 25, 15, 0.12);
    --header-h: 64px;
    --w-site: 1200px;
    --w-content: 760px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-theme="dark"] {
    --c-bg: #171613;
    --c-surface: #201e19;
    --c-surface-2: #292620;
    --c-card-bg: #201e19;
    --c-text: #ece8dc;
    --c-muted: #a09a8d;
    --c-border: #3b372e;
    --c-accent: #f08c3d;
    --c-accent-strong: #f7a05c;
    --c-accent-soft: #36291b;
    --c-header-bg: rgba(32, 30, 25, 0.94);
    --c-footer-bg: #1a1814;
    --c-code-bg: #2a2721;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   2. 基础
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s ease, color .3s ease;
}

img { max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent-strong); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { line-height: 1.35; margin: 0 0 .6em; color: var(--c-text); }

.container {
    max-width: var(--w-site);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. 头部
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-header-bg);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--c-border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--header-h);
}
.site-branding { display: flex; align-items: center; gap: 10px; min-width: 0; }
.custom-logo { max-height: 40px; width: auto; display: block; }
.site-title { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: .5px; }
.site-title a { color: var(--c-text); text-decoration: none; }
.site-title a:hover { color: var(--c-accent); }
.site-description { font-size: 13px; color: var(--c-muted); margin: 0; display: none; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
    display: block;
    padding: 8px 14px;
    color: var(--c-text);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.main-nav a:hover { color: var(--c-accent); background: var(--c-surface-2); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--c-accent); font-weight: 600; }
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    flex-direction: column;
    display: none;
    z-index: 9999;
}
.main-nav li:hover > .sub-menu { display: flex; }
.site-header .main-nav .sub-menu a { 
    padding: 8px 12px; 
    font-size: 14px; 
    color: var(--c-text) !important;
    background: transparent !important;
    border-radius: var(--radius-sm);
}
.site-header .main-nav .sub-menu a:hover { 
    color: var(--c-accent) !important; 
    background: var(--c-surface-2) !important; 
}
.site-header .main-nav .sub-menu .current-menu-item > a,
.site-header .main-nav .sub-menu .current_page_item > a { 
    color: var(--c-accent) !important; 
    font-weight: 600; 
    background: var(--c-surface-2) !important;
}

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--c-surface-2); color: var(--c-accent); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.menu-toggle { display: none; }

.header-search {
    display: none;
    padding: 12px 0;
    border-top: 1px solid var(--c-border);
}
.header-search.open { display: block; }

/* 广告位 */
.ad-slot { margin: 0 auto; padding: 8px 20px; text-align: center; }
.ad-slot > * { max-width: 100%; }
.ad-header { border-bottom: 1px solid var(--c-border); background: var(--c-surface); }

/* ==========================================================================
   4. 页面布局
   ========================================================================== */
.site-main { padding: 28px 0 56px; }
.page-layout { display: flex; gap: 32px; align-items: flex-start; }
.content-area { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.site-sidebar { flex: 0 0 300px; width: 300px; }
body.layout-left .site-sidebar { order: -1; }
body.layout-none .site-sidebar { display: none; }

/* ========== 友情链接展示页面模板 ========== */
.friend-links-layout {
    display: block;
}

.friend-links-content {
    width: 100%;
    max-width: 100%;
}

.friend-links-content .entry-header {
    margin-bottom: 24px;
}

.friend-links-content .entry-title {
    font-size: 28px;
    margin: 0 0 8px 0;
    color: var(--c-text, #1f2937);
}

.friend-links-content .entry-content {
    line-height: 1.8;
    color: var(--c-text, #374151);
    margin-bottom: 32px;
}

/* 友情链接分类 */
.friend-link-category {
    margin-bottom: 36px;
}

.friend-link-category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--c-text, #1f2937);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-accent, #64748b);
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-link-category-title .category-icon {
    font-size: 18px;
}

.friend-link-category-title .category-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--c-text-secondary, #9ca3af);
}

/* 友情链接网格 */
.friend-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* 友情链接卡片 */
.friend-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--c-card-bg, #fff);
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    overflow: hidden;
}

.friend-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--c-accent, #64748b);
}

/* 链接图标 */
.friend-link-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--c-body-bg, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.link-favicon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.link-favicon-fallback {
    font-size: 20px;
    font-weight: 600;
    color: var(--c-accent, #64748b);
}

/* 链接信息 */
.friend-link-info {
    flex: 1;
    min-width: 0;
}

.friend-link-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text, #1f2937);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.friend-link-card:hover .friend-link-name {
    color: var(--c-accent, #64748b);
}

.friend-link-desc {
    font-size: 13px;
    color: var(--c-text-secondary, #6b7280);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 空状态 */
.friend-links-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--c-card-bg, #fff);
    border: 1px dashed var(--c-border, #d1d5db);
    border-radius: 10px;
}

.friend-links-empty p {
    margin: 0;
    font-size: 15px;
    color: var(--c-text-secondary, #6b7280);
}

/* 响应式 */
@media (max-width: 768px) {
    .friend-link-grid {
        grid-template-columns: 1fr;
    }

    .friend-link-category-title {
        font-size: 18px;
    }

    .friend-links-content .entry-title {
        font-size: 24px;
    }
}

/* ========== 左右两栏导航页面模板 ========== */
.page-nav-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* 左侧导航栏 */
.page-nav-sidebar {
    flex: 0 0 240px;
    width: 240px;
    position: sticky;
    top: 20px;
}

.page-nav-menu {
    background: var(--c-card-bg, #fff);
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 8px;
    padding: 12px 0;
}

.page-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-nav-list > li,
.page-nav-item {
    margin: 0;
    padding: 0;
}

.page-nav-list > li > a,
.page-nav-item a {
    display: block;
    padding: 10px 20px;
    color: var(--c-text-secondary, #6b7280);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.page-nav-list > li > a:hover,
.page-nav-item a:hover {
    color: var(--c-accent, #64748b);
    background: var(--c-body-bg, #f1f5f9);
    border-left-color: var(--c-accent, #64748b);
}

.page-nav-list > li.current-menu-item > a,
.page-nav-list > li.current_page_item > a,
.page-nav-item.current-menu-item a,
.page-nav-item.current_page_item a {
    color: var(--c-accent, #64748b);
    font-weight: 600;
    background: var(--c-body-bg, #f1f5f9);
    border-left-color: var(--c-accent, #64748b);
}

/* 子菜单 */
.page-nav-list .sub-menu,
.page-nav-item .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-nav-list .sub-menu a,
.page-nav-item .sub-menu a {
    padding-left: 36px;
    font-size: 13px;
}

.page-nav-empty {
    padding: 20px;
    margin: 0;
    font-size: 13px;
    color: var(--c-text-secondary, #9ca3af);
    text-align: center;
}

/* 右侧内容区 */
.page-nav-content {
    flex: 1;
    min-width: 0;
}

.page-nav-content .entry-header {
    margin-bottom: 24px;
}

.page-nav-content .entry-title {
    font-size: 28px;
    margin: 0 0 8px 0;
    color: var(--c-text, #1f2937);
}

.page-nav-content .entry-content {
    line-height: 1.8;
    color: var(--c-text, #374151);
}

.page-nav-content .entry-content p {
    margin-bottom: 16px;
}

.page-nav-content .entry-content h2 {
    font-size: 22px;
    margin: 32px 0 16px 0;
    color: var(--c-text, #1f2937);
}

.page-nav-content .entry-content h3 {
    font-size: 18px;
    margin: 24px 0 12px 0;
    color: var(--c-text, #1f2937);
}

/* 移动端响应式 */
@media (max-width: 860px) {
    .page-nav-layout {
        flex-direction: column;
        gap: 20px;
    }

    .page-nav-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }

    .page-nav-menu {
        padding: 8px 0;
    }

    .page-nav-item a {
        padding: 12px 20px;
    }
}

/* 侧边栏广告位悬浮效果（由JavaScript实现） */
@media (min-width: 861px) {
    .site-sidebar {
        align-self: flex-start;
    }
    .sidebar-sticky-placeholder {
        display: none;
    }
}

/* 侧边栏广告位容器 */
.site-sidebar .ad-slot {
    margin-bottom: 0;
    padding: 0;
}

/* 广告内容 */
.site-sidebar .ad-content {
    margin-bottom: 15px;
    padding: 0;
}

.site-sidebar .ad-content * {
    margin: 0;
    padding: 0;
}

/* 登录/注册/注销 + 自定义链接 合并卡片 */
.site-sidebar .sidebar-user-card {
    background: var(--c-card-bg, #fff);
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 22px;
}

.site-sidebar .user-card-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.site-sidebar .user-card-actions {
    justify-content: center;
    margin-bottom: 8px;
}

.site-sidebar .user-card-actions:last-child {
    margin-bottom: 0;
}

.site-sidebar .user-card-links {
    justify-content: center;
    border-top: 1px solid var(--c-border, #e5e7eb);
    padding-top: 8px;
}

.site-sidebar .user-card-name {
    font-weight: 600;
    color: var(--c-text, #1f2937);
    font-size: 14px;
}

.site-sidebar .user-card-divider {
    color: var(--c-border, #d1d5db);
    font-size: 12px;
}

.site-sidebar .user-card-link,
.site-sidebar .btn-login,
.site-sidebar .btn-register {
    color: var(--c-accent, #64748b);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.site-sidebar .user-card-link:hover,
.site-sidebar .btn-login:hover,
.site-sidebar .btn-register:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.site-sidebar .user-card-links a {
    color: var(--c-accent, #64748b);
    text-decoration: none;
    font-size: 13px;
}

.site-sidebar .user-card-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. 首页 Hero
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--c-accent-soft), var(--c-surface));
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 44px 36px;
    margin-bottom: 32px;
    text-align: center;
}
.hero-title { font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.hero-text { color: var(--c-muted); max-width: 620px; margin: 0 auto; font-size: 16px; }

/* ==========================================================================
   6. 文章卡片
   ========================================================================== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    padding-left: 12px;
    border-left: 4px solid var(--c-accent);
}
.card-grid .card-wide { grid-column: 1 / -1; }
.post-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--c-surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .card-media img { transform: scale(1.04); }
.card-media.no-thumb {
    background: var(--c-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-media.random-cover .random-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-body { padding: 10px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { 
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.card-cat a {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.card-cat a:hover {
    background: var(--c-accent);
    color: #fff;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
    overflow: hidden;
}
.card-tags-empty {
    visibility: hidden;
}
.card-tag {
    font-size: 12px;
    color: var(--c-accent);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.card-tag:hover {
    color: var(--c-accent-strong);
    text-decoration: underline;
}
.card-meta {
    font-size: 12px;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-meta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card-meta .meta-date { color: var(--c-text-muted); }
.card-meta .meta-views:hover { color: var(--c-accent); }
.card-meta .meta-comments:hover { color: var(--c-accent); }
.card-meta .meta-likes:hover { color: #ef4444; }
.card-meta .meta-shares:hover { color: var(--c-accent); }
.card-title { 
    font-size: 18px; 
    font-weight: 700; 
    margin: 0; 
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 26.1px;
    min-height: 26.1px;
    max-height: 26.1px;
}
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover { color: var(--c-accent); }
.card-excerpt { 
    color: var(--c-muted); 
    font-size: 14px; 
    margin: 0; 
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    height: 22.4px;
    min-height: 22.4px;
    max-height: 22.4px;
}

/* ==========================================================================
   7. 单篇文章
   ========================================================================== */
.entry-header { margin-bottom: 22px; }
.entry-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.entry-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.entry-cats a {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-accent);
    background: var(--c-accent-soft);
    border-radius: 999px;
    padding: 3px 14px;
    text-decoration: none;
}
.entry-title { font-size: 30px; font-weight: 800; margin: 0 0 12px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--c-muted); font-size: 14px; align-items: center; }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-item svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.meta-author .avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.meta-author a { color: var(--c-muted); text-decoration: none; }
.meta-author a:hover { color: var(--c-accent); }
.entry-media { margin: 0 0 24px; }
.entry-media img { border-radius: var(--radius); width: 100%; }

.entry-content-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 36px; }
.has-toc .entry-content-wrap { grid-template-columns: minmax(0, 1fr) 260px; }
.entry-content {
    font-size: 16.5px;
    line-height: 1.9;
    max-width: var(--w-content);
    word-wrap: break-word;
}
.has-toc .entry-content { max-width: none; }
.entry-content > * { max-width: var(--w-content); }
.entry-content > .alignwide { max-width: none; }
.entry-content h2, .entry-content h3, .entry-content h4 {
    scroll-margin-top: calc(var(--header-h) + 16px);
    margin-top: 1.8em;
}
.entry-content h2 { font-size: 24px; padding-bottom: .35em; border-bottom: 1px solid var(--c-border); }
.entry-content h3 { font-size: 20px; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
    margin: 1.5em 0;
    padding: 14px 22px;
    border-left: 4px solid var(--c-quote-border);
    background: var(--c-surface-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--c-muted);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code {
    font-family: var(--font-mono);
    font-size: .9em;
    background: var(--c-code-bg);
    padding: 2px 6px;
    border-radius: 4px;
}
.entry-content pre {
    background: var(--c-code-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    overflow-x: auto;
    line-height: 1.6;
    margin: 0 0 1.2em;
}
.entry-content pre code { background: none; padding: 0; }
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.2em;
    font-size: 15px;
}
.entry-content th, .entry-content td { border: 1px solid var(--c-border); padding: 9px 12px; }
.entry-content th { background: var(--c-surface-2); font-weight: 600; }
.entry-content .wp-caption { max-width: 100%; margin: 1.4em 0; }
.entry-content .wp-caption-text { font-size: 13px; color: var(--c-muted); text-align: center; margin: 8px 0 0; }
.entry-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.2em; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content iframe { max-width: 100%; }

/* 目录 */
.toc-box {
    font-size: 14px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    align-self: start;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}
.toc-title { font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0; }
.toc-list a {
    display: block;
    color: var(--c-muted);
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    border-left: 2px solid transparent;
}
.toc-list a:hover { color: var(--c-accent); background: var(--c-surface); }
.toc-list a.active { color: var(--c-accent); border-left-color: var(--c-accent); font-weight: 600; }
.toc-list .toc-h3 { padding-left: 22px; font-size: 13px; }
.toc-toggle-btn { display: none; }

/* 文章底部 */
.entry-footer { margin-top: 34px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tag-list a {
    font-size: 13px;
    color: var(--c-muted);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: 3px 14px;
    text-decoration: none;
}
.tag-list a:hover { color: var(--c-accent); border-color: var(--c-accent); }

/* 大点赞按钮（正文尾部） */
.like-button-wrap {
    display: flex;
    justify-content: center;
    margin: 32px 0 24px;
}
.like-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    border: 2px solid var(--c-accent);
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    color: var(--c-accent);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.like-btn-large:hover {
    background: var(--c-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.like-btn-large.liked {
    background: var(--c-accent);
    color: #fff;
}
.like-btn-large.loading { opacity: 0.6; cursor: wait; }
.like-icon-large {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}
.like-btn-large.liked .like-icon-large {
    fill: currentColor;
}
.like-count-large {
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* 分享按钮（元信息行） */
.share-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.share-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    color: var(--c-muted);
    background: var(--c-surface);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0;
}
.share-btn-sm:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-soft);
}
.share-btn-sm svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

/* 微信分享弹窗 */
.wechat-share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}
.wechat-share-modal.active {
    display: flex;
}
.wechat-share-content {
    background: var(--c-surface);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    max-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.wechat-share-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    color: var(--c-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.wechat-share-close:hover {
    color: var(--c-text);
}
.wechat-share-content h4 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--c-text);
}
.wechat-qrcode {
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wechat-qrcode img {
    width: 100%;
    height: 100%;
    display: block;
}
.wechat-share-content p {
    margin: 0;
    font-size: 13px;
    color: var(--c-muted);
}

/* 未登录评论提示 */
.comment-login-prompt {
    position: relative;
    margin-top: 24px;
}
.comment-login-textarea {
    width: 100%;
    min-height: 60px;
    padding: 12px 16px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
    color: var(--c-muted);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    cursor: not-allowed;
    opacity: 0.7;
    box-sizing: border-box;
}
.comment-login-textarea:disabled {
    background: var(--c-surface);
}
.comment-login-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--c-muted);
    white-space: nowrap;
}
.comment-login-href {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 700;
    margin: 0 2px;
    transition: all 0.2s;
}
.comment-login-href:hover {
    color: var(--c-accent);
    text-decoration: underline;
    opacity: 0.8;
}
.comment-login-href strong {
    font-weight: 700;
}

/* 评论列表优化 */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 20px 24px;
    background: var(--c-surface);
    border-radius: 12px;
    border: 1px solid var(--c-border);
}
.comment-item {
    list-style: none;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-border);
}
.comment-item:first-child {
    padding-top: 0;
}
.comment-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.comment-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-header {
    display: flex;
    align-items: center;
}
.comment-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-author-info img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
}
.comment-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
}
.comment-author-name a {
    color: var(--c-text);
    text-decoration: none;
}
.comment-author-name a:hover {
    color: var(--c-accent);
}
.comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--c-text);
    padding-left: 50px;
}
.comment-content p {
    margin: 0 0 8px;
}
.comment-content p:last-child {
    margin-bottom: 0;
}
.comment-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 50px;
    font-size: 13px;
}
.comment-reply-wrap a {
    color: var(--c-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.comment-reply-wrap a:hover {
    color: var(--c-accent);
}
.comment-time {
    color: var(--c-muted);
}
.comment-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--c-muted);
    font-size: 13px;
}
.comment-location .location-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

/* 子评论缩进 */
.comment-list .children {
    list-style: none;
    margin: 16px 0 0 50px;
    padding: 0;
}
.comment-list .children .comment-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
}

/* 作者框 */
.author-box {
    display: flex;
    gap: 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 28px;
}
.author-box .avatar { border-radius: 50%; }
.author-box h4 { margin: 0 0 4px; font-size: 16px; }
.author-box p { margin: 0; color: var(--c-muted); font-size: 14px; }
.author-box a { text-decoration: none; }

/* 上下篇文章卡片 */
.post-nav-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.nav-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}
.nav-card-empty { visibility: hidden; }
.nav-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.nav-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}
.nav-card:hover .nav-card-overlay {
    background: rgba(0, 0, 0, 0.4);
}
.nav-card-content {
    position: relative;
    z-index: 2;
    padding: 2px 20px;
}
.nav-card-next .nav-card-content { text-align: right; }
.nav-card-label {
    display: inline-block;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.nav-card-cat {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--c-accent);
    border-radius: 4px;
}
.nav-card-next .nav-card-cat { margin-left: 0; margin-right: 8px; }
.nav-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-card:hover .nav-card-title { text-decoration: underline; }

/* 相关文章 */
.related-posts { margin-top: 40px; }

/* 分页 */
.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    color: var(--c-text);
    text-decoration: none;
    font-size: 15px;
}
.pagination a.page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; font-weight: 700; }

/* 面包屑 */
.breadcrumbs {
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-accent);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.breadcrumbs .current { color: var(--c-text); }

/* 页面头部（归档/搜索） */
.page-header { margin-bottom: 26px; }
.page-title { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.page-desc { color: var(--c-muted); margin: 0; }

/* ==========================================================================
   8. 侧边栏与小组件
   ========================================================================== */
.site-sidebar .widget {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.site-sidebar .widget:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--c-accent-soft);
}
.site-sidebar .widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-soft));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.site-sidebar .widget:hover::before { opacity: 1; }

.site-sidebar .widget-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-text);
}
.site-sidebar .widget-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--c-accent), var(--c-accent-strong));
    border-radius: 2px;
    flex-shrink: 0;
}
.site-sidebar .widget-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--c-border), transparent);
    margin-left: 8px;
}

.site-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.site-sidebar .widget li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--c-border);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.site-sidebar .widget li:last-child { border-bottom: none; padding-bottom: 0; }
.site-sidebar .widget li:first-child { padding-top: 0; }
.site-sidebar .widget li:hover {
    background: var(--c-accent-soft);
    margin: 0 -10px;
    padding: 10px 18px;
    border-radius: 6px;
    border-bottom-color: transparent;
}
.site-sidebar .widget li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
    opacity: 0.6;
}
.site-sidebar .widget li:hover::before { opacity: 1; transform: scale(1.3); }
.site-sidebar .widget a {
    color: var(--c-text);
    text-decoration: none;
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s ease;
}
.site-sidebar .widget a:hover { color: var(--c-accent); }

/* 热门文章小工具 */
.site-sidebar .widget_shigu_popular_posts .popular-posts-list { list-style: none; margin: 0; padding: 0; }
.site-sidebar .widget_shigu_popular_posts .popular-post-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--c-border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}
.site-sidebar .widget_shigu_popular_posts .popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.site-sidebar .widget_shigu_popular_posts .popular-post-item:first-child { padding-top: 0; }
.site-sidebar .widget_shigu_popular_posts .popular-post-item::before { display: none; }
.site-sidebar .widget_shigu_popular_posts .popular-post-item:hover {
    background: var(--c-accent-soft);
    margin: 0 -10px;
    padding: 12px 18px;
    border-radius: 6px;
    border-bottom-color: transparent;
}
.site-sidebar .widget_shigu_popular_posts .popular-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}
.site-sidebar .widget_shigu_popular_posts .popular-thumb-img,
.site-sidebar .widget_shigu_popular_posts .popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.site-sidebar .widget_shigu_popular_posts .popular-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--c-surface-2);
}
.site-sidebar .widget_shigu_popular_posts .popular-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.site-sidebar .widget_shigu_popular_posts .popular-post-title {
    color: var(--c-text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.site-sidebar .widget_shigu_popular_posts .popular-post-title:hover { color: var(--c-accent); }
.site-sidebar .widget_shigu_popular_posts .popular-post-views {
    font-size: 12px;
    color: var(--c-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-sidebar .widget_shigu_popular_posts .popular-post-views::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.7;
}

.site-sidebar .widget .tag-cloud-link {
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: 4px 12px;
    margin: 0 6px 8px 0;
    display: inline-block;
    font-size: 13px;
    color: var(--c-text-secondary);
    background: var(--c-surface-2);
    transition: all 0.25s ease;
    text-decoration: none;
}
.site-sidebar .widget .tag-cloud-link:hover {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-sidebar .widget li .count,
.site-sidebar .widget li .post-count {
    background: var(--c-accent-soft);
    color: var(--c-accent);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.site-sidebar .widget li:hover .count,
.site-sidebar .widget li:hover .post-count {
    background: var(--c-accent);
    color: #fff;
}

.site-sidebar .widget .recentcomments {
    font-size: 13px;
    line-height: 1.6;
    color: var(--c-text-secondary);
}
.site-sidebar .widget .recentcomments a { font-size: 13px; display: inline; }
.site-sidebar .widget .recentcomments .comment-author-link {
    font-weight: 600;
    color: var(--c-accent);
}

/* WordPress区块搜索小工具样式 */
.site-sidebar .wp-block-search {
    margin: 0;
}
.site-sidebar .wp-block-search__label {
    display: none;
}
.site-sidebar .wp-block-search__inside-wrapper {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--c-border);
}
.site-sidebar .wp-block-search__inside-wrapper:focus-within {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--c-accent);
}
.site-sidebar .wp-block-search__input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: none;
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    border-radius: 0;
}
.site-sidebar .wp-block-search__input:focus {
    outline: none;
    background: var(--c-surface);
}
.site-sidebar .wp-block-search__input::placeholder {
    color: var(--c-text-muted);
}
.site-sidebar .wp-block-search__button {
    height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-strong));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.site-sidebar .wp-block-search__button:hover {
    background: linear-gradient(135deg, var(--c-accent-strong), var(--c-accent));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.site-sidebar .wp-block-search__button:active {
    transform: scale(0.98);
}
/* 搜索按钮图标 */
.site-sidebar .wp-block-search__button::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* 搜索表单 */
.search-form {
    display: flex;
    gap: 0;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}
.search-form:focus-within {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--c-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}
.search-form .search-field:focus {
    outline: none;
    border-color: var(--c-accent);
    background: var(--c-surface);
}
.search-form .search-field::placeholder {
    color: var(--c-text-muted);
}
.search-form .search-submit {
    height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-strong));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-form .search-submit:hover {
    background: linear-gradient(135deg, var(--c-accent-strong), var(--c-accent));
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.search-form .search-submit:active {
    transform: scale(0.98);
}
/* 搜索按钮图标 */
.search-form .search-submit::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ==========================================================================
   9. 评论
   ========================================================================== */
.comments-area { margin-top: 44px; }
.comments-title { font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.comment-list .comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-list .avatar { border-radius: 50%; }
.comment-list .fn { font-weight: 600; font-size: 15px; }
.comment-list .comment-metadata { font-size: 13px; color: var(--c-muted); }
.comment-list .comment-content { font-size: 15px; }
.comment-list .reply a { font-size: 13px; color: var(--c-muted); }
.comment-list .children { list-style: none; margin: 0 0 0 40px; padding: 0; }
.comment-respond { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-bg);
    color: var(--c-text);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 16px;
}
.comment-form .submit {
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 26px;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
}
.comment-form .submit:hover { background: var(--c-accent-strong); }

/* ==========================================================================
   10. 页脚
   ========================================================================== */
.site-footer {
    background: var(--c-footer-bg);
    color: var(--c-footer-text);
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 44px 0 30px;
}
.footer-widget .widget-title { color: var(--c-footer-text); font-size: 16px; margin: 0 0 14px; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { padding: 5px 0; }
.footer-widget a { color: var(--c-footer-muted); text-decoration: none; }
.footer-widget a:hover { color: var(--c-accent); }
.footer-widget p { color: var(--c-footer-muted); font-size: 14px; margin: 0; }
.footer-widget .tag-cloud-link { color: var(--c-footer-muted); }
.footer-bottom {
    border-top: 1px solid var(--c-footer-border);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    line-height: 1.2;
    color: var(--c-footer-muted);
}
.footer-col {
    flex: 1;
    min-width: 0;
}
.footer-left {
    text-align: left;
}
.footer-center {
    text-align: center;
}
.footer-right {
    text-align: right;
}
.footer-copy {
    margin: 0;
    line-height: 1.2;
}
.footer-beian {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-icp { text-decoration: none; }
.footer-security { text-decoration: none; }

/* 移动端：三栏变三行堆叠 */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 12px 0;
    }
    .footer-col {
        width: 100%;
        text-align: center;
    }
    .footer-left { text-align: center; }
    .footer-center { text-align: center; }
    .footer-right { text-align: center; }
    .footer-beian {
        justify-content: center;
    }
}
.footer-bottom a { color: var(--c-footer-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--c-accent); }
.footer-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }

/* ==========================================================================
   11. 其他
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--c-accent); }
.back-to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.error-404 { text-align: center; padding: 60px 20px; }
.error-404 .error-code { font-size: 88px; font-weight: 800; color: var(--c-accent); line-height: 1; margin: 0 0 10px; }
.error-404 p { color: var(--c-muted); margin: 0 0 24px; }
.error-404 .search-form { max-width: 440px; margin: 0 auto 30px; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

/* ==========================================================================
   12. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .site-sidebar { flex-basis: 280px; width: 280px; }
    .has-toc .entry-content-wrap { grid-template-columns: minmax(0, 1fr); }
    .toc-box { position: static; max-height: none; margin-bottom: 22px; }
}

@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; }
    /* 菜单打开时提高header的z-index，确保菜单在遮罩层之上 */
    .site-header.nav-open {
        z-index: 99999 !important;
    }
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        right: -280px;
        bottom: auto !important;
        width: 280px;
        height: auto !important;
        max-height: 80vh !important;
        background: var(--c-surface);
        border-left: 1px solid var(--c-border);
        border-radius: 0 0 0 12px;
        box-shadow: var(--shadow-lg);
        padding: 60px 16px 16px;
        transition: right .3s ease;
        z-index: 99998 !important;
        overflow-y: auto;
        overflow-x: hidden;
        display: block !important;
        margin: 0 !important;
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { 
        border-bottom: 1px solid var(--c-border);
        margin: 0;
    }
    .main-nav li:last-child { border-bottom: none; }
    .main-nav a { 
        padding: 14px 12px; 
        color: var(--c-text) !important;
        font-size: 15px;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s ease;
        display: block;
        width: 100%;
    }
    .main-nav a:hover {
        color: var(--c-accent) !important;
        background: var(--c-accent-soft);
        padding-left: 18px;
    }
    .main-nav .current-menu-item > a,
    .main-nav .current_page_item > a {
        color: #fff !important;
        font-weight: 600;
        background: linear-gradient(135deg, var(--c-accent), var(--c-accent-strong)) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    .main-nav .current-menu-item > a:hover,
    .main-nav .current_page_item > a:hover {
        color: #fff !important;
        padding-left: 12px;
    }
    .main-nav .sub-menu,
    .main-nav .children { 
        position: static; 
        box-shadow: none; 
        border: none; 
        padding: 0 0 6px 14px; 
        display: none;
        background: transparent;
    }
    .main-nav .sub-menu li,
    .main-nav .children li {
        border-bottom: none;
        border-top: 1px dashed var(--c-border);
    }
    .main-nav .sub-menu a,
    .main-nav .children a {
        font-size: 14px;
        padding: 10px 6px;
        color: var(--c-text-secondary) !important;
    }
    .main-nav li:hover > .sub-menu,
    .main-nav li:hover > .children { display: flex; }
    .nav-close { 
        position: absolute; 
        top: 14px; 
        right: 14px;
        display: inline-flex !important;
        z-index: 10;
    }
    /* 移动端菜单标题 */
    .main-nav::before {
        content: '导航菜单';
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 16px;
        font-weight: 700;
        color: var(--c-text);
    }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 99997 !important;
        display: none;
    }
    .nav-overlay.open { display: block; }
    .page-layout { flex-direction: column; }
    .site-sidebar { display: none !important; }
    body.layout-left .site-sidebar { order: 0; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav .nav-next { text-align: left; }
    .hero { padding: 30px 20px; }
    .entry-title { font-size: 24px; }
}

@media (max-width: 560px) {
    .site-title { font-size: 18px; }
    .header-actions { gap: 4px; }
    .header-actions .icon-btn { 
        width: 34px; 
        height: 34px;
        padding: 0;
    }
    .header-actions .icon-btn svg {
        width: 18px;
        height: 18px;
    }
    .header-inner {
        padding: 0 16px;
        gap: 8px;
    }
    .site-branding {
        min-width: 0;
        flex: 1;
    }
    .site-branding-link {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
    .site-logo {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    .site-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .card-grid { gap: 16px; }
    .entry-content { font-size: 15.5px; }
    /* 移动端菜单抽屉 */
    .main-nav {
        width: 260px;
        right: -260px;
        padding: 56px 14px 14px;
        height: auto !important;
        max-height: 80vh !important;
        position: fixed !important;
        top: 0 !important;
        bottom: auto !important;
        z-index: 99998 !important;
    }
    .main-nav::before {
        top: 16px;
        left: 16px;
        font-size: 15px;
    }
    .nav-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
}

/* 编辑器区块基础样式 */
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
.wp-block-button__link {
    display: inline-block;
    background: var(--c-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    text-decoration: none;
}
.wp-block-button__link:hover { background: var(--c-accent-strong); color: #fff; text-decoration: none; }
.wp-block-separator { border: none; border-top: 2px solid var(--c-border); margin: 2em auto; }
.wp-block-quote { border-left: 4px solid var(--c-quote-border); padding-left: 18px; color: var(--c-muted); }

/* ==========================================================================
   13. 补充样式
   ========================================================================== */
.nav-close { display: none; }
.icon-btn .icon-sun { display: none; }
html[data-theme="dark"] .icon-btn .icon-sun { display: block; }
html[data-theme="dark"] .icon-btn .icon-moon { display: none; }
.site-header.scrolled { box-shadow: var(--shadow); }
.no-results { color: var(--c-muted); margin-bottom: 20px; }
.search-query { color: var(--c-accent); }
.footer-icp { text-decoration: none; }
.footer-security { text-decoration: none; margin-left: 10px; }
.page-links { margin: 1.5em 0; }
.page-links .post-page-numbers {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    margin-right: 6px;
    padding: 0 10px;
}
.page-links .post-page-numbers.current {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
.main-nav .children {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    flex-direction: column;
    display: none;
    z-index: 9999;
}
.main-nav li:hover > .children { display: flex; }
.site-header .main-nav .children a { 
    padding: 8px 12px; 
    font-size: 14px; 
    color: var(--c-text) !important;
    background: transparent !important;
    border-radius: var(--radius-sm);
}
.site-header .main-nav .children a:hover { 
    color: var(--c-accent) !important; 
    background: var(--c-surface-2) !important; 
}
.site-header .main-nav .children .current-menu-item > a,
.site-header .main-nav .children .current_page_item > a { 
    color: var(--c-accent) !important; 
    font-weight: 600; 
    background: var(--c-surface-2) !important;
}
.footer-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-widget .page-menu, .footer-widget .menu { list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   优化增强：阅读进度条
   ========================================================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}
.reading-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-strong));
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(226, 113, 29, 0.4);
}

/* ==========================================================================
   优化增强：深色头部配色（头部与页脚同色）
   ========================================================================== */
.site-header {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.site-header .site-title,
.site-header .site-title a,
.site-header .site-branding-link .site-title {
    color: #fff;
}
.site-header .site-branding-link:hover .site-title,
.site-header .site-title a:hover {
    color: rgba(255, 255, 255, 0.85);
}
.site-header .main-nav a {
    color: rgba(255, 255, 255, 0.9);
}
.site-header .main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.site-header .main-nav .current-menu-item > a,
.site-header .main-nav .current_page_item > a {
    color: #fff;
}
.site-header .icon-btn {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}
.site-header .icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.site-header .site-branding-link {
    color: #fff;
}
/* 深色头部下的搜索框 */
.site-header .header-search {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   优化增强：站点Logo + 网站名
   ========================================================================== */
.site-branding-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.site-branding-link:hover {
    text-decoration: none;
}
.site-logo {
    height: 32px;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}
.site-branding .site-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--c-text);
}

/* ==========================================================================
   优化增强：文章列表布局切换（一行一个/两个/三个）
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
body.card-layout-1 .card-grid {
    grid-template-columns: 1fr;
}
body.card-layout-1 .post-card {
    flex-direction: row;
}
body.card-layout-1 .card-media {
    width: 45%;
    flex-shrink: 0;
    aspect-ratio: auto;
    height: 126px;
    min-height: 126px;
    max-height: 126px;
    align-self: center;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}
body.card-layout-1 .card-body {
    flex: 1;
    padding: 10px 20px;
}
body.card-layout-1 .card-excerpt {
    -webkit-line-clamp: 1;
    height: 22.4px;
    min-height: 22.4px;
    max-height: 22.4px;
}
body.card-layout-3 .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
body.card-layout-3 .card-title {
    font-size: 16px;
    height: 23.2px;
    min-height: 23.2px;
    max-height: 23.2px;
}
body.card-layout-3 .card-excerpt {
    font-size: 13px;
}
body.card-layout-3 .card-meta {
    font-size: 12px;
}

/* 平板端：一行三个自动变为一行两个 */
@media (max-width: 860px) {
    body.card-layout-3 .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   优化增强：深色模式平滑过渡
   ========================================================================== */
html {
    transition: background-color 0.3s ease;
}
body,
.site-header,
.post-card,
.widget,
.site-footer,
input,
textarea,
select,
button {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
html[data-theme="dark"] img {
    filter: brightness(0.9) contrast(1.05);
    transition: filter 0.3s ease;
}

/* ==========================================================================
   优化增强：卡片 hover 微交互
   ========================================================================== */
.post-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.post-card:hover {
    box-shadow: var(--shadow-lg);
}
.post-card .card-media img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card:hover .card-media img {
    transform: scale(1.05);
}
.post-card .card-title a {
    background-image: linear-gradient(var(--c-accent), var(--c-accent));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.2s ease;
}
.post-card:hover .card-title a {
    background-size: 100% 2px;
}

/* ==========================================================================
   优化增强：回到顶部进度环
   ========================================================================== */
.back-to-top {
    overflow: hidden;
}
.back-to-top-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.back-to-top-ring .ring-bg {
    stroke: rgba(255, 255, 255, 0.2);
}
.back-to-top-ring .ring-progress {
    stroke: #fff;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.1s linear;
}
.back-to-top svg:not(.back-to-top-ring) {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   优化增强：浏览量 / 字数 元信息
   ========================================================================== */
.meta-views svg,
.meta-words svg,
.card-views svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 2px;
}
.card-views {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.entry-meta .meta-item svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 3px;
    opacity: 0.7;
}

/* ==========================================================================
   优化增强：AJAX 实时搜索建议
   ========================================================================== */
.header-search-wrap {
    position: relative;
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    margin-top: 6px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.search-suggestions.active {
    display: block;
}
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.search-suggestion-item:last-child {
    border-bottom: none;
}
.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: var(--c-surface-2);
}
.search-suggestion-info {
    flex: 1;
    min-width: 0;
}
.search-suggestion-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.search-suggestion-title mark {
    background: var(--c-accent-soft);
    color: var(--c-accent-strong);
    padding: 0 2px;
    border-radius: 2px;
}
.search-suggestion-meta {
    font-size: 12px;
    color: var(--c-muted);
    display: flex;
    gap: 10px;
}
.search-suggestion-views {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--c-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}
.search-suggestion-views svg {
    width: 12px;
    height: 12px;
}
.search-suggestions-empty {
    padding: 20px;
    text-align: center;
    color: var(--c-muted);
    font-size: 14px;
}
.search-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--c-border);
    border-top-color: var(--c-accent);
    border-radius: 50%;
    animation: search-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}
@keyframes search-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   优化增强：文章目录移动端折叠按钮
   ========================================================================== */
.toc-title {
    display: flex;
    align-items: center;
}
.toc-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.toc-toggle-btn:hover {
    background: var(--c-surface-2);
}
.toc-toggle-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.toc-box .toc-list[style*="display: block"] ~ .toc-title .toc-toggle-btn svg,
.toc-toggle-btn[aria-label="收起目录"] svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   优化增强：分享按钮复制成功状态
   ========================================================================== */
.share-btn {
    transition: all 0.2s ease;
}
.share-btn:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   优化增强：图片懒加载占位
   ========================================================================== */
img[loading="lazy"] {
    background: var(--c-surface-2);
    min-height: 1px;
}

/* ==========================================================================
   优化增强：滚动条美化（可选）
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--c-surface-2);
}
::-webkit-scrollbar-thumb {
    background: var(--c-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--c-muted);
}

/* ==========================================================================
   优化增强：响应式微调
   ========================================================================== */
@media (max-width: 1024px) {
    .reading-progress { height: 2px; }
}
@media (max-width: 640px) {
    .entry-meta {
        flex-wrap: wrap;
        gap: 6px 14px;
    }
    .meta-views,
    .meta-words {
        font-size: 12px;
    }
}

/* ==========================================================================
   优化增强：移动端无限滚动加载
   ========================================================================== */
.infinite-scroll-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    color: var(--c-text-secondary);
    font-size: 14px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--c-border);
    border-top-color: var(--c-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 移动端分页保持显示 */
@media (max-width: 860px) {
    .pagination {
        display: flex !important;
    }
    .entry-meta-row {
        gap: 8px;
    }
    .share-inline {
        margin-left: auto;
        gap: 6px;
    }
    .share-btn-sm {
        width: 26px;
        height: 26px;
    }
    .share-btn-sm svg {
        width: 13px;
        height: 13px;
    }
    .like-btn-large {
        padding: 12px 32px;
        font-size: 16px;
    }
    .like-icon-large {
        width: 20px;
        height: 20px;
    }
}
