/* 国庆首屏特效 · 加强版 · 9.25–10.7 */

.hero.is-nday {
  --nday-red: #e11d2e;
  --nday-red-deep: #9b1028;
  --nday-gold: #ffd56a;
  --nday-gold-bright: #ffe9a8;
}

.nday-fx {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.nday-fx[hidden] {
  display: none !important;
}

/* 整体红金氛围（更明显） */
.nday-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 45% at 50% -5%, rgba(225, 29, 46, 0.55), transparent 58%),
    radial-gradient(ellipse 42% 50% at 0% 30%, rgba(225, 29, 46, 0.38), transparent 62%),
    radial-gradient(ellipse 42% 50% at 100% 35%, rgba(225, 29, 46, 0.32), transparent 62%),
    linear-gradient(180deg, rgba(159, 18, 57, 0.22) 0%, transparent 28%);
}

/* 顶旗串（灯笼已上移，旗串收起避免叠压） */
.nday-bunting {
  display: none;
}

.nday-bunting span {
  flex: 1;
  max-width: 48px;
  height: 22px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #ff4d5c, #c4122a);
  opacity: 0.92;
  animation: nday-bunting-wave 2.4s ease-in-out infinite;
}

.nday-bunting span:nth-child(even) {
  background: linear-gradient(180deg, #ffe08a, #e0a820);
  animation-delay: -1.2s;
}

.nday-bunting span:nth-child(3n) {
  animation-delay: -0.6s;
}

/* 主标语条 —— 大、醒目（灯笼夹在两侧） */
.nday-banner {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  width: min(68vw, 560px);
  text-align: center;
  padding: 12px 20px 14px;
  background:
    linear-gradient(90deg, transparent, rgba(180, 20, 40, 0.15) 8%, rgba(180, 20, 40, 0.15) 92%, transparent),
    linear-gradient(180deg, rgba(200, 25, 45, 0.95), rgba(120, 12, 30, 0.92));
  border: 1.5px solid rgba(255, 213, 106, 0.75);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(225, 29, 46, 0.35);
  animation: nday-banner-in 0.85s ease-out both;
}

.nday-banner-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--nday-gold);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  margin-bottom: 4px;
}

