/* ========== 全局重置 & 基础通用 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Microsoft Yahei", sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== 顶部导航头部 ========== */
.header-wrap {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 99;
}
header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 16px;
}
.hamburger {
    display: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}
.logo a{
    display: flex;
    align-items: center;
    gap:2px;
    color: #e6212a;
    text-decoration: none;
    font-size:24px;
    font-weight:800;
    letter-spacing:0.5px;
}
.logo-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    background:linear-gradient(135deg,#ff333b,#e6212a);
    border-radius:6px;
    color:#fff;
    font-size:18px;
    box-shadow: 0 2px 6px rgba(230,33,42,0.2);
}
.search-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.search-input-box {
    flex: 1;
    max-width: 920px;
    position: relative;
}
/* 同时排除隐藏input 和搜索提交按钮 */
.search-input-box input:not(.search-btn):not([type="hidden"]) {
    width: 100%;
    padding: 10px 18px;
    border: 1px solid #e2e4e8;
    border-radius: 30px;
    font-size: 15px;
    background:#f7f8fa;
    transition:0.24s ease;
}
.search-input-box input:not(.search-btn):not([type="hidden"]):focus{
    outline:none;
    border-color:#e6212a;
    background:#fff;
    box-shadow: 0 0 0 3px rgba(230,33,42,0.08);
}
.search-input-box .search-btn {
    position: absolute;
    right:12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size:18px;
    color:#888;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    /* 强制重置，杜绝继承过来的宽度、圆角 */
    width: auto;
    border-radius: 0;
}
.hot-search {
    display: flex;
    gap: 12px;
    flex-shrink:0;
    /* 靠右 */
    width: 23%;  
    justify-content: flex-end;
    /* 靠右 end*/
}
.hot-search a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.hot-search a:hover {
    color: #e6212a;
}

/* ========== 返回顶部按钮 ========== */
.back-top-btn{
    position: fixed;
    right:24px;
    bottom:32px;
    width:44px;
    height:44px;
    border-radius:50%;
    background:#ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    border:none;
    font-size:20px;
    cursor:pointer;
    z-index:999;
    opacity:0;
    visibility:hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
}
.back-top-btn.show{
    opacity:1;
    visibility:visible;
    transform: translateY(0);
}
.back-top-btn:hover{
    background:#e6212a;
    color:#fff;
}

/* ========== 主容器布局 ========== */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
    gap: 24px;
    flex: 1;
}

/* ========== 左侧侧边导航 ========== */
.left-nav {
    width: 120px;
    flex-shrink: 0;
}
.left-nav ul {
    list-style: none;
}
.left-nav li {
    position: relative;
}
.left-nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    text-decoration: none;
    color: #444;
    border-radius: 8px;
    margin-bottom: 4px;
    transition:0.2s;
}
.left-nav li a.active {
    background: #fef0f0;
    color: #e6212a;
}
.left-nav li a:hover:not(.active){
    background:#f0f2f5;
}
#btnMore {
    cursor: pointer;
    user-select: none;
}
.more-menu {
    position: absolute;
    left: 105px;
    top: 0;
    margin-top:4px;
    width: 220px;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-radius: 8px;
    padding: 12px;
    z-index: 10000;
    opacity:0;
    visibility:hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.more-menu.popup-top{
    top:auto;
    bottom:0;
    margin-bottom:4px;
    margin-top:0;
    transform: translateY(6px);
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
.more-menu.show {
    opacity:1;
    visibility:visible;
    transform: translateY(0);
}
.more-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.more-menu-grid a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-radius: 6px;
}
.more-menu-grid a:hover {
    background: #f4f4;
}
.more-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9998;
    display: none;
}
.more-overlay.show {
    display: block;
}

/* ========== 移动端抽屉导航 ========== */
.mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 10001;
    display: none;
}
.mask.show {
    display: block;
}
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #fff;
    z-index: 10002;
    transform: translateX(-100%);
    transition: transform .24s ease-out;
    padding: 20px 12px;
    overflow-y: auto;
}
.mobile-drawer.open {
    transform: translateX(0);
}
.mobile-drawer ul {
    list-style: none;
}
.mobile-drawer li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    text-decoration: none;
    color: #444;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 16px;
}
.mobile-drawer li a.active {
    background: #fef0f0;
    color: #e6212a;
}
.main-content {
    flex: 1;
}

