/* ==========================================================================
   铁流智脑 · 登录页左侧英雄区动画
   臂章 + 八一军旗，只在左侧空白区显示（登录框在右侧）
   独立文件，避免和 style.css 里大量 !important 冲突
   ========================================================================== */

#loginHero {
  position: fixed;
  left: 0;
  top: 0;
  /* 【11-24 三间距等距】原理：
     hero 宽度收到「军旗右缘 = 登录框左缘 - gap」的位置，
     让 军旗→登录框 的间距与 臂章→军旗 的 gap 相等。
     实测：登录框宽333 + 右留白18 + 需预留的gap(≈95) = 446，
     故 hero 宽 = 100vw - 446px（原为 100vw-400px，差46px）。
     gap1 由 .hero-row 的 gap 控制在 ~95px，两者即自动相等。
     左右各留 9px 平衡余量，避免臂章贴边。 */
  width: calc(100vw - 351px);  /* 11-25 登录框缩窄到330px，hero宽度保持 */
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  box-sizing: border-box;
  overflow: visible;
  /* 【11-24 重构】column 布局：上图行 + 下标语，标语自然位于两图正下方 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;              /* 【11-24 改】整组垂直居中，不再贴顶 */
  padding: 0;
  gap: clamp(18px, 2.6vh, 30px);        /* 图片行与标语之间 */
}

/* 图片行：臂章 + 军旗 横向排列，间距与右侧登录框间距同值 */
#loginHero .hero-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;     /* 臂章+军旗居中于左侧 hero 区 */
  gap: 63px;                   /* 【11-24】数学解：gap=63 时两图仍居中于左半区且 gap2 相等 */
  width: 100%;
}

/* ---------- 臂章容器 ---------- */
#loginHero .hero-emblem {
  position: relative;
  flex: none;
  width: 54.8vh;
  height: 67.5vh;
  max-width: 306px;      /* 【11-24】收窄10px，为左侧留白腾出空间，保证三间距等距 */
  max-height: 394px;
  opacity: 1;
  transform: scale(1) translateZ(0) rotateY(0deg);
  /* 【11-26】按要求去掉入场/浮动动画：臂章静态显示 */
}
#loginHero .hero-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 18px rgba(70, 190, 255, .45))
    drop-shadow(0 0 46px rgba(40, 140, 220, .30))
    drop-shadow(0 10px 24px rgba(0, 0, 0, .65));
}

/* 臂章外围雷达扫描环 */
#loginHero .hero-emblem::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 372px;
  height: 372px;
  margin: -186px 0 0 -186px;
  border-radius: 50%;
  border: 1px solid rgba(80, 190, 255, .18);
  box-shadow:
    inset 0 0 40px rgba(50, 150, 230, .10),
    0 0 40px rgba(50, 150, 230, .10);
  /* 【11-26】去掉脉冲动画，静态保留 */
  animation: none !important;
}
/* 扫描光弧 */
#loginHero .hero-emblem::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 372px;
  height: 372px;
  margin: -186px 0 0 -186px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(90, 200, 255, 0) 0deg,
    rgba(90, 200, 255, 0) 300deg,
    rgba(90, 200, 255, .30) 350deg,
    rgba(140, 220, 255, .55) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
  /* 【11-26】去掉旋转扫描动画，并隐藏光弧 */
  opacity: 0 !important;
  animation: none !important;
}

/* ---------- 军旗容器 ---------- */
#loginHero .hero-flag {
  position: relative;
  margin-top: 0;              /* 【11-24 修】去掉偏移，由 align-items:center 保证严格居中对齐 */
  flex: none;
  width: 73.3vh;
  height: 58.6vh;
  max-width: 430px;
  max-height: 344px;
  opacity: 1;
  transform: scale(1) translateY(0);
  /* 【11-26】按要求去掉入场/浮动动画：军旗静态显示 */
}
#loginHero .hero-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 16px rgba(230, 60, 60, .42))
    drop-shadow(0 0 40px rgba(190, 30, 30, .28))
    drop-shadow(0 10px 22px rgba(0, 0, 0, .60));
  transform-origin: left center;
  /* 【11-26】去掉旗面飘动动画 heroFlagWave */
}

