/* 联系我们页面样式 */

/* 顶部标题区域 */
.contact-banner {
    background-color: #003366;
    background-image: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('../images/contact-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.contact-banner h1 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 48px;
    font-weight: 300;
    opacity: 0.5;
    letter-spacing: 2px;
}

/* 联系内容区域 */
.contact-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* 办公地点 */
.office-locations {
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.office-locations h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #333;
    position: relative;
}

.office-locations h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0056b3;
}

.location-map {
    margin-bottom: 30px;
}

#company-map {
    width: 100%;
    height: 400px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.address-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.address-item {
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.address-item.active {
    border-color: #0056b3;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
}

.address-item h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.address-item p {
    margin-bottom: 8px;
    color: #6c757d;
    line-height: 1.5;
}

/* 在线咨询 */
.contact-form {
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #333;
    position: relative;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0056b3;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0056b3;
    outline: none;
}

.captcha-group {
    margin-bottom: 30px;
}

.captcha-container {
    display: flex;
    align-items: center;
}

.captcha-container input {
    width: 150px;
    margin-right: 15px;
}

.captcha-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.captcha-image img {
    height: 40px;
    margin-bottom: 5px;
}

.refresh-captcha {
    font-size: 14px;
    color: #0056b3;
    text-decoration: none;
}

.form-submit {
    text-align: center;
}

.submit-btn {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #004494;
}

/* 社交媒体 */
.social-media {
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-media h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #333;
    position: relative;
}

.social-media h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0056b3;
}

.social-links {
    display: flex;
    justify-content: space-around;
}

.social-item {
    text-align: center;
}

.qrcode {
    width: 200px;
    height: 200px;
    background-color: #f8f9fa;
    margin: 0;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    border-radius: 4px;
    overflow: hidden;
}

.qrcode img {
    max-width: 100%;
    max-height: 100%;
}

.social-item p {
    color: #6c757d;
    font-size: 14px;
}

/* 客户服务 */
.customer-service {
    padding: 60px 0;
    background-color: #fff;
}

.customer-service h2 {
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.customer-service h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #0056b3;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-item h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #6c757d;
    margin-bottom: 8px;
}

/* 页脚样式 */
.footer {
    background-color: #1e1e1e;
    padding: 15px 0;
    text-align: center;
    padding-bottom: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .company {
    margin-bottom: 2px;
}

.footer-bottom img {
    vertical-align: middle;
    margin: 0 5px;
    height: 24px;
}

/* 响应式样式 */
@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr 1fr;
    }

    .office-locations {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .contact-info {
        grid-template-columns: 2fr 1fr;
    }

    .office-locations {
        grid-column: 1;
        grid-row: span 2;
    }

    .social-media {
        grid-column: 2;
    }
}

@media (max-width: 992px) {
    .service-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-banner {
        padding: 60px 0;
    }

    .contact-banner h1 {
        font-size: 30px;
    }

    .contact-subtitle {
        font-size: 36px;
    }

    .address-list {
        grid-template-columns: 1fr;
    }

    .service-items {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-item {
        margin-bottom: 30px;
    }

    .social-item:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .contact-banner {
        padding: 40px 0;
    }

    .contact-banner h1 {
        font-size: 24px;
    }

    .contact-subtitle {
        font-size: 30px;
    }

    .office-locations,
    .contact-form,
    .social-media {
        padding: 20px;
    }

    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .captcha-container input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .captcha-image {
        align-items: flex-start;
    }
}