/* news-style.css - 左侧贴边，右侧保留增加的空间 */
.today-news-container {
    margin: 15px 0;
    padding: 0 25px 0 0; /* 左侧padding清零（贴边），右侧25px保留 */
    font-family: "Microsoft Yahei", Arial, sans-serif;
}
.news-list {
    list-style: none !important;
    padding: 0 20px 0 0; /* 左侧padding清零（贴边），右侧20px保留 */
    margin: 0;
    counter-reset: news-counter 0;
}
.news-item {
    display: flex;
    align-items: center;
    /* 左侧padding改为40px（仅给序号留空间，整体模块仍贴边），右侧25px保留 */
    padding: 12px 25px 12px 40px; 
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    transition: all 0.3s ease;
    counter-increment: news-counter 1;
    position: relative;
}
/* 序号定位（适配左侧贴边，避免超出页面） */
.news-item::before {
    content: counter(news-counter);
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    /* 左侧定位改为0（贴边），垂直居中不变 */
    position: absolute;
    left: 6px; 
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}
/* 悬停效果 */
.news-item:hover {
    background-color: #e9f5ff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    transform: translateX(2px);
}
/* 空数据样式（左侧贴边，右侧保留增空间） */
.news-empty {
    text-align: center;
    padding: 30px 25px 30px 0; /* 左侧padding清零，右侧25px保留 */
    color: #999;
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
}
/* 响应式适配（左侧贴边，右侧保留增空间） */
@media (max-width: 768px) {
    .today-news-container {
        padding: 0 20px 0 0; /* 左侧0，右侧20px保留 */
    }
    .news-list {
        padding: 0 15px 0 0; /* 左侧0，右侧15px保留 */
    }
    .news-item {
        padding: 10px 20px 10px 35px; /* 左侧35px（适配移动端序号），右侧20px保留 */
        font-size: 14px;
    }
    .news-item::before {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 13px;
        left: 5px; /* 移动端序号左侧贴边定位 */
    }
}