/**
 * 操作系统检测跳转提示 - 前端样式
 * 风格：顶端居中弹窗，从上方滑入，紧贴导航栏
 */

/* ===== 遮罩层（透明，仅用于点击外部关闭） ===== */
.odr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.odr-overlay.odr-show {
    opacity: 1;
    visibility: visible;
}

/* ===== 弹窗（顶端居中，从上方滑入，紧贴导航栏） ===== */
.odr-modal {
    position: fixed;
    top: 60px;
    left: 50%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    max-width: 560px;
    width: 92%;
    padding: 20px 28px 18px;
    text-align: center;
    transform: translateX(-50%) translateY(-250%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
}

.odr-overlay.odr-show .odr-modal {
    transform: translateX(-50%) translateY(0);
}

/* 标题（可选，留空则不显示） */
.odr-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

/* 提示内容 */
.odr-modal-content {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 16px;
}

.odr-modal-content p {
    margin: 0 0 6px;
}

.odr-modal-content p:last-child {
    margin-bottom: 0;
}

/* ===== 按钮组 ===== */
.odr-modal-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.odr-btn {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.odr-btn:hover {
    opacity: 0.85;
}

.odr-btn:active {
    transform: scale(0.97);
}

/* 主按钮（蓝色实心，右） */
.odr-btn-primary {
    color: #fff;
    background: #2b6cb0;
    border-color: #2b6cb0;
}

/* 次按钮（灰色边框，左） */
.odr-btn-stay {
    color: #4a5568;
    background: #fff;
    border-color: #d1d5db;
}

.odr-btn-stay:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    opacity: 1;
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
    .odr-modal {
        top: 50px;
        padding: 16px 18px 14px;
        border-radius: 12px;
    }

    .odr-modal-title {
        font-size: 15px;
    }

    .odr-modal-content {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .odr-btn {
        padding: 8px 22px;
        font-size: 13px;
    }

    .odr-modal-btns {
        gap: 10px;
    }
}
