/* ============================================================
   eva.css — NERV 作战日程面板主题 v4（2026-09-03）
   EVA 明日香专属 · 机甲斜切金属面板风
   主色：高饱和橙红 + 深炭黑 · 荧光橙扫描线 · 金属切角面板
   特效：CRT 扫描残影 / 红色警示流光边框 / 微弱故障噪点 / 扫描光轨
   加载顺序：styles.css → fx.css → 本文件（最后覆盖，可整体移除回滚）

   ── 分层规范（从下到上）──
   Layer 0  底层背景：深色噪点纹理（body::after，eva-bg.jpg）
   Layer 1  装饰层：HUD 雷达 / 警示三角 / 扫描虚线 / 明日香立绘
            （.eva-figure .eva-hud-panel .eva-warning .eva-dash .eva-sweep）
            显隐开关：顶栏 DECO 按钮 / html[data-deco="off"]，localStorage 记忆
   Layer 2  业务交互层：文字 / 按钮 / 输入框（app 原生 DOM，永远置顶）
   全局氛围：CRT 残影 body::before（混合叠加，不随 DECO 开关关闭）

   ── 组件化令牌 ──
   所有面板/按钮/进度条外观由 --eva-* 令牌驱动，
   换主题 = 覆盖令牌 + 面板形状变量，几何尺寸/间距/热区零改动。
   ============================================================ */

/* ---------- ⓪ 组件化外观令牌（换主题改这里） ---------- */
:root {
  --eva-accent: #FF5000;                       /* 主发光橙红 */
  --eva-accent-2: #FFAA22;                     /* 渐变亮端 */
  --eva-panel-hi: #2A2A32;                     /* 金属面板亮部 */
  --eva-panel-mid: #222228;                    /* 半哑光金属底色 */
  --eva-panel-lo: #1B1B21;                     /* 金属面板暗部 */
  --eva-panel-line: rgba(255, 90, 0, .6);      /* 描边高亮 */
  --eva-panel-glow: rgba(255, 80, 0, .5);      /* 外发光 box-shadow（v5.1: 12px .5） */
  --eva-cut: 12px;                             /* 斜切切角尺寸 */
  --eva-radius: 0px;                           /* 主题圆角（机甲风=0） */
  --eva-screw: rgba(255, 150, 70, .4);         /* 铆钉点缀色 */
  --eva-mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, "Roboto Mono", monospace; /* 科幻终端等宽数字 */
}

/* ---------- ① 强制深空炭黑底色（浅/深色方案统一）
      v6：背景压深至 #0D0D11，与 #222228 金属面板拉开双色块层次 ---------- */
:root {
  --bg: #0D0D11;
  --card: #222228;
  --card2: #26262E;
  --glass: rgba(34, 34, 40, .86);
  --text: #EEEEEE;
  --text2: #999999;
  --line: rgba(255, 90, 0, .18);
  --accent: #FF5000;
  --accent-weak: rgba(255, 80, 0, .14);
  --danger: #FF2E4C;
  --warn: #FF9500;
  --ok: #28A745;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 28px rgba(0, 0, 0, .55);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0D11; --card: #222228; --card2: #26262E;
    --glass: rgba(34, 34, 40, .86);
    --text: #EEEEEE; --text2: #999999;
    --line: rgba(255, 90, 0, .18);
    --accent: #FF5000; --accent-weak: rgba(255, 80, 0, .14);
    --ok: #28A745;
  }
}
body { background: var(--bg); color: var(--text); }

/* 深空背景：背景图可换（--eva-bg-image，eva.js 背景切换器写入）；
   深色遮罩 --eva-bg-dim 压暗纹理去噪点感，任意背景图都保持双色块层次 */
