/* --- 变量定义 (现代蓝紫渐变风格) --- */
:root {
    /* 品牌色 - 蓝紫渐变 */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #06b6d4;
    --primary-600: #0891b2;
    --primary-700: #0e7490;

    /* 辅助色 - 紫色 */
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;

    /* 渐变 */
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --hero-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);

    /* 功能色 */
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-pink: #ec4899;

    /* 中性色 - 现代灰 */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* --- 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 50%, #f1f5f9 100%);
    color: var(--slate-700);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰元素 - 蓝紫渐变 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, -30px) rotate(5deg);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* --- 布局工具 --- */
.container {
    width: 900px;
    max-width: 95%;
    margin: 0 auto;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.05), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

/* --- header 顶部栏 - 现代风 --- */
.top-bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
}

/* 标题和描述同一行 */
.site-branding {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.site-title a {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.2s ease;
}

.site-title a:hover {
    opacity: 0.8;
}

.site-description {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-500);
    margin: 0;
    line-height: 1;
}

/* 搜索框 - 完整样式 */
.search-container {
    position: relative;
    width: 200px;
    flex-shrink: 0;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.search-container input[type="search"],
.search-container input[type="text"],
.search-container .search-field {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    color: var(--slate-700);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-400);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-container input::placeholder {
    color: var(--slate-400);
}

.user-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 24px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    box-shadow: none;
}

.btn-ghost {
    color: var(--slate-600);
    background: transparent;
    border: 1px solid var(--slate-300);
}

.btn-ghost:hover {
    color: var(--primary-600);
    background: var(--slate-50);
    border-color: var(--primary-300);
}

.btn-primary {
    background: var(--primary-500);
    color: white;
    border: 1px solid var(--primary-500);
}

.btn-primary:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
}

/* --- 导航对齐 --- */
.nav-wrapper {
    max-width: 900px;
    margin: 24px auto;
    position: relative;
}

.nav-pills {
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--slate-300) transparent;
    scroll-behavior: smooth;
}

/* 美化滚动条 */
.nav-pills::-webkit-scrollbar {
    height: 6px;
}

.nav-pills::-webkit-scrollbar-track {
    background: var(--slate-100);
    border-radius: 3px;
}

.nav-pills::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 3px;
}

.nav-pills::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

.nav-link {
    padding: 10px 18px;
    border-radius: 6px;
    color: var(--slate-600);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.nav-link i {
    font-size: 16px;
    color: var(--slate-500);
    transition: color 0.2s ease;
}

.nav-link:hover {
    background: var(--slate-50);
    color: var(--primary-600);
    border-color: var(--slate-200);
}

.nav-link:hover i {
    color: var(--primary-600);
}

.nav-link.active {
    background: var(--primary-500);
    color: white;
    font-weight: 600;
    border-color: var(--primary-500);
}

.nav-link.active i {
    color: white;
}

/* --- 主内容区 - 单栏布局 --- */
.main-grid {
    display: block;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* 隐藏侧边栏 */
.right-col {
    display: none;
}

/* 扁平化卡片样式 */
.card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 4px;
    padding: 20px;
    box-shadow: none;
    transition: all 0.2s ease;
    position: relative;
}

.card:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-color: var(--slate-300);
}

/* 移除悬停时的装饰效果 */
.card::before {
    display: none;
}

/* Hero卡片 - 扁平化 */
.hero-card {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    border: none;
}

/* 移除Hero的装饰光效 */
.hero-card::before,
.hero-card::after {
    display: none;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 12px;
    backdrop-filter: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    max-width: 85%;
    position: relative;
}

.hero-desc {
    font-size: 15px;
    opacity: 0.95;
    max-width: 70%;
    position: relative;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* 章节标题 - 扁平化 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--slate-200);
    background: none;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 简化标题装饰 */
.section-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--primary-500);
    border-radius: 0;
}

.section-title i {
    color: var(--primary-500);
    font-size: 18px;
}

.more-link {
    font-size: 13px;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.more-link:hover {
    color: var(--primary-600);
}

.more-link i {
    transition: transform 0.2s ease;
}

.more-link:hover i {
    transform: translateX(2px);
}

/* 文章列表项 */
.article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-bottom: 1px solid var(--slate-100);
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 6px;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background: var(--slate-50);
}

.article-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.article-icon {
    color: var(--slate-400);
    font-size: 18px;
    background: transparent;
    padding: 0;
    display: flex;
    min-width: 20px;
    justify-content: center;
}

.article-item:hover .article-icon {
    color: var(--primary-500);
}