/* 旗面扫光 */
#loginHero .hero-flag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, .28) 45%,
    rgba(255, 255, 255, .55) 50%,
    rgba(255, 255, 255, .28) 55%,
    transparent 70%
  );
  background-size: 260% 100%;
  background-position: -160% 0;
  /* 【11-26】去掉扫光动画，且默认不可见 */
  opacity: 0 !important;
  animation: none !important;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ---------- 标语：放在臂章+军旗两图整体正下方居中 ---------- */
#loginHero .hero-slogan {
  /* 【11-24 改】对齐军旗中心：由 JS 写入 --flag-center-x 精确定位 */
  position: absolute;
  left: var(--flag-center-x, 50%);
  bottom: var(--slogan-bottom, 8vh);
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--mono, monospace);
  font-size: clamp(40px, 4.4vw, 50px);  /* 【11-24 调】标语字号放大到 50px（按宽度算，不受窗口高度压制） */
  font-weight: 700;
  letter-spacing: clamp(6px, 0.9vw, 12px);
  color: #DCEBFF;
  text-shadow:
    0 0 20px rgba(90, 180, 255, .75),
    0 0 44px rgba(70, 160, 240, .45),
    0 2px 4px rgba(0, 0, 0, .85);
  white-space: nowrap;
  z-index: 6;
  opacity: 0;
  animation: heroSloganCenterIn 2.4s ease-out 3s forwards;
}
@keyframes heroSloganCenterIn {
  0%   { opacity: 0; transform: translateX(-50%) translateY(16px); letter-spacing: 26px; }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); letter-spacing: 14px; }
}
#loginHero .hero-slogan span { color: #FF6B6B; }

/* ---------- 底部上升粒子 ---------- */
#loginHero .hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#loginHero .hero-particles i {
  position: absolute;
  bottom: -12px;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(140, 205, 255, .85);
  box-shadow: 0 0 8px rgba(140, 205, 255, .9);
  animation: heroParticleUp linear infinite;
}
#loginHero .hero-particles i:nth-child(1)  { left: 8%;  animation-duration: 20s; animation-delay: 0s; }
#loginHero .hero-particles i:nth-child(2)  { left: 17%; animation-duration: 25s; animation-delay: 1.6s; }
#loginHero .hero-particles i:nth-child(3)  { left: 26%; animation-duration: 17s;  animation-delay: 3.1s; }
#loginHero .hero-particles i:nth-child(4)  { left: 35%; animation-duration: 23s; animation-delay: 0.8s; }
#loginHero .hero-particles i:nth-child(5)  { left: 44%; animation-duration: 19s; animation-delay: 4.2s; }
#loginHero .hero-particles i:nth-child(6)  { left: 53%; animation-duration: 27s; animation-delay: 2.2s; }
#loginHero .hero-particles i:nth-child(7)  { left: 62%; animation-duration: 22s; animation-delay: 5.4s; }
#loginHero .hero-particles i:nth-child(8)  { left: 71%; animation-duration: 18s; animation-delay: 1.1s; }
#loginHero .hero-particles i:nth-child(9)  { left: 80%; animation-duration: 24s; animation-delay: 3.8s; }
#loginHero .hero-particles i:nth-child(10) { left: 89%; animation-duration: 21s; animation-delay: 0.4s; }
#loginHero .hero-particles i:nth-child(11) { left: 14%; animation-duration: 23s; animation-delay: 6.1s; }
#loginHero .hero-particles i:nth-child(12) { left: 68%; animation-duration: 20s; animation-delay: 7.3s; }

