/*
Theme Name: 梦·博客 Dream Blog
Theme URI: https://example.com/dream-blog
Author: Dream Blog
Author URI: https://example.com
Description: 由「二次元博客 · 梦幻空间」HTML 模板（jQuery 版首页 + 文章详情页）完整移植的 WordPress 主题，100% 保留原模板视觉与交互：Canvas 粒子系统、鼠标光晕、樱花飘落、阅读进度条、Hero 打字机、分类筛选栏、卡片悬浮发光描边、文章预览弹窗、分类筛选栏与 AJAX 分页、文章目录(TOC)、点赞与分享、相关文章、移动端抽屉导航等。含响应式布局、小工具、自定义菜单、文章缩略图、自定义 Logo 与主题自定义器特效开关。
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dream-blog
Tags: blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, entertainment
Requires PHP: 7.4
Tested up to: 6.6
*/

/* ================================================================
   梦·博客 WordPress 主题 · 样式表
   ----------------------------------------------------------------
   区块顺序：
   01. 全局重置与变量 / 特效层 / 导航栏 / Hero / 主内容
       （源自 jQuery 版首页模板 index_for_jq.html）
   02. 筛选栏 / 文章列表容器 / 文章卡片 / 分页组件 / 预览弹窗
   03. 侧边栏 / 回到顶部 / Toast / 页脚 / 响应式 / 滚动条
   04. 文章详情页样式（原 blog_detail 模板）
   05. WordPress 主题附加样式（小工具 / 分页 / 评论 / 表单 / 对齐）
   06. 主题补充与修正样式
   07. 网格定位修正
   ================================================================ */

