/* 顶部 */


/* 模块基础样式 */
section {
    width: 90%;

    padding: 40px 0;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section div {
    justify-content: center;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    color: #111;
}












/* 公司简介 */
.about p {
    font-size: 1rem;
    text-align: left;
    color: #555;
}

.about .info {
    align-items: stretch;
    /* ⚡ 关键：让左右两边等高 */
    gap: 20px;

    border-radius: 12px;
    padding: 20px;


    margin: 0 auto;
}
.mapdiv .mapimg{ display: none;}

.about .info .left {

    width: 100%;
    height:auto;
    padding: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    /* 关键：顶部对齐 */
    margin-top: 0;

}
.about .info .left p{
    position: relative;
    height: auto;
    width: 100%;

}
.about .info .right {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px;
    justify-content: center;
    align-items: center;
    height: 350px;


}

.about .info .right img {
    width: auto;
    max-width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

@media (max-width: 700px) {
    .about .info {
        flex-direction: column;
        /* 手机端上下排列 */
    }

    .about .info .right {
        width: 100%;
        height: auto;
    }

    .about .info .right img {
        height: auto;
        object-fit: contain;
    }
}





footer {
    background: #f7f7f7;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    letter-spacing: 1px;
}

.titles {
    flex-direction: column;
}



/*yewu */
.mapdiv {
    width: 100%;
    padding: 12px 0;
    height: 700px;
    flex-direction: column;
    background: #fff;
}

.titles {
    flex-direction: column;
    height: 150px;
    overflow: hidden;

}

#map {
    width: 100%;
    height: calc(100% - 150px);
    position: relative;

}


/* 信息框样式 */
.infoBox {
    position: absolute;
    backdrop-filter: blur(8px);
    flex-direction: column;
    /*background: linear-gradient(145deg, #eee, #ddd);
      border: 1px solid transparent;
      border-image: linear-gradient(90deg, #eee, #ddd) 1;*/
    border-radius: 10px;
    padding: 10px 14px;
    color: #e6faff;
    font-size: 13px;
    right: 0;
    /*box-shadow:0 0 20px #eee;*/
    opacity: 1;
    transition: all 0.4s ease;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 540px;
    line-height: 1.5;
    z-index: 98;
}

.infoBox .on {
    background: linear-gradient(145deg, #E0E0E0, #BDBDBD);
    border: 1px solid transparent;
    border-image: linear-gradient(90deg, #E0E0E0, #BDBDBD) 1;
    box-shadow: 0 0 20px #BDBDBD;
    width: auto;
    height: 100%;
}

.neirong {
    width: 250px;
    height: 100px;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: var(--size2--);

}

.neirong .title {}

.neirong span {
    color: #00eaff;
}

/* 连接虚线 */
.connectLine {
    position: absolute;
    border-top: 1px dashed #333;
    /* transform: rotate(-30deg);*/

    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* 城市图片大小*/
.infoimg {
    width: auto;
    height: 33%;
}


/*call**/
.call {
    flex-direction: column;

}

.contact-container {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e2a5a;
    margin-bottom: 40px;
    position: relative;
}

.contact-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    border-radius: 5px;
}

.contact-cards {
    margin-bottom: 20px;
    display: flex;
    width: 100%;

    justify-content: space-between;
    gap: 30px;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 350px;
    padding: 30px 10px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    flex-direction: column;
    transform: translateY(30px);
    justify-content: center;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 136, 255, 0.25);
}

.contact-card i {
    font-size: 24px;
    color: #0078ff;
    margin-right: 10px;
}

.contact-card .title {
    font-weight: bold;
    font-size: 18px;
    color: #1e2a5a;
    margin-bottom: 8px;
}

.contact-card p {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.footer-line {
    margin-top: 80px;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card1 {
    width: 48%;
}

.contact-card1 img {
    height: 200px;
    width:auto;

}
.contact-cards1{
    flex-direction: row;
    justify-content: space-between;
    width: 100%;

}

/**荣誉*/

.rongyu {
    flex-direction: column;

}

.rongyu .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    justify-content: center;
}

.rongyu .card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    padding-top: 5px; 
    width: calc(100vw  / 4 )
}

.rongyu .card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.rongyu  .card img {

    height: 220px;
    display: block;
    width: auto;        /* 宽度根据图片比例自适应 */
    max-width: 100%;    /* 宽度不超过容器宽度 */
    object-fit: contain;
}

.rongyu .card .caption {
    padding: 10px;
    text-align: center;
    color: #555;
    font-size: 14px;
}


.card-section{
    padding:20px;
    position:relative;
    background:#fff;
    overflow:hidden;
}

/* 左右按钮 */
.nav-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:30;
    width:48px;
    height:88px;
    border-radius:8px;
    border:0;
    background:rgba(0,0,0,0.45);
    color:#fff;
    font-size:28px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}
.nav-btn:hover{background:rgba(0,0,0,0.65)}
.btn-left{left:8px}
.btn-right{right:8px}

/* ===== 核心：使用 grid 按列流，保证两行布局并可横向滚动 =====
   grid-auto-flow: column 使元素按列填充，每列为 1 个单元格高度的行数（这里是两行）。
   grid-auto-columns 决定每一列的宽度（这里与卡片宽度相同）。
*/
.rongyu .card-wrapper{
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto); /* 两行 */
    gap: 20px;
    grid-auto-columns: 180px; /* 每一列的宽度 */
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;                /* 按列排列 */
    grid-auto-columns: max-content;        /* ⭐ 每列宽度由卡片决定，不压缩 */

    padding: 20px 20px; /* 左右留出空间给按钮（避免遮挡） */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    /* 设定最大高度为两行卡片高度 + gaps */
    max-height: calc(300px *2 + 20px * (2 - 1) + 60px);

    justify-content: flex-start;
}
.card-wrapper:active{cursor:grabbing}

