/* style.css - 基于你提供的背景色方案优化 */
/* 1. 基础变量与重置 (采用你的颜色) */
:root {
    --green: #a8e6cf;
    --pink: #ffd3e8;
    --yellow: #ffefc8;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --gradient-bg: linear-gradient(135deg, var(--green) 0%, var(--yellow) 50%, var(--pink) 100%);
    --gradient-bg-fixed: linear-gradient(135deg, var(--green) 0%, var(--yellow) 50%, var(--pink) 100%) fixed;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.3);
    --card-bg-hover: rgba(255, 255, 255, 0.95);
    --primary-color: #0071e3;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius-medium: 12px;
    --radius-large: 18px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'SF Pro Display', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sidebar-width: 380px; /* 右侧卡片栏加宽（原300px） */
    --page-max-width: 1400px; /* 网页最大宽度加宽（原1200px） */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main); /* 优化字体 */
    background: var(--gradient-bg-fixed);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    /* 平滑滚动动画 */
    scroll-behavior: smooth;
}

.container {
    max-width: var(--page-max-width); /* 使用新的最大宽度 */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 2. 毛玻璃导航与页脚 */
.main-header, .main-footer {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-base);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--primary-color);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.main-footer {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 1.5rem 0 !important; /* 减少内边距（原2.5rem） */
    margin-top: 3rem !important; /* 减少上间距（原4rem） */
}
.footer-content {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* 3. 英雄区域 */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

/* 新增：渐入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    animation: scaleIn 0.8s ease forwards 0.2s;
    opacity: 0;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeIn 0.8s ease forwards 0.4s;
    opacity: 0;
}
.hero-title span {
    display: block;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeIn 0.8s ease forwards 0.6s;
    opacity: 0;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 0.8s ease forwards 0.8s;
    opacity: 0;
}

/* 4. 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* 5. 搜索栏样式 */
.search-section {
    padding: 1.5rem 0;
    animation: fadeIn 0.8s ease forwards 1s;
    opacity: 0;
}

.search-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-large);
    padding: 0 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.search-container:focus-within {
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 113, 227, 0.3);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-main);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-clear {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-base);
}

.search-clear:hover {
    color: var(--primary-color);
}

/* 6. 文章卡片系统 (核心布局优化) */
.articles-section {
    padding: 3rem 0 5rem;
    animation: fadeIn 0.8s ease forwards 1.2s;
    opacity: 0;
}
.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem; /* 左右布局间距增大，更协调 */
}
@media (min-width: 968px) {
    .grid-layout {
        grid-template-columns: 1fr var(--sidebar-width); /* 右侧使用加宽后的宽度 */
    }
}

/* 优化：2列布局，每页4个卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2张/行 */
    gap: 1.8rem; /* 精致间距 */
}

/* 文章卡片优化：固定高度比例，精致排版 */
.article-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-large);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* 卡片加载动画 */
    animation: cardFadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

/* 卡片依次加载动画 */
.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }

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

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    background: var(--card-bg-hover);
}