/* ---------- 关键帧 ---------- */
@keyframes heroEmblemIn {
  0%   { opacity: 0; transform: scale(0.35) translateZ(-600px) rotateY(-18deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) translateZ(0) rotateY(0deg); }
}
@keyframes heroEmblemFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.015); }
}
@keyframes heroFlagIn {
  0%   { opacity: 0; transform: scale(0.4) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes heroFlagFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@keyframes heroFlagWave {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  25%      { transform: skewY(0.9deg) scaleX(1.012); }
  50%      { transform: skewY(0deg) scaleX(1); }
  75%      { transform: skewY(-0.9deg) scaleX(1.012); }
}
@keyframes heroFlagShine {
  0%, 55%   { background-position: -160% 0; opacity: 0; }
  62%       { opacity: 1; }
  85%, 100% { background-position: 260% 0; opacity: 0; }
}
@keyframes heroRingPulse {
  0%, 100% { transform: scale(0.96); opacity: .55; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@keyframes heroSweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes heroParticleUp {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .5; }
  100% { transform: translateY(-100vh); opacity: 0; }
}
@keyframes heroSloganIn {
  0%   { opacity: 0; transform: translateY(14px); letter-spacing: 22px; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: 10px; }
}

/* ---------- 小屏 / 竖屏：藏在登录框后面，缩小并淡化 ---------- */
@media (max-width: 900px) {
  #loginHero {
    width: 100vw;
    opacity: .22;
    z-index: 0;
    gap: 14px;
  }
  #loginHero .hero-emblem { width: 160px; height: 200px; }
  #loginHero .hero-emblem::before,
  #loginHero .hero-emblem::after { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
  #loginHero .hero-flag { width: 220px; height: 150px; }
  #loginHero .hero-slogan { font-size: 12px; letter-spacing: 6px; }
}

/* 尊重用户的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  #loginHero *,
  #loginHero *::before,
  #loginHero *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== 【11-24 调】臂章与军旗：间隔拉大 + 军旗整体右移 ===== */
#loginHero .hero-row {
  gap: 105px !important;        /* 原 63 → 拉大到 105，臂章与军旗间距约 +42px */
}
#loginHero .hero-flag {
  margin-left: 25px !important; /* 军旗向右推 25px */
}

/* ===== 【11-24 调】臂章 + 军旗 整体上移（标语跟随） ===== */
#loginHero .hero-row {
  margin-top: -94px !important;   /* 整行上移（原 -70，再上提 12，腾出标语空间） */
  margin-left: 9px !important;    /* 微调：两图整体中心与标语对齐 */
}

/* ===== 【11-24 调】标语“铁流智脑 · 使命必达”移到臂章+军旗整体正上方居中 ===== */
#loginHero .hero-slogan {
  top: 0 !important;
  bottom: auto !important;
  left: var(--group-center-x, 50%) !important;
  margin-top: 0 !important;
  transform: translate(-50%, calc(var(--group-top, 60px) - 100% - 8px)) !important;
  font-size: 50px !important;   /* 【11-24 调】字号加到 50px */
}

/* ===== 【11-24 最终】两图整体真正上移（translateY 不受 flex 居中吸收） ===== */
#loginHero .hero-row {
  transform: translateY(-26px) !important;
  margin-top: -70px !important;
  margin-left: 9px !important;
}

/* ===== 【11-24 修】覆盖原入场动画的 transform，避免定位被动画覆盖 ===== */
@keyframes heroSloganCenterInFixed {
  0%   { opacity: 0; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}
#loginHero .hero-slogan {
  animation: heroSloganCenterInFixed 2.4s ease-out 3s forwards !important;
}

/* ===== 【11-24 修】整组下移，给标语留出顶部空间 ===== */
#loginHero .hero-row {
  transform: translateY(28px) !important;   /* 再下移 30px（标语随 JS 自动跟随） */
}

/* ===== 【11-24 修】大字标语不压图 + 重新对齐中心 ===== */
#loginHero .hero-slogan {
  transform: translate(-50%, calc(var(--group-top, 60px) - 100% - 14px)) !important;
}

/* 大字标语：再上提，消除与图片重叠；并将两图整体下移让出空间 */
#loginHero .hero-slogan {
  transform: translate(-50%, calc(var(--group-top, 60px) - 100% - 26px)) !important;
}
#loginHero .hero-row {
  transform: translateY(48px) !important;   /* 两图再下移 20px，腾出标语空间 */
}

/* ===== 【11-24 调】标语上移 + 与两图上下间距拉大 ===== */
#loginHero .hero-slogan {
  transform: translate(-50%, calc(var(--group-top, 60px) - 100% - 62px)) !important;
}
#loginHero .hero-row {
  transform: translateY(58px) !important;   /* 两图再下移 10px */
}

/* 最终：间距 52px，标语完整不裁切 */
#loginHero .hero-slogan {
  transform: translate(-50%, calc(var(--group-top, 60px) - 100% - 52px)) !important;
}

