﻿/* 删除全局样式，使用site.css中的样式 */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #333;
    --light-bg: #f3f4f6;
    --gray-text: #6b7280;
}

/* 修改hero样式，与其他页面保持一致 */
.contact-us-page .hero {
    background: linear-gradient(to bottom, #dbeafe, #bfdbfe);
    padding: 6rem 0 4rem;
    text-align: center;
    margin-bottom: 0;
    margin-top: 0;
}

.contact-us-page .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.contact-us-page .hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #4b5563;
}

/* 联系内容区域样式 */
.contact-us-page .contact-content {
    padding: 6rem 0 4rem;
    background-color: #fff;
}

.contact-us-page .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-us-page .contact-form,
.contact-us-page .contact-info {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-us-page .contact-form:hover,
.contact-us-page .contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-us-page .contact-form h2,
.contact-us-page .contact-info h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-us-page .form-group {
    margin-bottom: 1.5rem;
}

.contact-us-page .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-us-page .form-group input,
.contact-us-page .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.contact-us-page .form-group input:focus,
.contact-us-page .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-us-page .submit-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-us-page .submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 联系信息卡片样式 */
.contact-us-page .info-card {
    margin-bottom: 2rem;
}

.contact-us-page .info-card ul {
    list-style-type: none;
    padding: 0;
}

.contact-us-page .info-card li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-us-page .info-card i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* 地图卡片样式 */
.contact-us-page .map-card {
    margin-bottom: 2rem;
}

.contact-us-page .map-card h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-us-page .map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--light-bg);
}

.contact-us-page .map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--light-bg);
    padding: 1rem;
}

/* 社交媒体区域样式 */
.contact-us-page .social-media {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    padding: 6rem 0 4rem;
    text-align: center;
    color: #fff;
}

.contact-us-page .social-media h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-us-page .social-media p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-us-page .social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-us-page .social-button {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-us-page .social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-us-page .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-us-page .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-us-page .social-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

.contact-us-page .contact-content .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 弹窗样式 */
.success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    text-align: center;
}

.success-popup.show {
    display: block;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.show {
    display: block;
}

.success-popup h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.success-popup p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.success-popup .submit-button {
    min-width: 100px;
}

/* 在 contact-us.css 文件中添加以下样式 */

/* 联系信息区域布局 */
.contact-us-page .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 上层布局：联系方式 + 微信扫码添加 */
.contact-us-page .contact-info-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* 调整卡片样式 */
.contact-us-page .contact-info-top .info-card,
.contact-us-page .contact-info-top .wechat-card {
    margin-bottom: 0;
}

/* 微信二维码卡片样式 */
.contact-us-page .wechat-card h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-us-page .wechat-qr-container {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 230px;
    height: 230px;
    margin: 0 auto;
    position: relative;
}

.contact-us-page .wechat-qr-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    margin-bottom: 0;
    border: none;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.contact-us-page .wechat-tip {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin: 0;
    margin-top: 190px;
    text-align: center;
}

/* 地图卡片样式调整 */
.contact-us-page .map-card {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-us-page .contact-info-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
        .contact-us-page .wechat-qr-container {
        width: 150px;
        height: 150px;
        padding: 0;
    }
    
    .contact-us-page .wechat-qr-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .contact-us-page .wechat-qr-container {
        width: 120px;
        height: 120px;
        padding: 0;
    }
    
    .contact-us-page .wechat-qr-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}