/* ============================================================
   ===== 01. 首页模板样式（jQuery 版 index_for_jq.html） =====
   ============================================================ */

        /* ===== 全局重置 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --pink: #ff6b9d;
            --purple: #c084fc;
            --blue: #60a5fa;
            --dark: #0a0a1a;
            --glass: rgba(255, 255, 255, 0.06);
            --glass-border: rgba(255, 255, 255, 0.12);
            --radius: 20px;
            --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Noto Sans SC', 'Poppins', sans-serif;
            background: var(--dark);
            color: #f0f0f0;
            overflow-x: hidden;
            min-height: 100vh;
            line-height: 1.6;
        }

        /* ===== 粒子画布 ===== */
        #particles-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        /* ===== 鼠标光晕 ===== */
        #glow {
            position: fixed;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 107, 157, 0.10) 0%, rgba(192, 132, 252, 0.04) 50%, transparent 70%);
            pointer-events: none;
            transform: translate(-50%, -50%);
            z-index: 0;
            filter: blur(40px);
            transition: left 0.08s ease-out, top 0.08s ease-out;
        }

        /* ===== 樱花飘落 ===== */
        .sakura-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }
        .sakura {
            position: absolute;
            top: -40px;
            width: 16px;
            height: 16px;
            background: radial-gradient(circle at 30% 30%, #ffb7c5, #ff6b9d);
            border-radius: 50% 0 50% 50%;
            opacity: 0.5;
            animation: fall linear infinite;
            animation-duration: var(--fall-duration, 12s);
            animation-delay: var(--fall-delay, 0s);
            left: var(--sakura-x, 10%);
            transform: rotate(var(--rot, 0deg)) scale(var(--scale, 0.7));
            will-change: transform, opacity;
        }
        @keyframes fall {
            0% {
                transform: translateY(0) rotate(0deg) scale(1);
                opacity: 0.5;
            }
            100% {
                transform: translateY(110vh) rotate(720deg) scale(0.2);
                opacity: 0;
            }
        }

        /* ===== 阅读进度条 ===== */
        #progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
            z-index: 101;
            transition: width 0.1s linear;
            box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
        }

        /* ===== 导航栏 ===== */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 14px 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 100;
            background: rgba(10, 10, 26, 0.55);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--glass-border);
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }
        .navbar.scrolled {
            background: rgba(10, 10, 26, 0.82);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        }
        .nav-logo {
            font-size: 1.4rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .nav-logo span {
            font-size: 1.6rem;
            -webkit-text-fill-color: initial;
        }
        .nav-links {
            display: flex;
            gap: 28px;
            list-style: none;
            align-items: center;
        }
        .nav-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 400;
            transition: color 0.3s ease;
            position: relative;
            padding: 4px 0;
        }
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--pink), var(--purple));
            transition: width 0.3s ease;
            border-radius: 2px;
        }
        .nav-links a:hover,
        .nav-links a.active {
            color: #fff;
        }
        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }
        .nav-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 4px;
            z-index: 200;
        }
        .nav-toggle span {
            display: block;
            width: 26px;
            height: 2.5px;
            background: #fff;
            border-radius: 4px;
            transition: 0.3s ease;
        }
        .nav-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        .nav-toggle.active span:nth-child(2) {
            opacity: 0;
        }
        .nav-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        /* ===== Hero ===== */
        .hero {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 120px 24px 80px;
        }
        .hero-badge {
            display: inline-block;
            padding: 6px 20px;
            border-radius: 50px;
            background: rgba(255, 107, 157, 0.12);
            border: 1px solid rgba(255, 107, 157, 0.20);
            font-size: 0.8rem;
            color: var(--pink);
            letter-spacing: 2px;
            margin-bottom: 24px;
            backdrop-filter: blur(4px);
            animation: floatY 3s ease-in-out infinite;
        }
        @keyframes floatY {
            0%,
            100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-8px);
            }
        }

        .hero-title {
            font-size: clamp(2.8rem, 10vw, 5.2rem);
            font-weight: 900;
            line-height: 1.1;
            background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 35%, #60a5fa 70%, #34d399 100%);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 6s ease infinite;
            margin-bottom: 16px;
        }
        @keyframes gradientShift {
            0%,
            100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }

        .hero-sub {
            font-size: clamp(1rem, 2.5vw, 1.4rem);
            font-weight: 300;
            color: rgba(255, 255, 255, 0.7);
            letter-spacing: 2px;
            margin-bottom: 40px;
        }
        .hero-sub .cursor {
            display: inline-block;
            width: 2px;
            height: 1.1em;
            background: var(--pink);
            margin-left: 4px;
            vertical-align: text-bottom;
            animation: blink 0.9s step-end infinite;
        }
        @keyframes blink {
            0%,
            100% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
        }

        .hero-cta {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 14px 44px;
            border-radius: 60px;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            color: #fff;
            font-weight: 700;
            font-size: 1rem;
            text-decoration: none;
            box-shadow: 0 0 40px rgba(255, 107, 157, 0.25);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: none;
            cursor: pointer;
        }
        .hero-cta:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 0 60px rgba(255, 107, 157, 0.45);
        }

        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            color: rgba(255, 255, 255, 0.20);
            font-size: 0.75rem;
            letter-spacing: 2px;
            animation: floatY 2.5s ease-in-out infinite;
        }
        .scroll-indicator .mouse {
            width: 24px;
            height: 38px;
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            position: relative;
        }
        .scroll-indicator .mouse::after {
            content: '';
            position: absolute;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
            width: 3px;
            height: 10px;
            background: var(--pink);
            border-radius: 4px;
            animation: scrollDot 2s ease-in-out infinite;
        }
        @keyframes scrollDot {
            0%,
            100% {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
            50% {
                transform: translateX(-50%) translateY(16px);
                opacity: 0.2;
            }
        }

        /* ===== 主内容 ===== */
        .main-content {
            position: relative;
            z-index: 1;
            max-width: 1280px;
            margin: 0 auto;
            padding: 40px 24px 80px;
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 48px;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 32px;
            grid-column: 1 / -1;
        }
        .section-header h2 {
            font-size: 1.8rem;
            font-weight: 700;
            background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .section-header .line {
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, var(--glass-border), transparent);
        }
        .section-header .emoji-deco {
            font-size: 1.6rem;
            -webkit-text-fill-color: initial;
        }

        /* 筛选栏 */
        .filter-bar {
            grid-column: 1 / 2;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 24px;
            padding: 12px 18px;
            background: var(--glass);
            backdrop-filter: blur(8px);
            border-radius: var(--radius);
            border: 1px solid var(--glass-border);
        }
        .filter-bar .label {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.4);
            margin-right: 4px;
        }
        .filter-bar .filter-btn {
            padding: 4px 16px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
        }
        .filter-bar .filter-btn:hover {
            border-color: var(--pink);
            color: #fff;
            background: rgba(255, 107, 157, 0.06);
        }
        .filter-bar .filter-btn.active {
            background: rgba(255, 107, 157, 0.15);
            border-color: var(--pink);
            color: var(--pink);
        }
        .filter-bar .clear-filter {
            padding: 4px 14px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.3);
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            margin-left: auto;
        }
        .filter-bar .clear-filter:hover {
            color: var(--pink);
            border-color: var(--pink);
        }
        .filter-bar .post-count {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.25);
            margin-left: 8px;
        }

        /* ===== 文章列表容器 ===== */
        .posts-wrapper {
            grid-column: 1 / 2;
            position: relative;
        }

        .posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 28px;
            transition: opacity 0.35s ease;
        }
        .posts-grid.fade {
            opacity: 0;
        }
        .posts-grid .empty-msg {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            color: rgba(255, 255, 255, 0.3);
            font-size: 1.1rem;
        }
        .posts-grid .empty-msg span {
            display: block;
            font-size: 3rem;
            margin-bottom: 16px;
        }

        /* ===== 文章卡片 ===== */
        .post-card {
            background: var(--glass);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 28px 24px 24px;
            transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        .post-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            border-radius: calc(var(--radius) + 2px);
            background: conic-gradient(from 0deg, var(--pink), var(--purple), var(--blue), var(--pink));
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
            animation: rotateBorder 6s linear infinite;
        }
        @keyframes rotateBorder {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        .post-card:hover::before {
            opacity: 0.6;
        }
        .post-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
            border-color: rgba(255, 107, 157, 0.2);
        }
        .post-card .card-inner {
            position: relative;
            z-index: 1;
        }
        .post-card .tag {
            display: inline-block;
            padding: 2px 14px;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            background: rgba(255, 107, 157, 0.12);
            color: var(--pink);
            border: 1px solid rgba(255, 107, 157, 0.12);
            margin-bottom: 12px;
        }
        .post-card .tag.blue {
            background: rgba(96, 165, 250, 0.12);
            color: var(--blue);
            border-color: rgba(96, 165, 250, 0.12);
        }
        .post-card .tag.purple {
            background: rgba(192, 132, 252, 0.12);
            color: var(--purple);
            border-color: rgba(192, 132, 252, 0.12);
        }
        .post-card .tag.green {
            background: rgba(52, 211, 153, 0.12);
            color: #34d399;
            border-color: rgba(52, 211, 153, 0.12);
        }
        .post-card .tag.orange {
            background: rgba(251, 146, 60, 0.12);
            color: #fb923c;
            border-color: rgba(251, 146, 60, 0.12);
        }

        .post-card h3 {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #fff;
            line-height: 1.4;
            transition: color 0.3s ease;
        }
        .post-card:hover h3 {
            color: var(--pink);
        }
        .post-card p {
            font-size: 0.92rem;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .post-card .meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.3);
            border-top: 1px solid var(--glass-border);
            padding-top: 14px;
        }
        .post-card .meta .readmore {
            color: var(--purple);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.85rem;
            transition: color 0.3s ease, gap 0.3s ease;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .post-card .meta .readmore:hover {
            color: var(--pink);
            gap: 10px;
        }

        /* ===== 分页组件 ===== */
        .pagination-wrapper {
            grid-column: 1 / 2;
            margin-top: 40px;
            display: flex;
            justify-content: center;
        }

        .pagination {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 12px 18px;
            background: var(--glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            flex-wrap: wrap;
            justify-content: center;
        }

        .page-btn {
            min-width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.55);
            font-size: 0.95rem;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 14px;
            font-weight: 500;
            user-select: none;
        }
        .page-btn:hover:not(.disabled):not(.active) {
            border-color: var(--pink);
            color: #fff;
            background: rgba(255, 107, 157, 0.08);
            transform: translateY(-2px);
        }
        .page-btn.active {
            background: linear-gradient(135deg, var(--pink), var(--purple));
            border-color: transparent;
            color: #fff;
            box-shadow: 0 0 24px rgba(255, 107, 157, 0.30);
            transform: scale(1.04);
        }
        .page-btn.disabled {
            opacity: 0.35;
            cursor: not-allowed;
            pointer-events: none;
        }
        .page-btn .arrow {
            font-size: 1.1rem;
            line-height: 1;
        }
        .page-btn.prev,
        .page-btn.next {
            gap: 6px;
            min-width: 80px;
        }
        .page-btn .label {
            font-size: 0.85rem;
        }

        .page-ellipsis {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            height: 40px;
            color: rgba(255, 255, 255, 0.25);
            font-size: 1.1rem;
            letter-spacing: 2px;
            user-select: none;
        }

        /* ===== 侧边栏 ===== */
        .sidebar {
            grid-column: 2 / 3;
            display: flex;
            flex-direction: column;
            gap: 32px;
        }
        .sidebar-card {
            background: var(--glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 28px 24px;
            transition: box-shadow 0.3s ease, border-color 0.3s ease;
        }
        .sidebar-card:hover {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            border-color: rgba(192, 132, 252, 0.15);
        }

        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.8rem;
            margin: 0 auto 14px;
            box-shadow: 0 0 30px rgba(255, 107, 157, 0.15);
            transition: transform 0.3s ease;
        }
        .profile-avatar:hover {
            transform: scale(1.05) rotate(-4deg);
        }
        .profile-name {
            text-align: center;
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
        }
        .profile-name span {
            display: block;
            font-weight: 300;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.4);
            margin-top: 2px;
        }
        .profile-bio {
            text-align: center;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.55);
            margin: 12px 0 16px;
            line-height: 1.7;
        }
        .social-links {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.4);
            text-decoration: none;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        .social-links a:hover {
            background: rgba(255, 107, 157, 0.12);
            border-color: var(--pink);
            color: var(--pink);
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(255, 107, 157, 0.10);
        }

        .tag-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .tag-cloud a {
            padding: 4px 14px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        .tag-cloud a:hover {
            background: rgba(255, 107, 157, 0.10);
            border-color: var(--pink);
            color: var(--pink);
            transform: translateY(-2px);
        }
        .tag-cloud a.active-tag {
            background: rgba(255, 107, 157, 0.15);
            border-color: var(--pink);
            color: var(--pink);
        }

        .sidebar-card h4 {
            font-size: 1rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* ===== 回到顶部 ===== */
        #backTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--glass);
            backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.6);
            font-size: 1.4rem;
            cursor: pointer;
            transition: var(--transition);
            z-index: 99;
            opacity: 0;
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #backTop.visible {
            opacity: 1;
            pointer-events: auto;
        }
        #backTop:hover {
            background: rgba(255, 107, 157, 0.15);
            border-color: var(--pink);
            color: #fff;
            transform: translateY(-4px);
            box-shadow: 0 8px 30px rgba(255, 107, 157, 0.2);
        }

        /* ===== Toast 提示 ===== */
        #toast {
            position: fixed;
            bottom: 90px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: rgba(10, 10, 26, 0.92);
            backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 12px 28px;
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.95rem;
            z-index: 999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease, transform 0.4s ease;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
            white-space: nowrap;
        }
        #toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* ===== 文章预览弹窗 ===== */
        .preview-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.70);
            backdrop-filter: blur(10px);
            z-index: 500;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 30px;
            overflow-y: auto;
        }
        .preview-overlay.open {
            opacity: 1;
            pointer-events: auto;
        }

        .preview-modal {
            background: var(--dark);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            max-width: 580px;
            width: 100%;
            padding: 40px 44px 36px;
            position: relative;
            transform: scale(0.92) translateY(20px);
            transition: transform 0.4s ease;
            box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
        }
        .preview-overlay.open .preview-modal {
            transform: scale(1) translateY(0);
        }

        .preview-modal .close-btn {
            position: absolute;
            top: 16px;
            right: 18px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.4);
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .preview-modal .close-btn:hover {
            background: rgba(255, 107, 157, 0.15);
            border-color: var(--pink);
            color: #fff;
            transform: rotate(90deg);
        }

        .preview-modal .ptag {
            display: inline-block;
            padding: 3px 16px;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
            background: rgba(255, 107, 157, 0.12);
            color: var(--pink);
            border: 1px solid rgba(255, 107, 157, 0.15);
            margin-bottom: 12px;
        }
        .preview-modal .ptag.blue {
            background: rgba(96, 165, 250, 0.12);
            color: var(--blue);
            border-color: rgba(96, 165, 250, 0.12);
        }
        .preview-modal .ptag.purple {
            background: rgba(192, 132, 252, 0.12);
            color: var(--purple);
            border-color: rgba(192, 132, 252, 0.12);
        }
        .preview-modal .ptag.green {
            background: rgba(52, 211, 153, 0.12);
            color: #34d399;
            border-color: rgba(52, 211, 153, 0.12);
        }
        .preview-modal .ptag.orange {
            background: rgba(251, 146, 60, 0.12);
            color: #fb923c;
            border-color: rgba(251, 146, 60, 0.12);
        }

        .preview-modal h3 {
            font-size: 1.6rem;
            font-weight: 900;
            line-height: 1.25;
            margin-bottom: 8px;
            color: #fff;
        }
        .preview-modal .pdate {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.35);
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .preview-modal .pexcerpt {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.98rem;
            line-height: 1.8;
            margin-bottom: 20px;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .preview-modal .pimage {
            width: 100%;
            height: 150px;
            background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(192, 132, 252, 0.08));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.6rem;
            color: rgba(255, 255, 255, 0.10);
            border: 1px dashed var(--glass-border);
            margin-bottom: 20px;
        }
        .preview-modal .pfooter {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            padding-top: 18px;
            border-top: 1px solid var(--glass-border);
        }
        .preview-modal .pfooter .ptags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .preview-modal .pfooter .ptags span {
            padding: 2px 12px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.3);
            font-size: 0.7rem;
        }
        .preview-modal .view-btn {
            padding: 10px 32px;
            border-radius: 60px;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            color: #fff;
            font-weight: 700;
            font-size: 0.95rem;
            text-decoration: none;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 0 30px rgba(255, 107, 157, 0.20);
        }
        .preview-modal .view-btn:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 0 50px rgba(255, 107, 157, 0.35);
        }

        /* ===== 页脚 ===== */
        .footer {
            position: relative;
            z-index: 1;
            text-align: center;
            padding: 40px 24px 32px;
            border-top: 1px solid var(--glass-border);
            backdrop-filter: blur(6px);
            margin-top: 20px;
        }
        .footer p {
            color: rgba(255, 255, 255, 0.20);
            font-size: 0.85rem;
            letter-spacing: 1px;
        }
        .footer .heart {
            color: var(--pink);
        }
        .footer .deco-line {
            width: 60px;
            height: 2px;
            margin: 12px auto 16px;
            background: linear-gradient(90deg, transparent, var(--pink), var(--purple), transparent);
            border-radius: 2px;
        }

        /* ===== 响应式 ===== */
        @media (max-width: 992px) {
            .main-content {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            .posts-wrapper {
                grid-column: 1 / 2;
            }
            .pagination-wrapper {
                grid-column: 1 / 2;
            }
            .sidebar {
                grid-column: 1 / 2;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 24px;
            }
            .filter-bar {
                grid-column: 1 / 2;
            }
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 12px 20px;
            }
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                max-width: 280px;
                height: 100vh;
                background: rgba(10, 10, 26, 0.95);
                backdrop-filter: blur(30px);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 28px;
                transition: right 0.4s ease;
                border-left: 1px solid var(--glass-border);
                padding: 40px 20px;
            }
            .nav-links.open {
                right: 0;
            }
            .nav-toggle {
                display: flex;
            }
            .hero-title {
                font-size: 2.6rem;
            }
            .hero-sub {
                font-size: 1rem;
            }
            .posts-grid {
                grid-template-columns: 1fr;
            }
            .sidebar {
                grid-template-columns: 1fr;
            }
            .section-header h2 {
                font-size: 1.4rem;
            }
            .post-card {
                padding: 20px 18px;
            }
            .pagination {
                padding: 10px 12px;
                gap: 4px;
            }
            .page-btn {
                min-width: 34px;
                height: 34px;
                font-size: 0.85rem;
                padding: 0 10px;
                border-radius: 8px;
            }
            .page-btn.prev,
            .page-btn.next {
                min-width: 60px;
            }
            .page-btn .label {
                display: none;
            }
            .page-ellipsis {
                min-width: 24px;
                height: 34px;
                font-size: 0.9rem;
            }
            .filter-bar {
                flex-wrap: wrap;
                gap: 8px;
                padding: 12px 14px;
            }
            .filter-bar .clear-filter {
                margin-left: 0;
            }
            .preview-modal {
                padding: 28px 24px 24px;
                max-width: 94%;
                margin: 10px;
            }
            .preview-modal h3 {
                font-size: 1.3rem;
            }
            .preview-modal .pfooter {
                flex-direction: column;
                align-items: stretch;
            }
            .preview-modal .view-btn {
                justify-content: center;
            }
            .preview-overlay {
                padding: 16px;
            }
            #toast {
                font-size: 0.85rem;
                padding: 10px 20px;
                white-space: normal;
                max-width: 90%;
                bottom: 80px;
            }
            #backTop {
                width: 44px;
                height: 44px;
                font-size: 1.2rem;
                bottom: 20px;
                right: 20px;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 100px 16px 60px;
            }
            .hero-title {
                font-size: 2.2rem;
            }
            .hero-cta {
                padding: 12px 32px;
                font-size: 0.9rem;
            }
            .navbar {
                padding: 10px 16px;
            }
            .nav-logo {
                font-size: 1.2rem;
            }
            .page-btn.prev,
            .page-btn.next {
                min-width: 44px;
                padding: 0 8px;
            }
            .page-btn .arrow {
                font-size: 1rem;
            }
            .preview-modal {
                padding: 20px 16px;
            }
            .preview-modal h3 {
                font-size: 1.1rem;
            }
            .preview-modal .pimage {
                height: 100px;
                font-size: 2rem;
            }
        }

        /* ===== 滚动条 ===== */
        ::-webkit-scrollbar {
            width: 5px;
        }
        ::-webkit-scrollbar-track {
            background: var(--dark);
        }
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(var(--pink), var(--purple));
            border-radius: 10px;
        }

