/* ============================================================
   看视频广告 弹窗（精修版）
   · 手机(默认 <1024)：玫红夜空全屏底部弹起，玻璃拟态控件 + 玫红/暖金点缀
   · PC(≥1024)：居中近黑紫对话框(与 daily_pc.css 同皮)，控件与手机端一致
   设计语言：磨砂玻璃控件 + 克制高光/动效，读起来是「站内的一部分」而非外来插屏。
   ============================================================ */
body.adm-open { overflow: hidden; }

.adm-mask {
    position: fixed; inset: 0;
    background: radial-gradient(120% 80% at 50% 0%, rgba(58, 18, 40, .55), rgba(10, 4, 10, .82) 70%);
    opacity: 0; visibility: hidden; transition: opacity .28s ease; z-index: 10000;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.adm-mask.show { opacity: 1; visibility: visible; }

.adm {
    position: fixed; left: 0; right: 0; top: 0; bottom: 0;
    max-width: 500px; margin: 0 auto;
    display: flex; flex-direction: column; overflow: hidden;
    background: radial-gradient(120% 55% at 50% 0%, #3A1228 0%, #2A0F1F 45%, #1A0610 100%);
    transform: translateY(100%); transition: transform .34s cubic-bezier(.22, 1, .36, 1); z-index: 10001; color: #FFF0E0;
}
.adm.show { transform: translateY(0); }

/* —— 视频区 —— */
.adm-video-wrap {
    position: relative; flex: 1; min-height: 0; background: #000;
    display: flex; align-items: center; justify-content: center;
}
.adm-video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* 顶部 scrim：任意画面下都能压住倒计时/关闭；顶缘一抹极淡玫红 */
.adm-video-wrap::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 96px; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .18) 60%, transparent 100%),
        radial-gradient(120% 100% at 50% 0%, rgba(255, 120, 160, .16), transparent 70%);
    z-index: 1;
}

/* 顶缘细进度条（宽度由 JS 每秒递减；width 内联覆盖） */
.adm-bar {
    position: absolute; left: 0; top: 0; height: 3px; width: 100%; z-index: 3; display: block;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, #FF8FA3 0%, #FFC09F 60%, #FFE0A0 100%);
    box-shadow: 0 0 10px rgba(255, 143, 163, .7);
    transition: width 1s linear;
}
/* 顶部安全区(刘海机)：进度条整体下移，避开状态栏 */
.adm-bar { top: env(safe-area-inset-top); }

/* 倒计时：磨砂玻璃胶囊 + 金色字 + 细金边 */
.adm-count {
    position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 14px; z-index: 4;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(20, 8, 14, .5); color: #FFC09F;
    font-size: 13px; font-weight: 700; letter-spacing: .5px;
    padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 192, 159, .45);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.adm-count.done {
    color: #2D1018; border-color: transparent;
    background: linear-gradient(135deg, #FFD79A, #FF8FA3);
}

/* 关闭：磨砂玻璃圆钮 */
.adm-close {
    position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 4;
    width: 34px; height: 34px; line-height: 32px; text-align: center; border-radius: 50%;
    background: rgba(20, 8, 14, .5); color: #FFF0E0; font-size: 22px; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background .18s, transform .18s;
}
.adm-close:hover { background: rgba(40, 14, 26, .7); transform: scale(1.06); }
.adm-close:active { transform: scale(.94); }

/* —— 底部信息 + CTA —— */
.adm-foot {
    position: relative; flex: 0 0 auto;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(58, 18, 40, .72), rgba(26, 6, 16, .96));
    border-top: 1px solid rgba(255, 192, 159, .3);
}
/* 顶部一条玫红微光 hairline */
.adm-foot::before {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 143, 163, .8), rgba(255, 224, 160, .5), transparent);
}
.adm-info { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.adm-logo {
    width: 48px; height: 48px; border-radius: 13px; object-fit: cover; flex: none;
    background: #2A0F1F; border: 1px solid rgba(255, 192, 159, .45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4), 0 0 0 3px rgba(255, 143, 163, .12);
}
.adm-info-main { flex: 1; min-width: 0; }
.adm-name { font-size: 16px; font-weight: 800; color: #FFF0E0; letter-spacing: .3px; }
.adm-desc {
    font-size: 12.5px; color: #E8B7A8; margin-top: 3px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.adm-cta-wrap { position: relative; }
.adm-cta {
    position: relative; overflow: hidden;
    display: block; text-align: center; text-decoration: none;
    font-size: 16px; font-weight: 800; color: #2D1018; padding: 13px 16px; border-radius: 14px;
    background: linear-gradient(135deg, #FFB088 0%, #FF8FA3 38%, #C44569 76%, #8B2C3F 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 138, .5); letter-spacing: .5px;
    animation: admCtaPulse 1.8s ease-in-out infinite;
}
/* 缓慢流光 sweep */
.adm-cta::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-18deg);
    animation: admCtaShine 2.6s ease-in-out infinite;
}
@keyframes admCtaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 8px 28px rgba(255, 143, 163, .78); }
}
@keyframes admCtaShine {
    0% { left: -60%; }
    55%, 100% { left: 130%; }
}