body::after {
  background-color: #0D0D11;
  background-image:
    linear-gradient(rgba(9, 9, 13, var(--eva-bg-dim, .62)), rgba(9, 9, 13, var(--eva-bg-dim, .62))),
    radial-gradient(1100px 760px at 78% -12%, rgba(255, 80, 0, .07), transparent 62%),
    radial-gradient(880px 680px at 8% 112%, rgba(255, 170, 34, .05), transparent 60%),
    var(--eva-bg-image, url("/eva-bg.jpg"));
  background-size: auto, auto, auto, cover;
  background-position: center;
  background-attachment: scroll, scroll, scroll, fixed;
  filter: none; transform: none;
}
/* CRT 扫描残影 + 噪点 + 暗角（v6.1：噪点再压 .34→.24，底色再加深） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 58; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .01) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.28'/></svg>"),
    radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, .5) 100%);
  background-size: auto, 140px 140px, auto;
  mix-blend-mode: screen;
  opacity: .24;
  animation: evaCrt 8s steps(60) infinite;
}
@keyframes evaCrt {
  0%, 100% { opacity: .24; } 48% { opacity: .24; } 49% { opacity: .19; } 50% { opacity: .24; } 91% { opacity: .22; } 92% { opacity: .24; }
}

/* ---------- ② 机甲斜切金属面板（组件：.card / .modal / .sidebar / .topbar）
      几何（padding/margin/热区）完全继承 styles.css，仅替换外观 ---------- */
.card {
  position: relative;
  border-radius: var(--eva-radius) !important;
  background:
    radial-gradient(circle 2.5px at 13px 13px, var(--eva-screw) 62%, transparent 64%),
    radial-gradient(circle 2.5px at calc(100% - 13px) 13px, var(--eva-screw) 62%, transparent 64%),
    radial-gradient(circle 2.5px at 13px calc(100% - 13px), var(--eva-screw) 62%, transparent 64%),
    radial-gradient(circle 2.5px at calc(100% - 13px) calc(100% - 13px), var(--eva-screw) 62%, transparent 64%),
    linear-gradient(165deg, var(--eva-panel-hi) 0%, var(--eva-panel-mid) 46%, var(--eva-panel-lo) 100%);
  border: 1px solid var(--eva-panel-line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow), 0 0 12px var(--eva-panel-glow), inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -1px 0 rgba(0, 0, 0, .55);
  clip-path: polygon(var(--eva-cut) 0, 100% 0, 100% calc(100% - var(--eva-cut)), calc(100% - var(--eva-cut)) 100%, 0 100%, 0 var(--eva-cut));
}
/* 流光能量轨（沿用 mask-composite 细边框，被切角裁剪后沿直边流动） */
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: linear-gradient(115deg,
    transparent 0%, rgba(255, 80, 0, .6) 18%, transparent 38%,
    rgba(255, 170, 34, .45) 55%, transparent 74%, rgba(255, 80, 0, .45) 92%, transparent 100%);
  background-size: 320% 320%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  animation: evaFlow 7s linear infinite, evaBoot .9s ease-out 1;
  opacity: .75;
}
/* v5.1 可选动画①：页面载入时边框扫描点亮一次 */
@keyframes evaBoot { 0% { opacity: 0; } 35% { opacity: 1; filter: brightness(2); } 100% { opacity: .75; } }
@keyframes evaFlow { 0% { background-position: 0% 0%; } 100% { background-position: 320% 320%; } }
@media (max-width: 768px) { .card::before { animation-duration: 9s; opacity: .6; } }

/* 机甲左上角切角补线 + 能量刻度（替代原 HUD 小横条） */
.card::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: var(--eva-cut); height: var(--eva-cut);
  background:
    linear-gradient(135deg, var(--eva-accent) 0 46%, transparent 46.5%),
    repeating-linear-gradient(90deg, rgba(255, 90, 0, .55) 0 3px, transparent 3px 7px) 0 100% / 46px 2px no-repeat;
  opacity: .85; pointer-events: none;
}