/* 图片区域优化：固定高度，保持比例 */
.article-cover-container {
    position: relative;
    width: 100%;
    height: 160px; /* 优化高度，适配2行布局 */
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.article-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-cover {
    transform: scale(1.08);
}

.article-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.article-cover-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.article-cover-fallback i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* 文章标题优化：控制行数 */
.article-title {
    font-size: 1.25rem; /* 优化字体大小 */
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

/* 文章元信息优化 */
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* 文章摘要优化：控制行数，适配卡片高度 */
.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem; /* 优化字体大小 */
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 最多3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标签区域优化 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}
.tag {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}
.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 文章页脚优化 */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* 固定在底部 */
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.article-author i {
    color: var(--pink);
}

.article-read-more {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-card:hover .article-read-more {
    gap: 0.6rem;
}

/* 7. 侧边栏组件（样式不变，仅适配高度节奏） */
.sidebar-container {
    height: 800px; /* 初始值，JS会覆盖 */
    overflow-y: auto;
    scrollbar-width: thin; /* 细滚动条（Firefox） */
    scrollbar-color: var(--pink) rgba(255, 211, 232, 0.2); /* 滚动条颜色（粉色系，更协调） */
    border-radius: var(--radius-large);
    padding: 0.5rem 0;
}

.sidebar-container::-webkit-scrollbar {
    width: 6px;
}

.sidebar-container::-webkit-scrollbar-track {
    background: rgba(255, 211, 232, 0.2); /* 滚动条轨道（淡粉色） */
    border-radius: var(--radius-large);
}

.sidebar-container::-webkit-scrollbar-thumb {
    background-color: var(--pink); /* 滚动条滑块（粉色） */
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.sidebar-container::-webkit-scrollbar-thumb:hover {
    background-color: #ffb3d1; /* 滚动条滑块hover颜色（深粉色） */
}
/* 侧边栏卡片间距增大（原1.8rem→2.2rem） */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.2rem; /* 卡片之间空隙增大 */
    animation: fadeIn 0.8s ease forwards 1.4s;
    opacity: 0;
    padding: 0.5rem;
}

/* 统一所有侧边栏卡片样式（对齐文章分类卡片的卡通简约风格） */
/* 统一卡片样式：确保加宽后内部排版协调 */
.widget {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* 卡片hover微动效果，增强交互感 */
.widget:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--pink) !important; /* hover时边框变色，呼应卡通风格 */
}
.widget-title {
    font-size: 1.3rem !important; /* 优化字体大小 */
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 1.8rem !important; /* 增大标题下方间距 */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}
/* 标题下方添加卡通风格下划线 */
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--yellow));
    border-radius: 2px;
}

/* 标题图标样式优化（卡通化） */
.widget-title i {
    font-size: 1.5rem !important;
    color: var(--pink) !important; /* 统一图标颜色，呼应卡通风格 */
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 211, 232, 0.3); /* 图标背景色，更柔和 */
    border-radius: 10px;
}

/* 1. 关于作者卡片优化（卡通简约风格） */
.author-card {
    display: flex;
    flex-direction: column; /* 垂直布局，更简约 */
    align-items: center; /* 居中对齐，更协调 */
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    text-align: center;
}

.author-avatar {
    width: 100px !important; /* 增大头像，更醒目 */
    height: 100px !important;
    background: linear-gradient(135deg, var(--green), var(--pink)) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 2.5rem !important; /* 增大图标 */
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important; /* 头像阴影，更立体 */
    border: 3px solid white !important; /* 白色边框，卡通感 */
}
.author-name {
    font-size: 1.4rem !important; /* 优化名字大小 */
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem !important;
}

.author-bio {
    font-size: 1rem !important; /* 优化简介大小 */
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    padding: 0 1rem !important;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem; /* 增大图标间距 */
    margin-top: 0.5rem;
}

.social-link {
    width: 48px !important; /* 增大社交图标 */
    height: 48px !important;
    border-radius: 12px !important; /* 圆润圆角 */
    background: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.social-link i {
    font-size: 1.3rem !important;
}

.social-link:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}
/* 分类卡片样式不变 */
.category-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 增大分类卡片间距 */
}

.category-item {
    margin-bottom: 0 !important; /* 取消默认间距，用gap控制 */
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateX(8px);
}
/* 保持原有分类卡片样式，仅优化间距 */
.category-card {
    padding: 1.3rem 1.6rem !important;
    gap: 1rem !important;
    white-space: nowrap; /* 强制不换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}
.category-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
}

.category-icon i {
    font-size: 1.5rem !important;
}
.category-name {
    font-size: 1.15rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count {
    font-size: 0.95rem !important;
    white-space: nowrap;
}
.category-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 1.2rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border: none !important;
    border-radius: 16px !important;
    text-align: left !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    color: var(--primary-color) !important;
}

.category-btn i {
    color: var(--pink); /* 文件夹图标使用粉色 */
    font-size: 1.2rem;
    margin-right: 12px;
}
/* 3. 热门标签卡片：文字醒目+不换行 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem !important;
    justify-content: flex-start; /* 左对齐，更整齐 */
}

