/* 联系页面现代风格样式 */

/* 整体布局 */
.contact-container {
    position: relative;
    min-height: 100vh;
    margin-top: 70px;
}

/* 背景图 */
.contact-bg {
    position: relative;
    width: 100%;
    height: 350px; /* 固定高度为500px */
    overflow: hidden;
    z-index: 1;
}

.contact-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 地图区域 - 隐藏，使用背景图替代 */
.map-section {
    display: none;
}

/* 联系信息区域 */
.contact-content {
    position: relative;
    width: 1440px;
    margin: -100px auto 0; /* 上移100px，盖住背景图 */
    padding: 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    z-index: 2;
    overflow: hidden;
}

/* 左侧地图区域 */
.contact-map {
    flex: 1;
    min-height: 400px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧文字内容 */
.contact-info {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-header {
    margin-bottom: 60px;
}

.contact-title {
    font-size: 4rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -1px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 5px 0 0 0;
}

.company-info {
    margin-bottom: 40px;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.company-desc {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.contact-details {
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
}

.detail-label {
    width: 60px;
    font-weight: 500;
    color: #333;
}

.detail-value {
    color: #666;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #000;
    color: #fff;
}

/* 在线咨询按钮 */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.chat-button:hover {
    background-color: #000;
}

.close-icon {
    margin-left: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* 动画效果 */
.animate {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-bg {
        height: 500px; /* 保持一致的高度 */
    }
    
    .contact-content {
        width: 85%;
        margin-top: -100px;
    }
    
    .contact-info {
        padding: 40px 30px;
    }
    
    .contact-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-bg {
        height: 500px; /* 保持一致的高度 */
    }
    
    .contact-content {
        width: 90%;
        margin-top: -80px;
        flex-direction: column; /* 在中小屏幕上改为上下布局 */
    }
    
    .contact-map {
        min-height: 250px;
    }
    
    .contact-info {
        padding: 30px 25px;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-bg {
        height: 450px; /* 小屏幕稍微减小高度 */
    }
    
    .contact-content {
        width: 92%;
        margin-top: -60px;
    }
    
    .contact-map {
        min-height: 200px;
    }
    
    .contact-info {
        padding: 25px 20px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .chat-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 12px;
    }
}