/* 最终：46px 大字 + 间距 42px，标语完整显示 */
#loginHero .hero-slogan {
  transform: translate(-50%, calc(var(--group-top, 60px) - 100% - 42px)) !important;
}


/* ==========================================================================
   【11-26】臂章 + 军旗：完全静态并排显示（无滚动、无动画）
   左：军旗   右：臂章
   整组水平居中于屏幕中线，垂直居中于英雄区
   ========================================================================== */
/* 1) 【11-26】军旗 + 臂章改为静态并排显示（无动画）
   原来这套带动画的 hero-row 现已启用并完全静态：左军旗、右臂章 */
#loginHero .hero-row {
  visibility: visible !important;
}

/* 2) 静态容器：只覆盖左侧英雄区宽度，居中于左侧地图框（不是整屏） */
#loginHero .hero-marquee {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;      /* 宽度 = #loginHero 宽度（登录框左侧那块） */
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: clamp(180px, 34vh, 320px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;   /* 整组居中于整屏 */
  overflow: visible !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

/* 3) 组：两张图叠在同一中心点（交替显示，不同时出现） */
#loginHero .hero-marquee-track {
  display: block !important;
  position: relative !important;
  width: clamp(200px, 30vh, 300px) !important;
  height: 100% !important;
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}

/* 4) 图片尺寸：两张图完全重叠在同一中心点 */
#loginHero .hero-marquee-track img {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  object-fit: contain !important;
  animation: none !important;
  transform-origin: center center !important;
  /* 动态阴影用 ::after 承担，filter 留给 JS 控制明暗（勿加 !important，否则覆盖 JS 内联） */
  box-shadow: none !important;
}
#loginHero .hero-marquee-track .hm-flag {
  height: 92% !important;
  width: auto !important;
  visibility: hidden;             /* 由 JS 控制显示 */
}
#loginHero .hero-marquee-track .hm-emblem {
  height: 100% !important;
  width: auto !important;
  visibility: hidden;             /* 由 JS 控制显示 */
}

/* 5) 由小到大入场动画：先军旗，再臂章，交替各出一幅 */
@keyframes hmGrowIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.12); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 6) 窄屏 */
@media (max-width: 900px) {
  #loginHero .hero-marquee {
    height: clamp(120px, 22vh, 180px) !important;
  }
}

/* ==========================================================================
   【11-26】最终覆盖：军旗 + 臂章 全静态（用户要求删除所有动画）
   目标：左侧英雄区里并排静态显示 臂章 + 八一军旗，无入场/浮动/飘动/扫光/交替放大
   注意：写在本文件最末尾，保证优先级最高
   ========================================================================== */
#loginHero .hero-marquee { display: none !important; }

#loginHero .hero-row {
  visibility: visible !important;
}

/* 两个容器：全部 animation:none，直接给最终状态 */
#loginHero .hero-emblem,
#loginHero .hero-emblem::before,
#loginHero .hero-emblem::after,
#loginHero .hero-flag,
#loginHero .hero-flag::after,
#loginHero .hero-flag img {
  animation: none !important;
}
#loginHero .hero-emblem {
  opacity: 1 !important;
  transform: none !important;
}
#loginHero .hero-flag {
  opacity: 1 !important;
  transform: none !important;
}
#loginHero .hero-flag img {
  transform: none !important;
}
/* 臂章外围环保留（静态装饰），扫描光弧隐藏 */
#loginHero .hero-emblem::before { opacity: .55 !important; }
#loginHero .hero-emblem::after  { opacity: 0 !important; }
#loginHero .hero-flag::after    { opacity: 0 !important; }

/* ==========================================================================
   【11-26 二次调整】用户要求：臂章删除，军旗缩小放到左上角
   思路：不再走 hero-row 居中并排那套定位，直接把军旗绝对定位到左上角、
   缩到小尺寸，其余 hero 装饰（粒子、标语）一并关掉，避免干扰登录框。
   ========================================================================== */
/* 1) 英雄区整体不再参与布局，只作为一个绝对定位容器 */
#loginHero {
  width: 100vw !important;
  height: 100vh !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 2 !important;
  opacity: 1 !important;
}

