/**
 * Typecho 1.3 主题 - Minimalist
 * 主样式文件 - 极简白底黑字风格
 *
 * @package Minimalist
 * @author Danian
 * @version 2.0.0
 */

/* ===== CSS 变量 ===== */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99,102,241,0.08);
    --secondary-color: #0ea5e9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    --max-width: 1200px;

    --card-bg: #fff;
    --input-bg: #f8fafc;
    --text-color: #0f172a;

    --music-primary: #a855f7;
    --music-primary-deep: #7c3aed;
    --music-primary-soft: rgba(168,85,247,0.15);
    --music-progress-track: #e9d5ff;
    --music-badge-br-bg: #f3e8ff;
    --music-badge-br-text: #7c3aed;
    --music-badge-br-border: #d8b4fe;
    --music-lyric-active: #a855f7;
    --music-lyric-inactive: #aaa;
    --music-result-hover: #faf5ff;
    --music-result-playing: #f3e8ff;
    --music-spinner-track: #f3e8ff;
    --music-scrollbar-thumb: #d8b4fe;
    --music-error-bg: #fff2f0;
    --music-error-border: #ffccc7;
    --music-error-text: #cf1322;
    --music-tip-bg: #fff;
    --music-tip-border: #e8e8e8;
}

/* ── data-theme="dark" 手动切换 ─────────── */
[data-theme="dark"] {
    --primary-color: #818cf8;
    --primary-hover: #6366f1;
    --primary-light: rgba(129,140,248,0.12);
    --secondary-color: #38bdf8;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg-primary: #0f172a;
    --bg-secondary: #020617;
    --bg-tertiary: #1e293b;
    --border-color: #1e293b;
    --border-dark: #334155;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);

    --card-bg: #1e293b;
    --input-bg: #1e293b;
    --text-color: #f1f5f9;

    --music-primary: #c084fc;
    --music-primary-deep: #a855f7;
    --music-primary-soft: rgba(192,132,252,0.18);
    --music-progress-track: #3a2560;
    --music-badge-br-bg: #2d1b4e;
    --music-badge-br-text: #c084fc;
    --music-badge-br-border: #6b21a8;
    --music-lyric-active: #c084fc;
    --music-lyric-inactive: #555;
    --music-result-hover: #261c3a;
    --music-result-playing: #2a1d4a;
    --music-spinner-track: #2d1b4e;
    --music-scrollbar-thumb: #5b3a7a;
    --music-error-bg: #2a1010;
    --music-error-border: #7a2020;
    --music-error-text: #f87171;
    --music-tip-bg: #1e1e2a;
    --music-tip-border: #2e2e42;
}

[data-theme="dark"] .site-header {
    background-color: rgba(15,23,42,0.75);
    border-bottom-color: rgba(30,41,59,0.6);
}

[data-theme="dark"] .site-header.scrolled {
    background-color: rgba(15,23,42,0.85);
    border-bottom-color: rgba(30,41,59,0.6);
}

[data-theme="dark"] .header-search-dropdown {
    background-color: #0f172a;
}

[data-theme="dark"] .site-header.search-open .header-search-dropdown {
    background-color: rgba(15,23,42,0.95);
}

[data-theme="dark"] .site-header.scrolled .header-search-dropdown {
    background-color: rgba(15,23,42,0.95);
}

/* ===== 全局 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ===== 阅读进度条 ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1001;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ===== 页面入场动画 ===== */
.container {
    animation: pageFadeIn 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 文章卡片光晕悬停 ===== */
.post {
    position: relative;
    overflow: hidden;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.03), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.post:hover::before {
    left: 100%;
}

.post > * {
    position: relative;
    z-index: 1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--primary-color);
    color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== 头部 ===== */
.site-header {
    background-color: rgba(255,255,255,0.75);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease,
                box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 滚动后毛玻璃效果 */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(2);
    -webkit-backdrop-filter: blur(20px) saturate(2);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05);
}

/* 搜索展开时撑开头部高度 */
.site-header.search-open {
    border-bottom-color: transparent;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
}

/* ===== Logo / 品牌 ===== */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 32px;
    width: auto;
    display: block;
}