.article-title {
    font-weight: 400;
    color: var(--slate-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}

.article-item:hover .article-title {
    color: var(--primary-600);
}

.article-meta {
    font-size: 12px;
    color: var(--slate-300);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    flex-shrink: 0;
}

/* ========== 博客文章卡片样式 ========== */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-post-card {
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.blog-post-card:hover {
    transform: translateY(-2px);
}

.blog-post-thumbnail {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    background: var(--slate-100);
}

.blog-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-card:hover .blog-post-img {
    transform: scale(1.05);
}

.blog-post-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--slate-500);
}

.blog-post-meta i {
    font-size: 14px;
}

.post-date,
.post-category {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-category a {
    color: var(--primary-600);
    font-weight: 500;
}

.post-category a:hover {
    color: var(--primary-700);
}

.blog-post-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.blog-post-title a {
    color: var(--slate-900);
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: var(--primary-600);
}

.blog-post-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--slate-600);
    margin: 4px 0;
}

.blog-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--slate-200);
}

.btn-read-more {
    background: var(--primary-600);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-read-more:hover {
    background: var(--primary-700);
    transform: translateX(2px);
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--slate-400);
    font-size: 13px;
}

.post-comments {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 卡片可点击优化 ========== */

/* 整张卡片链接层 */
.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

/* 卡片内部链接需要更高层级 */
.blog-post-card .category-link,
.blog-post-card .read-more-link {
    position: relative;
    z-index: 2;
}

/* 卡片悬停效果 */
.blog-post-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-200);
}

/* 标题不再需要链接样式 */
.blog-post-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--slate-900);
    transition: color 0.2s ease;
}

.blog-post-card:hover .blog-post-title {
    color: var(--primary-600);
}

/* 文字链接样式（继续阅读） */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-600);
    transition: all 0.2s ease;
}

.read-more-link:hover {
    color: var(--primary-700);
    gap: 8px;
}

.read-more-link i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.read-more-link:hover i {
    transform: translateX(2px);
}

/* 移除旧按钮样式 */
.blog-post-footer {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
}

/* 无文章提示 */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
}

.no-posts-icon {
    font-size: 64px;
    color: var(--slate-300);
    margin-bottom: 16px;
}

.no-posts-message h3 {
    font-size: 20px;
    color: var(--slate-800);
    margin-bottom: 8px;
}

.no-posts-message p {
    color: var(--slate-500);
    font-size: 14px;
}

/* 双栏布局 */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

/* 侧边栏 - 美化热门文章排名 */
.rank-item {
    display: flex;
    gap: 14px;
    padding: 12px 8px;
    border-bottom: 1px dashed var(--slate-200);
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: var(--slate-50);
    padding-left: 12px;
}

.rank-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--slate-200);
    line-height: 1;
    width: 32px;
    height: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--slate-100);
    flex-shrink: 0;
}

/* 前三名特殊颜色和效果 */
.rank-item:nth-child(1) .rank-num {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #b8860b;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    font-size: 24px;
}

.rank-item:nth-child(2) .rank-num {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
    font-size: 23px;
}

.rank-item:nth-child(3) .rank-num {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a362 100%);
    color: #92400e;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
    font-size: 22px;
}

.rank-title {
    font-size: 14px;
    line-height: 1.4;
    color: var(--slate-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    font-weight: 500;
}

.rank-title:hover {
    color: var(--primary-600);
}

/* Tag Cloud - 浅色柔和标签云 */
.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill,
.tagcloud a,
.wp-block-tag-cloud a {
    font-size: 13px !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: 1.5px solid;
}

/* 浅色渐变背景 - 柔和配色 */
.tag-pill:nth-child(6n+1),
.tagcloud a:nth-child(6n+1) {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    color: #4f46e5;
    border-color: #c7d2fe;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.1);
}

.tag-pill:nth-child(6n+2),
.tagcloud a:nth-child(6n+2) {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    color: #c026d3;
    border-color: #f5d0fe;
    box-shadow: 0 1px 3px rgba(192, 38, 211, 0.1);
}

.tag-pill:nth-child(6n+3),
.tagcloud a:nth-child(6n+3) {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #0d9488;
    border-color: #99f6e4;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.1);
}

.tag-pill:nth-child(6n+4),
.tagcloud a:nth-child(6n+4) {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border-color: #a7f3d0;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.1);
}

.tag-pill:nth-child(6n+5),
.tagcloud a:nth-child(6n+5) {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #ea580c;
    border-color: #fed7aa;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.1);
}

.tag-pill:nth-child(6n+6),
.tagcloud a:nth-child(6n+6) {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border-color: #fecaca;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}

/* 悬停效果 - 柔和 */
.tag-pill:hover,
.tagcloud a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* WordPress内置小工具样式优化 */
.widget {
    margin-bottom: 24px;
}

.widget-title,
.wp-block-group__inner-container>h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(to right, var(--slate-200), transparent) bottom;
    background-size: 100% 2px;
    background-repeat: no-repeat;
    padding-left: 12px;
    position: relative;
}

.widget-title::before,
.wp-block-group__inner-container>h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: 2px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--slate-200);
    transition: padding-left 0.2s ease;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li:hover {
    padding-left: 8px;
    background: var(--slate-50);
}