/* ========== 新闻卡片通用样式 ========== */
.news-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background:#fff;
    border-radius:10px;
    margin-bottom:12px;
    box-shadow:0 1px 3px rgba(0,0,0,0.04);
    border:1px solid #ebecef;
    align-items: stretch;
}
.news-text {
    flex: 1;
    min-width:0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-text h2 {
    font-size: 18px;
    margin-bottom: 6px;
    line-height:1.45;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow:hidden;
}
.news-text h2 a {
    color: #1a1a1a;
    text-decoration: none;
}
.news-text h2 a:hover{
    color:#e6212a;
}
.news-desc {
    font-size: 14px;
    color: #606266;
    line-height: 1.55;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.relative-desc> a,.news-desc> a{
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
}
.relative-desc> a,.news-desc> a:hover {
    color: inherit;
    text-decoration: none;
}
.news-meta {
    font-size: 13px;
    color: #909399;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:10px;
}
.article-tags, .article-time{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
}
.article-tag{
    font-size:11px;
    padding:2px 7px;
    background:#f1f2f4;
    color:#585858;
    border-radius:3px;
    transition:0.2s;
    white-space:nowrap;
}
.article-tag a{
    color:inherit;
    text-decoration:none;
}
.article-tag:hover{
    background:#e6212a;
    color:#ffffff;
}
.news-img {
    width: 140px;
    height: 100px;
    background: #e9ecef;
    flex-shrink: 0;
    border-radius:8px;
    overflow: hidden;
}
.news-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ========== 分页组件 ========== */
.pagination-wrap{
    margin-top:24px;
    text-align:center;
}
.pagination{
    display:inline-flex;
    gap:6px;
    align-items:center;
}
.pagination a,.pagination span{
    min-width:36px;
    height:36px;
    line-height:36px;
    padding:0 10px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    color:#333;
}
.pagination a:hover{
    border-color:#e6212a;
    color:#e6212a;
}
.pagination span.current{
    background:#e6212a;
    color:#fff;
    border-color:#e6212a;
}
.pagination span.dots{
    border:none;
    background:transparent;
}

/* ========== 右侧边栏通用 ========== */
.right-aside {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.aside-block{
    background:#ffffff;
    border-radius:10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow:hidden;
    border:1px solid #ebecef;
}
.aside-title{
    padding:12px 16px;
    font-size:15px;
    font-weight:600;
    color:#222;
    background-color:#fafbfc;
    border-bottom: 1px solid #f2f2f2;
}
.aside-body{
    padding:12px 16px;
}
.aside-news-list{
    list-style:none;
}
.aside-news-list li{
    margin-bottom:11px;
    padding-bottom:11px;
    border-bottom:1px dashed #f1f1f1;
}
.aside-news-list li:last-child{
    margin-bottom:0;
    padding-bottom:0;
    border-bottom:none;
}
.aside-news-list a{
    font-size:14px;
    color:#333;
    text-decoration:none;
    display:block;
    line-height:1.5;
}
.aside-news-list a:hover{
    color:#e6212a;
}
.ad-box {
    width:100%;
    height:220px;
    border-radius:10px;
    background:#f7f7f7;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#999;
    position:relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border:1px solid #ebecef;
}
.ad-tag{
    position:absolute;
    top:6px;
    right:6px;
    background:rgba(0,0,0,0.45);
    color:#fff;
    font-size:11px;
    padding:1px 6px;
    border-radius:3px;
}

/* ========== 面包屑导航 ========== */
.breadcrumb{
    margin-bottom:16px;
    font-size:14px;
    color:#909399;
}
.breadcrumb a{
    color:#666;
    text-decoration:none;
}
.breadcrumb a:hover{
    color:#e6212a;
}
.breadcrumb .current{
    color:#333;
}
.breadcrumb span.sep{
    margin:0 8px;
}

/* ========== 页脚通用 ========== */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: 32px;
    padding: 20px 16px;
}
.footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.footer-link-block{
    font-size:13px;
    color:#555;
    margin:6px 0;
}
.footer-link-block .label{
    color:#666;
    margin-right:6px;
}
.footer-link-block a {
    font-size:13px;
    color:#555;
    text-decoration:none;
    margin:0 6px;
}
.footer-link-block a:hover {
    color:#e6212a;
}
.footer-sep-line{
    height:1px;
    background:#e8e8e8;
    margin:14px auto;
    max-width:640px;
}
.footer-copyright {
    font-size:12px;
    color:#777;
}
.footer-copyright a{
    color:#555;
    text-decoration:none;
}
.footer-copyright a:hover{
    color:#e6212a;
}

/* ========== 媒体查询 平板/手机通用适配 ========== */
/* 平板断点 ≤1200px */
@media (max-width: 1200px) {
    .hamburger {
        display: block;
    }
    .left-nav {
        display: none;
    }
    .hot-search{
        display:none;
    }
    .container{
        gap:18px;
    }
    .right-aside {
        width:230px;
    }
    .news-item{
        padding:14px;
        gap:12px;
    }
    .news-img{
        width:124px;
        height:90px;
    }
    .news-text h2{
        font-size:17px;
    }
    .news-meta{
        display:none;
    }
}
/* 手机768px */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .left-nav {
        display: none;
    }
    .hot-search {
        display: none;
    }
    header{
        padding:8px 12px !important;
        gap:8px;
    }
    .logo a{
        font-size:20px;
    }
    .logo-icon{
        width:28px;
        height:28px;
        font-size:16px;
    }
    .container {
        flex-direction: column;
        padding: 12px;
        gap:0;
    }
    .right-aside{
        display:none;
    }
    .news-item {
        flex-direction: row;
        gap:12px;
        padding:13px;
        margin-bottom:10px;
    }
    .news-img {
        width:116px;
        height:86px;
    }
    .news-text h2{
        font-size:16.5px;
        -webkit-line-clamp: 2;
    }
    .news-meta{
        display:none;
    }
    .back-top-btn{
        width:40px;
        right:16px;
        bottom:20px;
    }
    footer{
        display:none;
    }
    .pagination a,.pagination span{
        min-width:32px;
        height:32px;
        line-height:32px;
        padding:0 6px;
    }
}
/* 极小屏 ≤540px */
@media (max-width:540px){
    .container{
        padding:10px;
    }
    .news-item{
        padding:11px;
        gap:10px;
        margin-bottom:9px;
    }
    .news-img{
        width:96px;
        height:72px;
    }
    .news-text h2{
        font-size:16px;
        line-height:1.4;
        -webkit-line-clamp: 2;
        margin-bottom:4px;
    }
    .news-desc{
        display: -webkit-box;
        -webkit-box-orient:vertical;
        font-size:13px;
        line-height:1.45;
        -webkit-line-clamp:1;
        overflow:hidden;
        margin-bottom:0;
    }
}