.nday-banner-title {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nday-banner-title em {
  font-style: normal;
  color: var(--nday-gold-bright);
  margin: 0 4px;
}

.nday-banner-sub {
  display: block;
  margin-top: 6px;
  font-size: clamp(13px, 1.8vw, 16px);
  color: #ffe9a8;
  letter-spacing: 0.28em;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 600;
}

/* 大号「国庆快乐」角标 */
.nday-seal {
  position: absolute;
  z-index: 7;
  width: 88px;
  height: 88px;
  border: 3px solid rgba(255, 213, 106, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5a66, #b01024 70%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(176, 16, 36, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  animation: nday-seal-pulse 2.8s ease-in-out infinite;
}

.nday-seal--tr {
  top: 210px;
  right: max(18px, 3vw);
}

.nday-seal--bl {
  bottom: 88px;
  left: max(16px, 2.5vw);
  transform: rotate(10deg);
  animation-delay: -1.4s;
}

.nday-seal strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff8e1;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
}

.nday-seal small {
  font-size: 10px;
  color: var(--nday-gold);
  letter-spacing: 0.2em;
  margin-top: 2px;
}

/* 竖幅 */
.nday-vban {
  position: absolute;
  top: 200px;
  z-index: 6;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 18px 10px;
  background: linear-gradient(180deg, #d4182c, #8f0e22);
  border: 1px solid rgba(255, 213, 106, 0.65);
  color: #fff6d6;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.35em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border-radius: 2px;
}

.nday-vban--l {
  left: max(10px, 1.2vw);
}

.nday-vban--r {
  right: max(10px, 1.2vw);
}

.nday-vban em {
  font-style: normal;
  color: var(--nday-gold);
}

/* 灯笼 —— 顶部横排（标语两侧） */
.nday-lantern {
  position: absolute;
  top: 78px;
  width: 64px;
  z-index: 8;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  animation: nday-sway 3.4s ease-in-out infinite;
  transform-origin: top center;
}

/* 左二：国、庆 */
.nday-lantern--l {
  left: max(10px, 2vw);
  animation-delay: 0s;
}

.nday-lantern--l2 {
  left: max(78px, calc(2vw + 68px));
  top: 78px;
  width: 64px;
  opacity: 1;
  animation-delay: -0.8s;
}

/* 右二：快、乐 */
.nday-lantern--r {
  right: max(10px, 2vw);
  left: auto;
  animation-delay: -1.7s;
}

.nday-lantern--r2 {
  right: max(78px, calc(2vw + 68px));
  left: auto;
  top: 78px;
  width: 64px;
  opacity: 1;
  animation-delay: -2.4s;
}

.nday-lantern-cap {
  width: 34px;
  height: 10px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffe08a, #c9a227);
  border-radius: 2px 2px 0 0;
}

.nday-lantern-body {
  width: 52px;
  height: 64px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 35% 28%, rgba(255, 230, 170, 0.65), transparent 48%),
    linear-gradient(180deg, #ff5562 0%, #e11d2e 48%, #8f0e22 100%);
  border-radius: 50% 50% 48% 48% / 42% 42% 58% 58%;
  border: 2px solid rgba(255, 213, 106, 0.8);
  position: relative;
}

.nday-lantern--l2 .nday-lantern-body,
.nday-lantern--r2 .nday-lantern-body {
  width: 52px;
  height: 64px;
}

.nday-lantern-body::before {
  content: "";
  position: absolute;
  inset: 12px 7px;
  border: 1px solid rgba(255, 213, 106, 0.4);
  border-radius: inherit;
}

.nday-lantern-body::after {
  content: attr(data-char);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff6d6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.nday-lantern--l2 .nday-lantern-body::after,
.nday-lantern--r2 .nday-lantern-body::after {
  font-size: 20px;
}

.nday-lantern-tassel {
  width: 2px;
  height: 28px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffd56a, #e11d2e);
  position: relative;
}

.nday-lantern-tassel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  background: #e11d2e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 213, 106, 0.55);
}

/* 烟花层 */
.nday-fireworks {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.nday-fw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.nday-fw {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow:
    0 0 0 0 #ffd56a,
    18px -22px 0 -1px #ff6b6b,
    -20px -18px 0 -1px #ffd56a,
    24px 8px 0 -1px #fff,
    -22px 12px 0 -1px #ff6b6b,
    8px 26px 0 -1px #ffd56a,
    -10px 24px 0 -1px #fff,
    0 -28px 0 -1px #ff6b6b;
  animation: nday-fw-burst 3.2s ease-out infinite;
  opacity: 0;
}

.nday-fw:nth-child(2) { top: 28%; left: 18%; animation-delay: 0s; }
.nday-fw:nth-child(3) { top: 22%; left: 78%; animation-delay: 1.1s; }
.nday-fw:nth-child(4) { top: 48%; left: 88%; animation-delay: 2s; }
.nday-fw:nth-child(5) { top: 55%; left: 12%; animation-delay: 0.6s; }
.nday-fw:nth-child(6) { top: 16%; left: 48%; animation-delay: 0.35s; box-shadow:
    0 0 0 0 #38bdf8,
    20px -24px 0 -1px #a78bfa,
    -22px -16px 0 -1px #ffd56a,
    26px 10px 0 -1px #fff,
    -24px 14px 0 -1px #34d399,
    10px 28px 0 -1px #ff4d5c,
    -12px 26px 0 -1px #fff,
    0 -30px 0 -1px #f472b6; }
.nday-fw:nth-child(7) { top: 38%; left: 62%; animation-delay: 1.55s; }
.nday-fw:nth-child(8) { top: 42%; left: 32%; animation-delay: 2.4s; }
.nday-fw:nth-child(9) { top: 18%; left: 8%; animation-delay: 0.9s; }

/* 底部礼炮闪光 */
.nday-cannons {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.nday-cannon {
  position: absolute;
  bottom: 6%;
  width: 120px;
  height: 160px;
  border-radius: 50% 50% 40% 40%;
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 240, 180, 0.95) 0 8%, transparent 28%),
    radial-gradient(circle at 50% 70%, rgba(255, 80, 70, 0.55) 0 22%, transparent 52%),
    radial-gradient(circle at 50% 85%, rgba(255, 213, 106, 0.35) 0 30%, transparent 70%);
  filter: blur(1px);
  opacity: 0;
  animation: nday-cannon-blast 2.6s ease-out infinite;
}

.nday-cannon--l { left: 2%; animation-delay: 0s; }
.nday-cannon--l2 { left: 11%; width: 80px; height: 110px; animation-delay: 1.1s; animation-duration: 2.2s; }
.nday-cannon--r { right: 2%; left: auto; animation-delay: 0.55s; }
.nday-cannon--r2 { right: 12%; left: auto; width: 80px; height: 110px; animation-delay: 1.7s; animation-duration: 2.4s; }

@keyframes nday-cannon-blast {
  0%, 72%, 100% { opacity: 0; transform: translateY(18px) scale(0.55); }
  8% { opacity: 0.95; transform: translateY(-8px) scale(1.15); }
  22% { opacity: 0.55; transform: translateY(-28px) scale(1.35); }
  40% { opacity: 0; transform: translateY(-48px) scale(1.55); }
}

/* 飘落物 */
.nday-sparks {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.nday-spark {
  position: absolute;
  top: -16px;
  font-size: 14px;
  line-height: 1;
  color: #ffd56a;
  text-shadow: 0 0 10px rgba(255, 213, 106, 0.85);
  opacity: 0;
  animation: nday-fall linear infinite;
}

.nday-spark.is-petal {
  color: #ff5a66;
  font-size: 12px;
  text-shadow: 0 0 8px rgba(225, 29, 46, 0.6);
}

/* 底部标语条 */
.nday-foot {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(120, 12, 30, 0.82);
  border: 1px solid rgba(255, 213, 106, 0.55);
  border-radius: 999px;
  color: #fff6d6;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nday-foot span {
  color: var(--nday-gold);
}

.hero.is-nday .hero-tag {
  background: linear-gradient(90deg, rgba(225, 29, 46, 0.95), rgba(159, 18, 57, 0.9));
  border-color: rgba(255, 213, 106, 0.55);
  box-shadow: 0 0 16px rgba(225, 29, 46, 0.35);
}

.hero.is-nday .hero-tag::before {
  background: #ffd56a;
}

.hero.is-nday .hero-content {
  padding-top: 150px;
}

@keyframes nday-banner-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes nday-sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes nday-seal-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

@keyframes nday-bunting-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes nday-fw-burst {
  0% { opacity: 0; transform: scale(0.2); }
  15% { opacity: 1; }
  55% { opacity: 0.85; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.8); }
}

@keyframes nday-fall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.7); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(110vh) rotate(360deg) scale(1); }
}

