/*
Theme Name: WP Zibll V57
Theme URI: https://example.com
Description: 57版：修复函数重复定义报错，包含独立后台、批量采集、代理池、UI美化全套功能。
Author: Gemini
Author URI: https://example.com
Version: 57.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zibll
*/

/* 主题样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* 3栏布局样式 */
#page {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

/* 左侧边栏 */
#left-sidebar {
    width: 200px;
    padding: 15px;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    margin-right: 20px;
}

/* 中间主内容区 */
#primary {
    flex: 1;
    min-width: 500px;
}

/* 右侧边栏 */
#secondary {
    width: 250px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 1px solid #e9ecef;
    margin-left: 20px;
}

/* 论坛帖子列表样式 */
article {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

article:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.entry-header {
    margin-bottom: 10px;
}

.entry-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.entry-title a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.entry-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.entry-meta {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

.entry-content {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #495057;
}

.entry-footer {
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 帖子统计信息 */
.post-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 侧边栏样式 */
.widget {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* 导航菜单样式 */
.main-navigation {
    background-color: #343a40;
    padding: 0;
}

.menu-toggle {
    display: none;
}

#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu li {
    margin: 0;
}

#primary-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#primary-menu a:hover {
    background-color: #495057;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    #left-sidebar {
        width: 180px;
    }
    
    #secondary {
        width: 220px;
    }
    
    #primary {
        min-width: 400px;
    }
}

@media (max-width: 768px) {
    #content {
        flex-direction: column;
    }
    
    #left-sidebar,
    #secondary {
        width: 100%;
        margin: 0 0 20px 0;
        border: 1px solid #e9ecef;
    }
    
    #primary {
        min-width: 100%;
    }
    
    /* 移动端菜单 */
    .menu-toggle {
        display: block;
        background-color: #343a40;
        color: #fff;
        border: none;
        padding: 15px;
        width: 100%;
        text-align: left;
        cursor: pointer;
    }
    
    #primary-menu {
        display: none;
        flex-direction: column;
    }
    
    #primary-menu.toggled {
        display: flex;
    }
}

/* 分页样式 */
.nav-links {
    margin-top: 30px;
    text-align: center;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.nav-links .current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 页脚样式 */
.site-footer {
    background-color: #343a40;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-top: 30px;
}

.site-info {
    font-size: 14px;
}

.site-info a {
    color: #007bff;
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}