/**
 * 操作系统检测跳转提示 - 前端样式
 */

/* ===== 遮罩层 ===== */
.odr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

/* ===== 弹窗 ===== */
.odr-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    padding: 28px 28px 24px;
    text-align: center;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.odr-overlay.odr-show .odr-modal {
    transform: translateY(0) scale(1);
}

.odr-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.odr-modal-content {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 22px;
}

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

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

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

.odr-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.1s;
    line-height: 1.4;
}

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

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

.odr-btn-primary {
    color: #fff;
    background: #2b6cb0;
}

.odr-btn-stay {
    color: #4a5568;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

/* ===== 顶部横幅样式 ===== */
.odr-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: odrSlideDown 0.3s ease;
}

@keyframes odrSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.odr-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.odr-banner-text {
    font-size: 14px;
    color: #2d3748;
    flex: 1;
    min-width: 200px;
}

.odr-banner-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.odr-banner .odr-btn {
    padding: 7px 18px;
    font-size: 13px;
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .odr-modal {
        padding: 22px 18px 18px;
        border-radius: 10px;
    }

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

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

    .odr-btn {
        padding: 9px 20px;
        font-size: 13px;
    }

    .odr-banner-inner {
        padding: 10px 14px;
    }

    .odr-banner-text {
        font-size: 13px;
    }
}