.widget ul li a {
    color: var(--slate-600);
    font-size: 14px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.widget ul li a:hover {
    color: var(--primary-600);
}

/* 分类/归档小工具计数 */
.widget ul li .count,
.widget_categories li span,
.widget_archive li span {
    float: right;
    background: var(--slate-100);
    color: var(--slate-500);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* 友情链接 */
.friend-links {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    font-size: 13px;
}

.friend-links strong {
    color: var(--slate-800);
    margin-right: 12px;
}

.friend-links span {
    color: var(--slate-400);
    margin-right: 16px;
    cursor: pointer;
}

.friend-links span:hover {
    color: var(--primary-500);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 48px 0;
    margin-top: 48px;
    text-align: center;
    font-size: 13px;
}

.footer-links a {
    color: var(--slate-200);
    margin: 0 12px;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

.footer-info {
    margin-top: 20px;
    opacity: 0.6;
    line-height: 1.6;
}

.highlight-red {
    color: var(--accent-red);
}

/* ========== 响应式设计 ========== */

/* 平板和小屏幕桌面 (1200px以下) */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .right-col {
        display: none;
        /* 小屏幕隐藏侧边栏 */
    }
}

/* 平板 (768px以下) */
@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }

    .logo i {
        font-size: 24px;
    }

    .logo span.en {
        display: none;
        /* 小屏幕隐藏英文名 */
    }

    .search-container {
        width: 200px;
    }

    .search-container input {
        padding: 8px 12px 8px 36px;
        font-size: 13px;
    }

    .search-icon {
        left: 12px;
        font-size: 16px;
    }

    .user-actions {
        gap: 8px;
    }

    .btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .nav-link i {
        display: none;
        /* 小屏幕隐藏图标 */
    }

    .hero-card {
        height: 240px;
        padding: 24px;
    }

    .hero-title {
        font-size: 24px;
        max-width: 100%;
    }

    .hero-desc {
        font-size: 14px;
        max-width: 90%;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 博客卡片响应式 */
    .blog-posts {
        gap: 24px;
    }

    .blog-post-thumbnail {
        height: 300px;
    }

    .blog-post-title {
        font-size: 22px;
    }

    .blog-post-excerpt {
        font-size: 14px;
    }
}

/* 手机 (480px以下) */
@media (max-width: 480px) {
    .top-bar {
        padding: 10px 0;
    }

    .logo {
        font-size: 18px;
        gap: 6px;
    }

    .logo i {
        font-size: 20px;
    }

    .search-container {
        width: 160px;
    }

    .search-container input {
        font-size: 12px;
    }

    .btn-ghost,
    .user-actions .btn i {
        display: none;
        /* 手机端隐藏部分按钮 */
    }

    .btn-primary {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nav-wrapper {
        margin: 12px 0;
    }

    .nav-pills {
        padding: 2px;
        gap: 2px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .hero-card {
        height: 200px;
        padding: 20px;
    }

    .hero-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .hero-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .hero-desc {
        font-size: 13px;
    }

    .card {
        padding: 16px;
    }

    .section-title {
        font-size: 16px;
    }

    .article-item {
        padding: 8px 4px;
    }

    .article-title {
        font-size: 14px;
    }

    .article-meta {
        font-size: 11px;
    }

    .friend-links {
        padding: 16px;
    }

    footer {
        padding: 32px 0;
    }

    /* 博客卡片手机响应式 */
    .blog-posts {
        gap: 20px;
    }

    .blog-post-thumbnail {
        height: 220px;
    }

    .blog-post-title {
        font-size: 20px;
    }

    .blog-post-excerpt {
        font-size: 13px;
        line-height: 1.6;
    }

    .blog-post-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-read-more {
        width: 100%;
        justify-content: center;
    }
}

/* WordPress 特定样式 */
.entry-content {
    line-height: 1.8;
    color: var(--slate-600);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--slate-800);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-numbers {
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    color: var(--slate-600);
    transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-50);
    color: var(--primary-600);
}

/* 小工具样式 */
.widget {
    margin-bottom: 24px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-100);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* 最新文章小工具样式 */
.latest-posts-widget {
    margin-bottom: 24px;
}

.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-100);
    transition: all 0.2s ease;
}

.latest-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-post-item:hover {
    transform: translateX(2px);
}

.latest-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--slate-100);
}

.latest-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.latest-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-post-item:hover .latest-post-img {
    transform: scale(1.1);
}

