/* 保留原有基础样式 */
:root {
    --primary-blue: #0a3d62;
    --secondary-blue: #1e5799;
    --accent-blue: #2c8cf0;
    --light-bg: #f8f9fa;
    --light-grey-bg: #f0f4f8;
    --dark-text: #333;
    --light-text: #fff;
    --border-color: #e1e5ee;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: #fff;
    scroll-behavior: smooth;
}

/* 内容容器样式 */
.content-container {
    max-width: 1920px;
    margin: 0 auto;
    /*padding: 40px 20px;*/
}



/* 公司介绍区域 */
.company-section {
    display: flex;
    gap: 40px;
    margin-bottom: 70px;
    width: 84%;
    margin: 70px auto;
}

.company-content {
    flex: 1;
}

.company-title {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5ee;
    font-weight: 700;
}

.company-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* 右侧导航按钮 */
.nav-buttons {
    width: 280px;
    display: flex;
    flex-direction: column;
    /*垂直居中*/
    align-items: center;
    justify-content: center;
    gap: 15px;

}
.nav-buttons .active{
    display: flex;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 201.56px;
    height: 201.67px;
    opacity: 1;

    /*background-color: var(--light-bg);*/
    border: none;

    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 5px;
}
.nav-btn span{
    margin-top: 10px;
    color: var(--light-text);
    font-size: 16px;
    font-weight: 600;
}

.nav-btn:hover, .nav-btn.active {
    /*background-color: var(--accent-blue);*/
    background: rgba(8, 58, 129, 1);
    color: var(--light-text);
    transform: translateY(-3px);
}

/* 企业文化区域 */
.culture-section {
    background-color: var(--light-grey-bg);
    padding: 60px 0;
    margin-bottom: 70px;
}

#about .section-title {
    font-size: 32px;
    color: var(--primary-blue);
    /*margin-bottom: 50px;*/
    font-weight: 700;
    padding-left: 20px; /* 标题左对齐 */
    width: 84%;
    margin: 0 auto;
    text-align: start;
}
#history .section-title {
    font-size: 32px;
    color: var(--primary-blue);
    /*margin-bottom: 50px;*/
    font-weight: 700;
    padding-left: 20px; /* 标题左对齐 */
    width: 84%;
    margin: 0 auto;
    text-align: start;
}

.culture-grid {
    display: flex;
    /*flex-wrap: wrap;*/
    justify-content: center;
    /*不换行*/
    white-space: nowrap;


    gap: 25px;
    max-width: 84%;
    margin: 0 auto;
    padding: 0 20px;
}

.culture-item {
    background: white;
    /*padding: 35px 25px;*/
    width: 336px;
    /*border-radius: 10px;*/
    transition: all 0.3s;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    /*column布局*/
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}
.culture-item .hover{
    display: none;
}
.culture-item:hover .default{
    display: none;
}
.culture-item:hover .hover{
    display: block;
}
.culture-item p{
    white-space: wrap;
    width: 85%;
    margin-top: 20px;
}
.culture-item h3{
    margin-top: 20px;
}
.culture-item img{
    margin-bottom: 20px;
}

.culture-item:hover {
    background-color: rgba(8, 58, 129, 1);
    color: var(--light-text);
    transform: translateY(-8px);
}

.culture-item:hover i,
.culture-item:hover h4 {
    color: var(--light-text);
}

.culture-item i {
    font-size: 42px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.culture-item h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 22px;
    transition: all 0.3s;
}

/* 业务介绍区域 - 更新部分 */
.services-section {
    padding: 0 20px;
    margin-bottom: 70px;
}

/* 业务介绍大标题 */
.services-section .section-title {
    /*padding-left: 20px; !* 标题左对齐 *!*/
}

/* 业务介绍卡片容器 */
.services-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

/* 第一行：单张横向卡片 */
.service-row-1 {
    display: flex;
    margin-bottom: 30px;
    height: 350px; /* 固定高度形成正方形容器 */
}

/* 第二行：两张并列卡片 */
.service-row-2 {
    display: flex;
    gap: 30px;
    /*height: 350px; !* 固定高度形成正方形容器 *!*/
}