.site-title-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.site-logo-link:hover .site-title-text {
    color: var(--primary-color);
}

.site-description {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin: 0;
}

/* ===== 主导航 ===== */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 2rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    height: 54px;
    padding: 0 0.9rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    box-sizing: border-box;
}

.nav-item > a:hover {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom-color: var(--border-dark);
}

.nav-item.current-menu-item > a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* ===== 右侧工具栏 ===== */
.header-tools {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    padding: 0;
}

.tool-btn:hover {
    background-color: var(--primary-light);
    border-color: transparent;
    color: var(--primary-color);
}

.tool-btn:active {
    transform: scale(0.92);
}

.tool-btn svg { display: block; }

/* 汉堡按钮 */
.mobile-menu-toggle {
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    display: none;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ===== 搜索下拉面板 ===== */
.header-search-dropdown {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease, opacity 0.25s ease;
    opacity: 0;
}

.site-header.search-open .header-search-dropdown {
    max-height: 80px;
    opacity: 1;
}

/* 毛玻璃状态下搜索面板也跟着模糊 */
.site-header.scrolled .header-search-dropdown {
    background-color: rgba(255, 255, 255, 0.9);
}

.header-search-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-search-form {
    display: flex;
    flex: 1;
    gap: 0.5rem;
    align-items: center;
}

.header-search-input {
    flex: 1;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9rem;
    outline: none;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s;
}

.header-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-submit {
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.header-search-submit:hover {
    background: var(--primary-hover);
}

.header-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
    flex-shrink: 0;
}

.header-search-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* ===== 移动端菜单遮罩 ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* header 占位（因改为 fixed 需要给 body 留空间） */
body {
    padding-top: 54px;
}

/* ===== 主容器 ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
    align-items: start;
}

/* ===== 主内容区 ===== */
.main-content {
    min-width: 0;
}

/* ===== 文章卡片 ===== */
.post {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.2s ease;
    position: relative;
}

.post:last-of-type {
    margin-bottom: 0;
}

.post:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.45;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    background-image: linear-gradient(var(--primary-color), var(--primary-color));
    background-size: 0% 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: color 0.2s ease, background-size 0.35s ease;
    padding-bottom: 2px;
}

.post-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
    background-size: 100% 2px;
}

/* ===== 文章元信息 ===== */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    opacity: 0.7;
}

.post-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* ===== 摘要 ===== */
.post-content {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* ===== 阅读全文 ===== */
.post-read-more {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.6rem;
}

.read-more {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.read-more:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

/* ===== 标签 ===== */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.78rem;
    text-decoration: none;
    border: none;
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.post-divider {
    display: none;
}

/* ===== 文章内容页 ===== */
.post-content p { margin-bottom: 1rem; }

.post-content h2 {
    font-size: 1.35rem;
    margin: 1.75rem 0 0.75rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.post-content h3 {
    font-size: 1.15rem;
    margin: 1.4rem 0 0.6rem;
    color: var(--text-primary);
}

.post-content h4 {
    font-size: 1rem;
    margin: 1.2rem 0 0.5rem;
    color: var(--text-primary);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.75rem;
}

.post-content li { margin-bottom: 0.35rem; }

.post-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    color: var(--text-secondary);
    background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content blockquote p { margin-bottom: 0; }

.post-content code {
    background-color: var(--primary-light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875em;
    color: var(--primary-color);
    border: none;
}

.post-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid #334155;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
    font-size: 0.875rem;
}

.post-content img {
    border-radius: var(--radius-lg);
    margin: 1.25rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-content th,
.post-content td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-content th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.post-content tr:nth-child(even) td {
    background: var(--bg-secondary);
}

/* ===== 分页 ===== */
.page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.page-nav a,
.page-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0.4rem 0.9rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.page-nav a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    background: var(--primary-light);
    transform: translateY(-1px);
}

.page-nav .current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
    font-weight: 600;
}

/* ===== 侧边栏 ===== */
.sidebar {
    position: sticky;
    top: 64px;
    height: fit-content;
}

.widget {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 0.875rem;
    overflow: hidden;
}

.widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.widget-title svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.6;
    flex-shrink: 0;
}

.widget ul {
    list-style: none;
    padding: 0.4rem 0;
}

.widget li {
    border-bottom: 1px solid var(--bg-tertiary);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.widget a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 1.25rem;
}

.widget a span {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    flex-shrink: 0;
}

/* ===== 标签云 ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
}

.tag-cloud .tag-item {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.8rem;
    border: none;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.tag-cloud .tag-item:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(99,102,241,0.25);
}

/* ===== 暂无文章 ===== */
.no-posts {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.no-posts h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.no-posts p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== 底部 ===== */
.site-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    opacity: 0.6;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(4px);
    padding-left: 0.25rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.875rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-bottom p { margin-bottom: 0.35rem; }

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover { text-decoration: underline; }

/* 备案号 */
.footer-icp {
    margin-top: 0.5rem;
}

.footer-icp a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-icp a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-police {
    margin-top: 0.35rem;
}

.footer-police a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

.footer-police a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-police svg {
    opacity: 0.7;
}

/* ===== 评论区域 ===== */
#comments {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.25rem;
    position: relative;
    overflow: hidden;
}

#comments::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.6;
}