/* 隐藏滚动条（webkit） */
.card-wrapper::-webkit-scrollbar{height:10px}
.card-wrapper::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.12);border-radius:6px}
.card-wrapper::-webkit-scrollbar-track{background:transparent}

/* 单卡片 */
.card{
    width:300px;
    height:300px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    user-select:none;
}

.card .thumb{
    width:100%;
    height: calc(300px - 60px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px;
    background: linear-gradient(180deg,#ffffff,#fbfbfb);
}

/* 兼容各种 logo：不拉伸，居中显示；并加内边距避免贴边 */
.card img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
}

.card h4{
    margin:8px 10px;
    font-size:14px;
    line-height:1.2;
    color:#333;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* 模态大图 */
.lightbox{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.65);
    z-index:100;
}
.lightbox.show{display:flex}
.lightbox-inner{
    max-width:90vw;
    max-height:90vh;
    background:transparent;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
}
.lightbox img{
    max-width:100%;
    max-height:80vh;
    border-radius:8px;
    box-shadow:0 10px 30px rgba(0,0,0,0.5);
    background:#fff;
}
.lightbox .caption{
    color:#fff;
    text-align:center;
    font-size:16px;
}
.lightbox .close-btn{
    position:absolute;
    right:18px;
    top:18px;
    background:rgba(255,255,255,0.15);
    color:#fff;
    border:0;
    width:44px;
    height:44px;
    border-radius:50%;
    font-size:22px;
    cursor:pointer;
}


.card-section{ width: 100%;}

.mapdiv .imglist{ display: none;}

@media (max-width: 768px) {
    header {
        height: 400px;

    }

    header h1 {
        font-size: 1.6rem;
    }

    .service-card {
        width: 90%;
    }

    .member {}

    section {
        margin: 20px auto;
    }

    .about .info {
        padding: 10px 0;
        flex-direction: column;
    }

    .about .info .left {
        width: 100%;
    }

    .about .info .right {
        width: 100%;
    }

    .about .info .right img {
        width: 98%;
    }
    .mapdiv{ height: auto; padding: 12px 0;}
    #map{ display: none;}
    #yewu{padding: 12px 0;}
    #rongyu{
        width: 100%;
        padding: 12px 0;
    }
    .card-section{
        padding: 12px 5px 12px 12px;
    }
    .rongyu .card-wrapper{
        gap:8px;
        padding: 5px;

    }
    .card-wrapper .card{
        padding: 0;
    }
    #call  .contact-cards{
        flex-direction: column;
    }
    #call .contact-card1{ width: 100%;}
    .mapdiv .imglist{ display:  flex;}

}