/* ============================================================
   ===== 06. 文章详情页样式 =====
   ============================================================ */
        :root { --shadow: 0 8px 32px rgba(0, 0, 0, 0.45); }

        
        /* ===== 文章详情主容器 ===== */
        .detail-container {
            position: relative;
            z-index: 1;
            max-width: 960px;
            margin: 0 auto;
            padding: 120px 24px 80px;
        }

        
        /* ===== 文章加载中 ===== */
        .loading-placeholder {
            text-align: center;
            padding: 80px 20px;
            color: rgba(255, 255, 255, 0.3);
        }
        .loading-placeholder .spinner {
            display: inline-block;
            width: 48px;
            height: 48px;
            border: 3px solid var(--glass-border);
            border-top-color: var(--pink);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 20px;
        }
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        
        /* ===== 文章未找到 ===== */
        .not-found {
            text-align: center;
            padding: 80px 20px;
        }
        .not-found .icon {
            font-size: 4rem;
            display: block;
            margin-bottom: 20px;
        }
        .not-found h2 {
            font-size: 1.8rem;
            color: #fff;
            margin-bottom: 12px;
        }
        .not-found p {
            color: rgba(255, 255, 255, 0.4);
            margin-bottom: 24px;
        }
        .not-found .back-link {
            display: inline-block;
            padding: 10px 32px;
            border-radius: 60px;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            color: #fff;
            font-weight: 700;
            text-decoration: none;
            transition: var(--transition);
        }
        .not-found .back-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
        }

        
        /* ===== 文章头 ===== */
        .article-header {
            margin-bottom: 40px;
            text-align: center;
        }
        .article-header .tag {
            display: inline-block;
            padding: 4px 18px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            background: rgba(255, 107, 157, 0.12);
            color: var(--pink);
            border: 1px solid rgba(255, 107, 157, 0.15);
            margin-bottom: 16px;
        }
        .article-header .tag.blue {
            background: rgba(96, 165, 250, 0.12);
            color: var(--blue);
            border-color: rgba(96, 165, 250, 0.12);
        }
        .article-header .tag.purple {
            background: rgba(192, 132, 252, 0.12);
            color: var(--purple);
            border-color: rgba(192, 132, 252, 0.12);
        }
        .article-header .tag.green {
            background: rgba(52, 211, 153, 0.12);
            color: #34d399;
            border-color: rgba(52, 211, 153, 0.12);
        }
        .article-header .tag.orange {
            background: rgba(251, 146, 60, 0.12);
            color: #fb923c;
            border-color: rgba(251, 146, 60, 0.12);
        }
        .article-header h1 {
            font-size: clamp(2rem, 5vw, 3.2rem);
            font-weight: 900;
            line-height: 1.2;
            background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 12px;
        }
        .article-meta {
            display: flex;
            justify-content: center;
            gap: 24px;
            flex-wrap: wrap;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.4);
        }
        .article-meta span {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        
        /* ===== 文章目录 (TOC) ===== */
        .toc {
            background: var(--glass);
            backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 24px 32px;
            margin-bottom: 40px;
        }
        .toc summary {
            font-weight: 700;
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            outline: none;
            user-select: none;
        }
        .toc summary::-webkit-details-marker {
            color: var(--pink);
        }
        .toc ul {
            list-style: none;
            padding-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .toc ul li {
            padding-left: 20px;
            border-left: 2px solid var(--glass-border);
            transition: border-color 0.3s;
        }
        .toc ul li:hover {
            border-left-color: var(--pink);
        }
        .toc ul li a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s;
            display: block;
            padding: 2px 0;
            cursor: pointer;
        }
        .toc ul li a:hover {
            color: #fff;
        }
        .toc ul li a::before {
            content: "▸ ";
            color: var(--pink);
            opacity: 0.6;
        }

        
        /* ===== 文章正文 ===== */
        .article-body {
            background: var(--glass);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 40px 48px;
            margin-bottom: 40px;
        }
        .article-body p {
            font-size: 1.05rem;
            color: rgba(255, 255, 255, 0.78);
            margin-bottom: 1.5em;
            text-indent: 2em;
        }
        .article-body p:first-of-type {
            text-indent: 0;
            font-size: 1.15rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.85);
        }
        .article-body h2 {
            font-size: 1.6rem;
            font-weight: 700;
            margin: 1.8em 0 0.8em;
            color: #fff;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            scroll-margin-top: 80px;
        }
        .article-body h2:first-of-type {
            margin-top: 0.5em;
        }
        .article-body blockquote {
            border-left: 4px solid var(--pink);
            padding: 12px 24px;
            margin: 1.5em 0;
            background: rgba(255, 107, 157, 0.06);
            border-radius: 0 var(--radius) var(--radius) 0;
            color: rgba(255, 255, 255, 0.7);
            font-style: italic;
        }
        .article-body .image-placeholder {
            width: 100%;
            height: 240px;
            background: linear-gradient(135deg, rgba(255, 107, 157, 0.10), rgba(192, 132, 252, 0.10));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: rgba(255, 255, 255, 0.15);
            border: 1px dashed var(--glass-border);
            margin: 1.5em 0;
        }
        .article-body .article-stats {
            display: flex;
            justify-content: space-around;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            padding: 16px 20px;
            margin: 2em 0 1em;
            border: 1px solid var(--glass-border);
        }
        .article-body .article-stats div {
            text-align: center;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85rem;
        }
        .article-body .article-stats div strong {
            display: block;
            font-size: 1.2rem;
            color: #fff;
            font-weight: 700;
        }

        
        /* ===== 标签区 ===== */
        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 30px;
            padding-top: 24px;
            border-top: 1px solid var(--glass-border);
        }
        .article-tags a {
            padding: 4px 16px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            font-size: 0.8rem;
            transition: var(--transition);
        }
        .article-tags a:hover {
            background: rgba(255, 107, 157, 0.10);
            border-color: var(--pink);
            color: var(--pink);
        }

        
        /* ===== 作者信息卡 ===== */
        .author-card {
            background: var(--glass);
            backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 28px 32px;
            margin-bottom: 40px;
            display: flex;
            align-items: center;
            gap: 24px;
            flex-wrap: wrap;
        }
        .author-avatar {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.4rem;
            flex-shrink: 0;
            box-shadow: 0 0 30px rgba(255, 107, 157, 0.15);
        }
        .author-info {
            flex: 1;
        }
        .author-info .name {
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
        }
        .author-info .name span {
            font-weight: 300;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.4);
            margin-left: 10px;
        }
        .author-info .bio {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.6);
            margin: 4px 0 8px;
        }
        .author-info .social-mini {
            display: flex;
            gap: 10px;
        }
        .author-info .social-mini a {
            color: rgba(255, 255, 255, 0.3);
            text-decoration: none;
            font-size: 1.2rem;
            transition: color 0.3s;
        }
        .author-info .social-mini a:hover {
            color: var(--pink);
        }

        
        /* ===== 分享与喜欢 ===== */
        .share-section {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 40px;
            padding: 16px 24px;
            background: var(--glass);
            border-radius: var(--radius);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(8px);
        }
        .share-section span {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.5);
        }
        .share-section .share-buttons {
            display: flex;
            gap: 12px;
        }
        .share-section .share-buttons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.4);
            text-decoration: none;
            transition: var(--transition);
            font-size: 1.1rem;
            cursor: pointer;
        }
        .share-section .share-buttons a:hover {
            background: rgba(255, 107, 157, 0.12);
            border-color: var(--pink);
            color: var(--pink);
            transform: translateY(-3px);
        }
        .share-section .like-btn {
            margin-left: auto;
            padding: 8px 24px;
            border-radius: 50px;
            background: rgba(255, 107, 157, 0.10);
            border: 1px solid rgba(255, 107, 157, 0.20);
            color: var(--pink);
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: inherit;
            font-size: 0.95rem;
        }
        .share-section .like-btn:hover {
            background: rgba(255, 107, 157, 0.20);
            transform: scale(1.03);
        }
        .share-section .like-btn.liked {
            background: rgba(255, 107, 157, 0.20);
            border-color: var(--pink);
        }

        
        /* ===== 相关文章 ===== */
        .related-section {
            margin-bottom: 40px;
        }
        .related-section h3 {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 24px;
            background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.5));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
        }
        .related-card {
            background: var(--glass);
            backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 20px 18px;
            transition: var(--transition);
            text-decoration: none;
            color: inherit;
            display: block;
        }
        .related-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
            border-color: rgba(255, 107, 157, 0.2);
        }
        .related-card .tag {
            font-size: 0.7rem;
            padding: 2px 12px;
            border-radius: 50px;
            background: rgba(255, 107, 157, 0.10);
            color: var(--pink);
            display: inline-block;
            margin-bottom: 8px;
        }
        .related-card h4 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 6px;
            color: #fff;
        }
        .related-card p {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.5);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        
        /* ===== 版权声明 ===== */
        .copyright-box {
            background: var(--glass);
            backdrop-filter: blur(8px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 20px 28px;
            text-align: center;
            color: rgba(255, 255, 255, 0.3);
            font-size: 0.85rem;
            margin-bottom: 20px;
        }
        .copyright-box a {
            color: var(--purple);
            text-decoration: none;
        }
        .copyright-box a:hover {
            color: var(--pink);
        }

        
        /* ===== 响应式 ===== */
        @media (max-width: 768px) {
            .navbar {
                padding: 12px 20px;
            }
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                max-width: 280px;
                height: 100vh;
                background: rgba(10, 10, 26, 0.95);
                backdrop-filter: blur(30px);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 28px;
                transition: right 0.4s ease;
                border-left: 1px solid var(--glass-border);
                padding: 40px 20px;
            }
            .nav-links.open {
                right: 0;
            }
            .nav-toggle {
                display: flex;
            }
            .detail-container {
                padding: 100px 16px 60px;
            }
            .article-body {
                padding: 28px 20px;
            }
            .author-card {
                flex-direction: column;
                text-align: center;
            }
            .author-info .social-mini {
                justify-content: center;
            }
            .share-section {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
            }
            .share-section .like-btn {
                margin-left: 0;
                justify-content: center;
            }
            .share-section .share-buttons {
                justify-content: center;
            }
            .related-grid {
                grid-template-columns: 1fr;
            }
            .article-meta {
                gap: 14px;
                font-size: 0.8rem;
            }
            .toc {
                padding: 16px 20px;
            }
            #backTop {
                width: 44px;
                height: 44px;
                font-size: 1.2rem;
                bottom: 20px;
                right: 20px;
            }
            #toast {
                font-size: 0.85rem;
                padding: 10px 20px;
                white-space: normal;
                max-width: 90%;
                bottom: 80px;
            }
        }

        @media (max-width: 480px) {
            .article-header h1 {
                font-size: 1.8rem;
            }
            .article-body p {
                font-size: 0.98rem;
            }
            .article-body .article-stats {
                flex-direction: column;
                gap: 8px;
            }
        }

        