/* 顶栏 / 侧栏 / 弹窗：同款金属拉丝面板 */
.sidebar, .topbar, .modal {
  background: linear-gradient(180deg, var(--eva-panel-hi), var(--eva-panel-mid)) !important;
  border-color: var(--eva-panel-line) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sidebar { border-right-color: var(--eva-panel-line) !important; }

/* 科技感发光分割线 */
.topbar { border-bottom: 1px solid rgba(255, 90, 0, .22) !important; box-shadow: 0 1px 0 rgba(255, 90, 0, .08), 0 8px 30px rgba(0, 0, 0, .45); }
.card h3, .modal h2, .modal h3 {
  border-bottom: 1px solid rgba(255, 90, 0, .18);
  padding-bottom: 8px; margin-bottom: 12px;
  position: relative;
}
.card h3::after, .modal h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 34px; height: 2px;
  background: linear-gradient(90deg, #FF5000, #FF9500);
  box-shadow: 0 0 8px rgba(255, 90, 0, .7);
}

/* ---------- ③ 文字 / 标题 HUD 化 ---------- */
.topbar h1 {
  font-weight: 800; letter-spacing: .04em;
  text-shadow: 0 0 14px rgba(255, 70, 40, .4);
  animation: evaGlitch 9s steps(1) infinite;
}
@keyframes evaGlitch {
  0%, 91.9%, 96%, 100% { text-shadow: 0 0 14px rgba(255, 70, 40, .4); transform: none; }
  92% { text-shadow: 2.5px 0 rgba(255, 30, 60, .75), -2.5px 0 rgba(80, 200, 255, .5); transform: skewX(-2.5deg); }
  93.5% { text-shadow: -2px 0 rgba(255, 30, 60, .6), 2px 0 rgba(255, 150, 0, .5); transform: skewX(1.5deg); }
}
.intel-eyebrow { letter-spacing: .24em; text-shadow: 0 0 10px rgba(255, 90, 0, .5); }

/* ---------- ④ 完成度仪表盘：发光橙红渐变进度条 ---------- */
.progress {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 90, 0, .25);
  box-shadow: inset 0 0 10px rgba(255, 80, 0, .12);
}
.progress i {
  background: linear-gradient(90deg, #FF2E1F, #FF6A00, #FF9500) !important;
  box-shadow: 0 0 14px rgba(255, 90, 0, .85), 0 0 3px rgba(255, 160, 60, .9);
  position: relative; overflow: hidden;
}
.progress i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: evaShine 2.8s linear infinite;
}
@keyframes evaShine { 0% { background-position: 220% 0; } 100% { background-position: -120% 0; } }

