/* _17e: TNO 冷战掩体终端 — 动画效果 + 扫描线 + CRT 交互
 * ============================================================================
 * 来源: 从 LEUV01 _17_tno_style.css + _36_scanline_animation.css 精简融合
 * 设计原则:
 *   1. CRT 全屏扫描线极淡常驻; 模块雷达只给 .wf-block-interacting
 *   2. 所有动画 ≤ 0.2s — TNO 不要弹跳/缓出
 *   3. 绿色荧光粉 (#4cf080) 为终端主色调
 *   4. 禁止给全站 button/card 挂 hover::before — 滚动/切模块会重算上千伪元素
 */

/* ═══════════════════════════════════════════════════════════════
 * 1. 基础动画 (≤0.2s)
 * ═══════════════════════════════════════════════════════════════ */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.modal-overlay { animation: fadeIn 0.2s ease-out; }
.modal-dialog  { animation: modalSlideIn 0.3s ease-out; }

/* ═══════════════════════════════════════════════════════════════
 * 2. 全屏静态 CRT 扫描线 (极淡, 始终可见, pointer-events:none)
 * ═══════════════════════════════════════════════════════════════ */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0rem,
        rgba(0, 0, 0, 0.04) 1px,
        rgba(0, 0, 0, 0) 2px
    );
    z-index: 9999;
    opacity: 0.25;
}

/* ═══════════════════════════════════════════════════════════════
 * 3. 模块雷达线 keyframes 唯一出处
 *    只给 _07a .wf-block.wf-block-interacting::after 用.
 * ═══════════════════════════════════════════════════════════════ */
@keyframes tno-scanline-hover {
    0%   { transform: translate3d(0, 0, 0); opacity: 0.75; }
    100% { transform: translate3d(0, 720px, 0); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
 * 4. CRT 开机闪烁 (页面加载时一闪)
 * ═══════════════════════════════════════════════════════════════ */
@keyframes tno-crt-poweron {
    0%   { opacity: 0; filter: brightness(3); }
    5%   { opacity: 1; filter: brightness(3); }
    10%  { opacity: 0.5; filter: brightness(2); }
    15%  { opacity: 1; filter: brightness(1.5); }
    20%  { opacity: 0.8; filter: brightness(1.2); }
    100% { opacity: 1; filter: brightness(1); }
}
html[data-theme="tno"] body {
    animation: tno-crt-poweron 0.6s ease-out;
}

/* ═══════════════════════════════════════════════════════════════
 * 5. 终端绿色荧光粉闪烁 (打字机光标效果)
 * ═══════════════════════════════════════════════════════════════ */
@keyframes tno-cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
html[data-theme="tno"] .leucs-cursor,
html[data-theme="tno"] .cursor-blink {
    animation: tno-cursor-blink 1s step-end infinite;
}

html[data-boot-lock="1"] #leucs-ctx-hint {
    visibility: hidden;
    pointer-events: none;
}
html[data-boot-lock="1"],
html[data-boot-lock="1"] * {
    cursor: default !important;
}
html[data-boot-lock="1"] body,
html[data-boot-lock="1"] body * {
    pointer-events: none !important;
}
html[data-boot-lock="1"] #leucs-boot-canvas {
    pointer-events: auto !important;
    cursor: default !important;
}

/* ═══════════════════════════════════════════════════════════════
 * 6. 工业网格点背景 (已禁用 — 用户要求删除, 与 iframe 自适应冲突)
 * ═══════════════════════════════════════════════════════════════ */
/* html[data-theme="tno"] #leucs-main-grid,
html[data-theme="tno"] .leucs-grid-bg {
    background-image: radial-gradient(circle, rgba(74, 95, 122, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
} */
