body {
    background-color: #FFF9F0;
}

/* Banner区域 */
.news-banner-section {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.news-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-banner-section .header-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.5);
}

/* 栏目标题 */
.news-banner-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-bottom: 2rem;
}

.news-banner-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: #684805;
    margin: 0;
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    background-color: #7A2919;
    height: 40px;
    display: flex;
    align-items: center;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
    font-size: 0.9rem;
}

.breadcrumb-content a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-content a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #fff;
}

.breadcrumb-current {
    color: #fff;
}

/* Tab导航 */
.breadcrumb-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.breadcrumb-tabs .tab-item {
    color: #000;
    background-color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    /* 非 active 状态：背景图 icon3-w.png 水平重复 */
    background-image: url("../img/icon3-w.png");
    background-repeat: repeat-x; /* 水平重复 */
    background-position: center; /* 背景图居中对齐（可按需调整） */
    background-size: auto 100%; /* 背景图高度适配 Tab，宽度自动（可按需调整） */
    /* 关键：给伪元素预留定位空间，相对定位 */
    position: relative;
    /* 避免伪元素覆盖文字，增加内边距（可选，根据 icon 大小调整） */
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

/* 非 active 状态：before 伪元素（icon1-w.png） */
.breadcrumb-tabs .tab-item:before {
    content: ""; /* 伪元素必备，空内容即可 */
    position: absolute; /* 绝对定位，相对于父元素 tab-item */
    left: 0.2rem; /* 左侧定位，可按需调整 */
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 垂直居中校准 */
    width: 16px; /* 伪元素宽度（根据 icon 大小调整） */
    height: 16px; /* 伪元素高度（根据 icon 大小调整） */
    background-image: url("../img/icon1-w.png"); /* 非激活状态 before 图片 */
    background-size: cover; /* 图片覆盖伪元素，不拉伸变形 */
    background-repeat: no-repeat; /* 图片不重复 */
    background-position: center; /* 图片居中 */
}

/* 非 active 状态：after 伪元素（icon1-w.png） */
.breadcrumb-tabs .tab-item:after {
    content: ""; /* 伪元素必备，空内容即可 */
    position: absolute; /* 绝对定位，相对于父元素 tab-item */
    right: 0.2rem; /* 右侧定位，可按需调整 */
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 垂直居中校准 */
    width: 16px; /* 伪元素宽度（根据 icon 大小调整） */
    height: 16px; /* 伪元素高度（根据 icon 大小调整） */
    background-image: url("../img/icon1-w.png"); /* 非激活状态 after 图片 */
    background-size: cover; /* 图片覆盖伪元素，不拉伸变形 */
    background-repeat: no-repeat; /* 图片不重复 */
    background-position: center; /* 图片居中 */
}

/* active 状态样式 */
.breadcrumb-tabs .tab-item.active {
    background-color: #862E23;
    color: #fff;
    font-weight: 500;
    /* active 状态：背景图 icon4-r.png 水平重复 */
    background-image: url("../img/icon4-r.png");
    background-repeat: repeat-x; /* 水平重复 */
    background-position: center; /* 背景图居中对齐（可按需调整） */
    background-size: auto 100%; /* 背景图高度适配 Tab，宽度自动（可按需调整） */
    position: relative; /* 伪元素定位基础（继承自父类，可重复声明确保生效） */
}

/* active 状态：before 伪元素（icon2-r.png） */
.breadcrumb-tabs .tab-item.active:before {
    background-image: url("../img/icon2-r.png"); /* 激活状态 before 图片，覆盖非激活状态 */
}

/* active 状态：after 伪元素（icon2-r.png） */
.breadcrumb-tabs .tab-item.active:after {
    background-image: url("../img/icon2-r.png"); /* 激活状态 after 图片，覆盖非激活状态 */
}



.news-list-wrapper {
    padding-top: 1rem;
    padding-bottom: 4rem;
    /* background-image: url('../img/bg-yellow.png'); */
    /* background-repeat: repeat-y; */
    /* background-position: top center; */
}

.news-list-section {
    position: relative;
}


.news-list {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.news-item-row {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    border-bottom: #DAC9A1 2px dashed;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.news-item-row:hover {
    background-color: #fff;
}

.news-thumb {
    flex: 0 0 260px;
    height: 160px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2b2b2b;
    transition: color 0.3s ease;
}

.news-item-row:hover .news-title {
    color: #862E23;
}

.news-summary {
    font-size: 0.95rem;
    color: #4b4b4b;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.news-date {
    color: #999;
}

.news-more {
    color: #7f1d1d;
    font-weight: 500;
    text-decoration: none;
}

.news-more:hover {
    text-decoration: underline;
}

/* 分页样式 */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 1.5rem 0;
}

/* 覆盖 Bootstrap 分页默认样式 */
.news-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}

.news-pagination .pagination > li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
}

.news-pagination .pagination > li > a,
.news-pagination .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    min-width: auto;
    height: auto;
}

.news-pagination .pagination > li > a:hover,
.news-pagination .pagination > li > a:focus {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    text-decoration: none;
}

/* 数字页码样式 */
.news-pagination .pagination > li > a:not([rel="prev"]):not([rel="next"]) {
    min-width: 39px;
    height: 26px;
    padding: 0;
}

/* 当前页（active）样式 */
.news-pagination .pagination > .active > a,
.news-pagination .pagination > .active > span {
    width: 39px;
    height: 26px;
    background: #A17B42;
    color: #fff;
    border: none;
    padding: 0;
}

.news-pagination .pagination > .active > a:hover,
.news-pagination .pagination > .active > a:focus,
.news-pagination .pagination > .active > span:hover,
.news-pagination .pagination > .active > span:focus {
    background: #8a6a38;
    color: #fff;
    border: none;
}

/* 上一页/下一页样式 */
.news-pagination .pagination > li > a[rel="prev"],
.news-pagination .pagination > li > a[rel="next"] {
    padding: 0.5rem 1rem;
}

/* 禁用状态样式 */
.news-pagination .pagination > .disabled > a,
.news-pagination .pagination > .disabled > span {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent;
    color: #999;
}

.news-pagination .pagination > .disabled > a:hover,
.news-pagination .pagination > .disabled > a:focus,
.news-pagination .pagination > .disabled > span:hover,
.news-pagination .pagination > .disabled > span:focus {
    background: transparent;
    color: #999;
    border: none;
}

/* 兼容旧样式类名（如果模板中有使用） */
.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    background-color: #f0f0f0;
}

.pagination-number {
    min-width: 39px;
    height: 26px;
    padding: 0;
}

.pagination-number.active {
    width: 39px;
    height: 26px;
    background: #A17B42;
    color: #fff;
}

.pagination-number.active:hover {
    background: #8a6a38;
}

.pagination-prev,
.pagination-next {
    padding: 0.5rem 1rem;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .news-banner-section {
        height: 320px;
    }

    .breadcrumb-wrapper {
        padding: 0.5rem 0;
    }

    .breadcrumb-wrapper .container {
        gap: 0.75rem;
    }

    .breadcrumb-tabs {
        gap: 0.75rem;
    }

    .tab-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .news-list-wrapper {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .news-item-row {
        flex-direction: column;

    }
    .news-list{
        padding: 0.8rem;
    }

    .news-banner-title {
        display: none;
    }
    .news-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .news-pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .pagination-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}
