/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

/* 内容容器，让所有内容居中并有个白色背景 */
.container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* 页面主标题 */
h1 {
    color: #1e3c72;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-top: 0;
    font-size: 1.8em;
}

/* 副标题 */
.sub-title {
    color: #495057;
    margin-bottom: 30px;
}

/* 公告列表样式：移除默认列表圆点，去掉下划线 */
.notice-list {
    list-style: none;
    padding: 0;
}

/* 每个列表项 */
.notice-list li {
    border-bottom: 1px dashed #dee2e6;
    transition: background-color 0.2s;
}

.notice-list li:hover {
    background-color: #f8f9fa;
}

/* 列表中的链接，让链接填满整个行，方便点击 */
.notice-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #2c3e50;
}

/* 公告日期样式 */
.notice-list .date {
    color: #6c757d;
    font-size: 0.9em;
    min-width: 100px; /* 保证日期对齐 */
}

/* 公告标题样式 */
.notice-list .title {
    flex: 1; /* 让标题占据剩余空间 */
    margin-left: 20px;
    font-weight: 500;
}

/* 鼠标悬停在链接上时，标题变蓝色 */
.notice-list li a:hover .title {
    color: #0056b3;
    text-decoration: underline;
}

/* 详情页的返回链接样式 */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* 详情页的发布日期样式 */
.notice-content .date {
    color: #6c757d;
    font-size: 0.95em;
    margin-bottom: 25px;
}

/* 图片展示区域 */
.notice-content {
    margin-top: 20px;
}

.notice-content img {
    border: 1px solid #e9ecef;
    border-radius: 8px;
}