/* 页面基础样式 */
html, body {
    background-color: #f4f8fd !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 导航栏激活状态 */
.header .nav > li:nth-child(5) > a {
    color: #007bff !important;
    font-weight: bold !important;
}

.header .nav > li:nth-child(5) > a::after {
    background: url('/static/imgs/xlsj2.png') no-repeat center/contain !important;
}

/* 横幅轮播样式 */
.zxzx-banner {
    position: relative;
    width: 100%;
    height: 470px !important;
    min-height: 470px !important;
    max-height: 470px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9eef6;
    margin-top: 86px;
    box-sizing: border-box;
}

.fazx-banner-slides {
    position: absolute;
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1;
}

.fazx-banner-img {
    position: absolute;
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: #e9eef6;
    display: none;
}

.zxzx-banner-img.active {
    display: block;
}

.fazx-banner-texts {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    align-items: flex-start !important;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.fazx-banner-title,
.fazx-banner-desc {
    width: 741px !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    text-align: left !important;
    font-family: 'SourceHanSansSC', 'Microsoft YaHei', Arial, sans-serif;
}

.fazx-banner-title {
    margin-bottom: 35px !important;
    text-align: justify !important;
}

.fazx-banner-desc {
    margin-bottom: 35px !important;
    text-align: justify !important;
}

/* 轮播分页样式 */
.fazx-banner-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    z-index: 20;
}

.fazx-banner-pagination-item {
    width: 55px;
    height: 8px;
    display: inline-block;
    border-radius: 4px;
    background: #999999;
    opacity: 0.5;
    margin: 0 8px;
    cursor: pointer;
}

.fazx-banner-pagination-item.active {
    background: #0455da;
    opacity: 1;
}

/* 新闻容器样式 */
.news-container-wrapper {
    max-width: calc(100% - 480px);
    margin: 0 auto;
    padding: 60px 0;
    background: #f4f8fd;
}

.news-container {
    background: #f4f8fd !important;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 20px;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-flow: row;
    gap: 0px 0px;
    margin-top: 60px;
    padding: 80px 80px 80px 89px; /* 左边内边距从69px增加到89px，使资讯列表整体右移 */
    border-radius: 24px !important;
    background: #ffffff !important;
}

/* 新闻条目样式 */
.news-item {
    
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 80px;
    margin-bottom: 25px;
}

.news-item:hover {
    background: #ffffff;
    border-radius: 8px;
}

.news-number {
    font-size: 20px;
    font-family: SourceHanSansSC-Normal, sans-serif;
    color: #999999;
    width: 50px;
    text-align: center;
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    margin-right: 10px;
    transform: translateY(6px);
}

.news-content {
    flex: 1;
    max-width: 420px;
    text-align: left;
    margin-left: -15px;
}

.news-title {
    font-size: 20px;
    font-family: SourceHanSansSC-Normal, sans-serif;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: break-all;
    overflow-wrap: break-word;
    text-align: left;
    margin-right: auto;
    max-width: 330px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.news-title a:hover {
    color: #007bff;
}

.news-title a br + .new-tag {
    margin-top: 8px;
}

.new-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background-color: #ff4d4f;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    vertical-align: middle;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: none;
    background: none;
    color: #666;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: none;
}

.pagination a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .current {
    color: #007bff;
    background: none;
    border: none;
    font-weight: bold;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-jump input {
    width: 70px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.page-jump button {
    padding: 10px 18px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.page-jump button:hover {
    background: #0056b3;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 220px;
}

.search-box button {
    padding: 10px 18px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.total-info {
    color: #666;
    font-size: 16px;
}

/* 响应式设计 - 平板设备 */
@media screen and (max-width: 1024px) {
    .news-container-wrapper {
        margin-left: 100px;
        margin-right: 100px;
        margin-top: 100px;
    }
    
    .news-list {
        grid-template-columns: 1fr 1fr;
        gap: 30px 60px;
        padding: 60px 60px 60px 40px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-number {
        font-size: 18px;
    }
    
    .news-content {
        max-width: 100%;
    }
    
    .fazx-banner {
        height: 350px;
    }
    
    .fazx-banner-texts {
        width: 50%;
        left: 8%;
    }
    
    .fazx-banner-title {
        font-size: 26px;
    }
    
    .fazx-banner-desc {
        font-size: 18px;
    }
}

/* 响应式设计 - 手机设备 */
@media screen and (max-width: 768px) {
    .news-container-wrapper {
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 80px;
        padding: 20px 10px;
    }
    
    .news-list {
        grid-template-columns: 1fr;
        gap: 15px 0;
        padding: 40px 20px 40px 10px;
    }
    
    .news-item {
        grid-template-columns: 40px 1fr;
        gap: 8px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-number {
        font-size: 18px;
        width: 45px;
        margin-right: 8px;
        align-items: center;
    }
    
    .news-meta {
        font-size: 13px;
    }
    
    .pagination {
        gap: 10px;
    }
    
    .pagination a, .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .fazx-banner {
        height: 280px;
    }
    
    .fazx-banner-texts {
        width: 70%;
        left: 6%;
    }
    
    .fazx-banner-title {
        font-size: 22px;
    }
    
    .fazx-banner-desc {
        font-size: 16px;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 520px) {
    .zxzx-banner {
        height: auto !important;
        margin-top: 60px !important;
        padding-bottom: 56.25% !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .fazx-banner-slides {
        height: 100% !important;
        width: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .fazx-banner-slide {
        height: 100% !important;
        width: 100% !important;
    }
    
    .fazx-banner-img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .fazx-banner-pagination {
        bottom: 5px !important;
    }
    
    .fazx-banner-pagination-item {
        width: 30px !important;
        height: 6px !important;
        margin: 0 4px !important;
    }
    
    .news-container-wrapper {
        margin: 0 10px !important;
        padding: 0 !important;
        background-color: #fff !important;
        border-radius: 0 !important;
    }
    
    .news-list {
        padding: 15px 10px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .news-item {
        padding: 15px 0 !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 0 !important;
        height: 65px;
        margin-bottom: 20px;
    }
    
    .news-number {
        font-size: 16px !important;
        width: 30px !important;
        margin-right: 10px !important;
        align-items: center;
    }
    
    .news-content {
        margin-left: -4px !important;
        max-width: calc(100% - 40px) !important;
    }
    
    .news-title {
        font-size: 16px !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .news-title a {
        height: auto !important;
        padding: 5px 0 !important;
        display: block !important;
        overflow: hidden !important;
    }
    
    .news-title a br + .new-tag {
        margin-top: 6px;
    }
    
    .news-meta {
        font-size: 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    
    .pagination-container {
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 30px !important;
        padding: 20px 0 !important;
    }
    
    .pagination {
        gap: 8px !important;
    }
    
    .pagination a, .pagination span {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    .page-jump {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .page-jump input {
        width: 50px !important;
        padding: 6px !important;
    }
    
    .page-jump button {
        padding: 6px 12px !important;
    }
    
    .search-box {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .search-box input {
        width: 100% !important;
        max-width: 200px !important;
        padding: 6px 10px !important;
    }
    
    .search-box button {
        padding: 6px 12px !important;
    }
    
    .content-container {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .news-link {
        display: block !important;
        text-decoration: none !important;
        color: inherit !important;
        width: 100% !important;
    }
}

@media (max-width: 400px) {
    .news-item {
        height: 60px;
        margin-bottom: 18px;
    }
    
    .news-number {
        font-size: 15px !important;
        width: 25px !important;
        margin-right: 8px !important;
        align-items: center;
    }
    
    .news-title {
        font-size: 15px !important;
    }
    
    .news-title a br + .new-tag {
        margin-top: 5px;
    }
}