/* 横向卡片样式（第一行） */
.service-card-h {
    display: flex;
    background: white;
    /*border-radius: 12px;*/
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    flex: 1;
    padding: 30px;
}

.service-img-h {
    width: 50%;
    background-size: cover;
    background-position: center;
}

.service-content-h {
    padding: 35px;
    width: 50%;
}

.service-content-h h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 24px;
    transition: all 0.3s;
}

/* 垂直卡片样式（第二行） */
.service-card-v {
    display: flex;
    flex-direction: column;
    background: white;
    /*border-radius: 12px;*/
    /*overflow: hidden;*/
    box-shadow: var(--shadow);
    transition: all 0.3s;
    flex: 1;
    padding: 30px;
}

.service-content-v {
    padding: 35px;
}

.service-content-v h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 24px;
    transition: all 0.3s;
}

.service-img-v {
    height: 200px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

/* 所有卡片悬停效果 */
.service-card-h:hover,
.service-card-v:hover {
    background-color: rgba(8, 58, 129, 1);
    transform: translateY(-5px);
}

.service-card-h:hover .service-content-h h3,
.service-card-h:hover .service-content-h p,
.service-card-v:hover .service-content-v h3,
.service-card-v:hover .service-content-v p {
    color: var(--light-text);
}

.tab-content {
    display: none;
}

.active {
    display: block;
}

/* 发展历程部分 */
.history-section {
    /*margin-bottom: 70px;*/
    background: rgba(247, 247, 247, 1);
    padding:100px 0;
}

.section-title {
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 40px;
    /*text-align: center;*/
    padding-top: 20px;
}
.services-section .section-title {
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 120px;
    /*text-align: center;*/
    padding-top: 20px;
}

/* 时间周期导航 */
.period-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.period-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-bg);
    /*border: none;*/
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-blue);
    border: 1.5px solid rgba(8, 58, 129, 1);
    /*box-shadow: var(--shadow);*/
    z-index: 10;
}

.period-btn:hover {
    background: rgba(8, 58, 129, 1);
    color: var(--light-text);
    transform: scale(1.05);
}
.period-btn:hover i {
    /*background: rgba(8, 58, 129, 1);*/
    color: var(--light-text);
    transform: scale(1.05);
}