/* ---------- ⑤ 待办 / 交互元素 ---------- */
.row.done .check {
  background: linear-gradient(135deg, #FF3B1F, #FF9900);
  border-color: #FF6A2A !important;
  box-shadow: 0 0 10px rgba(255, 100, 40, .75);
}
.chip.active {
  background: linear-gradient(135deg, #FF3B1F, #FF9900) !important;
  border-color: #FF6A2A !important;
  box-shadow: 0 0 10px rgba(255, 90, 0, .6);
}
.nav-item.active {
  background: var(--accent-weak) !important;
  color: #FF7A3C !important;
  text-shadow: 0 0 10px rgba(255, 90, 0, .6);
  border-left: 2px solid #FF5000;
}
.nav-item.active svg { filter: drop-shadow(0 0 5px rgba(255, 100, 40, .8)); }
:focus-visible { outline-color: #FF6A2A !important; }

/* 分时段卡片右上角：红色「+添加」发光按钮 */
.period-head .add {
  background: linear-gradient(135deg, #FF3B1F, #FF7A00);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 90, 0, .55);
  padding: 4px 12px;
  transition: box-shadow .2s, transform .1s;
}
.period-head .add:hover { box-shadow: 0 0 20px rgba(255, 90, 0, .85); }
.period-head .add:active { transform: scale(.96); }

/* ---------- ⑥ 底部导航栏：机甲极简线条风 ---------- */
@media (max-width: 768px) {
  .tabbar {
    background: rgba(8, 8, 12, .88) !important;
    border-top: 1px solid rgba(255, 90, 0, .3) !important;
    box-shadow: 0 -1px 0 rgba(255, 120, 50, .25), 0 -8px 26px rgba(255, 80, 0, .07);
  }
  .tabbar .nav-item { color: #8E8E96; }
  .tabbar .nav-item.active {
    color: #FF7A3C !important;
    text-shadow: 0 0 8px rgba(255, 90, 0, .65);
  }
  .tabbar .nav-item.active svg { filter: drop-shadow(0 0 6px rgba(255, 100, 40, .9)); }
}

/* ---------- ⑦ NERV 标识（右上角，由 eva.js 注入） ---------- */
.eva-mark {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 9px; pointer-events: none;
}
.eva-mark svg {
  width: 26px; height: 26px;
  fill: #FF2E1F;
  filter: drop-shadow(0 0 6px rgba(255, 80, 0, .8));
}
.eva-mark .eva-nerv {
  font-weight: 900; font-size: 15px; letter-spacing: .3em; color: #FF5A36;
  text-shadow: 0 0 10px rgba(255, 70, 40, .6);
}
.eva-mark .eva-tag {
  font-size: 8.5px; letter-spacing: .08em; color: #82828E;
  max-width: 150px; line-height: 1.3; text-transform: uppercase;
}
@media (max-width: 768px) { .eva-mark .eva-tag { display: none; } .eva-mark svg { width: 22px; height: 22px; } .eva-mark .eva-nerv { font-size: 13px; } }
.topbar { position: sticky; }

/* ---------- ⑧ 扫描光轨（由 eva.js 注入 .eva-sweep） ---------- */
.eva-sweep {
  position: fixed; top: 0; bottom: 0; left: -4%; width: 2px; z-index: 6;
  pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 130, 60, .55) 30%, rgba(255, 255, 255, .5) 50%, rgba(255, 130, 60, .55) 70%, transparent);
  box-shadow: 0 0 14px rgba(255, 90, 0, .6);
}
.eva-sweep.run { animation: evaSweep 4.6s cubic-bezier(.4, 0, .6, 1) 1; }
@keyframes evaSweep {
  0% { left: -3%; opacity: 0; } 10% { opacity: .85; } 88% { opacity: .85; } 100% { left: 103%; opacity: 0; }
}

/* ---------- ⑨ 登录页 EVA 化 ---------- */
body:has(.box) { background: #050508 !important; }
.login-eva-box {
  border: 1px solid rgba(255, 90, 0, .35) !important;
  box-shadow: 0 0 40px rgba(255, 80, 0, .12), 0 24px 70px rgba(0, 0, 0, .6) !important;
  position: relative; overflow: hidden;
}
.login-eva-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #FF3B1F, #FF9500, transparent);
  background-size: 200% 100%; animation: evaFlow 4s linear infinite;
}
input:focus { border-color: #FF6A2A !important; box-shadow: 0 0 0 3.5px rgba(255, 80, 0, .16) !important; }

/* ---------- ⑩ 动效总闸 ---------- */
@media (prefers-reduced-motion: reduce) {
  .card::before, .progress i::after, .eva-sweep, .eva-mark svg { animation: none !important; }
  .topbar h1 { animation: none !important; }
}

/* ============================================================
   ⑪ 明日香专属元素（v2 · 2026-09-03）
   ============================================================ */

/* —— EVA-02 同期率标签（进度条上方）—— */
.eva-sync {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: #FF7A3C; text-shadow: 0 0 8px rgba(255, 100, 40, .5);
  margin-bottom: 6px; text-transform: uppercase;
}
.eva-sync b { color: #9B9BA4; font-weight: 600; letter-spacing: .1em; }
.eva-sync i {
  width: 8px; height: 8px; border-radius: 2px; flex: none;
  background: #FF3B1F;
  box-shadow: 0 0 8px rgba(255, 70, 30, .9);
  animation: evaSyncBlink 2.2s steps(1) infinite;
}
@keyframes evaSyncBlink { 0%, 70% { opacity: 1; } 75% { opacity: .25; } 80% { opacity: 1; } 88% { opacity: .4; } 92% { opacity: 1; } }

/* —— 明日香台词气泡（HUD 玻璃 + 流光边）—— */
.eva-quote {
  position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 70; max-width: 300px;
  background: rgba(14, 14, 20, .88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 80, 0, .45);
  border-radius: 4px 16px 16px 16px;
  padding: 12px 14px 11px;
  box-shadow: 0 0 24px rgba(255, 80, 0, .22), 0 12px 32px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .9, .3, 1.2);
  pointer-events: none;
}
@media (min-width: 769px) { .eva-quote { bottom: 24px; } }
.eva-quote.show { opacity: 1; transform: translateY(0) scale(1); }
.eva-quote p { font-size: 13.5px; line-height: 1.55; color: #F2F2F5; margin-top: 6px; }
.eva-quote-tag {
  font-size: 10px; font-weight: 900; letter-spacing: .18em;
  color: #FF5A36; text-shadow: 0 0 8px rgba(255, 80, 40, .7);
}
.eva-quote-mode {
  float: right; font-size: 9px; font-weight: 700; letter-spacing: .12em;
  color: #FF9500; border: 1px solid rgba(255, 149, 0, .4);
  padding: 1px 6px; border-radius: 3px; margin-left: 8px;
}

/* —— 登录页驾驶员署名 —— */
.eva-pilot {
  margin-top: 18px; padding-top: 12px;
  border-top: 1px solid rgba(255, 80, 0, .22);
  font-size: 10.5px; letter-spacing: .16em; text-align: center;
  color: #FF7A1A; text-shadow: 0 0 8px rgba(255, 80, 40, .4);
}

/* —— A.T. FIELD：卡片悬停时六边形防护罩微光 —— */
.card { transition: transform .25s cubic-bezier(.2, .9, .3, 1), box-shadow .25s ease; }
@media (min-width: 769px) {
  .card:hover {
    box-shadow: 0 0 0 1px rgba(255, 90, 0, .18),
      0 0 22px rgba(255, 70, 30, .18),
      0 14px 38px rgba(0, 0, 0, .5);
  }
  .card:hover::before { opacity: 1; animation-duration: 2.2s; }
}

@media (prefers-reduced-motion: reduce) {
  .eva-sync i { animation: none; }
  .eva-quote { transition: opacity .2s; }
}

/* ============================================================
   ⑫ 作战面板 v3：大屏立绘 / 小屏弱化 / 低端机降级（2026-09-03）
   ============================================================ */

/* —— 明日香立绘：≥481px 右侧完整展示；≤480px 降为弱背景衬底 —— */
.eva-figure { display: none; }
@media (min-width: 481px) {
  .eva-figure {
    display: block;
    position: fixed; right: 0; bottom: 0;
    width: min(38vw, 480px); height: min(92vh, 900px);
    background: url("/eva-asuka.webp") no-repeat right bottom / contain;
    z-index: -1; pointer-events: none;
    opacity: .97;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16%);
    filter: drop-shadow(-10px 0 34px rgba(255, 80, 0, .18)) contrast(1.04);
  }
}
/* ≤480px 手机竖屏：低透明度弱背景，z-index -1 衬在卡片后，任务列表完整可见 */
@media (max-width: 480px) {
  .eva-figure {
    display: block;
    position: fixed; right: -14vw; bottom: 0;
    width: 100vw; height: 78vh;
    background: url("/eva-asuka.webp") no-repeat right bottom / contain;
    z-index: -1; pointer-events: none;
    opacity: .13;
    -webkit-mask-image: linear-gradient(115deg, transparent 8%, #000 55%);
            mask-image: linear-gradient(115deg, transparent 8%, #000 55%);
  }
}

/* —— ⑯ 主页面板右侧 HUD 雷达装饰（≥481px，衬在磨砂玻璃卡片后）—— */
.eva-hud-panel { display: none; }
@media (min-width: 481px) {
  .eva-hud-panel {
    display: block;
    position: fixed; right: max(10px, 1.5vw); top: 86px;
    width: min(23vw, 290px); height: min(23vw, 290px);
    background: url("/hud-radar.webp") no-repeat center / contain;
    z-index: -1; pointer-events: none;
    opacity: .42;
    animation: evaRadarSpinCard 64s linear infinite;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 76%);
            mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 76%);
  }
}

/* —— 低端机降级：html.eva-lite（eva.js 检测后加类）——
   关闭：CRT 扫描线 / 扫描光轨 / 流光动画 / 标题故障 / 进度条流光 / 立绘 */
.eva-lite body::before { display: none; }
.eva-lite .eva-sweep, .eva-lite .eva-figure, .eva-lite .eva-hud-panel { display: none !important; }
.eva-lite .topbar h1 { animation: none !important; }
.eva-lite .progress i::after { display: none; }
.eva-lite .card::before {
  animation: none; opacity: .3;
  background: linear-gradient(115deg, rgba(255, 80, 0, .3), transparent 45%, rgba(255, 150, 0, .2) 75%, transparent);
}

/* —— 日期切换箭头：机甲线条风 —— */
.datebar .arrow {
  color: #FF7A3C;
  border: 1px solid rgba(255, 90, 0, .28);
  transition: box-shadow .2s, border-color .2s;
}
.datebar .arrow:hover {
  border-color: rgba(255, 90, 0, .6);
  box-shadow: 0 0 10px rgba(255, 90, 0, .45);
}

/* —— 修正：待办提醒计数徽章 v5 规格绿 #28A745（小圆底色）—— */
:root { --ok: #28A745; }
.badge.ok { background: rgba(40, 167, 69, .16) !important; color: #28A745 !important; }
.p-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 7px;
  border-radius: 100px;
  background: #28A745; color: #fff;
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 8px rgba(40, 167, 69, .45);
}

/* ============================================================
   ⑬ 正统 NERV 徽标（机主提供图 · 黑底已转透明 · 2026-09-03）
   ============================================================ */
.eva-mark-img {
  width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(255, 70, 35, .8));
}
@media (max-width: 768px) { .eva-mark-img { width: 46px; height: 46px; } }
.eva-mark .eva-nerv { display: none; }  /* 徽标图自带 NERV 字样，文字版隐藏 */

/* 登录页徽章：台字标 → 正统徽标 */
.login-eva-box .mark.eva-logo-mark {
  background: none !important;
  box-shadow: none !important;
  width: 74px; height: 74px; border-radius: 0;
}
.login-eva-box .mark.eva-logo-mark img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 70, 35, .65));
  animation: evaLogoPulse 3.4s ease-in-out infinite;
}
@keyframes evaLogoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 70, 35, .5)); }
  50% { filter: drop-shadow(0 0 16px rgba(255, 90, 0, .9)); }
}
@media (prefers-reduced-motion: reduce) {
  .eva-mark-img, .login-eva-box .mark.eva-logo-mark img { animation: none !important; filter: drop-shadow(0 0 6px rgba(255, 70, 35, .6)); }
}

