/* 服务开始 */

/* 背景图开始*/
.service-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    width: 100%; /* 确保父容器全屏 */
}

.service-pic {
    background-image: url('../img/service-pic.jpg.webp');
    background-repeat: no-repeat;
    background-size: cover; /* 确保背景图片覆盖整个容器 */
    background-position: center;
    width: 100vw; /* 使用视口宽度，确保全屏 */
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    box-sizing: border-box; /* 确保padding和border不会增加额外宽度 */
}

@media (max-width: 768px) {
    .service-pic {
        height: auto;
        min-height: 150px; /*确保移动端内容不足时 支撑图片高度，显示图片*/
    }
}
/* 背景图结束 */

.service-main-body{
    display: flex;
    align-items: flex-start;
    margin: 3rem 0 3rem;
    gap:100px;
}

/* menu start */
.service-anchorpoint-menu {
    width: 100%;
    max-width: 269px;
    border: 2px solid #c1d5e6;
    border-radius: 3px;
    padding: 1.5rem 1rem;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
}

.service-anchorpoint-menu > .case-h2-title {
    margin: 0.9375rem 0;
    font-size: 1.5rem;
    color: #333;
    padding-left: 0.5rem;
}

.service-menu-title {
    min-height: 3.75rem;
    background-color: #eff8ff;
    margin-bottom: 0.625rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.service-menu-title:hover {
    background-color: #d6edff !important;
    transform: translateX(0.5rem);
}

.anchor-title {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
}
/* menu end */

/* view_ocean 开始 */
.service-ocean-content {
    font-family: Arial, sans-serif;
    color: #333;
    padding: 20px;
    max-width: 1200px; /* 设置最大宽度，适应不同屏幕 */
    /*margin:0 0 3rem;*/
}

.service-ocean-content .ocean-title {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 10px; /* 上下间距 */
}

.service-ocean-content .ocean-sottotitoli {
    font-size:16px;
    margin-bottom: 40px;
}

.service-ocean-subcon {
    position: relative;
    width: 100%; /* 设置子容器宽度 */
    /*background: url('../img/ocean-sfondo.jpg');*/
    /*background-size: cover;*/
}

.sevice-ocean-desc {
    font-size: 16px;
    margin-bottom: 70px; /* 上下间距 */
    word-wrap: break-word; /* 允许长单词或 URL 地址换行到下一行 */
    max-width: 100%;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
}

.feature-item {
    width: calc(20% - 20px); /* 适应5个元素，减去间距 */
    margin: 10px; /* 添加间距 */
}

.feature-item .ocean-img {
    width: 155px;
    height: 155px;
    border-radius: 50%;
}

.feature-item .ocean-img-desc {
    margin-top: 10px;
    font-size: 16px;
    width: 155px;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    margin-left: 45px;
}
/* view_ocean 结束 */



/* view_air 开始 */
.service-air-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 75rem;
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
}

.air-con {
    flex: 1 1 10%; /* 基础宽度 0% */
    min-width: 20rem;
    padding-right: 2rem;
    margin-top: 3rem;
}

.air-title {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 1.5625rem;
}

.air-solid {
    border-top: 1px solid #d5d5d5;
    width: 100%;
    margin: 1.5625rem 0;
}

.air-text {
    font-size: 1.1875rem;
    line-height: 1.5;
    color: #666;
    max-width: 40rem; /* 防止文本过长 */
}

.air-img-con {
    flex: 1 1 35%;
    min-width: 18rem;
    display: grid;
    gap: 1.25rem;
}

.air-img-con .air-img {
    width: 100%;
    height: auto;
    max-height: 15.5625rem;
    object-fit: contain; /* 保持图片比例 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .service-air-content {
        flex-direction: column;
        height: auto;
    }

    .air-con {
        max-width: 100%;
        padding-right: 0;
        margin-top: 2rem;
    }

    .air-title {
        font-size: 2.75rem;
    }

    .air-text {
        font-size: 1rem;
    }

    .air-img-con {
        order: -1; /* 图片在上方 反之亦然*/
        margin-left: 0;
        grid-template-columns: 1fr 1fr; /* 两列布局 */
    }
}

@media (max-width: 480px) {
    .air-img-con {
        grid-template-columns: 1fr; /* 单列布局 */
    }
}
/* view_air 结束 */