#comments > h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.comments-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-count {
    background: var(--primary-color);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-list,
.comment-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li { list-style: none; }

.comment-body {
    padding: 1.1rem;
    border-bottom: 1px solid var(--bg-tertiary);
    border-radius: var(--radius);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-body:hover {
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.comment-body:last-child { border-bottom: none; }

.comment-parent { margin-bottom: 0.5rem; }

.comment-child {
    margin-left: 2.5rem;
    padding-left: 1rem;
    position: relative;
}

.comment-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.comment-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.comment-author {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    transition: border-color 0.2s, transform 0.2s;
}

.comment-body:hover .avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.author-info { flex: 1; }

.author-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
}

.author-name .fn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    font-style: normal;
    text-decoration: none;
}

.author-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.comment-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.comment-time a {
    color: var(--text-muted);
    text-decoration: none;
}

.comment-time a:hover { color: var(--primary-color); }

.comment-content {
    color: var(--text-primary);
    line-height: 1.7;
    margin-left: 3rem;
    font-size: 0.9rem;
}

.comment-content p { margin-bottom: 0.4rem; }
.comment-content p:last-child { margin-bottom: 0; }

.comment-reply {
    margin-left: 3rem;
    margin-top: 0.4rem;
}

.comment-reply a {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.comment-reply a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.comment-children { margin-top: 0.75rem; }

.no-comments {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

#comment-form-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.respond {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.cancel-comment-reply {
    display: none;
    margin-bottom: 1rem;
}

.cancel-comment-reply a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
}

.cancel-comment-reply a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.comment-form-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.user-login-info { margin-bottom: 1.25rem; }

.login-message {
    padding: 0.75rem 1rem;
    background-color: #f0fdf4;
    border-left: 3px solid #22c55e;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin: 0;
}

.login-message strong {
    font-weight: 600;
    color: #389e0d;
}

.logout-link {
    color: var(--primary-color);
    text-decoration: none;
}

.logout-link:hover { text-decoration: underline; }

.comment-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.input-group { position: relative; }

.comment-input {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.comment-input::placeholder { color: var(--text-muted); }

.comment-textarea-wrapper { margin-bottom: 1rem; }

.comment-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.65;
    transition: var(--transition);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    min-height: 120px;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.comment-textarea::placeholder { color: var(--text-muted); }

.comment-submit-wrapper { text-align: right; }

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-submit-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.comment-submit-btn:active { transform: scale(0.98); }

.comment-pagination,
#comments .page-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    list-style: none;
    padding-left: 0;
}

.comment-pagination a,
.comment-pagination span,
#comments .page-navigator a,
#comments .page-navigator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0.35rem 0.8rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.comment-pagination a:hover,
#comments .page-navigator a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.comment-pagination .current,
#comments .page-navigator .current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.comment-by-author {
    background-color: rgba(26,115,232,0.03);
    border-radius: var(--radius);
    padding-left: 0.5rem;
}

.comment-by-author .avatar {
    border-color: var(--primary-color);
}

