
        /* ========== 两栏外层布局 ========== */
.two-column-wrap {
    display: flex;
    gap: 32px;
    padding: 20px;
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
}
/* 左侧侧边栏：固定宽度，不压缩 */
.sidebar-left {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}
.sidebar-header {
    padding: 18px 16px;
    background: linear-gradient(135deg, #f7f8fa 0%, #eef1f5 100%);
    border-bottom: 1px solid #e5e7eb;
}
.sidebar-group-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}
.sidebar-search-box {
    position: relative;
}
.sidebar-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px 10px 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    outline: none;
}
.sidebar-search-input:focus {
    border-color: #d61a2c;
    box-shadow: 0 0 0 2px rgba(214, 26, 44, 0.15);
}
/* 搜索图标占位 */
.sidebar-search-box::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
}
.cat-nav-list {
    padding: 12px 14px 16px 14px;
}
/* 一级分类组 */
.cat-group {
    margin-bottom: 10px;
}
.cat-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 12px;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    background: #f3f4f6;
    transition: 0.2s ease;
}
.cat-main:hover {
    background: #e5e7eb;
}
.cat-main.active {
    background: #d61a2c;
    color: #ffffff;
}
.cat-main .cat-count {
    font-size: 13px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 8px;
    border-radius: 12px;
    color: #6b7280;
}
.cat-main.active .cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
/* 二级分类列表 */
.cat-sub-list {
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid #e5e7eb;
}
.cat-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}
.cat-sub:hover {
    background: #f9fafb;
    color: #111827;
}
.cat-sub.active {
    background: #fce8e8;
    color: #d61a2c;
    font-weight: 600;
}
.cat-sub .cat-count {
    font-size: 13px;
    color: #6b7280;
}
.cat-sub.active .cat-count {
    color: #d61a2c;
}

/* 右侧主内容：自动占满剩余宽度，修复flex溢出必须加 min‑width:0 */
.content-right {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* ========== 右侧新闻卡片列表 ========== */
.info-list-news {
    display: grid;
    gap: 20px;
}
.info-card-item {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
    transition: box-shadow 0.2s;
}
.info-card-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.card-title h3 {
    margin: 0 0 10px 0;
    font-size: 19px;
    font-weight: 600;
}
.card-title a {
    color: #1a1a1a;
    text-decoration: none;
}
.card-title a:hover {
    color: #c8102e;
    text-decoration: underline;
}
.card-desc {
    color: #555555;
    font-size: 14px;
    margin: 0 0 18px 0;
    line-height: 1.65;
}
.card-action-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn-card-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background:#e6212a;
    color: #ffffff;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-size:14px;
}
.btn-icon {
    width:14px !important;
    height:14px !important;
    flex-shrink: 0;
}
.btn-card-detail:hover .btn-icon{
    transform: translateX(2px);
    transition: transform 0.2s;
}
.info-empty {
    padding: 48px 20px;
    text-align: center;
    color: #777777;
}

/* 分页组件 */
.pagination-wrap{
    display:flex;
    gap:6px;
    align-items:center;
    margin-top:24px;
}
.pagination-wrap .page-num,
.pagination-wrap .page-btn{
    border:2px solid #e6212a;
    min-width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    border-radius:4px;
    box-sizing:border-box;
}
.pagination-wrap .page-num.current,
.pagination-wrap .page-btn.current{
    background-color:#e6212a;
    color:#ffffff;
}
.pagination-wrap a.page-num,
.pagination-wrap a.page-btn{
    color:#e6212a;
}
.pagination-wrap .page-btn.disabled{
    color:#999;
    border-color:#ccc;
}
.pagination-wrap .perpage-label{
    margin:0 12px 0 20px;
    font-size:16px;
}

/* 三列网格 */
.news-card-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:24px;
}
.grid-card-item{
    background:#f7f7f7;
}
.grid-card-img{
    width:100%;
    height:220px;
    overflow:hidden;
    position:relative;
}
.grid-card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.img-placeholder{
    width:100%;
    height:100%;
    background:#cccccc;
}
/* 悬浮遮罩 */
.img-hover-mask{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.75);
    color:#ffffff;
    opacity:0;
    transition: opacity 0.28s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    box-sizing:border-box;
}
.grid-card-img:hover .img-hover-mask{
    opacity:1;
}
.mask-content{
    text-align:center;
}
.mask-content h4{
    margin:0 0 10px 0;
    font-size:18px;
}
.mask-content p{
    margin:0;
    font-size:14px;
    line-height:1.55;
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
}
.card-learn-more{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#000000;
    text-decoration:none;
    font-weight:600;
}
.card-learn-more svg{
    flex-shrink:0;
}

/* ==========详情页图片：网格布局，无横向滚动条========== */
.detail-slider{
    width:100%;
    max-width: 100%;
    margin-bottom:24px;
}
.slider-inner{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
    gap:16px;
}
.slide-item{
    width:100%;
    height:200px;
}
.slide-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    max-width: 100%;
    display:block;
}

/* --------重点：详情主体内容所有图片全局约束，解决content富文本大图撑破页面-------- */
.detail-body-text img{
    max-width: 100% !important;
    height: auto !important;
    display:block;
}
/* 关键字标签 */
.tag-wrap{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}
.tag-item{
    padding:4px 12px;
    border:1px solid #999;
    border-radius:3px;
    font-size:14px;
}
.detail-main-title{
    font-size:42px;
    font-weight:bold;
    margin:0 0 22px 0;
    word-wrap: break-word;
}
.detail-body-text{
    font-size:17px;
    line-height:1.75;
    overflow-wrap: break-word;
    word-break: break-all;
}
/* 面包屑式顶部导航栏 复刻截图样式 */
.bread-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:20px;
    padding:12px 16px;
    background:#f5f5f5;
    border-radius:6px;
    margin-bottom:22px;
    flex-wrap: wrap;

    /* 新增：控制不要撑满，居中，左右留白 */
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
}
.bread-nav-left{
    display:flex;
    gap:28px;
    align-items:center;
    flex-wrap:wrap;
}
.bread-item{
    display:flex;
    align-items:center;
    gap:8px;
    color:#222222;
    text-decoration:none;
    font-size:15px;
}
.bread-item svg{
    width:24px;
    height:24px;
    flex-shrink:0;
}
.bread-item .arrow-red{
    color:#d61a2c;
    font-weight:bold;
    font-size:18px;
}
.bread-item:hover{
    text-decoration:underline;
}
@media (max-width:1380px) {
    .bread-nav-bar{
        max-width: calc(100% - 40px); /* 小屏幕左右各20px留白 */
    }
}
@media (max-width:768px){
    .bread-nav-bar{
        flex-direction:column;
        align-items:flex-start;
    }
    .bread-nav-left{
        gap:16px;
    }
}


/* ==========移动端适配========== */
@media(max-width: 768px){
    .two-column-wrap{
        flex-direction: column;
    }
    .sidebar-left{
        width:100%;
    }
    /* 手机端图片网格改成单列 */
    .slider-inner{
        grid-template-columns: 1fr;
    }
    .detail-main-title{
        font-size:28px;
    }
    /* 三列卡片网格手机改为1列 */
    .news-card-grid{
        grid-template-columns:1fr;
    }
}
