/* 联系页样式 */
.contact-content {
    padding: 100px 5% 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-empty {
    text-align: center;
    color: #718096;
    font-size: 1.05rem;
    padding: 4rem 0;
}

/* 联系方式卡片网格 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: transparent;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-card-text {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.contact-card-sub {
    color: #718096;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* 地图区域 */
.map-section {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.map-header {
    padding: 1.5rem 2rem;
    text-align: center;
}

.map-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.map-header p {
    color: #718096;
    font-size: 0.95rem;
}

.map-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 8px;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 悬浮留言按钮已迁移至全站全局样式（common.css），此处不再重复定义 */

/* 留言弹窗 */
.message-modal-overlay {
    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: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1rem;
}

.message-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.message-modal-overlay.closing {
    opacity: 0;
}

.message-modal-overlay.closing .message-modal {
    transform: translateY(20px) scale(0.95);
}

.message-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.message-modal-overlay.active .message-modal {
    transform: translateY(0) scale(1);
}

.message-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.message-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.message-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.message-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.message-modal-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.message-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
    background: #f8fafc;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.message-result {
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.message-result.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message-result.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .contact-content {
        padding: 2rem 5%;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .contact-card {
        padding: 1rem 0.8rem;
    }

    .contact-card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.8rem;
    }

    .contact-card h3 {
        font-size: 1rem;
    }

    .contact-card-text {
        font-size: 0.85rem;
    }

    .contact-card-sub {
        font-size: 0.75rem;
    }

    .map-header {
        padding: 1.2rem 1rem;
    }

    .map-header h2 {
        font-size: 1.4rem;
    }

    .map-header p {
        font-size: 0.85rem;
    }

    .message-modal {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .message-modal-header h2 {
        font-size: 1.3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
