/* 文章列表页样式 */
.article-layout {
    display: flex;
    gap: 30px;
    margin: 30px auto;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 8px 0px;
}

/* 左侧分类导航 */
.article-sidebar {
    width: 171px;
    flex-shrink: 0;
    
}

.category-nav {
    background-color: rgb(249, 249, 249);
    overflow: hidden;

    border: 1px solid rgb(240, 240, 240);

}

.category-link {
    display: block;
    height: 60px;
    line-height: 60px;
    padding: 0px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 20px;
}

.category-link:last-child {
    border-bottom: none;
}

.category-link:hover {
    background: #f5f5f5;
    color: #1E9FFF;
}

.category-link.active {
    background: rgb(0, 111, 179);
    color: #fff;
}

/* 右侧文章列表 */
.article-content-list {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {

    .category-nav{ 
        display: flex;
        flex-direction: row;
        border: 0px;
    }
    .category-link{
        /* border-bottom: #f5f5f5 solid 2px;
        border-right: #f5f5f5 solid 1px;
        border-left: #f5f5f5 solid 1px; */
    }
    .category-link.active{
        color: #fff ;
        background: rgb(0, 111, 179);
        border-bottom: 2px solid rgb(0, 111, 179);
    }
}

/* 需求列表头部 */
.requirement-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.requirement-list-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.publish-requirement-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ff9800;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background 0.3s;
    white-space: nowrap;
}

.publish-requirement-btn:hover {
    background: #f57c00;
    color: #fff;
}

.publish-icon {
    font-size: 18px;
    line-height: 1;
}

.publish-text {
    font-size: 16px;
}

.article-list {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.article-list .article-item {
    padding: 20px 5px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.article-list .article-item:last-child {
    border-bottom: none;
}

.article-list .article-item:hover {
    background: #f9f9f9;
}

/* 需求状态标签 */
.requirement-status-badge {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 15px;
    white-space: nowrap;
}

.requirement-status-badge.status-not-connected {
    background-color: rgb(246, 246, 246);
    border:rgb(235, 235, 235) solid 1px;
    color:rgb(181, 181, 181)
}

.requirement-status-badge.status-connected {

    background-color: rgb(240, 249, 235);
    border: rgb(225, 243, 216) solid 1px;
    color:rgb(103, 194, 58)

    
}

.article-list .article-title {
    flex: 1;
    color: rgb(107, 102, 102);
    text-decoration: none;
    font-size: 18px;
    line-height: 1.6;
    transition: color 0.3s;
}

.article-list .article-title:hover {
    color: #1E9FFF;
}

.requirement-item .requirement-title {
    margin-left: 0;
}

.article-list .article-date {
    color: #999;
    font-size: 18px;
    margin-left: 20px;
    flex-shrink: 0;
}

.article-content-detail{
    flex: 1
}
.article-content-detail .article-title {
    font-size: 28px;
    line-height: 1.6;
    color: rgb(0, 0, 0);
    text-align: center;
    margin: 20px 0px;
    font-weight: bold;
}

.article-content-detail .article-date {
    font-size: 20px;
    line-height: 1.6;
    color: rgb(153, 153, 153);
    text-align: center;
    margin: 20px 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.article-content-detail .article-date span {
    margin-right: 30px;
}
.article-content-detail .article-content {
    padding: 20px 35px;
    font-size: 22px;
    line-height: 1.6;
    color: rgb(0, 0, 0);
}
.article-content-detail .article-content p {    
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-content-detail .article-content img {    
   max-width:100%;
    height: auto;
}


/* 附件样式 */
.article-attachments {
    margin-top: 40px;
    padding-top: 30px;
    padding: 30px;
}

.attachment-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.attachment-list {
    margin-top: 10px;
}

.attachment-item {
    margin-bottom: 10px;
}

.attachment-link {
    color: rgb(0, 143, 216);
    text-decoration: none;
    font-size: 22px;
    transition: color 0.3s;
}

.attachment-link:hover {
    color: #0d7ae6;
    text-decoration: underline;
}

/* 需求回复模块 */
.requirement-reply-section {
    margin-top: 40px;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.reply-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.reply-meta {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.reply-person,
.reply-time {
    color: #999;
}

.reply-content {
    font-size: 18px;
    line-height: 1.8;
    color: #000;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.reply-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.reply-content p:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-layout {
        flex-direction: column;
        gap: 20px;
        box-shadow: none;
        margin: 10px 0px;
    }
    
    .article-sidebar {
        width: 100%;
    }
    
    .article-list .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-list .article-date {
        margin-left: 0;
    }
    
    .article-content-detail {
        padding: 0px;
    }
    
    .article-content-detail .article-title {
        font-size: 20px;
    }

    .article-content-detail .article-date {
        font-size: 16px;
        margin: 10px 0px;
    }

    .article-content-detail .article-content {
        font-size: 16px;
        padding:10px
    }

    .article-content-detail .article-content p {
        font-size: 16px;
        
    }
}
