/* css/notice_list.css */

/* 1. 区域基础 */
.notice-list-section {
    padding: 3rem 0 6rem 0; /* 底部稍微留多点给分页 */
    background-color: #fff;
    min-height: 600px;
}

.notice-box {
    width: 100%; /* 核心修改：让它撑满 container */
    background: #fff;
}

/* 2. 全宽列表样式 */


.full-width-list li {
    border-bottom: 1px dashed #eee; /* 修改为虚线，视觉更轻盈 */
    transition: all 0.3s ease;
}

/* 列表链接容器 */
.list-link {
    display: flex;
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center;
    padding: 1.3rem 1rem; /* 增加内边距，让每一行不要太挤 */
    color: #333;
    text-decoration: none;
}

/* 标题左侧包装 */
.title-wrapper {
    display: flex;
    align-items: center;
    flex: 1; /* 占据剩余空间 */
    padding-right: 2rem; /* 防止碰到右侧日期 */
    overflow: hidden; /* 防止过长 */
}

/* 装饰小方块 */
.icon-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ccc;
    margin-right: 12px;
    transform: rotate(45deg); /* 菱形效果 */
    flex-shrink: 0;
    transition: background-color 0.3s;
}

/* 标题文字 */
.item-title {
    font-size: 1.05rem;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.3s, color 0.3s;
}

/* 日期样式 */
.item-date {
    font-size: 0.95rem;
    color: #999;
    font-family: Arial, sans-serif; /* 数字字体 */
    flex-shrink: 0;
    white-space: nowrap;
}

/* NEW 徽章 */
.badge-new {
    display: inline-block;
    background-color: #ff5e5e;
    color: #fff;
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

/* --- 交互状态 (Hover) --- */
.full-width-list li:hover {
    background-color: #f9fbff; /* 极淡的蓝色背景 */
    border-bottom-style: solid; /* 悬停时变实线 */
    border-bottom-color: #dbeeff;
}

.full-width-list li:hover .icon-dot {
    background-color: #3f8fe6; /* 小方块变蓝 */
}

.full-width-list li:hover .item-title {
    color: #005bac; /* 标题变深蓝 */
    transform: translateX(8px); /* 标题轻微右移 */
}

.full-width-list li:hover .item-date {
    color: #3f8fe6;
}

/* --- 置顶项特殊样式 (可选) --- */
.full-width-list li.top-item .item-title {
    font-weight: bold;
    color: #333;
}

/* =========================================
   3. 分页样式 (Pagination)
   ========================================= */

.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center; /* 居中 */
}

.pagination {
    display: flex;
    gap: 0.6rem; /* 按钮间距 */
}

.pagination li a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 2.5rem; /* 保证正方形 */
    height: 2.5rem;
    padding: 0 0.5rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

/* 选中状态 & 鼠标悬停 */
.pagination li.active a,
.pagination li a:hover {
    background-color: #3f8fe6; /* 医院蓝 */
    border-color: #3f8fe6;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(63, 143, 230, 0.3);
}

/* 禁用状态 (上一页/下一页) */
.pagination li.disabled a {
    background-color: #f5f5f5;
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    box-shadow: none;
}