/* ============================================================
   ⑮ HUD 雷达仪表盘（机主提供图 · 真透明 · 2026-09-03）
   ============================================================ */

/* —— 登录页：登录框后方巨型缓转雷达 —— */
.eva-radar-login {
  position: fixed; left: 50%; top: 50%;
  width: min(88vmin, 700px); height: min(88vmin, 700px);
  transform: translate(-50%, -50%);
  background: url("/hud-radar.webp") no-repeat center / contain;
  z-index: 0; pointer-events: none;
  opacity: .38;
  animation: evaRadarSpin 90s linear infinite;
}
@keyframes evaRadarSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
body:has(.eva-radar-login) .box { position: relative; z-index: 1; }
.eva-lite .eva-radar-login { animation: none; opacity: .22; }

/* —— 完成度卡片：右侧雷达 backdrop（同期率仪表盘）—— */
.eva-sync-card { overflow: hidden; }
.eva-sync-card::after {
  content: ""; position: absolute;
  right: -52px; top: 50%;
  width: 170px; height: 170px;
  margin-top: -85px;
  background: url("/hud-radar.webp") no-repeat center / contain;
  opacity: .2; pointer-events: none;
  animation: evaRadarSpinCard 70s linear infinite;
}
@keyframes evaRadarSpinCard { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.eva-lite .eva-sync-card::after { animation: none; opacity: .12; }

@media (prefers-reduced-motion: reduce) {
  .eva-radar-login, .eva-sync-card::after, .eva-hud-panel { animation: none !important; }
}

/* ============================================================
   ⑰ 分层规范落地 + 装饰层总开关 + 机甲按钮（v4 · 2026-09-03）
   Layer 0 背景（body::after）→ Layer 1 装饰（本节+立绘+雷达）
   → Layer 2 业务（app 原生 DOM 永远置顶，装饰层全部 pointer-events:none）
   ============================================================ */

/* —— 装饰层统一压到 Layer 0 之上、业务层之下 —— */
.eva-figure, .eva-hud-panel, .eva-warning, .eva-dash, .eva-sweep { z-index: -1; }

/* —— 装饰层总开关：顶栏 DECO 按钮 / html[data-deco="off"] —— */
html[data-deco="off"] .eva-figure,
html[data-deco="off"] .eva-hud-panel,
html[data-deco="off"] .eva-warning,
html[data-deco="off"] .eva-dash,
html[data-deco="off"] .eva-sweep { display: none !important; }

.eva-deco-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-right: 10px; padding: 3px 9px;
  font: 600 10px/1 var(--font-mono, monospace); letter-spacing: .08em;
  color: var(--eva-accent-2); cursor: pointer; user-select: none;
  background: linear-gradient(180deg, var(--eva-panel-hi), var(--eva-panel-lo));
  border: 1px solid var(--eva-panel-line);
  border-radius: var(--eva-radius);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: color .18s, border-color .18s;
}
.eva-deco-btn:hover { border-color: var(--eva-accent); }
.eva-deco-btn .dot { width: 6px; height: 6px; background: var(--eva-accent); box-shadow: 0 0 6px var(--eva-accent); }
html[data-deco="off"] .eva-deco-btn { color: var(--text2); }
html[data-deco="off"] .eva-deco-btn .dot { background: #555; box-shadow: none; }

/* —— 背景切换器（顶栏 BG 按钮 + 弹出菜单 · v6 新增）—— */
.eva-bg-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-right: 10px; padding: 3px 9px;
  font: 600 10px/1 var(--font-mono, monospace); letter-spacing: .08em;
  color: var(--eva-accent-2); cursor: pointer; user-select: none;
  background: linear-gradient(180deg, var(--eva-panel-hi), var(--eva-panel-lo));
  border: 1px solid var(--eva-panel-line);
  border-radius: var(--eva-radius);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: color .18s, border-color .18s;
}
.eva-bg-btn:hover { border-color: var(--eva-accent); }
.eva-bg-btn .dot { width: 6px; height: 6px; background: var(--eva-accent); box-shadow: 0 0 6px var(--eva-accent); }
.eva-bg-menu {
  position: fixed; top: 60px; right: 12px; z-index: 92;
  width: 252px; padding: 10px;
  background: rgba(13, 13, 18, .96);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--eva-panel-line);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 22px rgba(255, 80, 0, .14), 0 18px 46px rgba(0, 0, 0, .6);
  display: none;
}
.eva-bg-menu.open { display: block; }
.eva-bg-menu h4 {
  margin: 2px 4px 9px; font-size: 10px; font-weight: 800;
  letter-spacing: .2em; color: #FF7A3C;
  text-shadow: 0 0 8px rgba(255, 90, 0, .5);
}
.eva-bg-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 7px; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px;
}
.eva-bg-opt:hover { border-color: rgba(255, 90, 0, .35); background: rgba(255, 80, 0, .06); }
.eva-bg-opt.cur { border-color: var(--eva-panel-line); background: var(--accent-weak); }
.eva-bg-thumb {
  width: 52px; height: 34px; flex: none; border-radius: 2px;
  background-color: #0D0D11; background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, .14);
}
.eva-bg-name { font-size: 12.5px; color: var(--text); line-height: 1.3; }
.eva-bg-name small { display: block; font-size: 9px; color: var(--text2); letter-spacing: .1em; margin-top: 1px; }
.eva-bg-upload {
  margin-top: 7px; padding: 7px 0; width: 100%;
  font: 600 11px/1 var(--font-mono, monospace); letter-spacing: .08em;
  color: var(--eva-accent-2); cursor: pointer; text-align: center;
  background: none; border: 1px dashed rgba(255, 90, 0, .4); border-radius: 2px;
}
.eva-bg-upload:hover { border-color: var(--eva-accent); background: rgba(255, 80, 0, .07); }
.eva-bg-file { display: none; }