/* 2) 粒子装饰关掉（左上角小旗不需要背景粒子） */
#loginHero .hero-particles { display: none !important; }

/* 【11-26 修】进工作台后 app.js 会给 #loginHero 设内联 display:none，
   但上面 display:block!important 会把它覆盖掉，导致登录页军旗漏到工作台顶栏。
   凡是带内联 display:none 的 hero，一律强制隐藏。 */
#loginHero[style*="display: none"],
#loginHero[style*="display:none"] {
  display: none !important;
}

/* 3) hero-row 取消居中布局，改成左上角固定定位 */
#loginHero .hero-row {
  position: fixed !important;
  left: 12px !important;
  top: 30px !important;   /* 【11-26】再下移 14px，与标语文字垂直居中对齐 */
  display: block !important;
  visibility: visible !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  width: auto !important;
  height: auto !important;
  z-index: 60 !important;
}

/* 4) 臂章彻底删除（DOM 已移除，这里再兜底一次防残留） */
#loginHero .hero-emblem { display: none !important; }

/* 5) 军旗：缩小 + 左上角贴边，带细金边和投影 */
#loginHero .hero-flag {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 84px !important;
  height: 56px !important;
  max-width: 84px !important;
  max-height: 56px !important;
  min-width: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  box-shadow:
    0 0 0 1px rgba(255, 214, 120, .55),
    0 2px 8px rgba(0, 0, 0, .55) !important;
}
#loginHero .hero-flag img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transform: none !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}
#loginHero .hero-flag::after { display: none !important; }

/* 6) 标语隐藏（原来贴在军旗下方，现在军旗移到左上角，标语无处安放） */
#loginHero .hero-slogan { display: none !important; }

/* 7) 小屏：再缩一点，别压住顶栏标语 */
@media (max-width: 820px) {
  #loginHero .hero-row { left: 10px !important; top: 8px !important; }
  #loginHero .hero-flag { width: 64px !important; height: 43px !important; max-width: 64px !important; max-height: 43px !important; }
}

/* ==========================================================================
   【11-27】左上角军旗：迎风飘扬 + 亮光
   —— 不动原有尺寸/位置（84x56、left12/top30 等全部保留），
      只在旗面上叠加两层装饰：波浪层 .hero-flag-wave / 亮光层 .hero-flag-glow
      兼容：#loginHero .hero-flag 在 style.css 矮屏媒体查询下会缩到 64x43，
      本层装饰全部按百分比定位，缩小时自动跟随。
   ========================================================================== */
#loginHero .hero-flag { isolation: isolate; }

/* --------------------------------------------------------------------------
   1) 波浪层：一整块「带旗面纹理的软布」，纵向受光 + 斜向褶皱，
      由内部 JS 循环写入 --p（0→1，周期 3.2s），只改 background-position，
      不产生 transform 动画，不会被任何 transform:none !important 干掉。
   -------------------------------------------------------------------------- */
#loginHero .hero-flag-wave {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 2;
  border-radius: 3px;
  /* 褶皱纹理由两层渐变叠加：明暗带 + 旗面自身颜色(半透明) */
  background-image:
    linear-gradient(-34deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.16) 18%,
      rgba(255,255,255,0) 34%,
      rgba(0,0,0,.16) 50%,
      rgba(255,255,255,.10) 66%,
      rgba(0,0,0,.14) 82%,
      rgba(255,255,255,0) 100%),
    linear-gradient(to bottom,
      rgba(255,255,255,.20) 0%,
      rgba(255,255,255,.02) 34%,
      rgba(0,0,0,.10) 68%,
      rgba(0,0,0,.22) 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: calc(var(--p, 0) * -160%) 0, 0 0;
  mix-blend-mode: soft-light;
  opacity: .95;
  will-change: background-position;
}
/* 右缘的“旗边翻卷”暗角，模拟迎风时布面外摆 */
#loginHero .hero-flag-wave::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 22%;
  background: linear-gradient(to left,
    rgba(0,0,0,.34), rgba(0,0,0,.10) 55%, rgba(255,255,255,0) 100%);
  border-radius: 0 3px 3px 0;
}

