/* 页面功能锁定层：RBAC 无权限页面半透明蒙层 + 升级引导卡片（静态样式，由 page-lock.js 按需注入 DOM） */

.page-lock-mask {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    cursor: not-allowed;
}

/* 渐变模糊层：mask alpha 控制模糊强度（顶部 0=清晰，底部 1=完全模糊） */
.page-lock-blur {
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 20%, rgba(0,0,0,.75) 48%, rgba(0,0,0,1) 74%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 20%, rgba(0,0,0,.75) 48%, rgba(0,0,0,1) 74%, rgba(0,0,0,1) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* 半透明色调层：自上而下渐深（顶部完全无色调） */
.page-lock-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.24) 32%, rgba(255,255,255,.52) 68%, rgba(255,255,255,.66) 100%);
}

/* 不支持 backdrop-filter 时降级：仅靠色调层由浅到深 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .page-lock-tint {
        background: linear-gradient(to bottom, rgba(255,255,255,.06) 0%, rgba(255,255,255,.62) 100%);
    }
}

/* 背景漂浮橙色光斑（radial-gradient 柔边，禁止模糊滤镜 + 动画组合；仅 transform 动画） */
.page-lock-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.page-lock-orb1 {
    width: 460px; height: 460px;
    left: -140px; top: -120px;
    background: radial-gradient(circle, rgba(250,92,0,.14) 0%, rgba(250,92,0,0) 70%);
    animation: pageLockDrift1 16s ease-in-out infinite alternate;
}
.page-lock-orb2 {
    width: 400px; height: 400px;
    right: -120px; bottom: -100px;
    background: radial-gradient(circle, rgba(255,170,85,.10) 0%, rgba(255,170,85,0) 70%);
    animation: pageLockDrift2 21s ease-in-out infinite alternate;
}
.page-lock-orb3 {
    width: 280px; height: 280px;
    right: 10%; top: 10%;
    background: radial-gradient(circle, rgba(250,92,0,.08) 0%, rgba(250,92,0,0) 70%);
    animation: pageLockDrift3 26s ease-in-out infinite alternate;
}
@keyframes pageLockDrift1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(110px, 70px) scale(1.08); }
}
@keyframes pageLockDrift2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-90px, -60px) scale(1.12); }
}
@keyframes pageLockDrift3 {
    from { transform: translate(0, 0); }
    to   { transform: translate(-60px, 90px); }
}

/* 中央升级卡片：弹簧式浮入 */
.page-lock-card {
    position: relative;
    z-index: 2;
    width: 420px;
    max-width: 90vw;
    box-sizing: border-box;
    padding: 36px 34px 30px;
    border: 2px solid transparent;
    background:
        linear-gradient(180deg, #ffffff 0%, #fff8f2 100%) padding-box,
        linear-gradient(135deg, #ffb066 0%, #fa5c00 100%) border-box;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(250,92,0,.06), 0 10px 36px rgba(250,92,0,.22);
    text-align: center;
    animation: pageLockCardIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
/* 卡片外围呼吸光晕（伪元素 opacity 动画，性能优于 box-shadow 动画） */
.page-lock-card::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(250,92,0,.30), 0 0 120px rgba(250,92,0,.16);
    animation: pageLockGlow 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes pageLockCardIn {
    from { opacity: 0; transform: translateY(30px) scale(.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pageLockGlow {
    0%, 100% { opacity: .35; }
    50%      { opacity: 1; }
}

/* 顶部大锁徽章：橙色渐变 + glow + 摇动/上下浮动循环（transform 动画） */
.page-lock-icon {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb066 0%, #fa5c00 100%);
    box-shadow: 0 10px 30px rgba(250,92,0,.35), 0 0 46px rgba(250,92,0,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pageLockSwing 3s ease-in-out infinite;
}
.page-lock-icon::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}
.page-lock-icon i {
    position: relative;
    font-size: 52px;
    color: #fff;
}
@keyframes pageLockSwing {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%      { transform: translateY(-10px) rotate(8deg); }
}

/* 主标题：橙色渐变文字（不支持 background-clip:text 时降级纯橙） */
.page-lock-title {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    color: #fa5c00;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .page-lock-title {
        background: linear-gradient(180deg, #ffaa55, #fa5c00);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.page-lock-subtitle {
    margin-top: 8px;
    font-size: 13px;
    color: #9a8f85;
}

/* 联系区块 */
.page-lock-contact {
    margin: 22px auto 0;
    padding: 14px 16px 16px;
    background: rgba(250,92,0,.06);
    border: 1px solid rgba(250,92,0,.14);
    border-radius: 14px;
}
.page-lock-contact-label {
    font-size: 13px;
    color: #9a8f85;
}
.page-lock-contact-name {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #5c4a3a;
}
.page-lock-phone {
    display: inline-block;
    margin-top: 4px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fa5c00;
    user-select: text;
}

/* 减少动态效果降级（项目 CSS 无障碍铁律） */
@media (prefers-reduced-motion: reduce) {
    .page-lock-mask, .page-lock-mask * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