/* ===== commentForm() 标准表单样式（Typecho 内置评论表单） ===== */
/* commentForm() 会自己输出 #respond 容器，这里对其内部元素进行美化 */

#respond {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

#respond #reply-title,
#respond #response,
#respond h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* 登录用户提示 */
#respond .logged-in-as,
#respond .login-message {
    padding: 0.75rem 1rem;
    background-color: #f0fdf4;
    border-left: 3px solid #22c55e;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

#respond .logged-in-as a,
#respond .login-message a {
    color: var(--primary-color);
    text-decoration: none;
}

#respond .logged-in-as a:hover,
#respond .login-message a:hover { text-decoration: underline; }

/* 表单字段段落 */
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-url,
#respond .comment-form-comment,
#respond form p {
    margin-bottom: 0.75rem;
}

#respond form p:last-child {
    margin-bottom: 0;
}

#respond label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

#respond .required { color: #e74c3c; }

/* 输入框 */
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"] {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
}

#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* 文本域 */
#respond textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.65;
    transition: var(--transition);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}

#respond textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* 提交按钮 - 兼容 Typecho 标准 .form-submit 和自定义 button.submit */
#respond .form-submit,
#respond p:last-child {
    text-align: right;
    margin-top: 1rem;
    margin-bottom: 0;
}

#respond .form-submit button,
#respond .form-submit input[type="submit"],
#respond button.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#respond .form-submit button:hover,
#respond .form-submit input[type="submit"]:hover,
#respond button.submit:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

#respond .form-submit button:active,
#respond .form-submit input[type="submit"]:active,
#respond button.submit:active {
    transform: scale(0.98);
}

/* 取消回复链接 */
#respond .cancel-comment-reply {
    display: none;          /* 默认隐藏，JS 显示 */
    margin-bottom: 1rem;
}

#respond .cancel-comment-reply a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
}

#respond .cancel-comment-reply a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 暗色模式：登录提示背景调整 */
[data-theme="dark"] #respond .logged-in-as,
[data-theme="dark"] #respond .login-message,
[data-theme="dark"] .login-message {
    background-color: rgba(34,197,94,0.08);
    border-left-color: #22c55e;
}

/* ===== 首页轮播图（气泡效果） ===== */

/* 轮播图区域：宽度跟随 main-content，不单独撑满 */
.slider-section {
    margin-bottom: 1.25rem;
}

/* 轮播区包裹（含气泡背景） */
.slider-area {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #0ea5e9 100%);
}

/* 轮播图主体 */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    border-radius: var(--radius-xl);
    background: transparent;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide a,
.slide span {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    padding: 2.5rem 1.25rem 1rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.slide-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
    display: block;
}

/* 轮播箭头 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s, transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    opacity: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* 指示点 */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 20;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s, width 0.3s;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1);
    width: 24px;
}

/* ── 漂浮气泡背景装饰 ── */
.slider-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.sbubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: sbubbleFloat linear infinite;
}

.sbubble-1 {
    width: 55px; height: 55px;
    left: 8%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.55), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.25);
    animation-duration: 9s;
    animation-delay: 0s;
}

.sbubble-2 {
    width: 38px; height: 38px;
    left: 22%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.45), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.2);
    animation-duration: 12s;
    animation-delay: 2s;
}

.sbubble-3 {
    width: 70px; height: 70px;
    left: 78%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.18);
    animation-duration: 10s;
    animation-delay: 1s;
}

.sbubble-4 {
    width: 28px; height: 28px;
    left: 55%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.3);
    animation-duration: 7.5s;
    animation-delay: 3.5s;
}

.sbubble-5 {
    width: 46px; height: 46px;
    left: 40%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.15);
    animation-duration: 11s;
    animation-delay: 0.8s;
}

@keyframes sbubbleFloat {
    0% {
        bottom: -80px;
        opacity: 0;
        transform: translateX(0) scale(0.85);
    }
    10% { opacity: 0.7; }
    85% { opacity: 0.5; }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(20px) scale(1.1);
    }
}

