/* ===== 弹窗样式 ===== */

/* 弹窗遮罩层 - 默认完全隐藏，相对于 iframe 视口固定 */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 99999 !important;
    display: none !important;
    justify-content: center !important;
    align-items: flex-start !important;  /* 改为从顶部开始排列 */
    animation: none !important;
}
.modal-overlay.active {
    display: flex !important;
    animation: modalFadeIn 0.3s ease !important;
}

/* 弹窗内容容器 - 距顶部900px */
.modal-content-wrap {
    position: relative !important;
    width: 460px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    margin: 0 !important;
    margin-top: 400px !important;  /* 距顶部900px */
    animation: modalSlideUp 0.4s ease !important;
}

/* iframe */
.modal-content-wrap iframe {
    width: 100% !important;
    height: 520px !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5) !important;
    background: #fff !important;
    display: block !important;
}

/* 关闭按钮 */
.modal-close-btn {
    position: absolute !important;
    top: -16px !important;
    right: -16px !important;
    width: 42px !important;
    height: 42px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    line-height: 42px !important;
    text-align: center !important;
    cursor: pointer !important;
    color: #333 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    padding: 0 !important;
}
.modal-close-btn:hover {
    transform: rotate(90deg) scale(1.08) !important;
    background: #f0f0f0 !important;
}
.modal-close-btn:active {
    transform: scale(0.92) !important;
}

/* 动画 */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 防止背景滚动 */
body.modal-open {
    overflow: hidden !important;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .modal-content-wrap iframe {
        height: 480px !important;
        border-radius: 12px !important;
    }
    .modal-close-btn {
        top: -12px !important;
        right: -12px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        line-height: 36px !important;
    }
}

/* ===== 修复：立即预约按钮样式 ===== */
.btn-premium {
    display: inline-block !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    padding: 16px 48px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    text-align: center !important;
    line-height: 1.5 !important;
}
.btn-premium:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.45) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    text-decoration: none !important;
}
.btn-premium:active {
    transform: translateY(0px) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3) !important;
}
.btn-premium i {
    margin-right: 10px !important;
}

/* ===== 信任标识样式 ===== */
.trust-badge {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
    padding: 12px 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50px !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.trust-badge span {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
}
.trust-badge i {
    margin-right: 6px !important;
    color: #fbbf24 !important;
}
@media (max-width: 768px) {
    .trust-badge {
        gap: 12px !important;
        padding: 10px 16px !important;
        border-radius: 30px !important;
    }
    .trust-badge span {
        font-size: 12px !important;
    }
}