﻿/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 页面基础样式 */
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: rgb(249 250 251);
    line-height: 1.6;
    min-height: 100vh;
}

/* 主容器 */
.container {
    width: 70%;
}
/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
}

/* 标题栏样式 */
.news-header {
    border-bottom: 2px solid #2a579a;
    padding-bottom: 4px;
    margin-bottom: 20px;
}

    .news-header h2 {
        color: #2a579a;
        font-size: 24px;
        font-weight: 600;
    }

    .news-header p {
        color: #666;
        font-size: 14px;
        margin-top: 5px;
    }

/* 新闻列表样式 */
.news-list {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.news-item {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.2s;
}

    .news-item:hover {
        background: #fafbfc;
    }

    .news-item:last-child {
        border-bottom: none;
    }

.news-icon {
    color: #0156b1;
    margin-right: 14px;
    font-size: 12px;
}

.news-title {
    flex: 1;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

    .news-title:hover {
        color: #409eff;
    }

.news-read {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    margin-left: 10px;
    margin-right: 15px;
}

.news-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    margin-left: 10px;
}

/* 分页样式 */
.pagination {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

    .pagination-btn:hover {
        border-color: #409eff;
        color: #409eff;
    }

    .pagination-btn.active {
        background: #409eff;
        color: #fff;
        border-color: #409eff;
    }

    .pagination-btn:disabled {
        color: #ccc;
        border-color: #eee;
        cursor: not-allowed;
    }

        .pagination-btn:disabled:hover {
            border-color: #eee;
            color: #ccc;
        }
/* 响应式适配 */
@media (max-width: 768px) {
    .w-60 {
        width: 90%;
    }
}