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

/* Page Hero */
.page-hero {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 30, 80, 0.88) 0%, rgba(0, 60, 120, 0.75) 100%);
}

.page-hero-content {
    padding-top: 72px;
}

.page-hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.page-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.section-contact {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
}

.contact-intro {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-muted);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 204, 255, 0.08) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.contact-link {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--color-accent);
}

.contact-address,
.contact-time {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Contact Form */
.contact-form-wrapper {
    position: sticky;
    top: 100px;
}

.contact-form-card {
    background: var(--color-bg);
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 32px;
}

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

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

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-required {
    color: var(--color-error);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-input);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-muted);
    opacity: 0.6;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--color-error);
}

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

.form-privacy {
    font-size: 12px;
    color: var(--color-muted);
    line-height: 1.5;
}

.form-submit {
    width: 100%;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: flex;
}

.form-success h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 16px 0 8px;
}

.form-success p {
    font-size: 14px;
    color: var(--color-muted);
}

/* Map Section */
.section-map {
    background: var(--color-bg);
}

.map-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 24px;
}

#mapWrapper {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

#mapWrapper amap-anchor-map {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .page-hero {
        height: 280px;
    }
    
    .page-hero-title {
        font-size: 32px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info .section-title {
        text-align: center;
    }
    
    .contact-detail-item {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        position: static;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .page-hero {
        height: 220px;
    }
    
    .page-hero-title {
        font-size: 28px;
    }
    
    .page-hero-subtitle {
        font-size: 16px;
    }
    
    .contact-info {
        text-align: left;
    }
    
    .contact-info .section-title {
        text-align: left;
    }
    
    .contact-detail-item {
        justify-content: flex-start;
    }
    
    .contact-form-card {
        padding: 24px;
    }
    
    .form-title {
        font-size: 20px;
    }
}
