/* 社区动态页面样式 */

/* 页面容器 */
.moments-page {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 32px 0;
}

.moments-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
}

/* 左侧边栏 */
.moments-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.publish-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.publish-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.publish-box textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.publish-box textarea:focus {
    outline: none;
    border-color: #0066FF;
}

.publish-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.char-count {
    font-size: 13px;
    color: #9ca3af;
}

.upload-btn {
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: #f3f4f6;
    color: #0066FF;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.image-preview img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

/* 热门话题 */
.hot-topics {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hot-topics h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.hot-topics ul {
    list-style: none;
}

.hot-topics li {
    margin-bottom: 12px;
}

.hot-topics a {
    color: #0066FF;
    font-size: 14px;
    text-decoration: none;
}

.hot-topics a:hover {
    text-decoration: underline;
}

/* 右侧主内容 */
.moments-main {
    flex: 1;
    min-width: 0;
}

.moments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.moments-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #0066FF;
    color: #0066FF;
}

.tab-btn.active {
    background: #0066FF;
    color: white;
    border-color: #0066FF;
}

/* 动态列表 */
.moments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state p {
    color: #6b7280;
    font-size: 16px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 32px 0;
}

/* 响应式 */
@media (max-width: 1024px) {
    .moments-container {
        flex-direction: column;
    }
    
    .moments-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .moments-page {
        padding: 20px 0;
    }
    
    .moments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
