/* 联系我们页面样式 */

/* 页面加载时的渐入效果 */
body {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    margin: 0;
    padding: 0;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 联系我们页顶部背景图样式 - 建议使用1920x500像素的图片 */
.contact-banner {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../images/contact-banner.jpg');
    background-size: 100% 100%; /* 改为完全拉伸 */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* 背景图遮罩层 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 55, 98, 0.3);
}

/* 背景图内容样式 */
.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 24px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 联系信息容器样式 */
.contact-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* 联系信息卡片布局 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 单个信息卡片样式 */
.info-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 信息图标样式 */
.info-icon {
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(22, 55, 98, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

/* 信息内容样式 */
.info-content h3 {
    color: #163762;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.info-content p {
    margin: 8px 0;
    color: #555;
    line-height: 1.6;
}

/* 地图容器样式 */
.map-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.map-container h2 {
    color: #163762;
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.map-container h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    background-color: #163762;
}

/* 地图包装样式 */
.map-wrapper {
    border-radius: 0; /* 移除圆角 */
    overflow: visible; /* 允许内容溢出 */
    box-shadow: none; /* 移除阴影 */
    padding: 0; /* 移除内边距 */
    border: none; /* 移除边框 */
}

.map-wrapper:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.map-wrapper img {
    width: 100%;
    display: block;
    margin: 0;
    border: 1px solid #ddd; /* 可选：添加细边框 */
}

.map-wrapper:hover img {
    transform: scale(1.02);
}

.map-tip {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-content h1 {
        font-size: 40px;
    }
    
    .banner-content p {
        font-size: 20px;
    }
    
    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .contact-banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .map-container h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .contact-banner {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .map-container h2 {
        font-size: 24px;
    }
}