/* 解决滚动条问题，确保页面没有右侧滚动条 */
.news-page {
    min-height: 100vh;
    padding-top: 0; /* 移除顶部内边距 */
    overflow-x: hidden; /* 防止水平滚动 */
    position: relative;
}
.cases-page{
    min-height: 100vh;
    padding-top: 0; /* 移除顶部内边距 */
    overflow-x: hidden; /* 防止水平滚动 */
    position: relative;
}

.header-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    transition: all ease .5s;
    margin-bottom: 0; /* 移除底部间距 */
    margin-top: 0px; /* 添加顶部边距，与顶栏高度一致，确保默认状态下正确显示 */
}
.bg_banner{
    width: 100%;height:550px;
}
.allbannerm {
    max-width: 1200px;
    height: 100%;
    position: relative;
    margin: 0 auto;
    p{
        color: hsla(0,0%,100%,0.8);
        margin: 0;
        font-size: 24px;
    }
    .title1{

    }
    .title2{
        font-size: 18px;
        margin-top: 15px;
        letter-spacing: 4px;
        line-height: 35px;
    }
}

.docuimg1 {
    position: absolute;
    top: 6%;
    left: 26%;
}
.docuimg6 {
    position: absolute;
    top: 34%;
    left: 44.7%;
    width: 125px;
}
.docuimg2{
    position: absolute;
    top: 19%;
    width: 400px;
}
.docuimg3{
    position: absolute;
    top: 19%;
    left: 65%;
    width: 400px;
}
.docuimg4{
    position: absolute;
    top: 59%;
    width: 400px;

}
.docuimg5{
    position: absolute;
    top: 59%;
    left: 65%;
    width: 400px;
}
.docu-p {
    width: 2px;
    height: 80px;
    position: absolute;
    top: 19%;
    background: white;
    left: 50%;
}
.docu-pa {
    width: 2px;
    height: 80px;
    position: absolute;
    top: 65%;
    background: white;
    left: 50%;
}
.docu-pb {
    position: absolute;
    top: 55%;
    left: 46.2%;
    font-size: 23px;
    color: white;
    letter-spacing: 10px;
}
@-webkit-keyframes rotation4{
    from {-webkit-transform: rotate(0deg);}
    to {-webkit-transform: rotate(360deg);}
}

.Rotation4{
    -webkit-transform: rotate(360deg);
    animation: rotation4 40s linear infinite;
    -moz-animation: rotation4 40s linear infinite;
    -webkit-animation: rotation4 40s linear infinite;
    -o-animation: rotation4 40s linear infinite;
}
.header-image {
    width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 新闻部分样式 */
.news-section {
    padding: 20px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #777;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

.read-more-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.read-more-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* 分页信息样式 */
.pagination-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    color: #333;
    border: 1px solid #eee;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #333;
    color: #333;
}

.pagination-btn:active:not(:disabled) {
    background: #333;
    color: white;
    border-color: #333;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-icon {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #000;
    text-decoration: none;
}

.page-number:hover:not(.active):not(.disabled) {
    background: #f5f5f5;
    border-color: #ddd;
}

.page-number.active {
    background: #333;
    color: white;
    border-color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-number.disabled {
    cursor: default;
}


/* 移动端样式 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-page {
        padding-top: 0px; /* 顶部内边距等于顶栏高度 */
    }

    .top-black-bar {
        height: 60px; /* 移动端顶栏高度 */
    }

    .header-container {
        margin-top: 0px;
        width: 120%; /* 使头图宽度超出屏幕 */
        margin-left: -10%; /* 负边距使图片两侧均超出 */
        overflow: hidden;
    }

    .header-image {
        width: 200%;
        max-width: none;
        margin-left: -50%; /* 使图片居中，隐藏两侧 */
        display: block;
        object-fit: cover;
        object-position: center;
        height: 100%;
    }

    .news-section {
        padding: 20px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pagination-numbers .page-number:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }

    .pagination-numbers .page-number:first-child,
    .pagination-numbers .page-number:last-child,
    .pagination-numbers .page-number.active {
        display: flex;
    }
}

/* 更小屏幕设备适配 */
@media (max-width: 480px) {
    .news-page {
        padding-top: 0; /* 移除顶部内边距 */
        margin-top: 45px;
    }

    .top-black-bar {
        height: 0px; /* 更小屏幕的顶栏高度 */
    }


    .news-section {
        padding: 20px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .news-section {
        padding: 20px 0;
    }

    .news-image {
        height: 180px;
    }

    .news-content {
        padding: 16px;
    }

    .news-title {
        font-size: 18px;
    }

    .pagination-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }

    /* 关于我们部分更小屏幕适配 */
    .about-image {
        height: 150px;
    }

    .contact-info {
        padding: 15px 10px;
    }

    .contact-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .contact-items {
        flex-direction: column;
        gap: 12px;
    }

    .contact-item {
        font-size: 13px;
        justify-content: center;
    }

    .contact-value {
        font-size: 14px;
    }

    .footer-column {
        flex-basis: 40%;
    }

    .copyright {
        font-size: 12px;
    }
}

/* 添加动画样式 */
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-up.animated {
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-left.animated {
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-right.animated {
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.8);
}

.scale-in.animated {
    transform: scale(1);
}


/* 移动端适配 */
@media (max-width: 768px) {
    .bg_banner{
        height: 375px;
    }
    .allbannerm{
        .title1{
            font-size: 16px;
        }
        .title2{
            font-size: 12px;
            line-height: 16px;
        }
    }

    .allbannerm .docuimg2{
        position: absolute;
        top: 15%;
        left: 12%;
        width: 160px;
    }
    .allbannerm .docuimg3{
        position: absolute;
        top: 15%;
        left: 57%;
        width: 160px;
    }
    .allbannerm .docuimg4{
        width: 160px;
        left: 12%;
    }
    .allbannerm .docuimg5{
        width: 160px;
        left: 57%;
    }
    .docu-pb{
        display: none;
    }
    .docuimg6 {
        top: 46%;
        left: 43.7%;
        width: 60px;
    }

    .docu-pb {
        left: 41.2%;
    }

    .docu-p {
        top: 20%;
    }
    .docu-pa {
        top: 66%;
    }

    .docuimg1 {
        position: absolute;
        top: 30%;
        left: -4%;
    }
}