/* ==================== 联系信息 ==================== */
.contact-info-section {
    background: var(--bg-dark-secondary);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-card {
    background: var(--bg-glass);
    padding: 50px 30px;
    border-radius: 24px;
    border: var(--border-glow);
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 64px;
    margin-bottom: 25px;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-weight: 700;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 8px;
}

/* ==================== 联系表单 ==================== */
.contact-form-section {
    background: var(--bg-dark-tertiary);
    padding: 100px 0;
}

.form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-info {
    background: var(--bg-glass);
    padding: 50px;
    border-radius: 24px;
    border: var(--border-glow);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.form-info h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.form-info > p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: var(--border-glow);
    border-radius: 12px;
    background: var(--bg-dark-card);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: var(--bg-dark-tertiary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

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

/* 表单验证错误样式 */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.error-message {
    display: none;
    color: #ff4444;
    font-size: 13px;
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单震动效果 */
form.shake {
    animation: formShake 0.5s ease-in-out;
}

@keyframes formShake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.btn-block {
    width: 100%;
}

/* ==================== 地图占位 ==================== */
.map-placeholder {
    height: 100%;
    min-height: 500px;
    background: var(--gradient-metal);
    border-radius: 24px;
    border: var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
}

.map-content {
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.map-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.map-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-weight: 700;
}

.map-content > p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
}

/* ==================== 通知提示 ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 350px;
    max-width: 450px;
    background: var(--bg-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    border: var(--border-glow);
    backdrop-filter: blur(20px);
    gap: 16px;
    padding: 20px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #00c853;
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.4);
}

.notification-info .notification-icon {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .notification {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-placeholder {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-info {
        padding: 35px 25px;
    }

    .form-info h2 {
        font-size: 28px;
    }

    .map-placeholder {
        min-height: 300px;
    }

    .map-content {
        padding: 30px;
    }

    .map-content h3 {
        font-size: 24px;
    }

    .map-content > p {
        font-size: 16px;
    }
}