.tag-cloud-item {
    padding: 0.8rem 1.3rem !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important; /* 加粗，更醒目 */
    color: white !important; /* 文字白色，与背景强对比 */
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    white-space: nowrap; /* 强制不换行 */
}
/* 标签颜色优化（更柔和的卡通色调） */
.tag-cloud-item {
    background: linear-gradient(135deg, var(--color-light), var(--color-dark)) !important;
}
/* 标签颜色优化（更鲜艳，文字白色更醒目） */
.tag-cloud-item:nth-child(8n+1) { --color-light: #d4a5ff; --color-dark: #9c27b0; background: linear-gradient(135deg, var(--color-light), var(--color-dark)) !important; }
.tag-cloud-item:nth-child(8n+2) { --color-light: #4facfe; --color-dark: #0071e3; background: linear-gradient(135deg, var(--color-light), var(--color-dark)) !important; }
.tag-cloud-item:nth-child(8n+3) { --color-light: #43e97b; --color-dark: #2e7d32; background: linear-gradient(135deg, var(--color-light), var(--color-dark)) !important; }
.tag-cloud-item:nth-child(8n+4) { --color-light: #ffb74d; --color-dark: #f57c00; background: linear-gradient(135deg, var(--color-light), var(--color-dark)) !important; }
.tag-cloud-item:nth-child(8n+5) { --color-light: #ff6b8b; --color-dark: #c62828; background: linear-gradient(135deg, var(--color-light), var(--color-dark)) !important; }
.tag-cloud-item:nth-child(8n+6) { --color-light: #38f9d7; --color-dark: #00695c; background: linear-gradient(135deg, var(--color-light), var(--color-dark)) !important; }
.tag-cloud-item:nth-child(8n+7) { --color-light: #ffd54f; --color-dark: #f9a825; background: linear-gradient(135deg, var(--color-light), var(--color-dark)) !important; }
.tag-cloud-item:nth-child(8n+8) { --color-light: #667eea; --color-dark: #3949ab; background: linear-gradient(135deg, var(--color-light), var(--color-dark)) !important; }

.tag-count {
    margin-left: 0.5rem;
    opacity: 0.9;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    color: white !important;
}


.tag-cloud-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
    letter-spacing: 0.5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem !important;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 1.5rem 0.5rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.stat-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--green) !important;
}
.stat-value {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
    white-space: nowrap; /* 强制不换行 */
}
.stat-label {
    font-size: 1rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    white-space: nowrap; /* 强制不换行 */
}

/* 空状态样式优化（统一卡通风格） */
.category-empty, .tag-cloud-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem !important; /* 增大空状态内边距 */
    color: var(--text-secondary) !important;
    text-align: center;
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 16px !important;
}

.category-empty i, .tag-cloud-empty i {
    font-size: 3rem !important; /* 增大空状态图标 */
    margin-bottom: 1.2rem !important;
    opacity: 0.6 !important;
    color: var(--pink) !important;
}

.category-empty span, .tag-cloud-empty p {
    font-size: 1.1rem !important; /* 优化空状态文字大小 */
    font-weight: 500 !important;
}
/* 8. 分页（保持原有样式，适配4个/页） */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease forwards 1.6s;
    opacity: 0;
}
.pagination-btn {
    padding: 0.7rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-medium);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 9. 骨架屏（调整为2行2列） */
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}
.skeleton-container.hidden {
    display: none;
}
.skeleton-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}
.skeleton-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

/* 10. 返回顶部 & Toast（添加动画） */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease forwards;
}
.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.toast {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-medium);
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==================== */
/* 艺术字体和样式美化（保持不变） */
/* ==================== */

/* 1. 顶部导航栏艺术字 */
.nav-logo {
    font-family: 'Pacifico', cursive !important;
    font-size: 2.4rem !important;
    font-weight: normal !important;
    background: linear-gradient(45deg,
    #FF6B8B 0%,
    #FFA500 25%,
    #00CED1 50%,
    #4CAF50 75%,
    #9C27B0 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1) !important;
    letter-spacing: 0.5px !important;
    transition: all 0.4s ease !important;
}

.nav-logo:hover {
    transform: scale(1.05) !important;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.nav-logo .fa-sparkles {
    color: #FF6B8B !important;
    -webkit-text-fill-color: #FF6B8B !important;
    font-size: 1.8rem !important;
    margin-right: 0.5rem !important;
    animation: sparkle 2s infinite !important;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* 2. 底部页脚艺术字 */
.footer-logo {
    font-family: 'Pacifico', cursive !important;
    font-size: 2.8rem !important;
    font-weight: normal !important;
    background: linear-gradient(45deg,
    var(--green) 0%,
    var(--pink) 33%,
    var(--yellow) 66%,
    #667eea 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 0.8rem !important;
    display: inline-block !important;
}

.footer-logo .fa-sparkles {
    color: var(--pink) !important;
    -webkit-text-fill-color: var(--pink) !important;
    margin-right: 0.5rem !important;
}

/* 3. 美化分类卡片 */
.category-card {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 1.2rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: none !important;
    border-radius: 16px !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    margin-bottom: 0.5rem !important;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-5px) translateX(5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--pink) !important;
}

.category-icon {
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(135deg, var(--green), var(--yellow)) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
}

.category-icon i {
    color: white !important;
    font-size: 1.4rem !important;
}

.category-info {
    flex-grow: 1 !important;
}

.category-name {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.3rem !important;
}

.category-count {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
}

.category-arrow {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease !important;
}

.category-card:hover .category-arrow {
    opacity: 1 !important;
    color: var(--pink) !important;
    transform: translateX(3px) !important;
}

/* 4. 标签云美化 */
.tag-cloud-item {
    position: relative;
    overflow: hidden;
    border: none !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
}

.tag-cloud-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}

.tag-count {
    margin-left: 0.3rem;
    opacity: 0.8;
    font-size: 0.8em;
}

/* 5. 筛选横幅美化 */
.filter-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-banner-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-banner-content i {
    color: var(--pink);
    font-size: 1.2rem;
}

.filter-banner h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.filter-value {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-clear-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 139, 0.1);
    border: 1px solid rgba(255, 107, 139, 0.3);
    border-radius: 8px;
    color: #FF6B8B;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-clear-btn:hover {
    background: #FF6B8B;
    color: white;
}

/* 6. 空状态美化 */
.empty-state, .error-state {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.category-empty, .tag-cloud-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.category-empty i, .tag-cloud-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 在现有CSS中添加或修改分页样式 */
.pagination-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pagination-info {
    flex-grow: 1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-medium);
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-medium);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    justify-content: center;
}

.pagination-btn i {
    font-size: 0.9rem;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* 页脚样式优化 */
.main-footer {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 1.5rem 0 !important; /* 减少内边距（原2.5rem） */
    margin-top: 3rem !important; /* 减少上间距（原4rem） */
}

.footer-content {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

.footer-logo {
    font-family: 'Pacifico', cursive !important;
    font-size: 2.2rem !important; /* 缩小logo（原2.5rem） */
    background: linear-gradient(45deg, var(--green) 0%, var(--pink) 50%, var(--yellow) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.footer-tagline {
    font-family: var(--font-main) !important;
    font-size: 1rem !important; /* 缩小标语（原1.1rem） */
    font-weight: 300 !important;
    color: var(--text-secondary) !important;
    margin-bottom: 1rem !important; /* 减少间距（原1.5rem） */
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
}

.footer-links {
    display: none !important; /* 隐藏链接容器 */
}

.footer-link {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.footer-link:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.footer-divider {
    color: var(--text-secondary) !important;
    opacity: 0.5 !important;
    font-weight: 300 !important;
}

.footer-copyright {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0.5rem !important; /* 减少间距（原0.8rem） */
    opacity: 0.8 !important;
}

.footer-record {
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
    margin-top: 0.3rem !important; /* 减少间距（原0.5rem） */
}

.footer-record a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease !important;
}

.footer-record a:hover {
    opacity: 0.9 !important;
    text-decoration: underline !important;
}