/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", system-ui, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
}

a {
    text-decoration: none;
}

/* 通用容器样式 */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
}

/* 页面主标题 */
.news-h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 24px 0 8px;
    padding: 0 20px;
    text-align: center;
}

/* 分类标签栏样式 */
.cate-tab {
    display: flex;
    gap: 60px;
    border-top: 1px solid #eee;
    padding: 35px 0 15px;
    margin-bottom: 30px;
}

.cate-tab-item {
    font-size: 32px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.cate-tab-item:hover {
    color: #0a2456;
}

.cate-tab-item.active {
    color: #333;
}

.cate-tab-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 100%;
    height: 3px;
    background: #333;
}

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.news-item {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px #e2e6ec;
    transition: all 0.25s ease;
}

.news-item:hover {
    box-shadow: 0 4px 15px #d6dce5;
}

.news-item h3 {
    color: #0a2456;
    font-size: 18px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: color .2s;
}

.news-item h3 a {
    color: inherit;
}

.news-item h3:hover a {
    color: #0066cc;
}

/* 发布时间样式 */
.news-time {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.news-desc {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

/* 分页样式 */
.page-wrap {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.page-wrap .pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-wrap .pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-wrap .pagination li a,
.page-wrap .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    transition: all .2s;
}

.page-wrap .pagination li a:hover {
    background: #0a2456;
    border-color: #0a2456;
    color: #fff;
}

.page-wrap .pagination li.active span {
    background: #0a2456;
    border-color: #0a2456;
    color: #fff;
}

.page-wrap .pagination li.disabled span {
    color: #bbb;
    background: #f5f5f5;
    border-color: #e5e5e5;
    cursor: not-allowed;
}

/* 文章详情页样式 */
.art-box {
    width: 92%;
    max-width: 1020px;
    margin: 50px auto;
    background: #ffffff;
    padding: 45px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,36,86,0.08);
}

.art-title {
    font-size: 28px;
    color: #0a2456;
    line-height: 1.4;
    margin-bottom: 18px;
    font-weight: 600;
}

.art-info {
    font-size: 14px;
    color: #999;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eeeeee;
}

.art-content {
    font-size: 16px;
    line-height: 1.85;
    color: #444444;
}

.art-content p {
    margin-bottom: 18px;
}

.art-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

.back-news {
    margin-top: 45px;
}

.back-news a {
    display: inline-block;
    padding: 11px 26px;
    background: #0a2456;
    color: #fff;
    border-radius: 6px;
    transition: 0.2s;
}

.back-news a:hover {
    background: #081d45;
}

/* 移动端适配 (768px以下) */
@media (max-width: 768px) {
    .container {
        margin: 25px auto;
    }
    
    .news-item {
        padding: 18px;
    }
    
    .news-item h3 {
        font-size: 16px;
    }
    
    .cate-tab {
        gap: 30px;
    }
    
    .cate-tab-item {
        font-size: 24px;
    }
    
    .art-box {
        padding: 24px;
        margin: 25px auto;
    }
    
    .art-title {
        font-size: 22px;
    }
}

/* 悬浮联系侧边栏（新闻页面使用独立样式表） */
.floating-sidebar { position: fixed; z-index: 1000; top: 50%; right: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 7px 0 0 7px; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .2); transform: translateY(-50%); }
.floating-sidebar__item { display: flex; width: 80px; min-height: 82px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; border: 0; color: #222; background: #fff; cursor: pointer; font: inherit; text-decoration: none; transition: background-color .25s, transform .25s; }
.floating-sidebar__item:hover, .floating-sidebar__item:focus-visible { color: #222; background: #f5f5f5; outline: 0; transform: translateX(-3px); }
.floating-sidebar__icon { width: 30px; height: 30px; fill: #83c735; }
.floating-sidebar__icon-cutout { fill: #fff; }
.floating-sidebar__label { font-size: 14px; line-height: 1.2; }
.floating-sidebar__item--top { opacity: 0; visibility: hidden; pointer-events: none; }
.floating-sidebar__item--top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
@media (max-width: 480px) { .floating-sidebar__item { width: 64px; min-height: 70px; } .floating-sidebar__icon { width: 26px; height: 26px; } .floating-sidebar__label { font-size: 12px; } }
.news-empty { padding:55px 25px; text-align:center; border:1px solid #e3eaf2; border-radius:10px; background:#f7f9fc; }
.news-empty h2 { margin-bottom:12px; color:#17345c; }
.news-empty p { margin-bottom:22px; color:#667186; }
.news-empty a { display:inline-block; padding:11px 20px; border-radius:4px; background:#0e5db8; color:#fff; text-decoration:none; }
