/* 视频播放器「<站点名> 免费注册会员」引导胶囊
   由 assets/js/video_cta.js 自动包裹前台 <video> 后插入；后台表单内预览视频不挂载。
   品牌渐变按站区分：sh 红 / ropeart 金 / sizuwang 蓝。 */
.vr-cta-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}
.vr-cta-wrap > video {
    display: block;
    width: 100%;
    max-width: 100%;
}
.vr-cta {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 7px 8px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 999px;
    background: linear-gradient(135deg, #e85a4f, #d14a40);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
    color: #fff;
    text-decoration: none !important;
    font-family: var(--font-serif, Georgia, "Songti SC", serif);
    white-space: nowrap;
    max-width: calc(100% - 24px);
    transition: transform .18s ease, box-shadow .18s ease;
}
.vr-cta:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, .55);
    color: #fff;
}
.vr-cta:active {
    transform: translateX(-50%) scale(.96);
}
.vr-cta-tag {
    display: inline-block;
    background: #fff;
    color: #e85a4f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}
.vr-cta-text {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .vr-cta { bottom: 10px; gap: 8px; padding: 6px 14px 6px 6px; }
    .vr-cta-tag { font-size: 12px; padding: 4px 9px; }
    .vr-cta-text { font-size: 14px; }
}

/* 手机端未登录：所有页面固定显示引导胶囊（底栏上方居中）。
   与视频内胶囊互斥（body.vr-guest 时隐藏视频内胶囊），避免同屏出现两个。
   桌面游客仍保留视频内胶囊，行为不变；登录用户不显示全局胶囊。 */
.vr-cta-global { display: none; }
@media (max-width: 768px) {
    /* 固定胶囊在底栏上方约 104px，给页面末尾内容留足空间，避免遮挡 */
    body.vr-guest {
        padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    }
    body.vr-guest .vr-cta-global {
        display: inline-flex;
        position: fixed;
        left: 50%;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        z-index: 1002;
    }
    body.vr-guest .vr-cta-global:hover {
        transform: translateX(-50%) translateY(-2px);
    }
    body.vr-guest .vr-cta-global:active {
        transform: translateX(-50%) scale(.96);
    }
    body.vr-guest .vr-cta-wrap > .vr-cta { display: none; }
}