/* 响应式设计 */
@media (max-width: 1100px) {
    .about   .cards-container {
        height: 320px;
    }

    .about   .card {
        width: 260px;
        height: 340px;
    }

    .about   .card:nth-child(1) {
        left: 2%;
    }

    .about   .card:nth-child(2) {
        left: 15%;
    }

    .card:nth-child(4) {
        right: 15%;
    }

    .about   .card:nth-child(5) {
        right: 2%;
    }
}

@media (max-width: 768px) {
    .about      .cards-container {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .about   .card {
        position: static;
        transform: none !important;
        width: 90%;
        max-width: 400px;
        margin-bottom: 20px;
        z-index: 1 !important;
    }

    .about    .card:hover {
        transform: scale(1.02) !important;
    }

    .about     h1 {
        font-size: 2.5rem;
    }

    .about    .cards-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.about    .card:nth-child(3) {
    animation: float 6s ease-in-out infinite;
}

/* 科技元素 */
.about    .tech-dot {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(76, 201, 240, 0.7);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}
/* 卡片图片区域 */
.about    .cards-section {
    padding: 80px 0 40px;
    position: relative;
}

.about      .cards-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 60px;
    color: #0a1f44;
    position: relative;
}

.about    .cards-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
    border-radius: 2px;
}

.about     .cards-container {
    position: relative;
    height: 280px;
    margin: 0 auto;
    width: 100%;
}

.about     .card {
    position: absolute;
    width: 320px;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    z-index: 1;
    background-color: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 卡片初始位置设置 */
.about     .card:nth-child(1) {
    left: 5%;
    top: 0;
    transform: rotate(-5deg);
    z-index: 1;
}

.about      .card:nth-child(2) {
    left: 18%;
    top: 10px;
    transform: rotate(-2deg);
    z-index: 2;
}

.about      .card:nth-child(3) {
    left:calc( 50% - 160px);
    top: 0;
    transform: translateX(-50%) rotate(0deg);
    z-index: 5;
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.2);
}

.about      .card:nth-child(4) {
    right: 18%;
    top: 10px;
    transform: rotate(2deg);
    z-index: 2;
}

.about    .card:nth-child(5) {
    right: 5%;
    top: 0;
    transform: rotate(5deg);
    z-index: 1;
}

/* 卡片悬停效果 */
.about    .card:hover {
    z-index: 10 !important;
    transform: scale(1.08) rotate(0deg) !important;
    box-shadow: 0 25px 50px rgba(67, 97, 238, 0.3);
}

/* 当一张卡片悬停时，其他卡片的微调效果 */
.about    .cards-container:hover .card:not(:hover) {
    filter: brightness(0.95);
}

.about     .card-image {
    width: 100%;
    height:auto;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.about   .card-image img{
    width: 100%;
    height: auto;
}

.about     .card:hover .card-image {
    transform: scale(1.05);
}

.about     .card-content {
    padding: 20px;
    height: 30%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about     .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0a1f44;
}

.about    .card-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.about    .card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}
.dn{ display: none !important;;}
.fanye{
    width: 100%;
    padding: 10px 0px;
   
    position: relative;
}
.fanye  .fanyepage{
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    display: grid;
    overflow: hidden;
    
     
}
.ye{ 
   flex-direction: column;
   justify-content: center;
   align-content: center;
       padding-top: 5px;
   height: 270px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
        background: #fff;
    border-radius: 16px;
}
.ye .thumb{
    width: 100%;
    height: calc(100% - 30px);
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: linear-gradient(180deg, #ffffff, #fbfbfb);
}
.thumb img{
   height: 220px;
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}



.callus{
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 30px 10px;
    text-align: center;
    transition: all 0.3s ease;
   flex-direction: row;
   
    
    
}
.callus .left{
    width: 70%;
    padding: 20px;
    flex-direction: column;
    
}
.callus .left img{
   width: 100%;
   height: auto;
}
.callus .left .info{
    flex-direction: row;
}
.callus .left .info div{
    width: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.callus .left em{
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    color: #1e2a5a;
    margin-bottom: 8px;
}
.callus .left p{
    font-size: 13px;
}
.callus .right{
    width: 30%;
    padding: 20px;
    flex-direction: column;
    justify-content: space-between;
    
}
.callus .right .info{
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.callus .right .info .title{
     font-weight: bold;
    font-size: 18px;
    color: #1e2a5a;
    margin-bottom: 8px;
}
.callus .right .info i{
         font-size: 24px;
    color: #0078ff;
    margin-right: 10px;
}