/* ============================================================
   ===== 07. WordPress 主题附加样式 =====
   ============================================================ */

        /* ============================================================
           ===== WordPress 主题附加样式 =====
           ============================================================ */
        /* 屏幕阅读器文本 */
        .screen-reader-text {
            border: 0;
            clip: rect(1px, 1px, 1px, 1px);
            clip-path: inset(50%);
            height: 1px;
            margin: -1px;
            overflow: hidden;
            padding: 0;
            position: absolute !important;
            width: 1px;
            word-wrap: normal !important;
        }
        .screen-reader-text:focus {
            background-color: rgba(10, 10, 26, 0.95);
            clip: auto !important;
            clip-path: none;
            color: var(--pink);
            display: block;
            font-size: 0.9rem;
            height: auto;
            left: 8px;
            line-height: normal;
            padding: 12px 20px;
            text-decoration: none;
            top: 8px;
            width: auto;
            z-index: 100000;
            border-radius: 8px;
        }

        /* ===== WordPress 图片对齐 ===== */
        .alignleft {
            float: left;
            margin: 0.4em 1.6em 1em 0;
        }
        .alignright {
            float: right;
            margin: 0.4em 0 1em 1.6em;
        }
        .aligncenter {
            clear: both;
            display: block;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 1em;
        }
        .alignwide {
            max-width: 1100px;
        }
        .alignfull {
            max-width: none;
        }
        .wp-caption,
        img,
        figure {
            max-width: 100%;
            height: auto;
        }
        .article-body img,
        .article-body figure,
        .article-body .wp-block-image {
            border-radius: var(--radius);
            margin: 1.5em 0;
            display: block;
        }
        .wp-caption-text,
        .article-body figcaption,
        .article-body .wp-element-caption {
            text-align: center;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.4);
            margin-top: -1em;
            margin-bottom: 1.5em;
        }

        /* ===== 通用页面容器（归档 / 页面 / 搜索 / 404） ===== */
        .site-main {
            position: relative;
            z-index: 1;
            max-width: 1280px;
            margin: 0 auto;
            padding: 120px 24px 60px;
        }
        .site-main.narrow {
            max-width: 960px;
        }
        .archive-header {
            text-align: center;
            margin-bottom: 48px;
        }
        .archive-header .tag {
            display: inline-block;
            padding: 4px 18px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            background: rgba(255, 107, 157, 0.12);
            color: var(--pink);
            border: 1px solid rgba(255, 107, 157, 0.15);
            margin-bottom: 12px;
        }
        .archive-header h1 {
            font-size: clamp(1.8rem, 4vw, 2.6rem);
            font-weight: 900;
            background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
        }
        .archive-header p {
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.95rem;
        }
        .archive-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 28px;
        }
        .no-results {
            text-align: center;
            padding: 60px 20px;
        }
        .no-results .icon {
            font-size: 4rem;
            display: block;
            margin-bottom: 16px;
        }
        .no-results h2 {
            color: #fff;
            font-size: 1.6rem;
            margin-bottom: 10px;
        }
        .no-results p {
            color: rgba(255, 255, 255, 0.4);
            margin-bottom: 24px;
        }

        /* ===== 搜索表单 ===== */
        .search-form {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }
        .search-form label {
            flex: 1;
            min-width: 200px;
        }
        .search-field {
            width: 100%;
            padding: 12px 18px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            color: #fff;
            font-family: inherit;
            font-size: 0.95rem;
            outline: none;
            transition: var(--transition);
        }
        .search-field:focus {
            border-color: var(--pink);
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.12);
        }
        .search-field::placeholder {
            color: rgba(255, 255, 255, 0.3);
        }
        .search-submit {
            padding: 12px 28px;
            border-radius: 50px;
            border: none;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            color: #fff;
            font-family: inherit;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
        }
        .search-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
        }

        /* ===== 小工具 ===== */
        .widget {
            background: var(--glass);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 24px;
            margin-bottom: 24px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.92rem;
        }
        .widget:last-child {
            margin-bottom: 0;
        }
        .widget-title,
        .widget .widgettitle {
            font-size: 1rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.85);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .widget ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .widget ul li {
            padding-left: 16px;
            border-left: 2px solid var(--glass-border);
            transition: border-color 0.3s;
            line-height: 1.6;
        }
        .widget ul li:hover {
            border-left-color: var(--pink);
        }
        .widget a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            transition: color 0.3s;
        }
        .widget a:hover {
            color: var(--pink);
        }
        .widget select,
        .widget input[type="text"],
        .widget input[type="search"],
        .widget input[type="email"],
        .widget input[type="url"] {
            width: 100%;
            padding: 10px 14px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            color: #fff;
            font-family: inherit;
            font-size: 0.9rem;
            outline: none;
        }
        .widget select option {
            background: var(--dark);
        }
        .widget .search-form {
            gap: 8px;
        }
        .widget .search-submit {
            width: 100%;
        }
        .widget_calendar table,
        .wp-calendar-table {
            width: 100%;
            border-collapse: collapse;
            text-align: center;
            font-size: 0.85rem;
        }
        .widget_calendar th,
        .widget_calendar td,
        .wp-calendar-table th,
        .wp-calendar-table td {
            padding: 6px;
        }
        .widget_calendar a {
            color: var(--pink);
            font-weight: 700;
        }
        .widget_tag_cloud .tagcloud {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .widget_tag_cloud .tagcloud a {
            padding: 4px 14px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--glass-border);
            color: rgba(255, 255, 255, 0.55);
            font-size: 0.8rem !important;
            transition: var(--transition);
        }
        .widget_tag_cloud .tagcloud a:hover {
            background: rgba(255, 107, 157, 0.12);
            border-color: var(--pink);
            color: var(--pink);
            transform: translateY(-2px);
        }

        /* ===== 上下篇导航 ===== */
        .post-navigation {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 40px;
        }
        .post-navigation .nav-links {
            display: contents;
        }
        .post-navigation a {
            background: var(--glass);
            backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 18px 22px;
            text-decoration: none;
            color: inherit;
            transition: var(--transition);
        }
        .post-navigation a:hover {
            transform: translateY(-4px);
            border-color: rgba(255, 107, 157, 0.3);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
        }
        .post-navigation .meta-nav {
            display: block;
            font-size: 0.8rem;
            color: var(--pink);
            margin-bottom: 6px;
        }
        .post-navigation .post-title {
            font-size: 1rem;
            font-weight: 700;
            color: #fff;
        }
        .post-navigation .nav-next {
            text-align: right;
        }
        @media (max-width: 640px) {
            .post-navigation {
                grid-template-columns: 1fr;
            }
            .post-navigation .nav-next {
                text-align: left;
            }
        }

        /* ===== 评论区 ===== */
        .comments-section {
            background: var(--glass);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius);
            padding: 32px 36px;
            margin-bottom: 40px;
        }
        .comments-title,
        .comment-reply-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .comment-reply-title small {
            margin-left: auto;
            font-size: 0.8rem;
            font-weight: 400;
        }
        .comment-reply-title small a {
            color: var(--pink);
            text-decoration: none;
        }
        .comment-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 22px;
            margin-bottom: 32px;
        }
        .comment-list .children {
            list-style: none;
            margin-top: 22px;
            padding-left: 24px;
            border-left: 2px solid var(--glass-border);
            display: flex;
            flex-direction: column;
            gap: 22px;
        }
        .comment-body {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--glass-border);
            border-radius: 14px;
            padding: 16px 20px;
            position: relative;
        }
        .comment-author {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }
        .comment-author .avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 2px solid rgba(255, 107, 157, 0.3);
        }
        .comment-author .fn {
            font-weight: 700;
            color: #fff;
            font-style: normal;
            font-size: 0.95rem;
        }
        .comment-author .fn a {
            color: #fff;
            text-decoration: none;
        }
        .comment-author .fn a:hover {
            color: var(--pink);
        }
        .comment-author .says {
            display: none;
        }
        .comment-meta {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.35);
            margin-bottom: 10px;
        }
        .comment-meta a {
            color: rgba(255, 255, 255, 0.4);
            text-decoration: none;
        }
        .comment-meta a:hover {
            color: var(--pink);
        }
        .comment-content {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
            line-height: 1.8;
        }
        .comment-content p {
            margin-bottom: 0.8em;
        }
        .reply {
            margin-top: 10px;
        }
        .comment-reply-link {
            font-size: 0.85rem;
            color: var(--purple);
            text-decoration: none;
            font-weight: 600;
        }
        .comment-reply-link:hover {
            color: var(--pink);
        }
        .comment-awaiting-moderation {
            display: inline-block;
            font-size: 0.78rem;
            color: #fbbf24;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid rgba(251, 191, 36, 0.2);
            border-radius: 50px;
            padding: 2px 12px;
            margin-bottom: 8px;
        }
        .bypostauthor > .comment-body {
            border-color: rgba(255, 107, 157, 0.25);
        }
        .no-comments {
            color: rgba(255, 255, 255, 0.35);
            text-align: center;
            padding: 10px 0 24px;
            font-size: 0.9rem;
        }

        /* ===== 评论表单 ===== */
        .comment-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .comment-form p {
            margin: 0;
        }
        .comment-form label {
            display: block;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.55);
            margin-bottom: 6px;
        }
        .comment-form input[type="text"],
        .comment-form input[type="email"],
        .comment-form input[type="url"],
        .comment-form textarea {
            width: 100%;
            padding: 12px 16px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            color: #fff;
            font-family: inherit;
            font-size: 0.95rem;
            outline: none;
            transition: var(--transition);
        }
        .comment-form textarea {
            min-height: 140px;
            resize: vertical;
            line-height: 1.7;
        }
        .comment-form input:focus,
        .comment-form textarea:focus {
            border-color: var(--pink);
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.12);
        }
        .comment-form .submit {
            align-self: flex-start;
            padding: 12px 34px;
            border-radius: 50px;
            border: none;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            color: #fff;
            font-family: inherit;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
        }
        .comment-form .submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
        }
        .comment-form .comment-form-cookies-consent {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.45);
        }
        .comment-form .comment-form-cookies-consent input {
            width: auto;
        }
        .comment-form .comment-form-cookies-consent label {
            margin: 0;
            display: inline;
        }
        .comment-notes,
        .logged-in-as {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.35);
        }
        .comment-notes a,
        .logged-in-as a {
            color: var(--purple);
            text-decoration: none;
        }
        .comment-form .required {
            color: var(--pink);
        }

        /* ===== 粘性文章 & 提示 ===== */
        .sticky .card-inner::after {
            content: "📌 置顶";
            position: absolute;
            top: -6px;
            right: -6px;
            font-size: 0.7rem;
            padding: 2px 10px;
            border-radius: 50px;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            color: #fff;
        }
        .sticky .card-inner {
            position: relative;
        }
        .comment-navigation,
        .posts-navigation {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            margin: 24px 0;
            font-size: 0.9rem;
        }
        .comment-navigation a,
        .posts-navigation a {
            color: var(--purple);
            text-decoration: none;
        }
        .comment-navigation a:hover,
        .posts-navigation a:hover {
            color: var(--pink);
        }

        /* ===== 编辑链接 ===== */
        .post-edit-link {
            display: inline-block;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.35);
            text-decoration: none;
            border: 1px solid var(--glass-border);
            border-radius: 50px;
            padding: 4px 14px;
            transition: var(--transition);
        }
        .post-edit-link:hover {
            color: var(--pink);
            border-color: var(--pink);
        }

        /* ===== 自定义 Logo / 页脚菜单 ===== */
        .custom-logo {
            /* max-height: 34px; */
            width: auto;
            vertical-align: middle;
            border-radius:50%;
        }
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }
        .footer-links a {
            color: rgba(255, 255, 255, 0.35);
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.3s;
        }
        .footer-links a:hover {
            color: var(--pink);
        }

        /* ===== 主题自定义器：关闭特效 ===== */
        body.no-fx #particles-canvas,
        body.no-fx #glow,
        body.no-fx .sakura-container {
            display: none !important;
        }

