/* xw-flood.css — 反刷屏滑块验证 + 违规警告框（第66批） */

/* ---------------- 滑块遮罩与面板 ---------------- */
.xw-flood-mask {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(28, 20, 34, .48);
    display: flex; align-items: center; justify-content: center;
    animation: xw-flood-fade .18s ease;
}
@keyframes xw-flood-fade { from { opacity: 0; } to { opacity: 1; } }

.xw-sl-panel {
    width: 340px; max-width: 94vw;
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 18px 60px rgba(40, 20, 40, .35);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    animation: xw-flood-pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes xw-flood-pop { from { transform: translateY(16px) scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }

.xw-sl-head {
    position: relative; text-align: center;
    padding: 22px 12px 14px; margin-bottom: 4px;
    color: #ff6a1a; font-size: 17px; font-weight: 600; letter-spacing: .5px;
    background: linear-gradient(180deg, #ffe9dc 0%, #fff4ec 60%, #fff 100%);
}
.xw-sl-shield { color: #ff7a1a; margin-right: 6px; font-size: 20px; }
.xw-sl-close {
    position: absolute; right: 12px; top: 12px;
    border: 0; background: transparent; font-size: 22px; line-height: 1;
    color: #c9a9a0; cursor: pointer;
}
.xw-sl-close:hover { color: #ff6a1a; }

.xw-sl-stage {
    position: relative; margin: 6px auto 0; border-radius: 8px; overflow: hidden;
    background: #f2f2f2; user-select: none; touch-action: none;
}
.xw-sl-bg { display: block; width: 100%; height: 100%; }
.xw-sl-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.xw-sl-refresh {
    position: absolute; right: 8px; top: 8px; z-index: 3;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(0, 0, 0, .35); color: #fff;
    font-size: 18px; line-height: 26px; text-align: center; cursor: pointer;
}
.xw-sl-refresh:hover { background: rgba(0, 0, 0, .55); }
.xw-sl-tip {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 4px 10px; font-size: 12px; text-align: center;
    background: rgba(255, 255, 255, .86);
}

.xw-sl-bar {
    position: relative; height: 44px; margin: 14px 18px 20px;
    border-radius: 24px; background: #f3f4f6;
    overflow: hidden; user-select: none; touch-action: none;
}
.xw-sl-bar-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: linear-gradient(90deg, #ffb36b, #ff7a9c); opacity: .55;
}
.xw-sl-bar-text {
    position: absolute; inset: 0; z-index: 2;
    text-align: center; line-height: 44px; font-size: 14px; color: #9a9aa5;
    pointer-events: none;
}
.xw-sl-handle {
    position: absolute; left: 0; top: 3px; z-index: 4;
    width: 38px; height: 38px; border-radius: 20px;
    background: #fff; color: #ff7a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    text-align: center; line-height: 38px; font-size: 18px;
    cursor: grab; touch-action: none;
}
.xw-sl-handle:active { cursor: grabbing; }

/* ---------------- 违规警告框（右上角滑入） ---------------- */
#xw-fw, .xw-fw {
    position: fixed; right: 22px; top: 22px; z-index: 1000000;
    width: 340px; max-width: 92vw;
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 14px; border-radius: 14px;
    background: #fff; box-shadow: 0 12px 40px rgba(60, 20, 40, .22);
    border: 1px solid #f0e2e6;
    transform: translateX(120%); opacity: 0; transition: all .35s cubic-bezier(.2, .8, .3, 1);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.xw-fw.act { transform: none; opacity: 1; }
.xw-fw-icon {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #ff8a5b, #ff5c8a); color: #fff;
    font-weight: 700; font-size: 18px; text-align: center; line-height: 30px;
}
.xw-fw-freeze .xw-fw-icon { background: linear-gradient(135deg, #ffb347, #ff7a45); }
.xw-fw-ban .xw-fw-icon, .xw-fw-ban_permanent .xw-fw-icon { background: linear-gradient(135deg, #f0506e, #b3123c); }
.xw-fw-body { flex: 1 1 auto; min-width: 0; }
.xw-fw-title { font-size: 15px; font-weight: 700; color: #332439; margin-bottom: 4px; }
.xw-fw-msg { font-size: 13px; line-height: 1.55; color: #6b6270; }
.xw-fw-x {
    flex: 0 0 auto; border: 0; background: transparent; cursor: pointer;
    font-size: 20px; line-height: 1; color: #c7bcc8;
}
.xw-fw-x:hover { color: #ff5c8a; }

@media (max-width: 480px) {
    .xw-fw { right: 10px; left: 10px; width: auto; }
}
