/* 整体容器 */
.needs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

/* 二级导航 */
.needs-container .sub-nav {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.needs-container .sub-nav-item {
    font-size: 12px;
    color: #4e5969;
    text-decoration: none;
    position: relative;
    padding: 2px 0;
}

.needs-container .sub-nav-item.active {
    color: #1677ff;
    font-weight: 500;
}

.needs-container .sub-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1677ff;
}

/* 导航标签 */
.needs-container .needs-nav {
    margin-bottom: 24px;
    padding: 8px 0;
    background: #f7f8fa;
    border-radius: 4px;
    display: flex;
    gap: 16px;
}

.needs-container .nav-item {
    font-size: 12px;
    color: #4e5969;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.needs-container .nav-item:hover {
    color: #1677ff;
    background: #f0f7ff;
}

.needs-container .nav-item.active {
    color: #1677ff;
    font-weight: 500;
}

/* 需求列表 */
.needs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.need-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.need-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.need-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #86909c;
}

.tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: #f7f8fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status {
    color: #1677ff;
    font-weight: 500;
}

.need-title {
    font-size: 16px;
    color: #1f2329;
    margin: 0 0 8px;
    font-weight: 500;
}

.need-desc {
    font-size: 14px;
    color: #4e5969;
    margin: 0 0 16px;
    line-height: 1.6;
}

.need-stats {
    display: flex;
    gap: 24px;
    color: #86909c;
    font-size: 12px;
}

.need-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .need-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* 添加链接样式 */
.need-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.need-link:hover .need-title {
    color: #1677ff;
}

.need-link:hover {
    text-decoration: none;
}

/* 分页样式 */
.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;
}


/* 发布需求按钮样式 */
.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;
}