/* 论坛公共样式 */
.forum-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 列表样式 */
.forum-section .list-group-item {
    border-color: #f0f0f0;
    transition: all 0.2s;
}

.forum-section .list-group-item:hover {
    background-color: #f8f9fa;
}

/* 论坛列表短代码样式 */
.forum-list-shortcode .list-group-item {
    border-left: 3px solid #0d6efd;
}

/* 新主题表单样式 */
.forum-new-topic-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.forum-new-topic-form .wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 主题详情页样式 */
.forum-single .forum-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.forum-single .forum-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.forum-single .forum-content {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.forum-single .comments-title {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* 适配OneNav主题的样式 */
.forum-section h3,
.forum-new-topic-form h3 {
    color: var(--text-color);
    margin-top: 0;
}

.forum-section .alert-info,
.forum-new-topic-form .alert-info {
    background-color: var(--light-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

@media (max-width: 768px) {
    .forum-section,
    .forum-new-topic-form {
        padding: 1rem;
    }
    
    .d-flex {
        flex-direction: column;
    }
    
    .d-flex .ms-auto {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}
