/* ========== 主页专属样式 ========== */

/* 内容区布局 */
.content-layout {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-6) 0;
}

.content-main {
    flex: 1;
    min-width: 0;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: var(--space-2);
}

.filter-tab {
    padding: var(--space-2) var(--space-4);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.filter-tab.active {
    color: var(--accent-primary);
    background-color: var(--accent-light);
}

.filter-search {
    margin-left: auto;
    width: 240px;
}

/* 帖子列表 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--text-muted);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: var(--space-6);
}

.load-more-btn {
    padding: var(--space-3) var(--space-8);
}

/* 发布按钮浮动 */
.fab {
    position: fixed;
    right: var(--space-6);
    bottom: var(--space-6);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--pz-purple-500), var(--pz-purple-700));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 100;
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* 公告栏 */
.notice-bar {
    background: linear-gradient(90deg, var(--pz-red-50), var(--pz-red-100));
    border-left: 4px solid var(--pz-red-500);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.notice-bar-icon {
    color: var(--pz-red-500);
    flex-shrink: 0;
}

.notice-bar-content {
    flex: 1;
    font-size: 14px;
    color: var(--pz-red-700);
}

/* 热门话题 */
.hot-topics {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.hot-topic-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

.hot-topic-item:hover {
    background-color: var(--bg-secondary);
}

.hot-topic-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.hot-topic-rank.top3 {
    background: linear-gradient(135deg, var(--pz-red-500), var(--pz-red-600));
    color: white;
}

.hot-topic-rank.normal {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
}

.hot-topic-title {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-topic-heat {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* 活跃用户 */
.active-users {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.active-user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: var(--radius-full);
    background-color: var(--bg-secondary);
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

.active-user:hover {
    background-color: var(--border-color);
}

.active-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--pz-purple-400), var(--pz-purple-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.active-user-name {
    font-size: 13px;
    color: var(--text-secondary);
    padding-right: var(--space-2);
}

/* 页脚 */
.footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-8) 0;
    margin-top: var(--space-8);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 1024px) {
    .content-layout {
        flex-direction: column;
    }

    .filter-search {
        width: 100%;
        margin-left: 0;
        margin-top: var(--space-3);
    }

    .filter-bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .fab {
        right: var(--space-4);
        bottom: var(--space-4);
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }
}