/* view_custom 开始 */
.service-custom-content {
    display: flex;
    flex-wrap: nowrap; /* 强制同行显示 */
    gap: 2rem;
    max-width: 77rem;
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
    margin: -0.75rem 0;
    align-items: center;
}

.custom-con {
    flex: 0 1 40%; /* 禁止扩展/允许收缩/基础占比40% */
    min-width: 30rem;
    max-width: 40rem;
    padding-right: 2rem;
}

.custom-title {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 1.5625rem;
}

.custom-text {
    font-size: 1.1875rem;
    line-height: 1.5;
    color: #666;
    max-width: 40rem;
}

.custom-img-con {
    flex: 0 1 60%; /* 禁止扩展/允许收缩/基础占比60% */
    min-width: 30rem;
    max-width: 51.875rem;
    display: grid;
    gap: 1.25rem;
}

.custom-img-con .custom-img {
    width: 100%;
    height: auto;
    max-height: 31.25rem;
    aspect-ratio: 83/50;
    object-fit: contain;
}

/* 中屏幕适配 */
@media (max-width: 1024px) {
    .service-custom-content {
        margin: 5rem 0;
        flex-wrap: wrap; /* 允许换行 */
    }
    .custom-con,
    .custom-img-con {
        flex-basis: 100%; /* 强制垂直排列 */
        max-width: 100%;
        min-width: auto;
    }
    .custom-con {
        padding-right: 0;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .service-custom-content {
        margin: 3.125rem 0;
        flex-direction: column;
        gap: 1rem;
    }
    .custom-img-con {
        order: 1; /* 图片容器置顶 */
    }
    .custom-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .custom-img-con {
        grid-template-columns: 1fr;
    }
}
/* view_custom 结束 */


/* view_value 开始 */
.service-value-content {
    max-width: 77rem;
    width: 100%;
    padding: 0 20px;
    /*margin: 30px auto 0;*/
    position: relative;
    top: 20px;
    margin: -0.75rem 0;
}

.value-con {
    margin-bottom: 50px;
    text-align: left;
}

.value-title {
    color: #0056b3;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.value-img-con {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 77rem;
    margin: 0;
}

.value-img-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}

.value-img {
    height: 177px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.value-img-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* 交互效果 */
.value-img-item:hover {
    transform: translateY(-5px);
    /*box-shadow: 0 8px 20px rgba(0,0,0,0.15);*/
}

.value-img-item:hover .value-img {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .value-img-con {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .value-title {
        font-size: 2rem;
    }

    /*.value-img-con {*/
    /*    grid-template-columns: repeat(2, 1fr);*/
    /*    gap: 1.5rem;*/
    /*}*/

    .value-img-con {
        grid-template-columns: repeat(2, minmax(150px, 1fr)); /* 强制双列 */
    }

    .value-img-item {
        width: 100%;
        max-width: none !important; /* 解除宽度限制 */
        margin-bottom: 15px;
    }

    .service-container {
        align-items: flex-start;
    }

    .service-value-content {
        margin-left: 0;
        margin-right: 0;
        margin-top: 25px; /* 中等屏幕间距 */
        top: 15px;
    }

    .value-con {
        text-align: left;
        width: 100%;
    }

    .value-title {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .service-value-content {
        margin-top: 20px; /* 移动端间距 */
        top: 10px;
        padding: 0 15px; /* 同步缩小两侧间距 */
    }

    .value-img-con {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important; /* 强制间隙 */
    }

    .value-img-item {
        width: 100%; /* 确保填满网格列 */
        max-width: calc(50% - 5px); /* 精确计算宽度 */
        margin: 0 !important;
    }

    .value-img {
        height: 180px;
        object-position: left;
    }

    .value-img-desc {
        text-align: center !important;  /* 强制居中 */
        padding-left: 0 !important;
        width: 100%;
        margin: 0 auto;
        padding: 15px 8px;
    }
}

@media (max-width: 480px) {
    .value-title {
        font-size: 1.75rem;
    }

    .service-value-content {
        padding: 0 15px;
        margin-top: 15px;
        top: 5px;
    }

    .value-img-con {
        /*gap: 10px;*/
        grid-template-columns: 1fr !important;
    }

    .value-img-item {
        max-width: 100% !important;
        margin-bottom: 15px !important;
    }

    .value-img {
        height: 130px !important;
    }

    .value-img-desc {
        font-size: 0.95rem;
        padding: 10px 5px !important;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 800px;
    margin: 5% auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
}
/* view_value 结束 */

/* 服务结束 */
