/*
Theme Name: Simple Forum Theme
Theme URI: https://your-site.com
Author: Your Name
Description: 简洁论坛主题 - 主色调 #5fb878
Version: 2.0
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    color: #1e2a3a;
    line-height: 1.5;
}

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

/* ===== 头部导航 ===== */
.site-header {
    background: #ffffff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eef2f6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    min-height: 60px;
}

.logo-area {
    flex-shrink: 0;
}

.logo-area .custom-logo {
    max-height: 45px;
    width: auto;
}

.logo a {
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    color: #1e293b;
}

.logo span {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
    padding: 20px 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.nav-menu li a:hover {
    color: #5fb878;
    border-bottom-color: #5fb878;
}

.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: #5fb878;
    border-bottom-color: #5fb878;
}

/* ===== 主内容区 ===== */
.main-wrapper {
    display: flex;
    gap: 30px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.content-area {
    flex: 2.5;
    min-width: 0;
}

.sidebar-area {
    flex: 1.2;
    min-width: 280px;
}

/* ===== 帖子卡片 ===== */
.post-card {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
    overflow: hidden;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d4e6dc;
}

.post-card .post-thumbnail {
    flex: 0 0 130px;
    width: 130px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
}

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

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.post-card .post-content-right {
    flex: 1;
    min-width: 0;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.post-author-name {
    font-weight: 600;
    font-size: 13px;
    color: #5fb878;
}

.post-author-badge {
    background: #e8f5e9;
    color: #5fb878;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
}

.post-time {
    font-size: 12px;
    color: #94a3b8;
}

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

.post-title a {
    text-decoration: none;
    color: #1e293b;
}

.post-title a:hover {
    color: #5fb878;
}

.post-excerpt {
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    margin: 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta-simple {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.post-meta-simple i {
    margin-right: 4px;
    color: #5fb878;
}

/* ===== 侧边栏小工具 ===== */
.widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 1px solid #eef2f6;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #5fb878;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f2f5;
}

.widget ul li a {
    text-decoration: none;
    color: #475569;
    font-size: 14px;
}

.widget ul li a:hover {
    color: #5fb878;
}

/* 搜索框 */
.widget_search .search-form {
    display: flex;
    gap: 8px;
}

.widget_search .search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.widget_search .search-form button {
    background: #5fb878;
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 8px;
    cursor: pointer;
}

/* ===== 关于本站 ===== */
.about-site {
    text-align: center;
}
.about-logo {
    max-width: 80px;
    margin-bottom: 12px;
    border-radius: 50%;
}
.about-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 10px 0;
}
.about-btn {
    display: inline-block;
    background: #5fb878;
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    margin-top: 8px;
}
.about-btn:hover {
    background: #4aa368;
    color: #fff;
}

/* ===== 关于作者 ===== */
.about-author {
    text-align: center;
}
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}
.about-author h4 {
    font-size: 16px;
    margin: 8px 0;
    color: #1e293b;
}
.author-bio {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.author-social {
    margin-top: 12px;
}
.author-social a {
    display: inline-block;
    margin: 0 6px;
    color: #94a3b8;
    font-size: 18px;
}
.author-social a:hover {
    color: #5fb878;
}

/* ===== 用户登录小工具 ===== */
.login-form-card {
    background: #fff;
    border-radius: 8px;
    padding: 5px 0;
}
.form-field {
    position: relative;
    margin-bottom: 16px;
}
.form-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 14px;
}
.form-field input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
}
.form-field input:focus {
    outline: none;
    border-color: #5fb878;
    background: #fff;
}
.login-btn {
    width: 100%;
    background: #5fb878;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}
.login-btn:hover {
    background: #4aa368;
}
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    cursor: pointer;
}
.forgot-link {
    color: #94a3b8;
    text-decoration: none;
}
.forgot-link:hover {
    color: #5fb878;
}
.register-link {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
    font-size: 13px;
    color: #64748b;
}
.register-link a {
    color: #5fb878;
    text-decoration: none;
    margin-left: 5px;
}
.user-welcome-card {
    text-align: center;
    padding: 10px 0;
}
.user-avatar-lg img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #e8f5e9;
}
.user-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}
.user-role {
    display: inline-block;
    background: #e8f5e9;
    color: #5fb878;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 5px;
}
.logout-btn {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    text-decoration: none;
    margin-top: 12px;
}
.logout-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ===== 随机文章、相关文章、本站推荐列表 ===== */
.random-posts-list li,
.related-posts-list li,
.recommend-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f2f5;
}
.random-posts-list li a,
.related-posts-list li a,
.recommend-list li a {
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    display: block;
}
.random-posts-list li a:hover,
.related-posts-list li a:hover,
.recommend-list li a:hover {
    color: #5fb878;
}

