/* ============================================================
   光效与演出
   ============================================================ */

/* ---------- 光环分级 ---------- */
/* L0 素：无光 */
.aura-l0 {
  color: var(--t-1);
}

/* L1 微光：单色，暗一档 */
.aura-l1 {
  color: var(--qing);
  text-shadow: 0 0 10px rgba(93, 202, 165, 0.18);
}

/* L2 辉：单色亮 + 呼吸 */
.aura-l2 {
  color: var(--jin);
  animation: aura-breathe 2.4s ease-in-out infinite;
}

@keyframes aura-breathe {
  0%,
  100% {
    text-shadow: 0 0 6px rgba(217, 164, 65, 0.3);
    opacity: 0.82;
  }
  50% {
    text-shadow: 0 0 16px rgba(217, 164, 65, 0.6);
    opacity: 1;
  }
}

/* L3 流光：双色渐变横向流动
   色标在 0-50% 内走完一个完整循环，50-100% 重复一遍；
   配合 background-size:200%，可视区正好是一个完整循环，
   平移到 100% 时画面与起始完全一致 —— 无缝。 */
.aura-l3 {
  background-image: linear-gradient(
    90deg,
    #7fd4ff 0%,
    #c9a7ff 18%,
    #eaf6ff 34%,
    #7fd4ff 50%,
    #c9a7ff 68%,
    #eaf6ff 84%,
    #7fd4ff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: aura-flow 5s linear infinite;
}

@keyframes aura-flow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

/* L4 华彩：金 → 橙 → 紫 → 蓝 → 金 */
.aura-l4 {
  background-image: linear-gradient(
    90deg,
    #ffd479 0%,
    #ff9d5c 12%,
    #c9a7ff 26%,
    #7fd4ff 40%,
    #ffd479 50%,
    #ff9d5c 62%,
    #c9a7ff 76%,
    #7fd4ff 90%,
    #ffd479 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: aura-flow 3.6s linear infinite, aura-shimmer 2.6s ease-in-out infinite;
}

@keyframes aura-shimmer {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(217, 164, 65, 0.45));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(201, 167, 255, 0.5));
  }
}

/* L5 天授：极亮，带外扩光晕 */
.aura-l5 {
  background-image: linear-gradient(
    90deg,
    #fff3c4 0%,
    #ffd479 14%,
    #ffffff 28%,
    #c9a7ff 40%,
    #fff3c4 50%,
    #ffd479 64%,
    #ffffff 78%,
    #c9a7ff 90%,
    #fff3c4 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: aura-flow 2.6s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 240, 190, 0.55));
}

/* ---------- 道号前后缀符 ---------- */
.name-sym {
  font-size: 0.72em;
  opacity: 0.75;
  margin: 0 0.35em;
  vertical-align: 0.12em;
}

/* ---------- 行驾演出 ---------- */
.arrival {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 9vh;
  pointer-events: none;
  background: rgba(6, 7, 9, 0.62);
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}

.arrival.is-out {
  opacity: 0;
}

.arrival__banner {
  width: min(720px, 88vw);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-md);
  background: #0e1116;
  padding: 20px 28px 18px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.1), 0 0 70px rgba(217, 164, 65, 0.07), 0 24px 70px rgba(0, 0, 0, 0.75);
}

/* 四角装饰 */
.arrival__banner::before,
.arrival__banner::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--jin);
  opacity: 0.7;
}
.arrival__banner::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.arrival__banner::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.arrival__line {
  opacity: 0;
  animation: arrival-line 0.5s var(--ease-out) forwards;
}

@keyframes arrival-line {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.arrival__env {
  font-size: 13px;
  color: var(--t-0);
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.arrival__omen {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--jin);
  margin: 14px 0;
  text-shadow: 0 0 20px rgba(217, 164, 65, 0.35);
}

.arrival__who {
  font-size: 14.5px;
  color: var(--t-0);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 4px;
}

.arrival__who em {
  font-style: normal;
  color: var(--jin);
}

/* ---------- 呼吸点 ---------- */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .aura-l2,
  .aura-l3,
  .aura-l4,
  .aura-l5,
  .brand__dot {
    animation: none !important;
  }
  .aura-l3,
  .aura-l4,
  .aura-l5 {
    background: none;
    color: var(--jin);
    -webkit-text-fill-color: var(--jin);
  }
  .arrival,
  .arrival__line {
    animation-duration: 0.01s;
    opacity: 1;
  }
  .line {
    animation: none;
  }
}

/* ---------- 全局"动效关闭" ---------- */
body.no-motion .aura-l2,
body.no-motion .aura-l3,
body.no-motion .aura-l4,
body.no-motion .aura-l5,
body.no-motion .brand__dot {
  animation: none !important;
}

body.no-motion .aura-l3,
body.no-motion .aura-l4,
body.no-motion .aura-l5 {
  background: none;
  color: var(--jin);
  -webkit-text-fill-color: var(--jin);
  filter: none;
}
