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

/* Hero区域 */
.contact-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    padding: 150px 0 80px;
    background: #ffffff; /* 白色背景 */
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.contact-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity:1.0; /* 半透明效果 */
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* 白色半透明遮罩，确保文字清晰 */
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero .hero-content {
    text-align: center;
    color: #333333; /* 深色文字 */
    padding: 40px 20px;
}

.contact-hero .hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333333; /* 深色文字 */
}

.contact-hero .hero-subtitle {
    font-size: 1.3rem;
    color: #666666; /* 深灰色文字 */
    margin-bottom: 30px;
}

.contact-hero .hero-decoration {
    display: none; /* 移除装饰元素 */
}

/* 联系信息区域 */
.contact-info-section {
    padding: 80px 0;
    background: #ffffff; /* 白色背景 */
    position: relative;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: #f5f5f5; /* 浅灰色背景 */
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #e0e0e0; /* 浅灰色边框 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info-card::before {
    display: none; /* 移除动画效果 */
}

.contact-info-card:hover {
    transform: translateY(-5px);
    background: #e5e5e5;
    border-color: #cccccc;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #ffffff; /* 白色背景 */
    border: 2px solid #e0e0e0; /* 浅灰色边框 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333; /* 深色图标 */
    transition: all 0.3s ease;
}

.contact-info-card:hover .info-icon {
    transform: scale(1.05);
    border-color: #333333;
    color: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333; /* 深色文字 */
    margin-bottom: 20px;
}

.info-content {
    color: #666666; /* 深灰色文字 */
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 10px;
}

.info-content a {
    color: #333333; /* 深色链接 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #666666;
    text-decoration: underline;
}

.contact-note {
    color: #999999; /* 浅灰色 */
    font-size: 0.9rem;
    margin-left: 5px;
}

/* 地图区域 */
.map-section {
    padding: 80px 0;
    background: #ffffff; /* 白色背景 */
    position: relative;
}

.map-section .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333333; /* 深色文字 */
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.map-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #333333; /* 深色下划线 */
}

.map-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #f5f5f5; /* 浅灰色背景 */
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e0e0e0; /* 浅灰色边框 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.map-tab {
    padding: 15px 40px;
    background: #ffffff; /* 白色背景 */
    border: 2px solid #e0e0e0; /* 浅灰色边框 */
    border-radius: 10px;
    color: #666666; /* 深灰色文字 */
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.map-tab::before {
    display: none; /* 移除动画效果 */
}

.map-tab:hover {
    background: #f5f5f5;
    border-color: #999999;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-tab.active {
    background: #333333; /* 深色背景 */
    border-color: #333333;
    color: #ffffff; /* 白色文字 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.baidu-map {
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    background: #f5f5f5; /* 浅灰色背景 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0; /* 浅灰色边框 */
}

/* 联系表单区域 */
.contact-form-section {
    padding: 80px 0;
    background: #ffffff; /* 白色背景 */
    position: relative;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #f5f5f5; /* 浅灰色背景 */
    border-radius: 20px;
    padding: 60px 50px;
    border: 1px solid #e0e0e0; /* 浅灰色边框 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-wrapper .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333333; /* 深色文字 */
    margin-bottom: 15px;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: #666666; /* 深灰色文字 */
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #333333; /* 深色文字 */
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.required {
    color: #ff6b6b;
    margin-left: 3px;
}

.form-group input,
.form-group textarea {
    padding: 15px 20px;
    background: #ffffff; /* 白色背景 */
    border: 2px solid #e0e0e0; /* 浅灰色边框 */
    border-radius: 10px;
    color: #333333; /* 深色文字 */
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999; /* 浅灰色占位符 */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #333333; /* 深色边框 */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    margin-top: 20px;
    padding: 18px 40px;
    background: #333333; /* 深色背景 */
    border: 2px solid #333333;
    border-radius: 10px;
    color: #ffffff; /* 白色文字 */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: #555555;
    border-color: #555555;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn svg {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .map-container {
        padding: 20px;
    }

    .baidu-map {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .contact-hero .hero-title {
        font-size: 2.5rem;
    }

    .contact-hero .hero-subtitle {
        font-size: 1.2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info-card {
        padding: 30px 20px;
    }

    .map-section .section-title {
        font-size: 2rem;
    }

    .map-tabs {
        flex-direction: column;
        gap: 15px;
    }

    .map-tab {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .baidu-map {
        height: 400px;
    }

    .form-wrapper {
        padding: 40px 30px;
    }

    .form-wrapper .section-title {
        font-size: 2rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        min-height: 50vh;
    }

    .contact-hero .hero-content {
        padding: 30px 20px;
    }

    .contact-info-section,
    .map-section,
    .contact-form-section {
        padding: 60px 0;
    }

    .form-wrapper {
        padding: 30px 20px;
    }

    .baidu-map {
        height: 350px;
    }
}