/* ===== 3D云标签 ===== */
.tagcloud-3d {
    text-align: center;
}
.tagcloud-3d a {
    display: inline-block;
    margin: 4px;
    padding: 4px 10px;
    background: #f0f2f5;
    border-radius: 20px;
    text-decoration: none;
    color: #475569;
    font-size: 12px !important;
}
.tagcloud-3d a:hover {
    background: #5fb878;
    color: #fff;
}

/* ===== 广告位 ===== */
.widget-ad img {
    width: 100%;
    border-radius: 8px;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    background: #f8fafc;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
}
.breadcrumb a {
    color: #5fb878;
    text-decoration: none;
}
.breadcrumb i {
    margin: 0 5px;
    font-size: 12px;
}

/* ===== 分页 ===== */
.pagination {
    margin: 30px 0;
    text-align: center;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
}
.pagination .current {
    background: #5fb878;
    border-color: #5fb878;
    color: #fff;
}

/* ===== 单页/帖子详情 ===== */
.single-post {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #eef2f6;
}
.single-title {
    font-size: 26px;
    margin-bottom: 16px;
}
.post-meta-line {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eef2f6;
    color: #64748b;
    font-size: 13px;
}
.post-content {
    font-size: 16px;
    line-height: 1.7;
}
.post-content img {
    max-width: 100%;
    border-radius: 8px;
}

/* ===== 评论区域 ===== */
.comments-area {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #eef2f6;
}
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 10px 0;
}
.comment-form input[type="submit"] {
    background: #5fb878;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
}
.comment-list {
    list-style: none;
    margin-top: 20px;
}
.comment {
    border-bottom: 1px solid #f0f2f5;
    padding: 16px 0;
}
.comment-author {
    font-weight: 600;
    font-size: 14px;
}
.comment-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}
.comment-content {
    font-size: 14px;
    color: #334155;
}

/* ===== 底部 ===== */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 13px;
}
.site-footer a {
    color: #5fb878;
    text-decoration: none;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 12px 0;
    }
    .nav-menu {
        flex-wrap: wrap;
        gap: 20px;
    }
    .post-card {
        flex-direction: column;
    }
    .post-card .post-thumbnail {
        width: 100%;
        height: 160px;
        flex: 0 0 auto;
    }
    .single-post {
        padding: 20px;
    }
}
/* ===== 标签样式 ===== */

/* 文章页标签 */
.post-tags {
    margin: 25px 0 0;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-title {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.tag-link {
    display: inline-block;
    background: #f0f2f5;
    color: #475569;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-link:hover {
    background: #5fb878;
    color: #fff;
}

/* 文章列表中的标签 */
.post-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.post-tag-item {
    display: inline-block;
    background: #f0f2f5;
    color: #5fb878;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    text-decoration: none;
}

.post-tag-item:hover {
    background: #5fb878;
    color: #fff;
}

/* 标签归档页 */
.tag-archive-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.tag-archive-title {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-archive-title i {
    color: #5fb878;
    font-size: 22px;
}

.tag-archive-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

/* 热门标签云小工具 */
.hot-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hot-tag {
    display: inline-block;
    background: #f0f2f5;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.hot-tag:hover {
    background: #5fb878;
    color: #fff;
    transform: scale(1.05);
}

/* 标签云页面（可选） */
.tag-cloud-page {
    text-align: center;
    padding: 20px;
}

/* 无标签提示 */
.no-posts i.fa-tag {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}
/* 评论验证样式 */
.comment-verify-field {
    margin: 15px 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.comment-verify-field label {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.comment-verify-field input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 120px;
    font-size: 14px;
}

.comment-verify-field input:focus {
    outline: none;
    border-color: #5fb878;
    box-shadow: 0 0 0 2px rgba(95, 184, 120, 0.1);
}

/* 验证错误提示 */
.comment-verify-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
}
/* ===== 文章版权声明文本框样式 ===== */
.post-copyright-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-left: 5px solid #5fb878;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 30px 0;
    font-size: 13px;
    line-height: 1.8;
    color: #334155;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.post-copyright-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left-width: 6px;
}

.post-copyright-box a {
    color: #5fb878;
    text-decoration: none;
    border-bottom: 1px dotted #cbd5e1;
}

.post-copyright-box a:hover {
    color: #4aa368;
    border-bottom-color: #5fb878;
}

.post-copyright-box br {
    display: block;
    margin: 6px 0;
}

/* 文本框边框装饰效果 */
.post-copyright-box {
    position: relative;
}

.post-copyright-box:before {
    content: "📄";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #fff;
    padding: 0 8px;
    font-size: 14px;
    color: #5fb878;
}/* ===== 绿色主题版权声明文本框 ===== */
.post-copyright-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6d9 100%);
    border: 2px solid #5fb878;
    border-radius: 16px;
    padding: 22px 25px;
    margin: 35px 0;
    font-size: 13px;
    line-height: 1.9;
    color: #2d4a2d;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    box-shadow: 0 4px 15px rgba(95, 184, 120, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.post-copyright-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(95, 184, 120, 0.25);
    border-color: #4aa368;
}

