/* ========== contact.html 专属样式 ========== */

/* 英雄区 */
.contact-hero-bg {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
}
.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,95,140,0.7) 100%);
}
.contact-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.contact-hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.contact-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .contact-hero-bg { height: 280px; }
    .contact-hero-content h2 { font-size: 1.6rem; }
}

/* 联系表单 + 联系方式卡片网格 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-form-wrapper,
.contact-info-wrapper {
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.contact-form-wrapper h3,
.contact-info-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #003753;
    display: flex;
    align-items: center;
    gap: 10px;
}
.inquiry-form-grid {
    text-align: center;
}
.inquiry-form-grid .btn-submit {
    display: inline-block;
    width: auto;
    min-width: 200px;
}
.inquiry-desc {
    color: #5f7f9e;
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.inquiry-form-grid .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dce5ec;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
    background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 2px rgba(44,125,160,0.2);
}
.btn-submit {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-submit:hover {
    background: #1f5e7a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44,125,160,0.3);
}

/* 联系方式卡片 */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #eef2f8;
}
.contact-card i {
    font-size: 2rem;
    width: 48px;
    color: #2c7da0;
}
.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #003753;
}
.contact-card p {
    color: #5f7f9e;
    line-height: 1.4;
}
.office-hours {
    background: #f9fbfe;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
}
.office-hours i {
    font-size: 2rem;
    color: #2c7da0;
    margin-bottom: 10px;
}
.office-hours h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.office-hours p {
    color: #5f7f9e;
}
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .inquiry-form-grid .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 24px;
    }
}

/* 全球基地地址卡片 - 等高与按钮底部对齐 */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
    align-items: stretch; /* 让所有卡片高度一致 */
}
.location-card {
    background: white;
    border-radius: 28px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;   /* 使用 flex 列布局 */
    height: 100%;             /* 填满网格行高 */
}
.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44,125,160,0.15);
}
.location-card i {
    font-size: 2.5rem;
    color: #2c7da0;
    margin-bottom: 15px;
}
.location-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #003753;
}
.location-card address {
    font-style: normal;
    color: #5f7f9e;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;           /* 让地址区域占据剩余空间，将按钮推到底部 */
}
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2fc;
    padding: 8px 20px;
    border-radius: 40px;
    color: #2c7da0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    align-self: center;      /* 按钮水平居中 */
}
.map-link:hover {
    background: #2c7da0;
    color: white;
}
/* 地图模块 */
.map-section {
    background: white;
}
.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.map-container iframe {
    display: block;
}
.map-note {
    text-align: center;
    font-size: 0.75rem;
    color: #8ba9c2;
    margin-top: 12px;
}


/* 自定义提示模态框 (居中弹窗) */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.alert-modal.show {
    opacity: 1;
    visibility: visible;
}
.alert-modal-content {
    background: white;
    border-radius: 32px;
    padding: 32px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.alert-modal.show .alert-modal-content {
    transform: scale(1);
}
.alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.alert-icon.success {
    color: #2c7da0;
}
.alert-icon.error {
    color: #e74c3c;
}
.alert-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #003753;
}
.alert-modal-content p {
    font-size: 1rem;
    color: #5f7f9e;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.alert-btn {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.alert-btn:hover {
    background: #1f5e7a;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .alert-modal-content {
        padding: 24px 28px;
    }
    .alert-modal-content h3 {
        font-size: 1.3rem;
    }
}