/* 关于我们页面样式 */
body {
    background-color: #ebebebe8 !important;
    /* 使用!important提高优先级 */
}

.about-top-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* 主体内容区域 */
main {
    width: 90%;
    margin: -50px auto 0 auto;
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/*--------------------  页面导航  --------------------*/
.page-nav {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.nav-link {
    color: #999;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #9163CC;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 20px);
    /* 比文字宽度多20px */
    height: 5px;
    background: #9163CC;
}

/*--------------------  关于我们主要内容  --------------------*/
.about-main {
    padding: 50px 60px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 600;
    margin: 30px auto;
    color: #9163CC;
}

h1 {
    margin: 0;
    text-align: center;
}

.title-line {
    font-size: 24px;
    margin: 0 20px;
    text-align: center;
}

/* 公司介绍区域 */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin: 50px auto;
}

.company-logo {
    margin: 30px 30px;
}

.company-logo-img {
    width: 30vw;
    max-width: 450px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    padding: 15px;
}

.about-text p {
    font-size: 1rem;
    line-height: 2;
    color: #666;
    margin: 0;
    text-align: justify;
}

/* 联系信息区域 */
.contact-info-section {
    display: flex;
    justify-content: space-between;
    margin: 50px auto;
    gap: 30px;
}

.contact-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    /* 改为顶部对齐 */
    gap: 20px;
    min-width: 0;
    /* 允许flex项目收缩 */
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #9163CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 4px;
    /* 轻微向下偏移，与文本顶部对齐 */
}

/* 服务热线和联系小箱的图标设为空心 */
.contact-item:first-child .contact-icon,
.contact-item:last-child .contact-icon {
    background: transparent;
    border: 2px solid #9163CC;
    color: #9163CC;
}

.contact-details {
    flex: 1;
    min-width: 0;
    /* 允许内容收缩 */
    word-wrap: break-word;
    /* 长单词换行 */
}

.contact-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    position: relative;
    padding-bottom: 8px;
    word-wrap: break-word;
    /* 长单词换行 */
}

/* h3和p之间的虚线 */
.contact-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(to right,
            #ccc 0px,
            #ccc 4px,
            transparent 4px,
            transparent 8px);
}

.contact-details p {
    font-size: 16px;
    color: #666;
    margin: 0;
    padding-top: 8px;
    word-wrap: break-word;
    /* 长单词换行 */
    line-height: 1.4;
    /* 增加行高，换行时更美观 */
}

/* 地图区域 */
.map-section {
    margin: 30px 0;
}

.map-container {

    height: 50vw;
    max-height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.leaflet-map {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* 隐藏Leaflet的attribution控件，保持界面简洁 */
.leaflet-control-attribution {
    display: none !important;
}

/* 确保地图容器的圆角效果 */
.leaflet-container {
    border-radius: 15px;
}

/* 底部车辆图片 */

.vehicle-image-wrapper {
    margin-top: 30px;
}

.vehicle-image {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    /* 添加平滑过渡效果 */
}

/*--------------------  关于我们主要内容-响应式优化  --------------------*/

@media (max-width:768px) {
    .about-main {
        padding: 35px 30px;
    }

    .about-content {
        flex-direction: column;
        gap: 0;
        margin: 30px auto;
    }

    .company-logo-img {
        width: 60vw;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-info-section {
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    /* 小屏幕咨询区域优化 */
    .contact-section {
        padding: 15px 10px;
        margin: 1vh 0;
    }

    .contact-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .contact-btn {
        font-size: 12px;
        padding: 5px 15px;
    }
}

/*--------------------  咨询我们样式  --------------------*/
.contact-section {
    background: linear-gradient(135deg, #8C68C7 0%, #fbf9ff 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    margin: 3vh 0 0 0;
}

.contact-us-content {
    /* background-color: aqua; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-title {
    color: white;
    font-size: 1rem;
    margin: 0;
    font-weight: normal;
}

.contact-btn {
    background: linear-gradient(135deg, #9163CC 0%, #B084E6 100%);
    color: white;
    text-decoration: none;
    padding: 8px 30px;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(145, 99, 204, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 99, 204, 0.4);
}

.bottom-image-section {
    margin: 0 0 30px 0;
}

.bottom-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/*--------------------  咨询我们样式  响应式优化  --------------------*/
@media (max-width: 768px) {
    .contact-section {
        display: flex;
        height: auto;
        padding: 20px 15px;
        /* 增加左右内边距 */
        margin: 1vh 0 0 0;
        /* 减少上下间距 */
    }

    .contact-us-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        max-width: 100%;
    }

    .contact-title {
        font-size: 16px;
        line-height: 1.4;
        margin: 0;
    }

    .contact-btn {
        font-size: 14px;
        padding: 6px 20px;
        text-decoration: none;
    }
}