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

.contact-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
    margin-top: 70px;
}

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

.contact-header .header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-header .header-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85), rgba(63, 81, 181, 0.7));
}

.contact-header .header-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.contact-header h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-header p {
    font-size: 20px;
    color: var(--secondary-color);
}

.contact-info {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.info-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-color);
    color: var(--bg-white);
}

.info-card:hover .info-icon {
    transform: scale(1.2);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.info-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card:hover h3 {
    color: var(--bg-white);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.info-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-form-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.form-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.form-content > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

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

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

.form-group label {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--bg-light);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.contact-form .btn {
    margin-top: 10px;
    width: 100%;
}

.form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.city-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.city-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
}

.city-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.city-item strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.city-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 5px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.social-item {
    text-align: center;
}

.social-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.social-item p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-map {
    padding: 80px 0;
    background: var(--bg-white);
}

.map-placeholder {
    margin-top: 40px;
    text-align: center;
}

.map-placeholder img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.map-placeholder p {
    font-size: 18px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .contact-header {
        height: 300px;
    }

    .contact-header h1 {
        font-size: 28px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

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

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

    .social-links {
        grid-template-columns: 1fr;
    }
}