.period-display {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 30px;
    min-width: 150px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* 时间线容器 */
.timeline-container {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    margin-bottom: 50px;
    padding: 0 15%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.timeline-container::-webkit-scrollbar {
    display: none;
}

.timeline-item {
    flex: 0 0 70%;
    scroll-snap-align: center;
    min-width: 90%;
    background-color: #ffffff;
    /*border-radius: 10px;*/
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    margin: 0 15px;
    height: 372px;
    display: flex;
}

.timeline-img {
    width: 45%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.timeline-content {
    padding: 30px;
    width: 55%;
    position: relative;
    overflow-y: auto;
}

.timeline-date {
    position: absolute;
    top: 25px;
    left: 0;
    background-color: var(--accent-blue);
    color: var(--light-text);
    padding: 8px 20px;
    font-size: 18px;
    font-weight: 600;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.timeline-title {
    font-size: 24px;
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 20px;
}

.timeline-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* 时间线列表样式 */
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    display: flex;
    /*横向布局 不换行*/
    flex-direction: row;
    /*向上向左对其*/
    align-items: flex-start;
    justify-content: flex-start;
}

.timeline-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-blue);
}

.timeline-list li:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 28px;
    bottom: -20px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-list li:last-child:after {
    display: none;
}

.event-date {
    font-size: clamp(12px,1vw,16px);
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 22px;
    color: rgba(0, 0, 0, 1);
    width: 7vw;
    /*float: left;*/
    margin-bottom: 5px;
    margin-right: 15px;
}

.event-description {
    /*font-size: 14px;*/
    /*color: var(--dark-text);*/
    /*line-height: 1.6;*/
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 24px;
    color: rgba(0, 0, 0, 1);
    width: 26vw;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .service-row-1, .service-row-2 {
        height: auto;
    }
    .col-banner .title h4 {
        font-size: 22px;
    }

    .service-row-2 {
        flex-direction: column;
    }

    .service-card-h {
        flex-direction: column;
        height: auto;
    }

    .service-img-h, .service-content-h {
        width: 100%;
    }

    .service-img-h {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .company-section {
        flex-direction: column;
    }

    .nav-buttons {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tab-item {
        padding: 10px 20px;
        font-size: 16px;
    }
    .col-banner .title h4 {
        display: none;
    }
    .culture-grid {
        grid-template-columns: 1fr;
    }

    .service-row-1, .service-row-2 {
        flex-direction: column;
        height: auto;
    }

    .service-card-h, .service-card-v {
        margin-bottom: 25px;
    }

    .service-img-h {
        height: 200px;
    }
}
/* 在原有样式基础上添加以下媒体查询 */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-btn {
        width: 150px;
        height: 150px;
        margin: 10px;
    }

    .culture-grid {
        flex-direction: column;
        align-items: center;
    }

    .culture-item {
        width: 100%;
        max-width: 350px;
        margin-bottom: 20px;
    }

    .service-row-1, .service-row-2 {
        flex-direction: column;
    }

    .service-card-h, .service-card-v {
        flex-direction: column;
        height: auto;
    }

    .service-img-h, .service-img-v {
        width: 100%;
        height: 200px;
    }

    .service-content-h, .service-content-v {
        width: 100%;
        padding: 20px;
    }

    .timeline-container {
        padding: 0 5%;
    }

    .timeline-item {
        min-width: 90%;
        height: auto;
        flex-direction: column;

    }

    .timeline-img {
        width: 100%;
        height: 200px;
    }

    .timeline-content {
        width: 100%;
        padding: 15px;
    }
    .event-date {
        width: 30%;
        /*margin-bottom: 10px;*/
    }
    .event-description {
        width: 60%;
        /*margin-bottom: 10px;*/
    }

}

@media (max-width: 992px) {
    .company-section {
        flex-direction: column;
        padding: 0 15px;
    }

    .company-image {
        width: 100%;
        height: auto;
    }
}
/* 新增Swiper相关样式 */
.timeline-container.swiper {
    overflow: visible;
    padding: 0 10%;
}
.timeline-item.swiper-slide {
    opacity: 0.6;
    transform: scale(0.95);
    transition: all 0.4s ease;
    height: auto;
}
.timeline-item.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}
.swiper-pagination {
    position: relative;
    margin-top: 30px;
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #0a3d62;
    opacity: 0.3;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: #2c8cf0;
}
/* 新增荣誉资质部分样式 */
#honor .honor-section {
    padding: 60px 0;
    /*width: 84%;*/
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;

}

#honor .section-title {
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 40px;
    /*text-align: center;*/
    padding-top: 20px;
    width: 84%;
}


#honor .honor-swiper-main{
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 84%;
}
#honor .honor-swiper-container {
    display: flex;
    /*两侧布局*/
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    width: 80%;
}

#honor .image-swiper-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    /*height: 420px;*/
    border-radius: 10px;
    width: 95%;
}

#honor #certify {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 40px;
}

#honor #certify .swiper-container {
    height: 100%;
    width: 100%;
}

#honor #certify .swiper-slide {
    width: 590px;
    /*height: 390px;*/
    background: #fff;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: scale(0.85);
    opacity: 0.7;
    transition: all 0.5s ease;
}

#honor #certify .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
    z-index: 3;
}

#honor #certify .swiper-slide-prev,
#honor #certify .swiper-slide-next {
    transform: scale(0.85);
    opacity: 0.8;
    z-index: 2;
}

#honor #certify .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#honor .honor-list {
    /*width: 35%;*/
}

#honor .honor-list-container {
    height: 383px;
    overflow-y: auto;
    padding-right: 15px;
}

#honor .honor-item {
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

#honor .honor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