@media (max-width: 900px) {
  .nday-vban,
  .nday-seal--bl {
    display: none;
  }

  .nday-lantern,
  .nday-lantern--l2,
  .nday-lantern--r2 {
    top: 76px;
    width: 48px;
    display: block;
    opacity: 1;
  }

  .nday-lantern--l { left: 4px; }
  .nday-lantern--l2 { left: 52px; }
  .nday-lantern--r2 { right: 52px; left: auto; }
  .nday-lantern--r { right: 4px; left: auto; }

  .nday-lantern-body,
  .nday-lantern--l2 .nday-lantern-body,
  .nday-lantern--r2 .nday-lantern-body {
    width: 38px;
    height: 48px;
  }

  .nday-lantern-body::after,
  .nday-lantern--l2 .nday-lantern-body::after,
  .nday-lantern--r2 .nday-lantern-body::after {
    font-size: 15px;
  }

  .nday-lantern-tassel {
    height: 18px;
  }

  .nday-seal--tr {
    top: 175px;
    right: 10px;
    width: 72px;
    height: 72px;
  }

  .nday-seal strong {
    font-size: 16px;
  }

  .nday-banner {
    top: 82px;
    width: min(56vw, 320px);
    padding: 8px 10px 10px;
  }

  .nday-banner-title {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .nday-banner-sub {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .hero.is-nday .hero-content {
    padding-top: 130px;
  }

  .nday-foot {
    bottom: 18px;
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  .nday-bunting span:nth-child(n + 12) {
    display: none;
  }

  .nday-fw:nth-child(n + 3) {
    display: none;
  }

  .nday-spark:nth-child(n + 14) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nday-banner,
  .nday-lantern,
  .nday-spark,
  .nday-fw,
  .nday-seal,
  .nday-bunting span,
  .nday-cannon {
    animation: none !important;
  }

  .nday-spark,
  .nday-fw {
    opacity: 0.5;
  }

  .nday-banner {
    opacity: 1;
    transform: translateX(-50%);
  }
}
