/* ===== 弹窗样式 - 修复高度问题 ===== */

/* 弹窗遮罩层 */
.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: center !important;
    animation: none !important;
    padding: 20px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
.modal-overlay.active {
    display: flex !important;
    animation: modalFadeIn 0.3s ease !important;
}

/* 弹窗内容容器 */
.modal-content-wrap {
    position: relative !important;
    width: 460px !important;
    max-width: 95vw !important;
    margin: 0 auto !important;
    animation: modalSlideUp 0.4s ease !important;
}

/* iframe - 使用固定高度 + 内部滚动 */
.modal-content-wrap iframe {
    width: 100% !important;
    height: 560px !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;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* 关闭按钮 */
.modal-close-btn {
    position: absolute !important;
    top: -14px !important;
    right: -14px !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: 768px) {
    .modal-overlay {
        padding: 12px !important;
        align-items: flex-start !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .modal-content-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-content-wrap iframe {
        height: 520px !important;       /* 移动端稍微调低，但保持足够高度 */
        border-radius: 12px !important;
    }
    
    .modal-close-btn {
        top: -10px !important;
        right: -10px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        line-height: 36px !important;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 8px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .modal-content-wrap iframe {
        height: 480px !important;
        border-radius: 10px !important;
    }
    
    .modal-close-btn {
        top: -8px !important;
        right: -8px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
        line-height: 32px !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;
    }
}