/* 基础样式 */
.contact {
    width: 100%;
    height: 400px;
    margin-top: 100px;
    background: url("/assets/images/cantact/bg_01.png");
}

.contact-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.contact-info {
    flex: 1;
    padding-right: 40px;
}

.contact-info h1 {
    font-size: calc(.9rem + 1.4vw);
}

.contact-image {
    position: relative;
    flex-shrink: 0;
}

.circle-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.chat-icon {
    position: absolute;
    top: 20px;
    left: -130px;
    height: 80px;
    z-index: 10;
    border-radius: 5px;
}

/* 卡片和地图容器 */
.container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    box-sizing: border-box;
}

.contact-card h2 {
    color: #222;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-item {
    margin-bottom: 15px;
}

.contact-item strong {
    display: block;
    color: #666;
    margin-bottom: 5px;
    font-size: 16px;
}

.contact-item span {
    font-size: 18px;
    color: #333;
}

.map-container {
    flex: 2;
    min-width: 300px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 联系方法部分样式 */
.contact-methods {
    width: 100%;
    padding: 60px 0;
    background: url("/assets/images/cantact/bg_02.png") center/cover no-repeat;
}

.contact-methods-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.contact-box {
    flex: 1;
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 12px;
    padding: 30px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}

.contact-item-phone-email {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item-phone-email:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.contact-details {
    flex: 1;
}

.contact-details strong {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.contact-details span {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .contact-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .circle-image {
        width: 250px;
        height: 250px;
    }

    /* 新增：在小屏幕下将卡片和地图改为上下布局 */
    .contact-container {
        flex-direction: column;
    }

    .contact-card,
    .map-container {
        flex: auto;
        width: 100%;
    }

    .map-container {
        order: 2;
        /* 将地图放到卡片下方 */
        margin-top: 20px;
    }
}

/* 图片移动效果 */
@media (min-width: 992px) {
    .contact-image {
        transform: translateX(0);
        transition: transform 0.5s ease;
    }

    /* 根据滚动位置调整图片位置 */
    body.scrolled .contact-image {
        transform: translateX(20px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-methods-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-box {
        padding: 20px;
        text-align: center;
    }

    .contact-item-phone-email {
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .contact-methods {
        padding: 40px 0;
    }

    .contact-details strong {
        font-size: 15px;
    }

    .contact-details span {
        font-size: 16px;
    }
}