
.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.page-header-text {
    flex: 1;
    padding-right: 50px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--dark);
}

.page-header h1 span {
    color: var(--primary);
}

.page-header p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--gray);
    line-height: 1.8;
}

.page-header-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.contact-illustration {
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

/* AOS 动画完成后的联系页面图片浮动效果 */
.page-header-image.aos-animate .contact-illustration {
    animation: contactFloat 6s ease-in-out infinite;
}

@keyframes contactFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.contact-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.contact-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--dark);
    padding: 40px;
}

.contact-main-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), #1890ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 8px 25px rgba(24, 144, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-main-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(24, 144, 255, 0.3);
}

.contact-main-icon i {
    font-size: 3rem;
    color: white;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 500px;
    margin: 0 auto;
}

.highlight-item {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: rgba(24, 144, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.highlight-text {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}


/* 表单错误状态 */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ff4757;
    background-color: #fff5f5;
}

/* FAQ动画 */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
}

/* 联系信息 */
.contact-info {
    background: white;
}

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

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(24, 144, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary);
    transform: rotateY(180deg);
}

.contact-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon i {
    color: white;
}

.contact-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.contact-card p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-details {
    list-style: none;
    margin-top: 20px;
}

.contact-details li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.contact-details li i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* 联系表单 */
.contact-form-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6f7ff 100%);
    position: relative;
    overflow: hidden;
}


.form-container {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.form-title {
    text-align: center;
    margin-bottom: 50px;
}

.form-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.form-title p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 5px 15px rgba(24, 144, 255, 0.1);
}

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

.form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.form-submit .btn {
    padding: 16px 45px;
    font-size: 1.2rem;
}

/* 地图部分 */
.map-section {
    background: white;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    height: 450px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-placeholder {
    text-align: center;
    color: var(--gray);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.map-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.faq-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6f7ff 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        text-align: center;
    }

    .page-header-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .contact-highlights {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
    }

    .contact-illustration {
        height: 350px;
    }

    .contact-main-icon {
        width: 100px;
        height: 100px;
    }

    .contact-main-icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .contact-illustration {
        height: 300px;
    }

    .contact-main-icon {
        width: 80px;
        height: 80px;
    }

    .contact-main-icon i {
        font-size: 2rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }

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