/* 论坛主体样式 */
.forum-container {
    padding: 40px 0;
    margin-top: 80px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 80px - 200px);
}

/* 顶部操作栏 */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background: #DE2910;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background: #c62410;
}

.post-btn {
    padding: 10px 25px;
    background: #FFD700;
    color: #333;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-btn:hover {
    background: #ffd900;
}

/* 分类导航 */
.forum-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.forum-nav a {
    color: #666;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.forum-nav a:hover,
.forum-nav a.active {
    background: #DE2910;
    color: white;
}

/* 帖子列表样式 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.post-item:hover {
    transform: translateY(-2px);
}

.post-item.pinned {
    border: 2px solid #FFD700;
}

.post-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #FFD700;
    color: #333;
    font-size: 12px;
    border-radius: 4px;
    margin: 10px;
}

.post-content {
    padding: 20px;
}

.post-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.info-right {
    flex: 1;
}

.post-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.post-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.post-summary {
    color: #666;
    margin-bottom: 15px;
}

.post-images {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.post-images img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.post-stats {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.answer-count {
    color: #DE2910;
    font-weight: bold;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #DE2910;
    color: white;
    border-color: #DE2910;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .forum-header {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        max-width: 100%;
    }

    .post-btn {
        width: 100%;
    }

    .forum-nav {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .post-images {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .post-stats {
        flex-wrap: wrap;
    }
} 