/* ================= 新闻列表容器 ================= */
.list_news {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
    min-height: 500px;
}

/* 清除浮动 (兼容旧写法) */
.clearfixe::after {
    content: "";
    display: table;
    clear: both;
}

/* ================= 列表项样式 ================= */
.list_news_ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list_news_li {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
}

.list_news_li:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.1);
    transform: translateY(-2px);
}

.list_news_li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    color: inherit;
}

/* 标题区域 */
.list_news_li h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    flex: 1;
    /* 单行溢出省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 20px;
}

/* 分类标签 */
.list_news_li h3 i {
    font-style: normal;
    color: #1890ff;
    font-weight: 600;
    margin-right: 8px;
}

/* 日期样式 */
.list_news_li span {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

/* ================= 分页样式 ================= */
.page {
    margin-top: 30px;
    text-align: center;
}

/* 针对 ThinkPHP 默认分页生成的元素进行美化 */
.page a, 
.page span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    margin: 0 4px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.page a {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.page a:hover {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

/* 当前页高亮 */
.page .current,
.page span.current {
    background: #1890ff !important;
    border-color: #1890ff !important;
    color: #fff !important;
    font-weight: bold;
}

/* 禁用状态 */
.page .disabled,
.page span.disabled {
    color: #ccc !important;
    border-color: #eee !important;
    cursor: not-allowed;
}

/* ================= 响应式适配 (移动端) ================= */
@media screen and (max-width: 768px) {
    .list_news {
        padding: 10px;
    }
    
    .list_news_li a {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        gap: 8px;
    }
    
    .list_news_li h3 {
        margin-right: 0;
        font-size: 15px;
        /* 移动端允许显示两行 */
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .list_news_li span {
        text-align: left;
        font-size: 12px;
    }
}