.notice-banner {
   background-image: url('https://cdn.8i5.net/2022/07/topography.svg');
    padding: 20px 20px;
    text-align: center;
}

.notice-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.notice-subtitle {
    font-size: 16px;
    color: #999;
    margin: 0;
}

.announcement-container {
    margin: 20px auto;
    max-width: 1400px;
    padding: 20px;
    line-height: 1.6;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    margin-bottom: 20px;
}

.announcement-table {
    width: 100%;
    min-width: 600px; /* 确保表格在小屏幕上可以横向滚动 */
    border-collapse: collapse;
    margin: 0;
}

.announcement-table thead {
    background-color: #f5f7fa;
}

.announcement-table th {
    padding: 12px 20px;
    text-align: left;
    font-weight: 500;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid #eee;
    white-space: nowrap; /* 表头不换行 */
}

.announcement-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.announcement-table tbody tr:hover {
    background-color: #fafafa;
}

.announcement-table td {
    padding: 15px 20px;
    text-align: left;
    vertical-align: middle;
    color: #333;
}

.announcement-content p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-time {
    color: #999;
    font-size: 14px;
    white-space: nowrap; /* 时间不换行 */
}

.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* 分页按钮在小屏幕可换行 */
    margin-top: 20px;
}

.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: #f5f7fa;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #2655ff;
    color: #fff;
}

.pagination .current {
    background-color: #2655ff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 15px;
    border-radius: 4px;
}

/* 手机端适配优化 */
@media (max-width: 767px) {
    .notice-title {
        font-size: 28px;
    }

    .announcement-container {
        padding: 15px;
        margin: 10px;
    }

    .announcement-table {
        min-width: 500px; /* 减少最小宽度，更适合手机屏幕 */
    }

    .announcement-table th,
    .announcement-table td {
        padding: 12px 10px; /* 减少内边距 */
        font-size: 14px;
    }
    
    /* 调整列宽比例，给时间列更多空间 */
    .announcement-table th:first-child {
        width: 60%;
    }
    
    .announcement-table th:last-child {
        width: 40%;
    }
    
    /* 时间格式调整，在小屏幕上更紧凑 */
    .announcement-time {
        font-size: 13px;
        letter-spacing: -0.3px; /* 减少字符间距 */
    }
    
    /* 分页调整 */
    .pagination {
        justify-content: center;
        gap: 5px;
    }
    
    .pagination .page-numbers {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* 针对超小屏幕的额外优化 */
@media (max-width: 375px) {
    .announcement-table {
        min-width: 450px;
    }
    
    .announcement-time {
        font-size: 12px;
    }
}
