/* 联系我们页面样式 */

/* 引入AOS动画库CSS */
@import url('https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css');

/* Banner样式 */
.contact-banner {
    position: relative;
    height: 400px;
    background-image: url('../images/contact-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 49, 143, 0.3);
}

.contact-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
}

.contact-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
}

.contact-subtitle {
    font-size: 20px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.6s;
}

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

/* 联系信息部分样式 */
.contact-section {
    padding: 80px 0;
    background-color: #f7f7f7;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: #03318f;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #03318f;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.contact-info-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-info-card {
    width: 23%;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(3, 49, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 28px;
    color: #03318f;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    background-color: #03318f;
}

.contact-info-card:hover .contact-icon i {
    color: #fff;
}

/* 留言表单部分样式 */
.message-section {
    padding: 80px 0;
    background-color: #fff;
}

.message-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.message-form-container {
    width: 48%;
    padding-right: 30px;
}

.message-form-container h2 {
    font-size: 28px;
    color: #03318f;
    margin-bottom: 15px;
}

.message-form-container p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.message-form .form-group {
    margin-bottom: 20px;
}

.message-form input,
.message-form select,
.message-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
    border-color: #03318f;
    box-shadow: 0 0 5px rgba(3, 49, 143, 0.2);
    outline: none;
}

.message-form select {
    appearance: none;
    background-image: url('../images/dropdown-arrow.png');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.submit-btn {
    background-color: #03318f;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #022677;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(3, 49, 143, 0.3);
}

.company-image {
    width: 48%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.company-image:hover img {
    transform: scale(1.05);
}

/* 地图部分样式 */
.map-section {
    padding: 80px 0 0;
}

.map-container {
    width: 100%;
    height: 500px;
    position: relative;
    z-index: 1;
}

/* 响应式样式 */
@media screen and (max-width: 992px) {
    .contact-info-card {
        width: 48%;
        margin-bottom: 30px;
    }
    
    .message-form-container,
    .company-image {
        width: 100%;
        padding-right: 0;
    }
    
    .message-form-container {
        margin-bottom: 40px;
    }
    
    .company-image {
        max-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .contact-banner {
        height: 300px;
    }
    
    .contact-title {
        font-size: 32px;
    }
    
    .contact-subtitle {
        font-size: 16px;
    }
    
    .map-container {
        height: 400px;
    }
}

@media screen and (max-width: 576px) {
    .contact-info-card {
        width: 100%;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .map-container {
        height: 350px;
    }
}