/* ==================== Contact 页面专属样式 ==================== */

/* 联系方式卡片区 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(30, 20, 60, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-card h3 {
    color: #c084fc;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-card a {
    color: #c084fc;
    text-decoration: none;
}

.contact-card a:hover {
    color: #a855f7;
    text-decoration: underline;
}

/* ==================== 表单弹窗 ==================== */
.form-overlay,
.success-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.form-overlay.active,
.success-overlay.active {
    display: flex;
    animation: fadeInBg 0.4s ease forwards;
}

.form-overlay.closing,
.success-overlay.closing {
    animation: fadeOutBg 0.3s ease forwards;
}

@keyframes fadeInBg {
    from { background: rgba(0, 0, 0, 0); }
    to { background: rgba(0, 0, 0, 0.8); }
}

@keyframes fadeOutBg {
    from { background: rgba(0, 0, 0, 0.8); }
    to { background: rgba(0, 0, 0, 0); }
}

/* 表单弹窗主体 */
.form-modal {
    background: linear-gradient(135deg, #1a1035, #0d0a1a);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.form-overlay.active .form-modal,
.success-overlay.active .success-modal {
    animation: popIn 0.4s ease forwards;
}

.form-overlay.closing .form-modal,
.success-overlay.closing .success-modal {
    animation: popOut 0.3s ease forwards;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes popOut {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to { opacity: 0; transform: scale(0.8) translateY(20px); }
}

/* 关闭按钮 */
.form-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.form-close:hover {
    color: #a855f7;
}

/* 表单标题 */
.form-modal h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* 表单布局 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a855f7;
}

.form-group textarea {
    resize: vertical;
}

/* 提交按钮 */
.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.form-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ==================== 成功提示弹窗 ==================== */
.success-modal {
    background: linear-gradient(135deg, #1a1035, #0d0a1a);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    padding: 50px 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
}

.success-modal h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-modal p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.success-modal .form-submit {
    max-width: 200px;
    margin: 0 auto;
}

/* ==================== 响应式 ==================== */
@media screen and (max-width: 768px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-modal {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* 航空机构区域 */
.contact-authorities {
    text-align: center;
    padding: 20px 5%;
    max-width: 700px;
    margin: 0 auto;
}

.contact-authorities p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.contact-authorities .authority-logos img {
    max-width: 700px;
    width: 100%;
    opacity: 0.6;
}