/* --------------------------------------------------------------------------
   2) 亮光层：
      ::before  —— 斜向高光带，周期性从左扫到右（扫光）
      ::after   —— 持续呼吸的金红色外发光（让旗子“亮”起来）
      外发光用 filter drop-shadow 做在 img 上是静态的，
      这里用 box-shadow + 脉冲，避免覆盖 img 的 filter。
   -------------------------------------------------------------------------- */
#loginHero .hero-flag-glow {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 3;
  border-radius: 3px;
  box-shadow:
    0 0 14px rgba(255, 196, 96, .55),
    0 0 30px rgba(255, 128, 84, .38),
    0 0 58px rgba(226, 66, 42, .24),
    0 0 96px rgba(200, 44, 30, .14);
  animation: heroFlagGlowPulse 2.6s ease-in-out infinite;
}
/* 【11-27 已删除】斜向扫光条（hero-flag-glow::before）：用户要求去掉长方形亮条 */
#loginHero .hero-flag-glow::before {
  display: none !important;
}
@keyframes heroFlagGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(255, 196, 96, .55),
      0 0 30px rgba(255, 128, 84, .38),
      0 0 58px rgba(226, 66, 42, .24),
      0 0 96px rgba(200, 44, 30, .14);
    opacity: .9;
  }
  50% {
    box-shadow:
      0 0 20px rgba(255, 214, 120, .85),
      0 0 46px rgba(255, 140, 90, .62),
      0 0 88px rgba(235, 78, 50, .40),
      0 0 140px rgba(210, 50, 34, .22);
    opacity: 1;
  }
}
/* 【11-27 已删除】@keyframes heroFlagShineSweep —— 扫光条动画已废弃 */

/* 旗面本身保持高清：提高对比与红色饱和度，配合亮光更"亮堂"
   （去掉 !important，否则会压死后面的 flagImgGlow 动画） */
#loginHero .hero-flag img {
  filter:
    drop-shadow(0 1px 3px rgba(0, 0, 0, .55))
    saturate(1.18) contrast(1.06) brightness(1.05);
}
/* 小屏（64x43）下光晕和内纹理按比例收一点，避免糊成一片 */
@media (max-width: 820px) {
  #loginHero .hero-flag-glow { box-shadow:
      0 0 10px rgba(255, 196, 96, .52),
      0 0 24px rgba(255, 128, 84, .36),
      0 0 46px rgba(226, 66, 42, .20) !important; }
  #loginHero .hero-flag-wave { opacity: .8; }
}

/* 系统「减少动态效果」：保留静止的亮光，取消闪烁
   （扫光条 ::before 已在上面 display:none 永久删除，不再纳入本查询） */
@media (prefers-reduced-motion: reduce) {
  #loginHero .hero-flag-glow { animation: none !important; opacity: 1; }
}

/* ==========================================================================
   【11-27 调】光圈 v5：贴边小光圈，四周外扩≤10px，绝不碰任何文字
   实测教训：柔光雾纵向铺开会把顶栏标语行照亮，看着像"盖字"。
   现在横向/纵向都收到旗面外 8~10px 就归零。
   旗子 12,30 84x56；「铁」字 x≥110（间距14px）→ 只留 8px 光。
   ========================================================================== */
#loginHero .hero-flag::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124%;          /* 84*1.24=104px，半宽52；渐变 55% 归零 → 实光仅外扩约 12px */
  height: 138%;         /* 56*1.38=77px，半高38.5；外扩约 10px */
  margin-left: -62%;
  margin-top: -69%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center,
    rgba(255, 232, 186, .46) 0%,
    rgba(255, 186, 106, .26) 42%,
    rgba(255, 130, 74, .10) 54%,
    rgba(226, 58, 40, 0) 58%);
  filter: blur(4px);
  animation: heroFlagHaloBreath 3.4s ease-in-out infinite;
}
/* 外圈细环：紧贴旗面，半径略大于旗 */
#loginHero .hero-flag::after {
  content: '';
  display: block !important;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 128%;
  margin-left: -59%;
  margin-top: -64%;
  border-radius: 4px;      /* 跟随旗面圆角，不做大圆 */
  border: 1px solid rgba(255, 214, 140, .40);
  box-shadow: 0 0 9px rgba(255, 196, 110, .28);
  pointer-events: none;
  z-index: 0;
  opacity: .55 !important;
  animation: heroFlagRingBreath 3.4s ease-in-out infinite !important;
}
@keyframes heroFlagHaloBreath {
  0%, 100% { transform: scale(.985); opacity: .72; }
  50%      { transform: scale(1.015); opacity: .92; }
}
@keyframes heroFlagRingBreath {
  0%, 100% { transform: scale(.99); opacity: .40; }
  50%      { transform: scale(1.01); opacity: .60; }
}
@media (prefers-reduced-motion: reduce) {
  #loginHero .hero-flag::before,
  #loginHero .hero-flag::after { animation: none !important; opacity: .7; }
}