.latest-post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.latest-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.latest-post-title a {
    color: var(--slate-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-post-title a:hover {
    color: var(--primary-600);
}

.latest-post-excerpt {
    font-size: 12px;
    color: var(--slate-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-post-meta {
    font-size: 11px;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-post-meta i {
    font-size: 12px;
}

.no-posts {
    text-align: center;
    margin-bottom: 16px;
}

.comment-author {
    font-weight: 600;
    color: var(--slate-800);
}

.comment-meta {
    font-size: 13px;
    color: var(--slate-400);
    margin-bottom: 8px;
}

.btn-read-more {
    width: 100%;
    justify-content: center;
}
}

/* WordPress 特定样式 */
.entry-content {
    line-height: 1.8;
    color: var(--slate-600);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--slate-800);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-numbers {
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    color: var(--slate-600);
    transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-50);
    color: var(--primary-600);
}

/* 小工具样式 */
.widget {
    margin-bottom: 24px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-100);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* 最新文章小工具样式 */
.latest-posts-widget {
    margin-bottom: 24px;
}

.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-100);
    transition: all 0.2s ease;
}

.latest-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-post-item:hover {
    transform: translateX(2px);
}

.latest-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--slate-100);
}

.latest-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.latest-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-post-item:hover .latest-post-img {
    transform: scale(1.1);
}

.latest-post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.latest-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.latest-post-title a {
    color: var(--slate-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-post-title a:hover {
    color: var(--primary-600);
}

.latest-post-excerpt {
    font-size: 12px;
    color: var(--slate-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-post-meta {
    font-size: 11px;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-post-meta i {
    font-size: 12px;
}

.no-posts {
    text-align: center;
    margin-bottom: 16px;
}

.comment-author {
    font-weight: 600;
    color: var(--slate-800);
}

.comment-meta {
    font-size: 13px;
    color: var(--slate-400);
    margin-bottom: 8px;
}

.comment-reply-link {
    color: var(--primary-500);
    font-size: 13px;
}

.comment-reply-link:hover {
    color: var(--primary-600);
}

/* ========== 汉堡菜单按钮 ========== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--slate-700);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.menu-toggle:hover {
    color: var(--primary-600);
}

/* ========== 移动端响应式优化 ========== */
@media (max-width: 768px) {

    /* === 标题栏优化 === */
    .header-inner {
        padding: 0 12px;
        gap: 12px;
    }

    /* 隐藏网站描述 */
    .site-description {
        display: none;
    }

    /* 隐藏搜索框 */
    .search-container {
        display: none;
    }

    /* 标题字号调整 */
    .site-title {
        font-size: 20px;
    }

    /* 显示汉堡菜单按钮 */
    .menu-toggle {
        display: block;
    }

    /* === 导航菜单优化 === */
    .nav-wrapper {
        margin: 0;
        padding: 0;
    }

    .nav-pills {
        display: none;
        /* 默认隐藏，通过JS控制显示 */
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 12px;
        gap: 4px;
    }

    .nav-pills.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
    }

    /* === 内容区优化 === */
    .container,
    .main-grid {
        max-width: 100%;
        padding: 0;
    }

    /* 顶部栏调整 */
    .top-bar {
        padding: 12px 0;
    }

    /* === 文章卡片优化 === */
    .blog-posts {
        gap: 16px;
    }

    .card,
    .blog-post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 16px 12px;
        margin-left: 0;
        margin-right: 0;
    }

    /* Hero卡片优化 */
    .hero-card {
        border-radius: 0;
        margin-bottom: 16px;
        padding: 24px 16px;
        height: auto;
        min-height: 160px;
    }

    .hero-title {
        font-size: 20px;
        max-width: 100%;
        margin-bottom: 8px;
    }

    .hero-desc {
        font-size: 14px;
        max-width: 100%;
        margin-bottom: 12px;
    }

    .hero-tag {
        font-size: 10px;
        padding: 3px 10px;
    }

    /* 缩略图优化 */
    .blog-post-thumbnail {
        height: 200px;
        border-radius: 0;
        margin-left: -12px;
        margin-right: -12px;
        margin-bottom: 12px;
        width: calc(100% + 24px);
    }

    /* 文章标题优化 */
    .blog-post-title {
        font-size: 18px;
        line-height: 1.4;
    }

    /* 文章摘要优化 */
    .blog-post-excerpt {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 按钮优化 */
    .btn-read-more {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* 文章元信息 */
    .blog-post-meta {
        font-size: 12px;
        gap: 12px;
    }

    /* === 页脚优化 === */
    footer .container>div {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* === 分页优化 === */
    .pagination {
        margin-top: 24px !important;
    }

    .page-numbers {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* 超小屏优化 */
@media (max-width: 480px) {
    .site-title {
        font-size: 18px;
    }

    .hero-title {
        font-size: 18px;
    }

    .blog-post-title {
        font-size: 16px;
    }

    .blog-post-thumbnail {
        height: 180px;
    }
}