/* —— Layer 1 · 警示三角（eva-warning.png 透明素材）—— */
.eva-warning {
  position: fixed; width: 22px; height: 22px;
  background: url("/eva-warning.png") no-repeat center / contain;
  opacity: .55; pointer-events: none; z-index: -1;
  animation: evaWarnBlink 2.6s steps(2) infinite;
}
.eva-warning.w1 { left: 12px; top: 62px; }
.eva-warning.w2 { right: 14px; bottom: 84px; width: 18px; height: 18px; opacity: .4; }
@keyframes evaWarnBlink { 0%, 88% { opacity: .55; } 92%, 96% { opacity: .12; } }

/* —— Layer 1 · 扫描虚线（水平能量刻度线，缓慢横移）—— */
.eva-dash {
  position: fixed; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg,
    rgba(255, 90, 0, .55) 0 16px, transparent 16px 30px);
  opacity: .16; pointer-events: none; z-index: -1;
  animation: evaDashMove 9s linear infinite;
}
.eva-dash.d1 { top: 21%; }
.eva-dash.d2 { bottom: 23%; animation-direction: reverse; }
@keyframes evaDashMove { from { background-position-x: 0; } to { background-position-x: 46px; } }

/* —— 机甲切角按钮（组件：.btn，几何/热区不动，仅外观）
      v5 色板：135° 橙红渐变；hover 发光 + 轻微放大（transform 不影响布局热区）—— */
