/* SunBlog 主题样式 - 现代化响应式博客主题
*/

/* 1. Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #333; background: #f5f6f8; -webkit-font-smoothing: antialiased; }
:root { --theme-color: #667eea; --theme-color-dark: #5568d3; --sidebar-width: 300px; --content-width: 860px; }
a { color: var(--theme-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--theme-color-dark); }
img { max-width: 100%; height: auto; display: block; border: 0; }

/* 暗色模式 */
body.dark-mode { background: #1a1a1a; color: #d0d0d0; }
body.dark-mode a { color: #8fa0ff; }
body.dark-mode .sunblog-header, body.dark-mode footer, body.dark-mode .post-card, body.dark-mode .sidebar-widget, body.dark-mode .article-detail { background: #2a2a2a; color: #d0d0d0; }
body.dark-mode .post-title a, body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 { color: #e5e5e5; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部导航 */
.sunblog-header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
body.dark-mode .sunblog-header { background: #2a2a2a; }
.header-container { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.header-left .logo { font-size: 22px; font-weight: 700; color: var(--theme-color); }
.header-nav { flex: 1; padding: 0 30px; }
.nav-list { list-style: none; display: flex; gap: 20px; }
.nav-item a { color: #555; font-weight: 500; font-size: 15px; padding: 5px 0; }
.nav-item.active a, .nav-item a:hover { color: var(--theme-color); }
.header-right { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; }
.search-box form { display: flex; align-items: center; }
.search-input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 20px 0 0 20px; font-size: 13px; width: 180px; outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--theme-color); }
.search-btn { padding: 8px 12px; background: var(--theme-color); color: #fff; border: none; border-radius: 0 20px 20px 0; cursor: pointer; }
.dark-mode-toggle { background: transparent; border: 1px solid #ddd; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; }

/* 阅读进度条 */
.reading-progress-bar { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: rgba(0,0,0,0.05); z-index: 100; }
.reading-progress-fill { height: 100%; width: 0%; background: var(--theme-color); transition: width 0.1s; }

/* 主内容区 */
.sunblog-main { padding: 30px 0; }
.content-wrapper { display: flex; gap: 30px; align-items: flex-start; }
body.theme-none .content-wrapper { flex-direction: column; }
body.theme-right .content-wrapper { flex-direction: row; }
body.theme-left .content-wrapper { flex-direction: row-reverse; }
/* 内容区宽度 */
.sunblog-main .sunblog-main { flex: 1; min-width: 0; }
/* 文章卡片列表 */
.post-list { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.post-list-card { display: flex; flex-direction: column; }
.post-list-list { display: flex; flex-direction: column; }
.post-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
body.dark-mode .post-card { background: #2a2a2a; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.post-thumbnail { position: relative; overflow: hidden; }
.post-thumb-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.post-content-wrapper { padding: 22px 26px; }
.post-title { font-size: 22px; font-weight: 600; margin-bottom: 12px; color: #333; }
body.dark-mode .post-title { color: #e5e5e5; }
.post-title a { color: #333; }
body.dark-mode .post-title a { color: #e5e5e5; }
.post-meta { font-size: 13px; color: #888; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.post-meta .meta-item { display: inline-flex; align-items: center; gap: 4px; }
.post-excerpt { color: #666; font-size: 15px; line-height: 1.7; margin-bottom: 15px; }
body.dark-mode .post-excerpt { color: #aaa; }
.post-tags { margin: 10px 0; }
.post-tag { display: inline-block; padding: 4px 12px; background: rgba(102, 126, 234, 0.08); color: var(--theme-color); border-radius: 14px; font-size: 12px; margin: 3px 4px 3px 0; }
body.dark-mode .post-tag { background: rgba(135, 160, 255, 0.15); }
.post-footer { margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
body.dark-mode .post-footer { border-top-color: #444; }
.read-more-btn { font-size: 14px; color: var(--theme-color); font-weight: 500; }

/* 文章详情页 */
.article-detail { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 36px 40px; }
body.dark-mode .article-detail { background: #2a2a2a; color: #d0d0d0; }
.article-header { text-align: center; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #f0f0f0; }
body.dark-mode .article-header { border-bottom-color: #444; }
.article-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; color: #333; line-height: 1.3; }
body.dark-mode .article-title { color: #fff; }
.article-meta { font-size: 14px; color: #888; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.article-content { font-size: 16px; line-height: 1.9; color: #444; }
body.dark-mode .article-content { color: #ccc; }
.article-content p { margin: 0 0 20px; }
.article-content h2 { font-size: 24px; font-weight: 600; margin: 30px 0 15px; padding-left: 12px; border-left: 4px solid var(--theme-color); }
body.dark-mode .article-content h2 { color: #f0f0f0; }
.article-content h3 { font-size: 20px; font-weight: 600; margin: 25px 0 12px; }
body.dark-mode .article-content h3 { color: #e5e5e5; }
.article-content img { max-width: 100%; margin: 20px auto; border-radius: 6px; }
.article-content blockquote { padding: 15px 20px; background: #f8f8f8; border-left: 4px solid var(--theme-color); margin: 20px 0; border-radius: 0 6px 6px 0; }
body.dark-mode .article-content blockquote { background: #333; color: #d0d0d0; }
.article-content pre { background: #f5f5f5; padding: 15px; border-radius: 6px; overflow-x: auto; font-size: 14px; }
body.dark-mode .article-content pre { background: #1a1a1a; }
.article-content code { background: #f0f0f0; padding: 2px 6px; border-radius: 3px; font-size: 14px; color: #c7254e; }
body.dark-mode .article-content code { background: #333; color: #ffa5c7; }
.article-content ul, .article-content ol { padding-left: 30px; margin: 15px 0; }
.article-content table { border-collapse: collapse; width: 100%; margin: 20px 0; }
.article-content th, .article-content td { border: 1px solid #e0e0e0; padding: 8px 12px; text-align: left; }
body.dark-mode .article-content th, body.dark-mode .article-content td { border-color: #555; }
.article-content th { background: #f5f5f5; }
body.dark-mode .article-content th { background: #333; }

/* 文章目录 */
.article-toc { background: #f8f9fa; padding: 20px 25px; margin: 25px 0; border-radius: 8px; border-left: 4px solid var(--theme-color); }
body.dark-mode .article-toc { background: #333; }
.toc-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--theme-color); }
.toc-content ol, .toc-content ul { list-style: none; padding-left: 20px; }
.toc-content a { font-size: 14px; }
.article-tags { margin: 25px 0; padding: 15px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
body.dark-mode .article-tags { border-color: #444; }
.article-tag { display: inline-block; padding: 4px 12px; background: rgba(102, 126, 234, 0.1); color: var(--theme-color); border-radius: 14px; font-size: 12px; margin: 3px 4px 3px 0; }
body.dark-mode .article-tag { background: rgba(135, 160, 255, 0.15); }

/* 版权声明 */
.article-copyright { background: #f8f9fa; padding: 16px 20px; border-left: 4px solid #ff9800; border-radius: 0 6px 6px 0; margin: 25px 0; font-size: 13px; color: #666; white-space: pre-wrap; }
body.dark-mode .article-copyright { background: #3a3a3a; color: #c0c0c0; }

/* 点赞按钮 */
.like-button { display: block; margin: 20px auto; padding: 12px 30px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none; border-radius: 25px; cursor: pointer; font-size: 15px; transition: transform 0.2s; }
.like-button:hover { transform: scale(1.05); }

/* 上一篇 / 下一篇 */
.article-nav { display: flex; justify-content: space-between; gap: 15px; margin: 30px 0; }
.prev-article, .next-article { flex: 1; padding: 15px 20px; background: #f8f9fa; border-radius: 8px; }
body.dark-mode .prev-article, body.dark-mode .next-article { background: #333; }
.prev-article { text-align: left; }
.next-article { text-align: right; }
.article-nav a { color: #555; }
body.dark-mode .article-nav a { color: #ccc; }

/* 相关文章 */
.related-posts { margin-top: 30px; padding-top: 20px; border-top: 2px solid #f0f0f0; }
body.dark-mode .related-posts { border-top-color: #444; }
.related-title { font-size: 22px; font-weight: 600; margin-bottom: 20px; color: #333; }
body.dark-mode .related-title { color: #f0f0f0; }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.related-item { display: flex; flex-direction: column; background: #f8f9fa; border-radius: 8px; overflow: hidden; transition: transform 0.2s; }
body.dark-mode .related-item { background: #333; }
.related-item:hover { transform: translateY(-2px); }
.related-thumbnail {
    position: relative;
    overflow: hidden;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.related-gradient-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    line-height: 1.4;
}
.related-content { padding: 12px; }
.related-post-title { font-size: 14px; font-weight: 500; margin-bottom: 8px; color: #333; line-height: 1.4; }
body.dark-mode .related-post-title { color: #e5e5e5; }
.related-date { font-size: 12px; color: #888; }

/* 侧边栏 */
.sidebar { width: 300px; flex-shrink: 0; }
.sidebar-widgets { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 20px; }
body.dark-mode .sidebar-widget { background: #2a2a2a; }
.widget-title { font-size: 17px; font-weight: 600; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--theme-color); color: #333; }
body.dark-mode .widget-title { color: #e5e5e5; }
.widget-list { list-style: none; }
.widget-list li { padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
body.dark-mode .widget-list li { border-bottom-color: #444; }
.widget-list li:last-child { border-bottom: none; }
.widget-list li a { color: #555; }
body.dark-mode .widget-list li a { color: #ccc; }
.widget-list li a:hover { color: var(--theme-color); }
.search-input-sidebar { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 20px; font-size: 13px; outline: none; }
body.dark-mode .search-input-sidebar { background: #333; border-color: #555; color: #fff; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 5px 12px; background: #f0f0f0; color: #555; border-radius: 15px; font-size: 13px; }
body.dark-mode .tag-cloud a { background: #333; color: #ccc; }
.tag-cloud a:hover { background: var(--theme-color); color: #fff; }
.comment-author { font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.widget-custom .widget-content { font-size: 14px; color: #666; }

/* 面包屑 */
.sunblog-breadcrumb { margin-bottom: 20px; padding: 10px 15px; background: #f8f9fa; border-radius: 6px; font-size: 13px; }
body.dark-mode .sunblog-breadcrumb { background: #333; }
.sunblog-breadcrumb ol { display: flex; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; gap: 8px; }
.sunblog-breadcrumb li { color: #888; }
.breadcrumb-item.active { color: #555; }
body.dark-mode .breadcrumb-item.active { color: #ccc; }

/* 首页横幅 */
.home-banner { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 50px 40px; border-radius: 12px; margin-bottom: 25px; text-align: center; }
.home-banner h1 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.home-banner p { color: rgba(255,255,255,0.9); font-size: 16px; }

/* 置顶文章 */
.sticky-posts { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
body.dark-mode .sticky-posts { background: #2a2a2a; }
.sticky-posts h3 { font-size: 18px; margin-bottom: 15px; color: var(--theme-color); }
.sticky-posts ul { list-style: none; padding: 0; margin: 0; }
.sticky-posts li { padding: 8px 0; border-bottom: 1px dashed #eee; }
body.dark-mode .sticky-posts li { border-bottom-color: #444; }
.sticky-posts li:last-child { border-bottom: none; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; background: #fff; border-radius: 6px; color: #555; font-size: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
body.dark-mode .pagination a, body.dark-mode .pagination span { background: #2a2a2a; color: #ccc; }
.pagination .pagecurrent, .pagination span.pagecurrent { background: var(--theme-color); color: #fff; }
.pagination a:hover { background: var(--theme-color); color: #fff; }

/* 页脚 */
.sunblog-footer { background: #2a2a2a; color: #ccc; padding: 40px 0 20px; margin-top: 50px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-section h3 { color: #fff; font-size: 16px; margin-bottom: 15px; }
.footer-section p { font-size: 14px; color: #999; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-links li a { color: #999; }
.footer-links li a:hover { color: var(--theme-color); }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; text-align: center; font-size: 13px; color: #888; }
.footer-powered { margin-top: 8px; }

/* 友情链接 */
.friend-links-section { background: #f8f9fa; padding: 40px 0; border-top: 1px solid #e5e5e5; width: 100%; box-sizing: border-box; }
body.dark-mode .friend-links-section { background: #222; border-top-color: #333; }
.friend-links-section .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.friend-links-title { font-size: 20px; margin-bottom: 24px; text-align: center; font-weight: 600; }
.friend-links-title span { display: inline-block; padding-bottom: 8px; border-bottom: 2px solid var(--theme-color); color: #333; }
body.dark-mode .friend-links-title span { color: #eee; }
.friend-links { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px 16px; align-items: center; }
.friend-links a { color: #555; font-size: 14px; text-decoration: none; padding: 8px 18px; border-radius: 20px; background: #fff; border: 1px solid #ddd; white-space: nowrap; transition: all 0.2s ease; }
body.dark-mode .friend-links a { color: #bbb; background: #2a2a2a; border-color: #444; }
.friend-links a:hover { color: var(--theme-color); border-color: var(--theme-color); background: rgba(102,126,234,0.08); transform: translateY(-1px); text-decoration: none; }
body.dark-mode .friend-links a:hover { color: var(--theme-color); border-color: var(--theme-color); background: rgba(102,126,234,0.15); }

/* 回到顶部按钮 */
.back-to-top { position: fixed; right: 30px; bottom: 50px; width: 40px; height: 40px; border-radius: 50%; background: var(--theme-color); color: #fff; border: none; font-size: 18px; cursor: pointer; display: none; z-index: 99; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: opacity 0.3s, background 0.3s; }
.back-to-top:hover { background: var(--theme-color-dark); }

/* 移动端响应式 */
@media (max-width: 768px) {
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .header-container { flex-wrap: wrap; padding: 12px; }
    .header-nav { display: none; }
    .article-detail { padding: 20px 15px; }
    .article-title { font-size: 22px; }
    .post-content-wrapper { padding: 16px; }
    .home-banner { padding: 30px 20px; }
    .home-banner h1 { font-size: 22px; }
    .back-to-top { right: 15px; bottom: 20px; }
}

/* ========== 第一阶段新增：视觉增强 ========== */

/* 导航栏毛玻璃效果 */
.sunblog-header.nav-style-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.sunblog-header.nav-style-glass.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
body.dark-mode .sunblog-header.nav-style-glass {
    background: rgba(26, 26, 26, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .sunblog-header.nav-style-glass.nav-scrolled {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.sunblog-header.nav-style-gradient {
    background: linear-gradient(135deg, var(--theme-color) 0%, #764ba2 100%);
    border-bottom: none;
}
.sunblog-header.nav-style-gradient .logo,
.sunblog-header.nav-style-gradient .nav-list a {
    color: #fff !important;
}
.sunblog-header.nav-style-gradient .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 页面滚动入场动画 */
.anim-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-item.anim-visible {
    opacity: 1;
    transform: translateY(0);
}
/* 瀑布流延迟效果 */
.anim-item:nth-child(2n) { transition-delay: 0.1s; }
.anim-item:nth-child(3n) { transition-delay: 0.2s; }
.anim-item:nth-child(4n) { transition-delay: 0.3s; }

/* 专注阅读模式按钮 */
.reading-mode-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 12px;
}
.reading-mode-btn:hover {
    background: #5a6fd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.reading-mode-btn.reading-active {
    background: #e74c3c;
}

/* 专注阅读模式整体效果 */
body.reading-mode .sunblog-header {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: all 0.4s ease;
}
body.reading-mode .sidebar {
    display: none !important;
}
body.reading-mode .content-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 40px;
}
body.reading-mode .article-detail {
    padding: 40px 30px;
    line-height: 2;
}
body.reading-mode .article-title {
    font-size: 32px;
    margin-bottom: 30px;
}
body.reading-mode .article-content {
    font-size: 17px;
    line-height: 2;
    color: #333;
}
body.reading-mode .article-content img {
    border-radius: 8px;
    margin: 20px 0;
}
body.reading-mode .comments-list,
body.reading-mode .comment-form-wrapper {
    display: none;
}
body.dark-mode.reading-mode .article-content {
    color: #ccc;
}

/* ========== 第二阶段新增：文章展示 + 互动 ========== */

/* 渐变封面 - 与横幅高度协调 */
.post-thumbnail .gradient-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.post-thumbnail .gradient-cover .gradient-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}
.post-thumbnail .gradient-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
}

/* 缩略图比例控制 - 跟首页横幅大小一致（约 140px 高度） */
.post-thumbnail {
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
}
.post-thumbnail.ratio-16-9 { height: 140px; }
.post-thumbnail.ratio-4-3 { height: 140px; }
.post-thumbnail.ratio-1-1 { height: 140px; }
.post-thumbnail.ratio-auto { height: 140px; }
.post-thumbnail img,
.post-thumbnail .gradient-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-thumbnail img {
    display: block;
    transition: transform 0.4s ease;
}
.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* 表情反应栏 */
.reactions-bar {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}
body.dark-mode .reactions-bar {
    background: #222;
}
.reactions-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
body.dark-mode .reactions-label { color: #bbb; }
.reactions-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.reaction-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #555;
}
body.dark-mode .reaction-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #ccc;
}
.reaction-btn:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}
.reaction-btn.reacted {
    background: linear-gradient(135deg, var(--theme-color) 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}
.reaction-emoji {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 4px;
}
.reaction-count {
    font-size: 12px;
    opacity: 0.7;
}

/* 打赏按钮 */
.donate-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff8e7 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #fdd;
}
body.dark-mode .donate-section {
    background: linear-gradient(135deg, #2a1a1a 0%, #2a2517 100%);
    border-color: #443;
}
.donate-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}
body.dark-mode .donate-text { color: #bbb; }
.donate-btn {
    padding: 12px 36px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}
.donate-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* 打赏弹窗 */
.donate-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.donate-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.donate-modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease;
}
body.dark-mode .donate-modal-content {
    background: #2a2a2a;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.donate-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}
.donate-modal-close:hover {
    background: #ff6b6b;
    color: #fff;
    transform: rotate(90deg);
}
.donate-modal-content h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
}
body.dark-mode .donate-modal-content h3 { color: #eee; }
.donate-qr-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.donate-qr-item {
    text-align: center;
    flex: 1;
}
.donate-qr-item img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 12px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
body.dark-mode .donate-qr-item img {
    border-color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.donate-qr-item p {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}
body.dark-mode .donate-qr-item p { color: #bbb; }

/* 侧边栏作者卡片 */
.author-card {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}
body.dark-mode .author-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a1a1a 100%);
}
.author-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--theme-color) 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-avatar-fallback {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
}
.author-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}
body.dark-mode .author-name { color: #eee; }
.author-bio {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}
body.dark-mode .author-bio { color: #bbb; }

/* 评论表情栏 */
.comment-emoji-bar {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e5e5e5;
    border-bottom: none;
}
body.dark-mode .comment-emoji-bar {
    background: #222;
    border-color: #444;
}
.emoji-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
body.dark-mode .emoji-btn {
    background: #2a2a2a;
}
.emoji-btn:hover {
    transform: scale(1.2);
    border-color: var(--theme-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}
.comment-form textarea.comment-textarea {
    border-radius: 0 0 8px 8px;
    border-top: none;
}

/* 鼠标跟随效果 */
.cursor-trail-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--theme-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    mix-blend-mode: difference;
}

/* 归档时间轴 */
.archive-timeline {
    position: relative;
    padding-left: 30px;
}
.archive-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--theme-color), transparent);
}
.archive-year {
    position: relative;
    margin-bottom: 30px;
}
.archive-year::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--theme-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--theme-color);
}
body.dark-mode .archive-year::before {
    border-color: #1a1a1a;
}
.archive-year-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--theme-color);
    margin-bottom: 15px;
}
.archive-month {
    margin-bottom: 20px;
}
.archive-month-title {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.2s;
}
body.dark-mode .archive-month-title {
    background: #333;
    color: #ccc;
}
.archive-month-title:hover {
    background: var(--theme-color);
    color: #fff;
}
.archive-post-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: none;
}
.archive-post-list.expanded {
    display: block;
}
.archive-post-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
body.dark-mode .archive-post-list li { border-bottom-color: #333; }
.archive-post-list li:last-child { border-bottom: none; }
.archive-post-list a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}
.archive-post-list a:hover { color: var(--theme-color); }
.archive-post-views {
    font-size: 12px;
    color: #999;
}
.archive-stats {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}
body.dark-mode .archive-stats { background: #222; }
.archive-stat-item {
    flex: 1;
}
.archive-stat-num {
    font-size: 32px;
    font-weight: bold;
    color: var(--theme-color);
    line-height: 1;
}
.archive-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}
body.dark-mode .archive-stat-label { color: #bbb; }

/* 访客统计 */
.visitor-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}
body.dark-mode .visitor-stats {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a1a1a 100%);
}
.visitor-stat {
    text-align: center;
}
.visitor-stat-num {
    font-size: 24px;
    font-weight: bold;
    color: var(--theme-color);
}
.visitor-stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
body.dark-mode .visitor-stat-label { color: #bbb; }

/* 动画 keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 阅读进度条增强 */
.reading-progress-bar {
    position: sticky;
    top: 0;
    height: 3px;
    background: #f0f0f0;
    z-index: 50;
}
body.dark-mode .reading-progress-bar { background: #333; }
.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-color), #764ba2);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* 文章卡片增强 */
.post-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
body.dark-mode .post-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 文章内容增强 */
.article-content blockquote {
    border-left: 4px solid var(--theme-color);
    padding: 15px 20px;
    background: #f8f9ff;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #555;
}
body.dark-mode .article-content blockquote {
    background: #1a1a2e;
    color: #bbb;
}
.article-content pre {
    background: #1e1e1e;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}
.article-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #e74c3c;
}
body.dark-mode .article-content code {
    background: #333;
    color: #ff7b7b;
}
.article-content pre code {
    background: none;
    color: #e0e0e0;
    padding: 0;
}

/* 响应式增强 */
@media (max-width: 768px) {
    .donate-qr-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .reactions-bar {
        padding: 15px;
    }
    .reaction-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .reaction-emoji { font-size: 20px; }
    body.reading-mode .article-detail {
        padding: 20px 15px;
    }
    body.reading-mode .article-title {
        font-size: 24px;
    }
    body.reading-mode .article-content {
        font-size: 16px;
    }
    .archive-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    .archive-stat-num {
        font-size: 24px;
    }
}