/* 【11-27 修】「铁流智脑」文字区仍偏亮(亮度63~74 vs 背景48)的元凶：
   .hero-flag img 的 drop-shadow 外扩 + brightness() 让红底往右渗出暖光。
   收紧为贴边 1px 冷色阴影，去掉 brightness，只留轻微饱和，旗面本身不发散。 */
#loginHero .hero-flag img {
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, .55))
    saturate(1.10) contrast(1.04);
}

/* 【11-27 最终】光圈重新定位到「旗子正后方」，只做贴身辉光，不外扩到文字：
   -- 旗子 84x56 在 (12,30)，右缘 x=96；「铁」字从 x=110 开始，间隙 14px。
   -- 所以光圈右半只能延伸 12px。用非对称渐变：右侧最短，上下左右宽松些。
   -- ※ overflow 由 index.html 内联 style 强制 visible（style.css 的 !important 太靠后）。 */
#loginHero .hero-flag::before {
  width: 132%;
  height: 150%;
  margin-left: -66%;
  margin-top: -75%;
  background: radial-gradient(ellipse 46% 50% at 42% 50%,
    rgba(255, 234, 190, .42) 0%,
    rgba(255, 190, 112, .24) 46%,
    rgba(255, 136, 78, .09) 66%,
    rgba(226, 58, 40, 0) 78%);
  filter: blur(3.5px);
}
#loginHero .hero-flag::after {
  width: 112%;
  height: 120%;
  margin-left: -56%;
  margin-top: -60%;
  border-radius: 4px;
}

/* 【11-27 调】旗后阴影/光晕收小：实测原来四周扩散约 25px（向上到 y=30 仍偏亮），
   现收到 132%×150% → 116%×124%，扩散仅约 6~7px，蓝本透明度也降一档。 */
#loginHero .hero-flag::before {
  width: 116% !important;
  height: 124% !important;
  margin-left: -58% !important;
  margin-top: -62% !important;
  background: radial-gradient(ellipse 44% 48% at 44% 50%,
    rgba(255, 232, 186, .30) 0%,
    rgba(255, 190, 112, .16) 52%,
    rgba(255, 136, 78, .05) 72%,
    rgba(226, 58, 40, 0) 84%) !important;
  filter: blur(2.5px) !important;
}
#loginHero .hero-flag::after {
  width: 106% !important;
  height: 112% !important;
  margin-left: -53% !important;
  margin-top: -56% !important;
  border-width: 1px !important;
  box-shadow: 0 0 5px rgba(255, 196, 110, .20) !important;
}

/* 【11-27】版本号：原来 style.css 已给 z-index:99999 !important，
   之前误写成 80 反而把它压低了。这里不覆盖层级，只补阴影和鼠标穿透。 */
.top-version {
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6) !important;
}

/* 【11-27】顶栏标语整体右移：110px → 134px
   原因：军旗右缘 x=96，「铁」字原从 x=110 开始，间距仅 14px 显得贴。
   右移 24px 后间距 38px，视觉舒展，也给旗子光晕留足安全区。 */
#pageLogin .top-alert-slogan {
  padding-left: 134px !important;
}
@media (max-width: 900px) {
  #pageLogin .top-alert-slogan { padding-left: 104px !important; }
}

/* 【11-27】军旗右移：left 12px → 36px（+24px，与标语同步右移，保持38px间距） */
#loginHero .hero-row {
  left: 36px !important;
}
@media (max-width: 820px) {
  #loginHero .hero-row { left: 24px !important; top: 8px !important; }
}