/* ============================================================
   ===== 08. 主题补充与修正样式（WordPress 适配） =====
   ============================================================ */

        /* 详情页正文行高与排版细节 */
        .detail-container {
            line-height: 1.8;
        }
        .article-body ul,
        .article-body ol {
            margin: 0 0 1.5em 2em;
            color: rgba(255, 255, 255, 0.78);
        }
        .article-body li {
            margin-bottom: 0.5em;
        }
        .article-body blockquote p {
            text-indent: 0;
            margin-bottom: 0;
        }
        .article-body blockquote p + p {
            margin-top: 0.8em;
        }
        .article-body a {
            color: var(--purple);
            text-decoration: none;
            border-bottom: 1px dashed rgba(192, 132, 252, 0.4);
            transition: var(--transition);
        }
        .article-body a:hover {
            color: var(--pink);
            border-bottom-color: var(--pink);
        }
        .article-body pre {
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 16px 20px;
            overflow-x: auto;
            margin: 1.5em 0;
            font-size: 0.9rem;
            line-height: 1.7;
        }
        .article-body code {
            background: rgba(255, 107, 157, 0.1);
            color: var(--pink);
            padding: 2px 6px;
            border-radius: 6px;
            font-size: 0.9em;
        }
        .article-body pre code {
            background: none;
            color: #e5e5e5;
            padding: 0;
        }
        .article-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5em 0;
            font-size: 0.95rem;
        }
        .article-body th,
        .article-body td {
            border: 1px solid var(--glass-border);
            padding: 10px 14px;
            text-align: left;
        }
        .article-body th {
            background: rgba(255, 107, 157, 0.08);
            color: #fff;
        }
        .article-body hr {
            border: none;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
            margin: 2em 0;
        }
        .page-links {
            margin: 1.5em 0;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }
        .page-links span {
            display: inline-block;
            padding: 2px 12px;
            margin: 0 4px;
            border-radius: 50px;
            border: 1px solid var(--glass-border);
        }

        /* 卡片标题链接 / 缩略图 */
        .post-card h3 a {
            color: #fff;
            text-decoration: none;
            transition: var(--transition);
        }
        .post-card h3 a:hover {
            color: var(--pink);
        }
        .post-card .card-thumb {
            display: block;
            margin: -6px -6px 16px;
            border-radius: 14px;
            overflow: hidden;
        }
        .post-card .card-thumb img {
            display: block;
            width: 100%;
            height: 168px;
            object-fit: cover;
            transition: transform 0.6s ease;
        }
        .post-card:hover .card-thumb img {
            transform: scale(1.06);
        }
        .related-card .thumb {
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        /* 当前菜单项高亮 */
        .nav-links li.current-menu-item > a,
        .nav-links li.current-menu-ancestor > a,
        .nav-links li.current-menu-parent > a,
        .nav-links li.current_page_item > a {
            color: #fff;
        }
        .nav-links li.current-menu-item > a::after,
        .nav-links li.current-menu-ancestor > a::after,
        .nav-links li.current-menu-parent > a::after,
        .nav-links li.current_page_item > a::after {
            width: 100%;
        }
        .nav-links .menu-item-has-children {
            position: relative;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* 上下篇导航网格自适应 */
        .post-navigation {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        /* 无结果页返回按钮 */
        .no-results .back-link {
            display: inline-block;
            padding: 10px 32px;
            border-radius: 60px;
            background: linear-gradient(135deg, var(--pink), var(--purple));
            color: #fff;
            font-weight: 700;
            text-decoration: none;
            transition: var(--transition);
        }
        .no-results .back-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
        }

        /* 滚动揭示：详情页组件（与首页卡片一致的入场动画） */
        .author-card,
        .share-section,
        .copyright-box,
        .comments-section,
        .related-card,
        .sidebar .widget {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease, border-color 0.4s ease;
        }
        .author-card.visible,
        .share-section.visible,
        .copyright-box.visible,
        .comments-section.visible,
        .related-card.visible,
        .sidebar .widget.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .related-card:hover {
            transform: translateY(-6px);
        }

        /* 无 JS 兜底：直接显示所有内容 */
        .no-js .post-card,
        .no-js .sidebar-card,
        .no-js .author-card,
        .no-js .share-section,
        .no-js .copyright-box,
        .no-js .comments-section,
        .no-js .related-card,
        .no-js .widget {
            opacity: 1 !important;
            transform: none !important;
        }

        /* 编辑器区块默认间距 */
        .article-body > *:first-child {
            margin-top: 0;
        }
        .article-body .wp-block-quote {
            border-left: 4px solid var(--pink);
            padding: 12px 24px;
            margin: 1.5em 0;
            background: rgba(255, 107, 157, 0.06);
            border-radius: 0 var(--radius) var(--radius) 0;
            color: rgba(255, 255, 255, 0.7);
            font-style: italic;
        }
        .article-body .wp-block-quote p {
            text-indent: 0;
        }
        .article-body .wp-block-button__link {
            background: linear-gradient(135deg, var(--pink), var(--purple));
            border-radius: 60px;
            padding: 12px 32px;
            color: #fff;
            text-decoration: none;
        }
        .article-body .has-text-align-center {
            text-align: center;
        }

/* ============================================================
   ===== 07. 网格定位修正（首页筛选栏 / 列表 / 分页 / 侧边栏） =====
   ============================================================ */

        /* 主页双栏网格：显式指定落位，避免 grid 稀疏填充把侧边栏顺延 */
        .main-content {
            align-items: start;
        }
        .main-content > .section-header {
            grid-column: 1 / -1;
            grid-row: 1;
        }
        .main-content > .filter-bar {
            grid-column: 1 / 2;
            grid-row: 2;
        }
        .main-content > .posts-wrapper,
        .main-content > .no-results {
            grid-column: 1 / 2;
            grid-row: 3;
            align-self: start;
        }
        .main-content > .sidebar {
            grid-column: 2 / 3;
            grid-row: 2 / span 2;
            align-self: start;
            min-width: 0;
        }

        /* 单列（窄屏）时全部还原为自动流 */
        @media (max-width: 992px) {
            .main-content > .section-header,
            .main-content > .filter-bar,
            .main-content > .posts-wrapper,
            .main-content > .no-results,
            .main-content > .sidebar {
                grid-column: 1 / 2;
                grid-row: auto;
            }
        }

/* ============================================================
   ===== 08. 筛选栏 & 预览弹窗（WordPress 适配增强） =====
   ============================================================ */

        /* 筛选栏：真实链接，可无 JS 降级 */
        .filter-bar .filter-btn {
            text-decoration: none;
            line-height: 1.8;
            white-space: nowrap;
        }
        .filter-bar .filter-btn.active {
            font-weight: 600;
        }
        .filter-bar .post-count {
            white-space: nowrap;
        }

        /* 卡片：标题为真实链接，保证 SEO 与无 JS 可用 */
        .post-card h3 a {
            color: inherit;
            text-decoration: none;
        }
        .post-card .card-thumb {
            display: block;
            margin: -6px -6px 16px;
            border-radius: 14px;
            overflow: hidden;
        }
        .post-card .card-thumb img {
            display: block;
            width: 100%;
            height: 168px;
            object-fit: cover;
            transition: transform 0.6s ease;
        }
        .post-card:hover .card-thumb img {
            transform: scale(1.06);
        }

        /* 预览弹窗：封面图与加载态 */
        .preview-modal .pimage img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 12px;
        }
        .preview-modal .pimage.has-thumb {
            border: none;
            font-size: 0;
        }
        .preview-modal.loading .pexcerpt,
        .preview-modal.loading h3 {
            opacity: 0.4;
        }

        /* 页脚心跳（详情页模板原有，首页模板未带，补回以保持一致） */
        .footer .heart {
            display: inline-block;
            animation: pulseHeart 1.8s ease-in-out infinite;
        }
        @keyframes pulseHeart {
            0%, 100% { transform: scale(1); }
            50%      { transform: scale(1.25); }
        }

        /* 分页容器在归档页下也居中 */
        .site-main .pagination-wrapper {
            margin-top: 40px;
        }

        /* 卡片发光描边在卡片有封面图时不被裁剪 */
        .post-card .card-thumb {
            position: relative;
            z-index: 1;
        }