/* 文本框顶部装饰条 */
.post-copyright-box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #5fb878, #c8e6d9, #5fb878);
    border-radius: 3px;
}

/* 文本框左上角图标 */
.post-copyright-box .copyright-icon {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #5fb878;
    color: #fff;
    font-size: 12px;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: normal;
}

/* 版权声明内部链接样式 */
.post-copyright-box a {
    color: #2e7d32;
    text-decoration: none;
    border-bottom: 1px dotted #81c784;
    font-weight: 500;
}

.post-copyright-box a:hover {
    color: #1b5e20;
    border-bottom-color: #2e7d32;
}

/* 版权声明内部行间距 */
.post-copyright-box br {
    display: block;
    margin: 5px 0;
    content: "";
}

/* 版权声明标题样式 */
.post-copyright-box strong {
    color: #2e7d32;
}

/* 响应式 */
@media (max-width: 640px) {
    .post-copyright-box {
        padding: 15px 18px;
        font-size: 12px;
    }
}
/* ===== 移动端侧边栏修复 ===== */

/* 确保移动端侧边栏正常显示 */
@media (max-width: 768px) {
    /* 侧边栏容器强制显示 */
    .sidebar-area,
    #secondary,
    .widget-area {
        display: block !important;
        width: 100% !important;
        margin-top: 30px;
        padding: 0;
    }
    
    /* 小工具在移动端的样式优化 */
    .widget {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .widget-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    /* 确保所有小工具内容可见 */
    .widget * {
        max-width: 100%;
        word-wrap: break-word;
    }
    
    /* 登录表单移动端优化 */
    .form-field input {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 关于作者、关于本站小工具优化 */
    .about-logo,
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    /* 标签云移动端优化 */
    .tagcloud-3d a {
        margin: 3px;
        padding: 3px 8px;
        font-size: 11px !important;
    }
    
    /* 推荐列表移动端优化 */
    .random-posts-list li a,
    .related-posts-list li a,
    .recommend-list li a {
        padding: 6px 0;
    }
}

/* 小屏幕设备额外优化 */
@media (max-width: 480px) {
    .sidebar-area {
        margin-top: 20px;
    }
    
    .widget {
        padding: 12px;
        border-radius: 10px;
    }
    
    .widget-title {
        font-size: 15px;
        padding-bottom: 10px;
    }
}
/* ===== 移动端界面优化 ===== */

/* 移动端隐藏侧边栏小工具 */
@media (max-width: 768px) {
    /* 隐藏侧边栏区域 */
    .sidebar-area {
        display: none !important;
    }
    
    /* 主内容区全宽显示 */
    .content-area {
        flex: 1 !important;
        width: 100%;
    }
    
    /* 调整底部间距，为底部导航留空间 */
    .main-wrapper {
        margin-bottom: 70px;
    }
    
    .site-footer {
        margin-bottom: 60px;
        padding: 20px 0;
    }
    
    /* 日记头部移动端样式 */
    .diary-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .diary-title {
        font-size: 24px;
    }
    
    .diary-subtitle {
        font-size: 12px;
    }
    
    /* 时间轴移动端优化 */
    .timeline {
        padding-left: 0;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        width: auto;
        margin-right: 0;
        margin-bottom: 10px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 8px 15px;
    }
    
    .date-day {
        font-size: 20px;
    }
    
    .date-month {
        font-size: 11px;
    }
    
    .timeline-year {
        padding-left: 15px;
    }
    
    .timeline-ad {
        margin: 20px 0;
    }
    
    /* 卡片样式优化 */
    .post-card {
        flex-direction: column;
        padding: 12px 15px;
    }
    
    .post-card .post-thumbnail {
        width: 100%;
        height: 160px;
        flex: 0 0 auto;
    }
    
    .post-title {
        font-size: 16px;
    }
    
/* 好物推荐网格移动端 - 两列布局 */
.haowu-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
}
    
    /* 分类网格移动端 */
    .category-post-list.layout-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .grid-thumbnail {
        height: 120px;
    }
    
    .grid-title {
        font-size: 13px;
    }
    
    /* 单页移动端 */
    .single-post,
    .single-diary {
        padding: 15px;
    }
    
    .single-title {
        font-size: 20px;
    }
    
    /* 广告位移动端 */
    .timeline-ad-content {
        padding: 10px;
    }
}
/* ===== 移动端内容向两边扩展 - 全面优化 ===== */

@media (max-width: 768px) {
    /* 1. 容器基础边距优化 - 让内容更贴近边缘 */
    .container {
        padding: 0 12px;
    }
    
    /* 2. 博客文章详情页 - 内容扩展 */
    .single-post {
        padding: 16px 14px;
        margin: 0;
        border-radius: 12px;
    }
    
    .single-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .post-meta-line {
        gap: 12px;
        font-size: 12px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    
    .post-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .post-content p {
        margin-bottom: 14px;
    }
    
    .post-content h2 {
        font-size: 18px;
        margin: 20px 0 12px;
    }
    
    .post-content h3 {
        font-size: 16px;
        margin: 16px 0 10px;
    }
    
    .post-content blockquote {
        padding: 10px 15px;
        margin: 16px 0;
    }
    
    /* 3. 朋友圈日记详情页 - 内容扩展 */
    .single-diary {
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .moments-detail {
        background: #fff;
        border-radius: 12px;
        padding: 16px 14px;
        border: 1px solid #eef2f6;
    }
    
    .moments-detail-header {
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .moments-detail-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .moments-detail-author {
        font-size: 15px;
    }
    
    .moments-detail-time {
        font-size: 11px;
    }
    
    .moments-detail-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .moments-detail-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .moments-detail-content p {
        margin-bottom: 12px;
    }
    
    /* 日记图片网格 */
    .moments-detail-images,
    .article-detail-images {
        gap: 6px;
        margin: 15px 0;
    }
    
    .detail-img {
        border-radius: 6px;
    }
    
    /* 日记统计 */
    .moments-detail-stats {
        gap: 25px;
        margin-top: 15px;
        padding-top: 12px;
    }
    
    /* 4. 好物详情页 - 内容扩展 */
    .single-haowu {
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .haowu-detail {
        background: #fff;
        border-radius: 12px;
        padding: 16px 14px;
        border: 1px solid #eef2f6;
        margin-bottom: 15px;
    }
    
    .haowu-detail-image {
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .haowu-detail-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .haowu-detail-reason {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .haowu-detail-reason p {
        font-size: 14px;
    }
    
    .haowu-detail-price {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .price-coupon {
        font-size: 20px;
    }
    
    .haowu-detail-buttons {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .haowu-detail-buy-btn,
    .haowu-detail-copy-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .haowu-detail-content {
        background: #fff;
        border-radius: 12px;
        padding: 16px 14px;
        border: 1px solid #eef2f6;
        margin-top: 0;
    }
    
    .haowu-detail-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .haowu-content {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* 5. 评论区域 - 内容扩展 */
    .comments-area {
        padding: 16px 14px;
        margin-top: 15px;
        border-radius: 12px;
    }
    
    .comments-area h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .comment-form textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .comment-form input[type="text"] {
        padding: 10px;
        font-size: 14px;
    }
    
    .comment-list {
        margin-top: 15px;
    }
    
    .comment {
        padding: 12px 0;
    }
    
    .comment-author {
        font-size: 13px;
    }
    
    .comment-content {
        font-size: 13px;
    }
    
    /* 6. 版权声明框 - 内容扩展 */
    .post-copyright-box {
        padding: 12px 14px;
        margin: 20px 0;
        font-size: 12px;
        line-height: 1.7;
    }
    
    /* 7. 文章标签 - 内容扩展 */
    .post-tags {
        margin: 20px 0 0;
        padding-top: 15px;
        gap: 8px;
    }
    
    .tag-link {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    /* 8. 面包屑导航 - 内容扩展 */
    .breadcrumb {
        padding: 8px 12px;
        margin-bottom: 15px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    /* 9. 分页组件 - 内容扩展 */
    .pagination {
        margin: 20px 0;
    }
    
    .pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
        margin: 0 3px;
    }
    
    /* 10. 广告位 - 内容扩展 */
    .timeline-ad-content {
        padding: 10px;
    }
    
    .moments-ad {
        padding: 10px;
        margin: 12px 0;
    }
}

/* 更小屏幕设备 (宽度小于480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .single-post,
    .moments-detail,
    .haowu-detail,
    .haowu-detail-content,
    .comments-area {
        padding: 14px 12px;
    }
    
    .single-title {
        font-size: 18px;
    }
    
    .moments-detail-title {
        font-size: 17px;
    }
    
    .haowu-detail-title {
        font-size: 17px;
    }
    
    .post-content {
        font-size: 14px;
    }
    
    .moments-detail-content {
        font-size: 14px;
    }
    
    .haowu-content {
        font-size: 13px;
    }
}
/* ===== 移动端内容贴近屏幕边缘 - 全面优化 ===== */

@media (max-width: 768px) {
    /* 1. 主容器 - 减少左右边距，让内容贴近边缘 */
    .container {
        padding: 0 10px !important;
        max-width: 100%;
    }
    
    /* 2. 主内容区 - 去除多余边距 */
    .main-wrapper {
        margin: 15px 0 !important;
        gap: 15px;
    }
    
    .content-area {
        padding: 0;
        width: 100%;
    }
    
    /* 3. 博客文章详情页 - 边框贴近手机边缘 */
    .single-post {
        padding: 15px 12px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 4. 朋友圈日记详情页 - 边框贴近手机边缘 */
    .single-diary {
        padding: 0 !important;
        background: transparent;
    }
    
    .moments-detail {
        padding: 15px 12px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 5. 好物详情页 - 边框贴近手机边缘 */
    .single-haowu {
        padding: 0 !important;
    }
    
    .haowu-detail {
        padding: 15px 12px !important;
        margin: 0 0 10px 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .haowu-detail-content {
        padding: 15px 12px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 6. 评论区域 - 边框贴近手机边缘 */
    .comments-area {
        padding: 15px 12px !important;
        margin: 10px 0 0 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 7. 文章列表卡片 - 边框贴近手机边缘 */
    .post-card {
        padding: 12px 12px !important;
        margin: 0 0 10px 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 8. 日记时间轴 - 边框贴近手机边缘 */
    .timeline-content {
        padding: 15px 12px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .timeline-date {
        margin-left: 12px !important;
    }
    
    .timeline-year {
        padding-left: 12px !important;
    }
    
    .timeline-ad {
        margin: 15px 0 !important;
    }
    
    .timeline-ad-content {
        padding: 12px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 9. 分类页面网格卡片 - 边框贴近手机边缘 */
    .grid-card {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .category-post-list.layout-grid {
        gap: 10px;
    }
    
    /* 10. 好物推荐网格 - 边框贴近手机边缘 */
    .haowu-grid-item {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 11. 侧边栏小工具 - 边框贴近手机边缘 */
    .widget {
        padding: 15px 12px !important;
        margin: 0 0 10px 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 12. 面包屑导航 - 边框贴近手机边缘 */
    .breadcrumb {
        padding: 10px 12px !important;
        margin: 0 0 15px 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* 13. 分页组件 */
    .pagination {
        margin: 20px 0 !important;
        padding: 0 12px;
    }
    
    /* 14. 头部导航 - 边框贴近手机边缘 */
    .site-header {
        border-radius: 0 !important;
    }
    
    .header-inner {
        padding: 10px 12px !important;
    }
    
    /* 15. 底部边距调整 */
    .site-footer {
        margin: 20px 0 60px 0 !important;
        padding: 20px 12px !important;
        border-radius: 0 !important;
    }
}

/* 超小屏幕 (宽度小于480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 8px !important;
    }
    
    .single-post,
    .moments-detail,
    .haowu-detail,
    .haowu-detail-content,
    .comments-area,
    .post-card,
    .timeline-content,
    .widget {
        padding: 12px 10px !important;
    }
    
    .post-title {
        font-size: 15px;
    }
    
    .single-title {
        font-size: 18px;
    }
    
    .moments-detail-title {
        font-size: 17px;
    }
}

/* 确保所有内容元素不溢出 */
* {
    max-width: 100%;
    box-sizing: border-box;
}

img, iframe, video, embed {
    max-width: 100%;
    height: auto;
}

/* 防止内容溢出 */
.post-content,
.moments-detail-content,
.haowu-content {
    overflow-x: hidden;
    word-wrap: break-word;
}

/* 表格和代码块适配 */
pre, code, table {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
/* 侧边栏「日记列表」小工具样式 */
.widget-diary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-diary-list .diary-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.widget-diary-list .diary-item:last-child {
    border-bottom: none;
}

.widget-diary-list .diary-avatar {
    flex-shrink: 0;
}

.widget-diary-list .diary-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.widget-diary-list .diary-content {
    flex: 1;
}

.widget-diary-list .diary-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.widget-diary-list .diary-title:hover {
    color: #5fb878;
}

.widget-diary-list .diary-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.widget-diary-list .diary-meta i {
    margin-right: 2px;
    font-size: 10px;
}

.widget-diary-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
    text-align: center;
}

.widget-diary-footer .view-all {
    font-size: 13px;
    color: #5fb878;
    text-decoration: none;
}

.widget-diary-footer .view-all:hover {
    text-decoration: underline;
}

.widget-diary-footer .view-all i {
    margin-left: 4px;
    font-size: 11px;
}
/* ===== 彩色卡片样式 ===== */

/* 1. 渐变背景卡片 */
.timeline-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* 2. 绿色主题卡片（置顶/推荐） */
.timeline-content.featured {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6d9 100%);
    border-left: 4px solid #5fb878;
}

/* 3. 蓝色主题卡片 */
.timeline-content.blue-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
}

/* 4. 橙色主题卡片 */
.timeline-content.orange-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
}

/* 5. 紫色主题卡片 */
.timeline-content.purple-card {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-left: 4px solid #9c27b0;
}

/* 6. 粉色主题卡片 */
.timeline-content.pink-card {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-left: 4px solid #e91e63;
}

/* 7. 独立彩色卡片（用于插入广告或推荐） */
.color-card-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.color-card-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.color-card-item h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.color-card-item p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
}

.color-card-item .card-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.color-card-item .card-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(5px);
}

/* 8. 日记卡片悬浮效果增强 */
.timeline-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
/* ===== 田字格通用样式 ===== */
.widget-tianzi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tianzi-item {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.tianzi-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tianzi-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

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

.tianzi-link:hover img {
    transform: scale(1.05);
}

/* 占位符样式 - 电子文档 */
.tianzi-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6d9 100%);
    color: #5fb878;
    font-size: 32px;
}

/* 占位符样式 - 好物推荐 */
.tianzi-placeholder-haowu {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    color: #ef4444;
}

/* 占位符样式 - 电影推荐 */
.tianzi-placeholder-movie {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,0.9);
}

/* 空位样式（没有数据时显示） */
.tianzi-empty {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .widget-tianzi-grid {
        gap: 8px;
    }
    .tianzi-item {
        border-radius: 8px;
    }
    .tianzi-placeholder i {
        font-size: 24px;
    }
}
/* ===== 书籍网格小工具样式 ===== */
/* 书籍网格布局 - 2x2 显示4本 */
.book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 10px 0;
}

.book-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card a {
    text-decoration: none;
}

/* 封面样式 - 统一尺寸 */
.book-cover {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    font-size: 32px;
    color: #5fb878;
}

/* 书名样式 - 居中，使用主题默认颜色 */
.book-title {
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .book-grid {
        gap: 12px;
    }
    .book-cover {
        height: 120px;
    }
    .book-title {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .book-cover {
        height: 100px;
    }
}/* ===== 新版导航样式 ===== */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo 区域 */
.logo-area {
    flex-shrink: 0;
}

.logo-area .custom-logo {
    max-height: 40px;
    width: auto;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #1e293b;
    letter-spacing: -0.5px;
}

/* 导航菜单 - 居中或右对齐 */
.nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-menu > li > a:hover {
    color: #5fb878;
    background: #f0fdf4;
}

.nav-menu > .current-menu-item > a,
.nav-menu > .current_page_item > a {
    color: #5fb878;
    background: #f0fdf4;
}

/* 下拉菜单 */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 8px 0;
    margin: 8px 0 0 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
    border: 1px solid #eef2f6;
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-menu .sub-menu li a:hover {
    background: #f8fafc;
    color: #5fb878;
}

/* 有下拉菜单的箭头 */
.nav-menu .menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* 右侧操作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* 搜索按钮和下拉框 */
.header-search {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #334155;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.search-toggle:hover {
    color: #5fb878;
    background: #f0fdf4;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
    border: 1px solid #eef2f6;
    margin-top: 8px;
}

.header-search:hover .search-dropdown,
.search-toggle:focus + .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown .search-form {
    display: flex;
    gap: 8px;
}

.search-dropdown .search-field {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.search-dropdown .search-field:focus {
    border-color: #5fb878;
}

.search-dropdown .search-submit {
    background: #5fb878;
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}

.user-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.2s;
}

.user-toggle:hover img {
    transform: scale(1.05);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
    border: 1px solid #eef2f6;
    margin-top: 8px;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.user-dropdown-menu a i {
    width: 20px;
    color: #94a3b8;
}

.user-dropdown-menu a:hover {
    background: #f8fafc;
    color: #5fb878;
}

.user-dropdown-menu a:hover i {
    color: #5fb878;
}

/* 登录按钮 */
.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #5fb878;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.login-btn:hover {
    background: #4aa368;
    transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: all 0.3s;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header-inner {
        padding: 10px 16px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 70px 20px 20px;
        justify-content: flex-start;
    }
    
    .nav-wrapper.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 12px 0;
        display: block;
    }
    
    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding-left: 20px;
        background: #f8fafc;
        border-radius: 8px;
        margin-top: 5px;
        width: 100%;
    }
    
    .nav-menu .sub-menu.show {
        display: block;
    }
    
    .header-actions {
        order: 2;
    }
    
    .logo-area {
        flex: 1;
    }
}
/* 点赞、转发按钮样式 */
.diary-stats span {
    cursor: pointer;
    transition: color 0.2s;
}
.diary-stats span:hover {
    color: #5fb878;
}
.like-btn.liked {
    color: #e74c3c;
}
.like-btn.liked i {
    color: #e74c3c;
}
/* 让页面模板中的标题居中 */
.single-title {
    text-align: center;
}
.tianzi-item {
    text-align: center;
}
.tianzi-link {
    display: block;
    text-decoration: none;
}
.tianzi-title {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    word-break: break-word;
}
.tianzi-placeholder {
    background: #f5f5f5;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tianzi-empty {
    background: #f9f9f9;
    border: 1px dashed #ccc;
}
.tianzi-title {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    word-break: break-word;
}
.tianzi-title {
    display: block !important;
    color: #000 !important;
    background: #fff !important;
    font-size: 14px !important;
    text-align: center !important;
}
/* 电影网格区域 */
.movie-grid-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 0;
    margin-bottom: 30px;
    border: 1px solid #eef2f6;
}

/* 标题样式 */
.movie-grid-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #5fb878;
    display: inline-block;
}
.movie-grid-title i {
    color: #5fb878;
    margin-right: 8px;
}

/* 网格布局：每行4个，自动换行 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 单个电影卡片 */
.movie-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.movie-card-link {
    text-decoration: none;
    display: block;
    padding: 12px;
}

/* 电影海报区域（保持2:3比例） */
.movie-poster {
    aspect-ratio: 2 / 3;
    background: #f0f2f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.movie-no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #cbd5e1;
    font-size: 36px;
}

/* 电影标题 */
.movie-title {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 评分 */
.movie-rating {
    font-size: 13px;
    color: #f5a623;
    display: flex;
    align-items: center;
    gap: 4px;
}
.movie-rating i {
    color: #f5a623;
}

/* 响应式：平板（≤1024px）每行3个 */
@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* 手机（≤768px）每行2个 */
@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .movie-grid-title {
        font-size: 20px;
    }
    .movie-title {
        font-size: 13px;
    }
}

/* 超小屏（≤480px）保持每行2个，适当缩小间隙 */
@media (max-width: 480px) {
    .movie-grid {
        gap: 12px;
    }
    .movie-card-link {
        padding: 8px;
    }
}