/* 【11-27 调】军旗右移后与文字间距又缩回14px，太贴。
   旗已移到 left:36，文字仍在 134 → 旗右缘120，间距仅14。
   把文字再推到 160（间距40px），视觉舒展且不撞右侧版本号。 */
#pageLogin .top-alert-slogan {
  padding-left: 160px !important;
}
@media (max-width: 900px) {
  #pageLogin .top-alert-slogan { padding-left: 120px !important; }
}

/* 【11-27 再调】标语继续右移：160px → 186px（+26px）
   军旗右缘 120，间距变为 66px，整条与右侧版本号仍留 170px+ 空隙。 */
#pageLogin .top-alert-slogan {
  padding-left: 186px !important;
}
@media (max-width: 900px) {
  #pageLogin .top-alert-slogan { padding-left: 130px !important; }
}

/* 【11-27】军旗继续右移：left 36px → 62px（+26px）
   注意：#loginHero .hero-row 是 fixed 定位，left 值即屏幕左边距，
   hero-row 上还有 translateY/margin-top 等覆盖，但 left 由本条最终生效。 */
#loginHero .hero-row {
  left: 62px !important;
}
@media (max-width: 820px) {
  #loginHero .hero-row { left: 34px !important; }
}

/* 【11-27】版本号字号加大一档：14px → 17px，并略微提亮，
   位置仍是右上角 right:28px / top:78px（由 style.css 控制，未动）。 */
.top-version {
  font-size: 17px !important;
  color: rgba(230, 242, 255, .92) !important;
  letter-spacing: 1.2px !important;
}
@media (max-width: 900px) {
  .top-version { font-size: 13px !important; }
}

/* ==========================================================================
   【11-27 新增】军旗套用臂章同款亮光：冷蓝圆形呼吸光晕 + 发光脉冲
   —— 用户要求"把臂章那个效果放到未登录的旗帜上"
   —— 保持克制：旗子右缘 x=120，「铁」字从 x=186 开始，间隙 66px，
      光晕向右最多扩散约 26px，绝不碰文字。用 inset 负值独立控制，不改旗子尺寸。
   ========================================================================== */

/* 外层圆形光晕：径向渐变 + 呼吸放大，视觉上"亮起来" */
#loginHero .hero-flag {
  position: relative;
}
#loginHero .hero-flag .flag-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168%;
  height: 150%;
  margin-left: -84%;
  margin-top: -75%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at center,
      rgba(150, 225, 255, .95) 0%,
      rgba(100, 195, 255, .58) 28%,
      rgba(62, 152, 255, .28) 48%,
      rgba(40, 120, 255, .10) 64%,
      transparent 76%);
  filter: blur(6px);
  animation: flagHaloBreath 2.8s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes flagHaloBreath {
  0%   { opacity: .22; transform: scale(.86); }
  50%  { opacity: .92; transform: scale(1.10); }
  100% { opacity: .22; transform: scale(.86); }
}

/* 旗面本体的冷色发光脉冲
   ⚠ 坑：本文件前面已有 `#loginHero .hero-flag img { filter: ... !important }`，
   静态 filter 带 !important 会压死 keyframes，所以 animation 必须也带 !important，
   且 filter 只在 keyframes 里给值（基态过滤链要在 0% 帧里完整复述）。 */
#loginHero .hero-flag img {
  animation: flagImgGlow 2.8s ease-in-out infinite !important;
  will-change: filter;
}
@keyframes flagImgGlow {
  0%, 100% {
    filter:
      drop-shadow(0 1px 2px rgba(0, 0, 0, .55))
      drop-shadow(0 0 4px rgba(90, 185, 255, .30))
      saturate(1.10) contrast(1.04);
  }
  50% {
    filter:
      drop-shadow(0 1px 2px rgba(0, 0, 0, .55))
      drop-shadow(0 0 16px rgba(130, 215, 255, .85))
      drop-shadow(0 0 30px rgba(70, 165, 255, .45))
      saturate(1.22) contrast(1.08) brightness(1.12);
  }
}

/* 系统「减少动态效果」：光晕静止保留，取消呼吸 */
@media (prefers-reduced-motion: reduce) {
  #loginHero .hero-flag .flag-aura {
    animation: none !important;
    opacity: .55;
  }
  #loginHero .hero-flag img {
    animation: none !important;
  }
}
