/**
 * 论坛页面专用样式
 * 与Modown主题协调的样式
 */

/* 论坛主容器 */
.wp-forum-container {
    width: 100%;
}

/* 论坛头部样式 */
.wp-forum-header {
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 70px;
}

/* 论坛主内容区域 */
.wp-forum-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 左侧边栏 */
.wp-forum-sidebar {
    flex: 0 0 250px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
}

/* 中间内容区域 */
.wp-forum-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    min-height: 500px;
}

/* 右侧小工具 */
.wp-forum-widgets {
    flex: 0 0 300px;
    background: #f8f9fa;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wp-forum-page-container {
        padding: 10px;
    }
    
    .wp-forum-main {
        flex-direction: column;
        gap: 15px;
    }
    
    .wp-forum-sidebar,
    .wp-forum-widgets {
        flex: none;
        width: 100%;
        position: static;
    }
}

/* 与Modown主题的兼容性样式 */
/* 确保论坛内容在主题容器中正确显示 */
.wp-forum-container .content {
    padding: 0;
}

.wp-forum-container .content-wrap {
    margin: 0;
}

/* 论坛消息样式 */
.forum-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.forum-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.forum-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.forum-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* 按钮样式与主题协调 */
.wp-forum-page-container .btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wp-forum-page-container .btn-primary {
    background: #007bff;
    color: #fff;
}

.wp-forum-page-container .btn-primary:hover {
    background: #0056b3;
}

.wp-forum-page-container .btn-outline {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
}

.wp-forum-page-container .btn-outline:hover {
    background: #007bff;
    color: #fff;
}

/* 分类列表样式 */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 8px;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.categories-list li a:hover {
    background: #e9ecef;
}

.categories-list li.active a {
    background: #007bff;
    color: #fff;
}

.post-count {
    background: #6c757d;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.categories-list li.active .post-count {
    background: rgba(255, 255, 255, 0.3);
}

/* 小工具样式 */
.widget {
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: #333;
}

.hot-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-post-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.hot-post-item:last-child {
    border-bottom: none;
}

.hot-post-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

.hot-post-item a:hover {
    color: #007bff;
}

.post-stats-mini {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.post-stats-mini span {
    margin-right: 10px;
}

/* 服务商小工具样式 */
.providers-list {
    display: flex;
    flex-direction: column;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.provider-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.provider-image {
    flex: 0 0 33.33%;
    max-width: 70px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.provider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-content {
    flex: 1;
    min-width: 0;
}

.provider-name {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.provider-name a {
    color: #333;
    text-decoration: none;
}

.provider-name a:hover {
    color: #007bff;
}

.provider-desc {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
} 