#honor .honor-item.active {
    border-left-color: #2c8cf0;
    background: rgba(8, 58, 129, 1);
    color: white;
}
#honor .honor-item.active h3 {
    color: white;
}
#honor .honor-item h3 {
    font-size: 16px;
    margin-bottom: 0;
    color: rgba(8, 58, 129, 1);
    text-align: center;
}

#honor .section-subtitle {
    font-size: 28px;
    color: #1e5799;
    text-align: center;
    margin: 40px 0 20px;
    font-weight: 600;
}

#honor .honor-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

#honor .honor-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#honor .honor-btn:hover {
    background: #2c8cf0;
    color: white;
    border-color: #2c8cf0;
    transform: translateY(-3px);
}

/* 响应式设计 - 添加#honor前缀 */
@media (max-width: 1200px) {
    #honor #certify .swiper-slide {
        /*width: 500px;*/
    }
}

@media (max-width: 992px) {
    #honor .honor-swiper-container {
        flex-direction: column;
    }

    #honor .image-swiper-wrapper {
        height: 350px;
        width: 100%;
    }
    #honor .honor-list {
        display: none;
    }
    #honor .honor-swiper-main {
        width: 100%;
        justify-content: center;
    }
    #honor #certify .swiper-slide {
        width: 450px;
        /*height: 350px;*/
    }

    #honor .honor-list {
        width: 100%;
    }

    #honor .honor-list-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    #honor .image-swiper-wrapper {
        height: 300px;
    }

    #honor #certify .swiper-slide {
        width: 350px;
        /*height: 300px;*/
    }

    #honor .section-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    #honor #certify .swiper-slide {
        width: 280px;
        /*height: 250px;*/
    }

    #honor .honor-item h3 {
        font-size: 14px;
    }
}

/* 新增修复样式 */
#honor #certify .swiper-wrapper {
    display: flex;
    align-items: center;
}

#honor .swiper-slide {
    flex-shrink: 0;
}
/* 添加tab切换动画效果 */
.tab-content-wrapper {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    visibility: hidden;
    z-index: 0;
}

.tab-content.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    visibility: visible;
    z-index: 1;
}

/* 淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 淡出动画 */
@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.tab-content.animate-out {
    animation: fadeOutDown 0.6s ease forwards;
}
/* 修改前 */
#honor .honor-list-container {
    height: 383px;
    overflow-y: auto;
    padding-right: 15px;
}

/* 修改后 */
#honor .honor-list-container {
    height: 383px; /* 固定高度，确保显示6项 */
    overflow-y: auto; /* 允许垂直滚动 */
    padding-right: 15px; /* 为滚动条留出空间 */
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* 隐藏Webkit浏览器的滚动条 */
#honor .honor-list-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.count-indicator {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}
@media (max-width: 768px) {
    #honor .honor-list-container {
        height: 300px; /* 移动端调整高度 */
    }
}
/* 添加荣誉列表滚动提示 */
.count-hint {
    display: block;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
    border-top: 1px dashed #eee;
    margin-top: 10px;
}
/* 手机端样式调整 */
@media (max-width: 768px) {
    /* 隐藏右侧荣誉列表 */
    #honor .honor-list {
        display: none;
    }

    /* 让swiper容器占据全部宽度 */
    #honor .honor-swiper-container {
        width: 100% !important;
    }

    /* 调整swiper项目大小 */
    #honor #certify .swiper-slide {
        width: 85vw !important;
        /*height: 65vw !important;*/
        transform: scale(0.95) !important;
    }

    #honor #certify .swiper-slide-active {
        transform: scale(1) !important;
    }

    /* 调整控制按钮位置 */
    #honor .honor-controls {
        position: relative;
        /*top: -30px;*/
    }

    /* 调整标题位置 */
    #honor .section-subtitle {
        margin-top: 20px;
        font-size: 24px;
    }

    /* 调整容器高度 */
    #honor .image-swiper-wrapper {
        height: 75vw !important;
        width: 100% !important;
    }

}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    #honor #certify .swiper-slide {
        width: 90vw !important;
        /*height: 70vw !important;*/
    }

    #honor .section-subtitle {
        font-size: 20px;
    }
}