/* —— 诱导点击小手（抖动点按 + 光晕，精修更小更柔） —— */
.adm-hand {
    position: absolute; right: 20px; bottom: -5px; width: 40px; height: 40px; pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45));
    animation: admHandTap 1.1s ease-in-out infinite; transform-origin: 60% 20%;
}
.adm-hand svg { width: 100%; height: 100%; display: block; }
.adm-hand::before {
    content: ''; position: absolute; left: 50%; top: 20%; width: 32px; height: 32px;
    margin-left: -16px; margin-top: -16px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 224, 138, .75), transparent 70%);
    animation: admHandRipple 1.1s ease-out infinite;
}
@keyframes admHandTap {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(6px) scale(.9); }
}
@keyframes admHandRipple {
    0% { transform: scale(.4); opacity: .8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .adm-cta, .adm-cta::after, .adm-hand, .adm-hand::before { animation: none !important; }
    .adm-bar { transition: none !important; }
}

/* ============================================================
   退出二次确认弹窗（layer.confirm 专属皮肤 .adm-confirm）
   仅作用于「看广告」的退出确认，站内其它 layer 弹窗不受影响。
   ============================================================ */
.adm-confirm.layui-layer {
    border-radius: 16px; border: 1px solid rgba(255, 192, 159, .3);
    background: radial-gradient(120% 90% at 50% 0%, #3A1228 0%, #2A0F1F 55%, #1A0610 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 175, 205, .1);
    color: #FFF0E0; overflow: hidden;
}
.adm-confirm .layui-layer-title {
    background: transparent; color: #FFF0E0; font-weight: 800; font-size: 15px; letter-spacing: .5px;
    border-bottom: 1px solid rgba(255, 192, 159, .22); height: 48px; line-height: 48px; padding: 0 56px 0 20px;
}
.adm-confirm .layui-layer-content {
    color: #E8CDBE; font-size: 14.5px; line-height: 1.7; padding: 22px 22px 20px;
    text-align: center;
}
.adm-confirm .layui-layer-btn {
    padding: 0 18px 20px; border-top: 0; text-align: center;
}
/* !important：layer.js 会在运行时注入自带 layer.css 皮肤(常晚于本文件加载)，
   同特异度下按源序会盖掉按钮样式，故此处强制。 */
.adm-confirm .layui-layer-btn a {
    height: 40px !important; line-height: 40px !important; margin: 0 6px !important; padding: 0 24px !important;
    min-width: 108px; border: 0 !important; border-radius: 10px !important;
    font-size: 14px !important; font-weight: 700 !important; letter-spacing: .5px;
    transition: transform .15s, box-shadow .15s, background .15s;
}
/* 继续观看：主推荐动作(玫红渐变) */
.adm-confirm .layui-layer-btn .layui-layer-btn0 {
    color: #2D1018 !important;
    background: linear-gradient(135deg, #FFB088 0%, #FF8FA3 45%, #C44569 100%) !important;
    box-shadow: 0 6px 18px rgba(255, 107, 138, .45) !important;
}
.adm-confirm .layui-layer-btn .layui-layer-btn0:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(255, 143, 163, .6) !important; }
/* 狠心退出：次要动作(幽灵按钮) */
.adm-confirm .layui-layer-btn .layui-layer-btn1 {
    color: #E8B7A8 !important; background: rgba(255, 255, 255, .06) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 192, 159, .38) !important;
}
.adm-confirm .layui-layer-btn .layui-layer-btn1:hover { color: #FFF0E0 !important; background: rgba(255, 255, 255, .12) !important; }

/* PC(≥1024)：跟随近黑紫皮微调边框/主按钮，保持与对话框一致 */
@media (min-width: 1024px) {
    .adm-confirm.layui-layer {
        border-color: #2A2140;
        background: #150F22;
        box-shadow: 0 30px 90px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 61, 138, .1), inset 0 1px 0 rgba(255, 175, 205, .08);
    }
    .adm-confirm .layui-layer-title { color: #EDE7F7; border-bottom-color: #241B36; }
    .adm-confirm .layui-layer-content { color: #B9AEd0; }
    .adm-confirm .layui-layer-btn .layui-layer-btn0 {
        color: #fff !important;
        background: linear-gradient(135deg, #FF5C9A 0%, #FF3D8A 55%, #D42E75 100%) !important;
        box-shadow: 0 6px 18px rgba(255, 61, 138, .45) !important;
    }
    .adm-confirm .layui-layer-btn .layui-layer-btn1 { color: #9E93B8 !important; background: rgba(255, 255, 255, .05) !important; box-shadow: inset 0 0 0 1px #2A2140 !important; }
    .adm-confirm .layui-layer-btn .layui-layer-btn1:hover { color: #EDE7F7 !important; }
}

/* ============================================================
   PC(≥1024)：居中近黑紫对话框（与 daily_pc.css 同皮，仅精修不换色）
   ============================================================ */
@media (min-width: 1024px) {
    .adm-mask {
        background: radial-gradient(120% 80% at 50% 0%, rgba(35, 20, 45, .5), rgba(4, 3, 8, .84) 70%);
        display: flex; align-items: center; justify-content: center;
    }
    .adm {
        position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: auto;
        width: 520px; max-width: 92vw; height: auto; max-height: 88vh; border-radius: 16px;
        background: #150F22; border: 1px solid #2A2140; color: #EDE7F7; overflow: hidden;
        transform: translateY(24px) scale(.98);
        box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 61, 138, .1), inset 0 1px 0 rgba(255, 175, 205, .08);
    }
    .adm.show { transform: translateY(0) scale(1); }
    .adm-video-wrap { flex: none; width: 100%; aspect-ratio: 16 / 9; max-height: 58vh; border-radius: 16px 16px 0 0; }
    .adm-video-wrap::before { border-radius: 16px 16px 0 0; }
    .adm-bar { top: 0; border-radius: 16px 0 0 0; }
    .adm-count, .adm-close { top: 14px; }
    .adm-count { background: rgba(11, 8, 18, .6); }
    .adm-close { background: rgba(11, 8, 18, .6); }
    .adm-close:hover { background: rgba(30, 22, 48, .8); }

    .adm-foot {
        background: #150F22; border-top: 1px solid #241B36; padding: 16px 18px 18px;
    }
    .adm-foot::before {
        background: linear-gradient(90deg, transparent, rgba(255, 61, 138, .55), rgba(255, 175, 205, .35), transparent);
    }
    .adm-name { color: #EDE7F7; }
    .adm-desc { color: #9E93B8; }
    .adm-logo {
        background: #0B0812; border-color: #2A2140;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 61, 138, .1);
    }
    .adm-cta {
        background: linear-gradient(135deg, #FF5C9A 0%, #FF3D8A 55%, #D42E75 100%);
        color: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(255, 61, 138, .45);
        transition: transform .16s, box-shadow .16s;
    }
    .adm-cta:hover { transform: translateY(-1px) scale(1.005); box-shadow: 0 10px 28px rgba(255, 61, 138, .6); }
    @keyframes admCtaPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.012); box-shadow: 0 8px 26px rgba(255, 61, 138, .7); }
    }
    .adm-hand { right: 18px; bottom: -4px; width: 36px; height: 36px; }
}