.btn {
  border-radius: var(--eva-radius) !important;
  background: linear-gradient(135deg, #ff5500, #ff9900) !important;
  color: #fff !important;
  border: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn:hover {
  transform: scale(1.035);
  box-shadow: 0 0 16px rgba(255, 85, 0, .55), 0 0 4px rgba(255, 153, 0, .5);
  filter: brightness(1.08);
}
.btn:active { transform: scale(.94); animation: evaJolt .16s linear 1; }
/* v6.1 点击震感：按下瞬间轻微抖动 + 移动端触觉振动（eva.js 触发 navigator.vibrate） */
@keyframes evaJolt {
  0% { transform: scale(.94) translateX(0); }
  35% { transform: scale(.94) translateX(-1.2px); }
  70% { transform: scale(.94) translateX(1.2px); }
  100% { transform: scale(.94) translateX(0); }
}

/* v6.1 Tab 导航点击：轻弹 + 触觉振动（振动由 eva.js 触发） */
.nav-item.eva-tab-pop { animation: evaTabPop .22s cubic-bezier(.3, 1.4, .5, 1) 1; }
@keyframes evaTabPop {
  0% { transform: scale(1); }
  40% { transform: scale(.92); }
  100% { transform: scale(1); }
}
/* 次/危按钮保留原语义色，仅切角，无发光放大 */
.btn.plain, .btn.danger { background: rgba(120, 120, 128, .12) !important; }
.btn.danger { background: rgba(255, 59, 48, .1) !important; }
.btn.plain:hover, .btn.danger:hover { transform: none; box-shadow: none; filter: none; }

/* —— v5.1 字体：数字/徽章/进度用等宽终端字体，标题系统无衬线粗体 —— */
.p-count, .badge, .progress, .sched-time, .datebar, .eva-sync b {
  font-family: var(--eva-mono);
  font-variant-numeric: tabular-nums;
}
.card h3, .modal h2, .modal h3 { font-weight: 800; letter-spacing: .02em; }

/* —— v5.1 可选动画③：按钮点击脉冲闪光（.eva-pulse 由 eva.js 添加）—— */
@keyframes evaPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 85, 0, .7), 0 0 18px rgba(255, 120, 0, .8); filter: brightness(1.6); }
  100% { box-shadow: 0 0 0 14px rgba(255, 85, 0, 0), 0 0 6px rgba(255, 120, 0, 0); filter: brightness(1); }
}
.btn.eva-pulse { animation: evaPulse .45s ease-out 1; }

/* —— 降级与无障碍 —— */
.eva-lite .eva-warning, .eva-lite .eva-dash { display: none !important; }
.eva-lite .eva-deco-btn { display: none !important; }
.eva-lite .btn.eva-pulse { animation: none !important; }
.eva-lite .card::before { animation: evaFlow 9s linear infinite !important; }
@media (prefers-reduced-motion: reduce) {
  .eva-warning, .eva-dash { animation: none !important; }
  .card::before { animation: none !important; }
  .btn.eva-pulse { animation: none !important; }
  .nav-item.eva-tab-pop { animation: none !important; }
}

