/*
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;
    }
}