/* ========== 文章资讯独立样式 ========== */

/* 标准动态选项卡样式 */

/* 动态高亮样式 */
.selected-highlight {
    background-color: #e3f2fd !important;
    border-left: 3px solid #2196f3 !important;
    transition: all 0.3s ease;
}

.selected-highlight:hover {
    background-color: #bbdefb !important;
}

/* 为循环数据项添加过渡效果 */
.topic-and-paper-con-item li a {
    transition: background-color 0.2s ease, border-left 0.2s ease;
    position: relative;
}

.topic-and-paper-con-item li a:hover {
    background-color: #f5f5f5;
}

/* 选中状态的额外样式 */
.selected-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #2196f3;
    transition: width 0.3s ease;
}

.selected-highlight:hover::before {
    width: 5px;
}

/* 新闻项选中样式 */
.news-selected {
    background-color: #e3f2fd !important;
    border-left: 3px solid #2196f3 !important;
    position: relative;
}

.standards-nav .nav-link {
    position: relative;
}
.standards-nav .nav-item {
    list-style: none;
}

.standards-nav .nav-link {
    color: #666;
    text-decoration: none;
    border-radius: 0;
    border: none;
    background: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.standards-nav .nav-link:hover {
    color: #007bff;
    text-decoration: none;
}

.standards-nav .nav-link.active {
    color: #007bff;
    background: none;
    border-bottom: 2px solid #007bff;
    font-weight: 500;
}

/* 标准动态内容样式 */
.standards-content .news-list-container {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.standards-content .news-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.standards-content .news-item:hover {
    background-color: #f8f9fa;
}

.standards-content .news-item:last-child {
    border-bottom: none;
}

.standards-content .news-time-badge {
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.standards-content .news-content {
    flex: 1;
    min-width: 0;
}

.standards-content .news-code {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.standards-content .news-title {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.standards-content .news-date {
    color: #999;
    font-size: 0.8rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* ========== 文章资讯响应式设计 ========== */
@media (max-width: 768px) {
    /* 移动端显示选项卡 - 一排四个 */
    .standards-nav.d-none.d-lg-flex {
        display: flex !important;
        flex-wrap: nowrap;
        margin-top: 0.5rem;
        justify-content: space-between;
        padding: 0 0.5rem;
    }
    
    .standards-nav .nav-item {
        flex: 1;
        margin-right: 0;
        margin-bottom: 0;
        text-align: center;
        padding: 0 0.3rem;
    }
    
    .standards-nav .nav-link {
        padding: 0.4rem 0.2rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
        display: block;
        width: 100%;
    }
    
    .standards-content .news-list-container {
        padding: 0 0.5rem;
    }
    
    .standards-content .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.5rem;
    }
    
    .standards-content .news-time-badge {
        margin-right: 0;
        margin-bottom: 0.5rem;
        align-self: flex-start;
    }
    
    .standards-content .news-content {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .standards-content .news-date {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .standards-nav .nav-link {
        padding: 0.3rem 0.1rem !important;
        font-size: 0.8rem !important;
    }
    
    .standards-content .news-item {
        padding: 0.75rem 0.25rem;
    }
    
    .standards-content .news-time-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        min-width: 50px;
    }
    
    .standards-content .news-code {
        font-size: 0.85rem;
    }
    
    .standards-content .news-title {
        font-size: 0.8rem;
    }
    
    .standards-content .news-date {
        font-size: 0.75rem;
    }
}
