/* 全局初始化 */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: "Microsoft Yahei",sans-serif;
    color: #333;
    line-height: 1.7;
}
img{
    width: 100%;
    display: block;
}

/* 顶部banner：通栏大图 */
.news-banner{
    width: 100%;
    height: 350px; /* 高度可按需微调，参考图高度 */
    background: url("../images/top6.jpg") no-repeat center center;
    background-size: cover; /* 图片铺满、不变形 */
    margin-top: 90px; /* 向下避开fixed导航，不再用relative top产生空白 */
}

/* 移动端适配 */
@media(max-width:768px){
    /* banner头部 */
    .news-banner {
        height: 220px;
        margin-top: 90px;
    }
}


/* 标题样式 */
.news-head{
    width: 78%;
    margin: 40px auto;
    padding: 20px 0 5px; /* 只保留上下间距，左右由父级company-intro控制 */
}
.news-head h2{
    font-size:26px;
    color:#9B182F;
    position:relative;
    padding-left:16px; /* 原来12px加宽，防止竖线贴文字 */
}
.news-head h2::before{
    content:"";
    width:4px;
    height:22px;
    background:#9B182F;
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
}
.news-en-tip{
    font-size:12px;
    color:#999;
    display:block;
    margin-top:4px;
}

/* 新闻资讯页面样式 */
/* 新闻资讯页面样式 */
.news-page-container {
    display: flex;
    gap: 40px;
    max-width: 1700px;
    margin: 80px auto 60px;
    padding: 0 6%;
}

/* 左侧分类 */
.news-category-sidebar {
    width: 150px;
    flex-shrink: 0;
}
.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    background: #fff;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
    user-select: none; /* 禁止文字选中 */
}
.category-item.active,
.category-item:hover {
    border-left-color: #9B182F;
    color: #9B182F;
    background: #fafafa;
}

/* 右侧新闻 */
.news-list-area {
    flex: 1;
}
.news-item {
    display: flex;
    background: #fff;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 4px;
}
.news-item:hover {
    /* box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(0,0,0,0.08);
    background: #fff; */
    /* 1. 轻微上移，制造悬浮感 */
    transform: translateY(-4px);
    /* 2. 加深阴影，从浅变深，范围扩大 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                0 8px 24px rgba(0, 0, 0, 0.12);
    /* 3. 背景色轻微加深，增强对比 */
    background-color: #ffffff;
}
/* 鼠标悬浮新闻项时，标题变红 */
.news-item:hover .news-title {
    color: #9B182F !important;
}
.news-img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 20px;
}
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-title {
    font-size: 20px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}
.news-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* 标准写法，兼容现代浏览器 */
    -webkit-box-orient: vertical;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}
.news-tags {
    display: flex;
    gap: 8px;
}
.news-tag {
    padding: 2px 8px;
    border: 1px solid #ddd;
    font-size: 13px; /* 修复了原来的 border-size 笔误 */
    color: #666;
    border-radius: 3px;
}

/* 分页 */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}
/* 数字页码保持原有样式 */
.page-btn[data-page] {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #333;
}
.page-btn[data-page].active {
    background: #9B182F;
    color: #fff;
    border-color: #9B182F;
}
.page-btn[data-page]:not(.active):hover {
    color: #9B182F;
    border-color: #9B182F;
}
/* 上一页 / 下一页 纯文字样式 + hover变红 */
#prevPage, #nextPage {
    padding: 0;
    border: none;
    background: none;
    width: auto;
    height: 36px;
    padding: 0 12px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}
/* 鼠标悬浮变红 */
#prevPage:hover:not(:disabled),
#nextPage:hover:not(:disabled) {
    color: #9B182F;
}
/* 禁用时变灰，不可点 */
#prevPage:disabled, #nextPage:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}