.forum-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.forum-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-banner h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 2.5rem;
}

.forum-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

/* 侧边栏样式 */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-panel {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.login-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background: #2980b9;
}

.forum-nav {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.forum-nav h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c3e50;
}

.forum-nav ul {
    list-style: none;
    padding: 0;
}

.forum-nav a {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.forum-nav a:hover,
.forum-nav a.active {
    color: #3498db;
}

/* 主要内容区域样式 */
.forum-main {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-tools {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.new-post-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.new-post-btn:hover {
    background: #2980b9;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.search-box button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background: #34495e;
}

/* 帖子列表样式 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.post-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.post-details {
    font-size: 0.9rem;
    color: #666;
}

.post-details span {
    margin-right: 1rem;
}

.post-preview {
    color: #666;
    line-height: 1.6;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
} 