/* 整体容器 */
.community-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

/* 二级导航 */
.community-container .sub-nav {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.community-container .sub-nav-item {
    font-size: 12px;
    color: #4e5969;
    text-decoration: none;
    position: relative;
    padding: 2px 0;
}

.community-container .sub-nav-item.active {
    color: #1677ff;
    font-weight: 500;
}

.community-container .sub-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1677ff;
}

.community-container .sub-nav-item:hover {
    color: #1677ff;
}

/* 原有的导航标签样式位置调整 */
.community-container .community-nav {
    margin-bottom: 24px;
    padding: 8px 0;
    background: #f7f8fa;
    border-radius: 4px;
    display: flex;
    gap: 16px;
}

.community-container .nav-item {
    font-size: 12px;
    color: #4e5969;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.community-container .nav-item:hover {
    color: #1677ff;
    background: #f0f7ff;
}

.community-container .nav-item.active {
    color: #1677ff;
    font-weight: 500;
}

.community-container .nav-item.hot {
    color: #1677ff;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-item {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    color: #86909c;
    font-size: 14px;
}

.article-link {
    text-decoration: none;
    display: block;
}

.article-title {
    font-size: 16px;
    color: #1f2329;
    margin: 0 0 8px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s;
}

.article-link:hover .article-title {
    color: #1677ff;
}

.article-desc {
    font-size: 14px;
    color: #4e5969;
    margin: 0 0 12px;
    line-height: 1.6;
}

.article-stats {
    display: flex;
    gap: 24px;
    color: #86909c;
    font-size: 14px;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-stats i {
    font-size: 14px;
}

.tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: #f7f8fa;
    color: #4e5969;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.type {
    color: #1677ff;
}

.article-image {
    width: 200px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        margin-top: 16px;
    }

    .article-content {
        margin-right: 0;
    }
}


/* 发布需求按钮样式 */
.publish-btn {
    margin-left: auto;
    padding: 6px 16px;
    background: #1677ff;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s;
}

.publish-btn:hover {
    background: #0958d9;
}

.publish-btn i {
    font-size: 12px;
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e6eb;
    background: #fff;
    border-radius: 4px;
    color: #4e5969;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    color: #1677ff;
    border-color: #1677ff;
}

.page-btn:disabled {
    background: #f7f8fa;
    color: #c9cdd4;
    cursor: not-allowed;
}

.page-btn.active {
    background: #1677ff;
    color: #fff;
    border-color: #1677ff;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    color: #4e5969;
    font-size: 14px;
}

.page-input {
    width: 50px;
    height: 32px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    padding: 0 8px;
    text-align: center;
}

.page-input:focus {
    border-color: #1677ff;
    outline: none;
}

.page-btn.confirm {
    background: #1677ff;
    color: #fff;
    border-color: #1677ff;
}

.page-btn.confirm:hover {
    background: #0958d9;
}