/**
 * Moedes 论坛核心样式
 * 专注于论坛布局和基础样式
 */

/* ============================================
   论坛头部样式
   ============================================ */

.forum-header.blur-header,
.forum-header {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 12px;
    margin: 0 0 8px 0;
    position: relative;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 移除背景遮罩和模糊效果 */
.forum-header .abs-blur-bg,
.forum-header .forum-mask {
    display: none;
}

/* 中间容器透明化 */
.forum-header .header-content {
    display: contents;
}

/* 上栏：图片、标题、统计数据 */
.forum-header .flex.ac {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0 0 2px 0;
    position: relative;
}

/* 图片区域 */
.forum-header .plate-thumb {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.forum-header .plate-thumb:hover {
    transform: scale(1.02);
}

.forum-header .plate-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 信息区域 */
.forum-header .item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85px;
    height: auto;
    position: relative;
}

/* 标题行 */
.forum-header .title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 0;
}

.forum-header .forum-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.forum-header .forum-title a {
    color: #000;
    text-decoration: none;
}

.forum-header .forum-title a:hover {
    color: #ff9800;
}

/* 标签样式 */
.forum-header .badg {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 2px 8px;
    font-size: 12px;
    text-decoration: none;
}

/* 统计数据行 */
.forum-header .px12-sm.mt10 {
    display: flex;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.forum-header .mate-posts,
.forum-header .mate-reply,
.forum-header .mate-views,
.forum-header .mate-follow {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.forum-header .mate-posts {
    background: #fff3e0;
    border: 1px solid #ff9800;
    color: #ff9800;
}

.forum-header .mate-follow {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    color: #2196f3;
}

.forum-header .mate-reply {
    background: #f3e5f5;
    border: 1px solid #9c27b0;
    color: #9c27b0;
}

.forum-header .mate-views {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #4caf50;
}

/* 中间虚线分隔 */
.forum-header .item-info::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin: 10px 0;
    border-style: dashed;
    border-width: 1px 0 0 0;
    border-color: #bbb;
    opacity: 0.5;
}

/* 社团说明区域 */
.forum-header .desc-container {
    display: flex;
    align-items: center;
    order: 3;
    margin: 2px 0 0 0;
    width: 100%;
    min-height: 32px;
}

.forum-header .desc {
    background: none;
    border: none;
    padding: 4px 0;
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
    display: flex;
    align-items: center;
    width: 100%;
    padding-left: 10px;
}

.forum-header .desc::before {
    content: "社团说明";
    display: inline-block;
    color: #ff6b6b;
    font-weight: 600;
    font-size: 12px;
    margin-right: 6px;
    background: #fff;
    padding: 2px 4px;
    border: 1px solid #ff6b6b;
}

/* ============================================
   论坛视图样式
   ============================================ */

/* 详细视图样式 */
html body.forum-view-detail .forum-posts,
html body.forum-view-detail .bbs-post-item {
    background: #ffffff;
    background-color: #ffffff;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    display: block;
    flex-direction: column;
}

html body.forum-view-detail .forum-posts:hover,
html body.forum-view-detail .bbs-post-item:hover {
    background: #f8f9fa;
    background-color: #f8f9fa;
}

/* 简约视图样式 */
html body.forum-view-mini .forum-posts,
html body.forum-view-mini .bbs-post-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    flex-direction: row;
}

/* 头部顶部样式 */
.forum-header-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 0;
    text-align: center;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.forum-header-top .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.forum-header-top h1 {
    margin: 0;
    font-size: 24px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}