/* 关于我们开始 */
.AboutUs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    width: 100%; /* 确保父容器全屏 */
}

.about-pic {
    background-image: url('../img/about-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) {
    .about-pic {
        height: auto;
        min-height: 150px; /*确保移动端内容不足时 支撑图片高度，显示图片*/
    }
}

.about-main-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 60px;
}

.about-content {
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 57px;
}

.about-content .about-content-title {
    font-size: 24px;
    margin-bottom: 27px;
}

.about-desc {
    color: #7a838e;
    margin-bottom: 55px;
}

.about-content-text {
    color: #87919e;
}

.image-gallery {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.image-gallery .about-content-img {
    height: 230px;
    width: calc(33.333% - 10px);
    margin: 5px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
    }

    .image-gallery .about-content-img {
        width: 100%;
        margin-bottom: 10px;
        height: auto;
        border-radius: 10px;
    }
}

/* main-body2 开始 */
:root {
    --content-width: min(1200px, 90%);
    --card-spacing: 50px;
    --dash-color: rgba(0, 102, 204, 0.3);
    --title-height: 2.5rem; /* 标题高度变量 */
}

.amb {
    background-color: #f6f6f6;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin: 5.875rem 0;
}

.about-main-body2 {
    width: var(--content-width);
    margin: 4rem auto;
    padding: 2rem 0;
}

.about-content-title2 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: #0056b3;
    width: 100%;
    padding: 0 1rem;
}

.about-content2 {
    display: flex;
    justify-content: center;
    position: relative;
    gap: var(--card-spacing); /* 使用gap控制间距 */
}

/* 垂直虚线优化 */
.vertical-line {
    position: absolute;
    height: 85%;
    top: 15%;
    border-left: 1.5px dashed var(--dash-color);
    transform: translateX(calc(var(--card-spacing)/-1.5)); /* 动态计算位置 */
}

.vertical-line:nth-child(2) {
    left: calc(33.33% + var(--card-spacing)/2);
}

.vertical-line:nth-child(4) {
    left: calc(66.66% + var(--card-spacing)/1.2);
}

.about-card {
    background: white;
    border-radius: 0.5rem;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s ease;
    position: relative;
    width: calc(33.33% - var(--card-spacing)*2/3);
    overflow: hidden; /* 图片缩放 */
}

.about-card:hover {
    transform: translateY(-0.5rem);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: transform 0.3s ease;
}

.about-card:hover .card-img {
    transform: scale(1.05);
}


.card-title {
    background-color: #0066cc;
    color: white;
    /*padding: 0.5rem; !* 减少内边距 *!*/
    margin: -1.2rem 0 0; /* 调整负边距 */
    border-radius: 2rem;
    text-align: center;
    width: 100%;
    font-size: clamp(1.1rem, 2vw, 1.15rem);
    position: relative;
    z-index: 1;
    min-height: var(--title-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-desc {
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.card-desc p:not(:last-child) {
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .about-content2 {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .about-card {
        width: calc(50% - var(--card-spacing)/2);
    }

    .vertical-line:nth-child(4) {
        display: none;
    }

    .vertical-line:nth-child(2) {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .about-content2 {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-card {
        width: 100%;
        max-width: 500px;
    }

    .vertical-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .card-img {
        height: 150px;
    }

    .card-desc {
        padding: 1.5rem 1rem;
    }

    .card-title {
        margin-top: -1rem;
        min-height: 2rem;
    }
}
/* main-body2 结束 */
/* 关于我们结束 */