/* ===== 文章卡片（带缩略图横向布局） ===== */
.post-card {
    display: flex;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.post-thumb-link {
    flex-shrink: 0;
    width: 220px;
    display: block;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
    text-decoration: none;
}

.post-thumb {
    width: 100%;
    height: 100%;
    min-height: 140px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.04);
}

.post-body {
    flex: 1;
    min-width: 0;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.post-body .post-title { margin-bottom: 0.35rem; }
.post-body .post-meta  { margin-bottom: 0.45rem; }
.post-body .post-excerpt { flex: 1; margin-bottom: 0.6rem; }

.post-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.post-footer .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0;
}

/* ===== 响应式（移动端内联） ===== */
@media (max-width: 768px) {
    .comment-child {
        margin-left: 1.5rem;
        padding-left: 0.75rem;
    }

    .comment-content,
    .comment-reply {
        margin-left: 0;
    }

    .comment-inputs {
        grid-template-columns: 1fr;
    }

    #comments {
        padding: 1.25rem 1rem;
    }

    .respond {
        padding: 1.25rem 1rem;
    }
}

/* ===== 单篇文章页面增强 ===== */
.single-post {
    padding: 1.75rem 2rem;
}

.single-post > .post-title {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.single-post > .post-meta {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

/* 文章正文图片悬停 */
.post-content img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.post-content img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

/* 增强代码块 - 顶部语言标签区域 */
.post-content pre {
    position: relative;
}

.post-content pre::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -1.25rem -1.25rem 1rem;
}

/* 增强引用块 */
.post-content blockquote {
    position: relative;
    border-left: none;
    padding-left: 1.5rem;
}

.post-content blockquote::before {
    content: '\201C';
    position: absolute;
    left: 0.5rem;
    top: -0.15rem;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.4;
    font-family: Georgia, serif;
    line-height: 1;
}

/* 文章上下篇导航增强 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-nav-prev,
.post-nav-next {
    flex: 1;
}

.post-nav-prev a,
.post-nav-next a {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.5;
}

.post-nav-next { text-align: right; }

.post-nav-prev a:hover,
.post-nav-next a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ===== 侧边栏小部件增强 ===== */
.widget li a {
    position: relative;
}

.widget li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 999px;
    transition: height 0.2s ease;
}

.widget li a:hover::before {
    height: 60%;
}

/* ===== 评论表单按钮增强 ===== */
.comment-submit-btn,
#respond .form-submit button,
#respond .form-submit input[type="submit"],
#respond button.submit {
    position: relative;
    overflow: hidden;
}

.comment-submit-btn::after,
#respond .form-submit button::after,
#respond .form-submit input[type="submit"]::after,
#respond button.submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.comment-submit-btn:active::after,
#respond .form-submit button:active::after,
#respond .form-submit input[type="submit"]:active::after,
#respond button.submit:active::after {
    width: 200px;
    height: 200px;
}

/* ===== 搜索结果页增强 ===== */
.search-results-info {
    padding: 0.875rem 1.25rem;
    background: var(--primary-light);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.search-results-info strong {
    color: var(--primary-color);
}

/* ===== 404页面增强 ===== */
.no-posts {
    position: relative;
    overflow: hidden;
}

.no-posts::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-light) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.no-posts h2 {
    position: relative;
    z-index: 1;
}

.no-posts p,
.no-posts .read-more {
    position: relative;
    z-index: 1;
}

/* ===== 暗色模式增强 ===== */
[data-theme="dark"] .post-content pre::before {
    opacity: 0.6;
}

[data-theme="dark"] .post:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .site-footer::before {
    opacity: 0.4;
}

[data-theme="dark"] .comment-body:hover {
    background-color: rgba(30,41,59,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="dark"] #comments::before {
    opacity: 0.4;
}

[data-theme="dark"] #respond {
    background-color: rgba(30,41,59,0.3);
}

[data-theme="dark"] .single-post > .post-title {
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .widget li a:hover::before {
    background: var(--primary-color);
}

/* ===== 独立页面增强 ===== */
.page .post-content {
    padding-top: 0.5rem;
}

.page .post-title {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.page .page-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page .page-thumbnail img {
    width: 100%;
    display: block;
}
