/* ===========================================================
   AI女王 · 国庆主题「盛世华诞」（中国红 + 鎏金）
   绛红夜幕 + 金色五角星 + 红灯笼 + 金色彩带 + 描金窗框
   引入本文件即启用，删除 <link> 即完全还原
   （沿用中秋版类名：fs-moon / fs-lantern / fs-petals，无需改 HTML 结构）
   =========================================================== */

/* ---------- 一、绛红夜幕配色（深色页面：index / login / choose / mobile / admin） ---------- */
:root {
  --bg: #26060a;
  --bg2: #381014;
  --card: #3a1218;
  --card2: #451a20;
  --gold: #F0C060;
  --gold2: #D9A542;
  --txt: #F7EEE2;
  --sub: #D4A9A9;
  --line: #55232b;
}

body {
  background:
    radial-gradient(120% 55% at 50% 112%, rgba(217, 165, 66, .18) 0%, rgba(217, 165, 66, 0) 60%),
    radial-gradient(140% 90% at 50% -10%, #5c1a20 0%, #40141b 48%, var(--bg) 100%);
  background-attachment: fixed;
}

/* 夜空金色星点 + 远处烟花 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 12% 14%, rgba(255, 226, 150, .9), transparent),
    radial-gradient(1.5px 1.5px at 78% 9%, rgba(255, 214, 130, .75), transparent),
    radial-gradient(1px 1px at 34% 26%, rgba(255, 235, 180, .65), transparent),
    radial-gradient(1.5px 1.5px at 62% 34%, rgba(255, 220, 140, .6), transparent),
    radial-gradient(10px 10px at 86% 18%, rgba(255, 200, 110, .16), transparent),
    radial-gradient(14px 14px at 20% 40%, rgba(255, 190, 100, .13), transparent),
    radial-gradient(1px 1px at 88% 46%, rgba(255, 235, 180, .5), transparent),
    radial-gradient(1px 1px at 22% 58%, rgba(255, 226, 150, .5), transparent),
    radial-gradient(1.5px 1.5px at 52% 72%, rgba(255, 235, 180, .4), transparent),
    radial-gradient(1px 1px at 8% 86%, rgba(255, 226, 150, .42), transparent);
}

/* 描金窗框（页面四周细金边，红底更见华贵） */
body::after {
  content: "";
  position: fixed;
  inset: 9px;
  pointer-events: none;
  z-index: 2;
  border: 1px solid rgba(240, 192, 96, .34);
  border-radius: 12px;
  box-shadow: inset 0 0 0 3px rgba(240, 192, 96, .08), inset 0 0 0 4px rgba(217, 60, 40, .16);
}

/* ---------- 二、暖金浅色页（app.html 加 body.festival-light） ---------- */
body.festival-light {
  --bg: #fdf1e6;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #fdeee2;
  --gold: #c0392b;
  --gold2: #D9A542;
  --txt: #4a2018;
  --sub: #a2705f;
  --line: #f2dcc8;
  --green: #2E8B57;
  --red: #C22F22;
  --blue: #4A90D9;
}
body.festival-light {
  background:
    radial-gradient(120% 60% at 50% -8%, #fbdcd2 0%, #fbf2ea 48%, var(--bg) 100%);
  background-attachment: fixed;
}
body.festival-light::before { background-image: none; }
body.festival-light::after {
  border-color: rgba(192, 57, 43, .24);
  box-shadow: inset 0 0 0 3px rgba(192, 57, 43, .05), inset 0 0 0 4px rgba(217, 165, 66, .12);
}

/* ---------- 三、节日装饰层 ---------- */
.festival-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* 金色大五角星（海报同款鎏金金星） */
.fs-moon {
  position: absolute;
  top: 48px;
  right: 7%;
  width: 104px;
  height: 104px;
  background: radial-gradient(circle at 42% 38%, #FFF6D8 0%, #F8E39A 34%, #EFC75E 62%, #DFA83E 100%);
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 16px rgba(245, 197, 107, .75)) drop-shadow(0 0 44px rgba(245, 197, 107, .35));
  opacity: .98;
  border-radius: 0;
  box-shadow: none;
}
.fs-moon::after { content: none; }

/* 红灯笼（金箍 + 竖纹 + 流苏，国庆同款喜庆） */
.fs-lantern {
  position: absolute;
  top: -12px;
  width: 36px;
  height: 46px;
  border-radius: 50% / 42%;
  background:
    repeating-linear-gradient(96deg, rgba(255, 190, 120, .22) 0 2px, rgba(255, 255, 255, 0) 2px 6px),
    radial-gradient(circle at 50% 34%, #FF8A5C 0%, #E8402E 56%, #B02418 100%);
  box-shadow: 0 0 18px rgba(232, 64, 46, .55), inset 0 0 14px rgba(255, 214, 150, .4);
  transform-origin: 50% -14px;
}
.fs-lantern::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(#F5D485, #D9A542);
}
.fs-lantern::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(#F5D485 0 30%, #E8402E 30% 55%, #F5D485 55%);
  box-shadow: 0 0 6px rgba(245, 212, 133, .5);
}
.fs-l1 { left: 5%; animation: fsSwing 5.2s ease-in-out infinite; }
.fs-l2 { left: 13%; top: 8px; transform: scale(.82); animation: fsSwingSmall 6.4s ease-in-out infinite .8s; }

/* 红金彩带碎屑飘落 */
.fs-petals { position: absolute; inset: 0; }
.fs-petals i {
  position: absolute;
  top: -10px;
  width: 7px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(160deg, #F5C56B, #E09A3E);
  animation: fsFall linear infinite;
}
.fs-petals i:nth-child(1) { left: 8%;  animation-duration: 13s; animation-delay: 0s; }
.fs-petals i:nth-child(2) { left: 27%; animation-duration: 17s; animation-delay: 2.5s; width: 5px; height: 8px; background: linear-gradient(160deg, #F08080, #C22F22); }
.fs-petals i:nth-child(3) { left: 46%; animation-duration: 15s; animation-delay: 5s; }
.fs-petals i:nth-child(4) { left: 64%; animation-duration: 19s; animation-delay: 1.2s; width: 4px; height: 7px; background: linear-gradient(160deg, #F08080, #C22F22); }
.fs-petals i:nth-child(5) { left: 82%; animation-duration: 14s; animation-delay: 7s; }
.fs-petals i:nth-child(6) { left: 93%; animation-duration: 18s; animation-delay: 3.6s; width: 5px; height: 8px; }

@keyframes fsSwing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
@keyframes fsSwingSmall {
  0%, 100% { transform: scale(.82) rotate(-5deg); }
  50% { transform: scale(.82) rotate(5deg); }
}
@keyframes fsFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  8% { opacity: .9; }
  90% { opacity: .7; }
  100% { transform: translateY(102vh) rotate(320deg); opacity: 0; }
}

/* ---------- 四、海报式标题条（盛世华诞 · 国庆同庆） ---------- */
.festival-bar {
  position: relative;
  z-index: 3;
  margin: 0 auto 12px;
  max-width: 760px;
  padding: 12px 16px 11px;
  border-radius: 16px;
  text-align: center;
  color: #F9E4C0;
  background:
    radial-gradient(130% 160% at 50% -30%, rgba(245, 197, 107, .22) 0%, rgba(245, 197, 107, 0) 55%),
    linear-gradient(160deg, #6b1a1a 0%, #451016 100%);
  border: 1px solid rgba(240, 192, 96, .5);
  box-shadow: 0 6px 22px rgba(20, 5, 8, .4), inset 0 0 0 3px rgba(240, 192, 96, .08);
}
body.festival-light .festival-bar {
  color: #8a1f12;
  background:
    radial-gradient(130% 160% at 50% -30%, rgba(235, 120, 90, .28) 0%, rgba(245, 197, 107, 0) 60%),
    linear-gradient(160deg, #ffe9d6 0%, #fdd9c4 100%);
  border-color: rgba(192, 57, 43, .38);
  box-shadow: 0 6px 18px rgba(192, 57, 43, .18);
}
.festival-bar .fb-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 6px;
  text-indent: 6px;
  color: #F5D485;
  text-shadow: 0 1px 0 rgba(90, 20, 10, .4);
}
body.festival-light .festival-bar .fb-title { color: #b03226; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.festival-bar .fb-sub {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(249, 228, 192, .85);
}
body.festival-light .festival-bar .fb-sub { color: rgba(138, 60, 30, .8); }
.festival-bar .fb-sub::before, .festival-bar .fb-sub::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  vertical-align: middle;
  margin: 0 10px;
  background: linear-gradient(90deg, transparent, rgba(240, 192, 96, .7));
}
.festival-bar .fb-sub::after { background: linear-gradient(270deg, transparent, rgba(240, 192, 96, .7)); }
.festival-bar .fs-sep { display: none; }
.festival-bar b { color: inherit; }

/* 落地页鎏金胶囊（choose.html 用） */
.landing-festival {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #5a1408;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
  background: linear-gradient(105deg, #F9E7A8, #F2CB75 46%, #E0A93E);
  box-shadow: 0 4px 16px rgba(226, 120, 62, .35);
}

/* hero 挂角灯笼 */
.festival-hero { position: relative; overflow: visible; }
.festival-hero::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 16px;
  width: 26px;
  height: 34px;
  border-radius: 50% / 42%;
  background:
    repeating-linear-gradient(96deg, rgba(255, 190, 120, .25) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
    radial-gradient(circle at 50% 34%, #FF8A5C 0%, #E8402E 56%, #B02418 100%);
  box-shadow: 0 0 12px rgba(232, 64, 46, .5);
}
.festival-hero::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 27px;
  width: 1px;
  height: 9px;
  background: rgba(240, 192, 96, .55);
}

/* 底部祝福签名 */
.festival-sign {
  text-align: center;
  padding: 16px 0 6px;
  font-size: 12.5px;
  letter-spacing: 4px;
  color: rgba(240, 192, 96, .78);
}
body.festival-light .festival-sign { color: rgba(176, 50, 38, .6); }
.festival-sign::before, .festival-sign::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  vertical-align: middle;
  margin: 0 12px;
  background: linear-gradient(90deg, transparent, rgba(240, 192, 96, .55));
}
.festival-sign::after { background: linear-gradient(270deg, transparent, rgba(240, 192, 96, .55)); }

@media (max-width: 480px) {
  .fs-moon { width: 74px; height: 74px; top: 40px; right: 4%; }
  .fs-l1 { left: 3%; }
  .fs-l2 { display: none; }
  .festival-bar .fb-title { font-size: 17px; letter-spacing: 5px; }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  .fs-lantern, .fs-petals i { animation: none; }
}
