/* 社区主要样式 */
.community-main {
    margin-top: 70px;
    padding: 40px 0;
    background: #f8f8f8;
    min-height: calc(100vh - 140px);
}

.community-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 社区顶部样式 */
.community-header {
    text-align: center;
    margin-bottom: 40px;
}

.community-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.community-header p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.btn-post {
    padding: 12px 30px;
    background: #c41230;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

/* 主要内容区样式 */
.community-content {
    display: flex;
    gap: 30px;
}

.content-main {
    flex: 1;
}

.content-sidebar {
    width: 300px;
}

/* 分类导航样式 */
.category-nav {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.category-nav a {
    text-decoration: none;
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.category-nav a:hover,
.category-nav a.active {
    background: #c41230;
    color: #fff;
}

/* 帖子列表样式 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 12px;
    color: #999;
}

.post-category {
    padding: 4px 12px;
    background: #f8f8f8;
    border-radius: 15px;
    color: #666;
    font-size: 12px;
}

.post-content h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.post-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-images {
    margin-bottom: 15px;
}

.post-images img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.post-stats {
    display: flex;
    gap: 20px;
}

.post-stats span {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-share {
    padding: 6px 15px;
    background: #fff;
    border: 1px solid #c41230;
    color: #c41230;
    border-radius: 4px;
    cursor: pointer;
}

/* 侧边栏样式 */
.hot-topics,
.active-users {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hot-topics h2,
.active-users h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    text-decoration: none;
}

.topic-tag {
    color: #333;
    font-size: 14px;
}

.topic-count {
    color: #999;
    font-size: 12px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.user-info p {
    font-size: 12px;
    color: #999;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .community-content {
        flex-direction: column;
    }
    
    .content-sidebar {
        width: 100%;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
} 