/**
 * 灵动积木 - 论坛样式
 */

/* 论坛头部 */
.forum-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.forum-header h1 {
    font-size: 42px;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.forum-header p {
    font-size: 18px;
    opacity: 0.9;
}

.forum-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 论坛内容布局 */
.forum-content {
    padding: 40px 0;
    background: #f7fafc;
}

.forum-content .container {
    display: flex;
    gap: 30px;
}

/* 侧边栏 */
.forum-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.forum-sidebar h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1a202c;
}

.forum-nav {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    list-style: none;
    margin: 0;
}

.forum-nav li {
    margin: 0;
}

.forum-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 15px;
}

.forum-nav a:hover {
    background: #f7fafc;
    color: #667eea;
}

.forum-nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.post-count {
    font-size: 13px;
    opacity: 0.7;
}

.forum-notice {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.forum-notice h4 {
    font-size: 16px;
    margin: 0 0 12px 0;
    color: #1a202c;
}

.forum-notice p {
    margin: 0 0 12px 0;
    color: #4a5568;
    font-size: 14px;
}

.forum-notice a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.forum-notice a:hover {
    text-decoration: underline;
}

/* 主内容区 */
.forum-main {
    flex: 1;
    min-width: 0;
}

.forum-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.forum-search {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.forum-search:focus {
    outline: none;
    border-color: #667eea;
}

/* 帖子列表 */
.thread-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.thread-item {
    padding: 20px 24px;
    border-bottom: 1px solid #f7fafc;
    transition: background 0.3s;
    position: relative;
}

.thread-item:hover {
    background: #f7fafc;
}

.thread-item:last-child {
    border-bottom: none;
}

.thread-item.pinned {
    background: #fffaf0;
}

.thread-item.hot {
    background: #fff5f7;
}

.thread-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.thread-item.pinned .thread-badge {
    background: #fef5e7;
    color: #d68910;
}

.thread-item.hot .thread-badge {
    background: #fdedec;
    color: #e74c3c;
}

.thread-badge.essence {
    background: #ebf8ff;
    color: #3182ce;
}

.thread-title {
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.thread-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s;
}

.thread-title a:hover {
    color: #667eea;
}

.thread-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #718096;
    font-size: 13px;
}

.thread-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.thread-category {
    padding: 2px 8px;
    background: #f7fafc;
    border-radius: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #4a5568;
}

.page-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.page-ellipsis {
    padding: 8px 16px;
    color: #a0aec0;
}

/* 加载和空状态 */
.loading,
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
    font-size: 15px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .forum-content .container {
        flex-direction: column;
    }
    
    .forum-sidebar {
        width: 100%;
    }
    
    .forum-stats {
        gap: 30px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .forum-header h1 {
        font-size: 32px;
    }
    
    .thread-meta {
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    .forum-header {
        padding: 40px 0;
    }
    
    .forum-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .thread-title {
        font-size: 16px;
    }
}
