/* 文章列表页样式 */

/* 内容区域样式 */
.content-box {
    margin-bottom: 1.5rem;
}

.content-box h4, .content-box h5 {
    color: #212529;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e6f1e8;
}

.content-box h4::after, .content-box h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 2px;
    background-color: #4CAF47;
}

/* 表格容器样式 */
.panel {
    margin-top: 1rem;
}

.panel-body {
    padding: 0;
}

.table-responsive {
    border-radius: 0.375rem;
    overflow: visible;
    border: 1px solid #e9ecef;
}

/* 表格样式优化 */
/*.table {
    margin-bottom: 0;
    width: 100%;
    table-layout: fixed;
}

.table-thead {
    background-color: #e6f1e8;
    color: #212529;
    font-family: 'Montserrat', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.table-thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #4CAF47;
    transition: all 0.2s ease;
}

.table-thead th i {
    color: #4CAF47;
    font-size: 0.9rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.table-thead th:hover {
    background-color: #d7ede4;
}

*/.table-thead{
    --bs-table-bg: #f9f9f9;
	border-color:#f9f9f9;
	--bs-table-color: #999;
	line-height:2.5rem;
 
}
.table tbody tr{vertical-align:middle;
}
.table tbody tr td{padding:1rem 0;
}
.table tbody tr a{color:#333;
font-weight:bold;
}
/* 第一列和第三列表头居中对齐 */
.table-thead th.text-center {
    text-align: center;
}

.table-thead th.text-center i {
    margin-right: 0.25rem;
}

/* 隔行变色效果 */
.table-hover tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.table-hover tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-hover tbody tr {
    transition: all 0.2s ease;
    position: relative;
}

.table-hover tbody tr:hover {
    background-color: #d7ede4;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.table-hover tbody tr:hover td {
    border-bottom-color: #d7ede4;
}

.table-hover tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

/* 文章标题样式 */
.table-hover tbody td .font-heading {
    margin-bottom: 0.5rem;
}

.table-hover tbody td .font-heading a {
    color: #212529;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    line-height: 1.4;
}

.table-hover tbody td .font-heading a:hover {
    color: #4CAF47;
}

/* 作者信息样式 */
.article-authors {
    display: flex;
    align-items: center;
    /*font-size: 0.875rem;*/
    flex-wrap: wrap;
}

.author-icon {
    color: #4CAF47;
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.text-muted {
    color: #6c757d;
    margin-right: 0.5rem;
}

.author-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.author-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #e6f1e8;
    border-radius: 0.25rem;
    color: #212529;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.author-tag:hover {
    background-color: #d7ede4;
    border-color: #4CAF47;
    transform: translateY(-1px);
}

/* 文章编号样式 */
.table-hover tbody td:first-child {
    width: 80px;
}

.table-hover tbody td em {
    font-style: normal;
    font-weight: 700;
    color: #4CAF47;
    display: inline-block;
    min-width: 2.5rem;
    background-color: #f0f7f0;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
    text-align: center;
    font-family: 'Roboto Mono', monospace, 'Courier New', Courier;
    letter-spacing: 0.5px;
    border-left: 3px solid #4CAF47;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 页码样式 */
.table-hover tbody td:last-child {
    width: 80px;
    text-align: center;
}

.table-hover tbody td strong {
    font-weight: 600;
    color: #212529;
    background-color: #e6f1e8;
    padding: 0.3rem 0.5rem;
    border-radius: 2rem;
    display: inline-block;
    text-align: center;
    min-width: 2.5rem;
    font-family: 'Roboto Mono', monospace, 'Courier New', Courier;
    border: 1px solid #d7ede4;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.pagination .page-item .page-link {
    color: #212529;
    border-color: #e9ecef;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
}

.pagination .page-item.active .page-link {
    background-color: #4CAF47;
    border-color: #4CAF47;
    color: #fff;
    box-shadow: 0 0 0 2px #4CAF47;
}

.pagination .page-item .page-link:hover {
    background-color: #e6f1e8;
    color: #4CAF47;
    border-color: #d7ede4;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
}

/* 表格行悬停高亮效果 */
.table-hover-highlight {
    background-color: #e6f1e8 !important;
}

/* 响应式样式调整 */
@media (max-width: 768px) {
    .table-thead th {
        font-size: 0.8125rem;
        padding: 0.625rem 0.75rem;
    }

    .table-hover tbody td {
        padding: 0.75rem;
    }

    .table-hover tbody td .font-heading a {
        font-size: 0.9375rem;
    }

    .author-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.375rem;
    }

    .content-box h4, .content-box h5 {
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }

    .table-hover tbody td:first-child,
    .table-hover tbody td:last-child {
        width: 60px;
    }
}

/* 小屏幕适配 */
@media (max-width: 576px) {
    .table-thead th:nth-child(3) {
        width: 60px;
    }

    .table-hover tbody td .font-heading a {
        font-size: 0.875rem;
    }

    .author-tag {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }

    .table-hover tbody td em,
    .table-hover tbody td strong {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }
}