/* 心鉴学 · 主题切换（日间=浅色极光呼吸 / 夜间=深色黑金） */

/* 顶部主题切换按钮 */
.mingyun-theme-toggle{
  padding:3px 10px; border-radius:9999px;
  border:1px solid rgba(212,175,55,.5);
  background:linear-gradient(135deg,#D4AF37,#B8860B); color:#121212;
  font-size:12px; font-weight:600; cursor:pointer;
  transition:all .25s; white-space:nowrap; letter-spacing:.2px; line-height:1.2;
}
.mingyun-theme-toggle:hover{ filter:brightness(1.1); transform:translateY(-1px); }

/* 「当前页面风格：」文字 + 模式按钮（切换提示符号） */
.mingyun-theme-wrap{ display:inline-flex; align-items:center; gap:4px; margin-left:12px; }
.mingyun-theme-label{ font-size:14px; color:#8a6d1f !important; }
.theme-swap{ opacity:.72; margin-left:3px; font-weight:700; }

/* ============ 夜间（深色黑金） ============ */
body.theme-night{ color-scheme:dark; background:#121212 !important; color:#EBEBEB !important; }

body.theme-night::before{
  background:transparent !important;
}
body.theme-night::after{
  background:transparent !important;
  animation:none !important;
}

body.theme-night .bg-dark-100{ background-color:rgba(45,45,45,.50) !important; }
body.theme-night .bg-dark-200{ background-color:rgba(30,30,30,.50) !important; }
body.theme-night .bg-dark-300{ background-color:rgba(20,20,20,.50) !important; }
body.theme-night .bg-gradient-dark{ background:linear-gradient(135deg,rgba(47,47,47,.50) 0%,rgba(28,28,28,.50) 100%) !important; }
body.theme-night header{ background-color:rgba(28,28,28,.50) !important; }
body.theme-night footer{ background-color:rgba(27,27,27,.50) !important; }
body.theme-night .shadow-card{ box-shadow:0 4px 20px 0 rgba(0,0,0,.5),0 0 0 1px rgba(212,175,55,.28) !important; }
body.theme-night .shadow-gold{ box-shadow:0 0 10px rgba(212,175,55,.35) !important; }

body.theme-night .text-gray-100{ color:#F8F0D7 !important; }
body.theme-night .text-gray-200{ color:#EFE7CB !important; }
body.theme-night .text-gray-300{ color:#E3D9B8 !important; }
body.theme-night .text-gray-400{ color:#CFC6A6 !important; }
body.theme-night .text-gray-500{ color:#B8B092 !important; }
body.theme-night .text-gray-600{ color:#9c9478 !important; }
body.theme-night .text-gray-700{ color:#88806a !important; }
body.theme-night .text-white{ color:#F8F0D7 !important; }

/* 按钮（金色渐变上）文字仍用深色，保持可读 */
body.theme-night .text-dark-100,
body.theme-night .text-dark-200,
body.theme-night .text-dark-300{ color:#121212 !important; }

body.theme-night input, body.theme-night textarea{ color:#EBEBEB !important; background-color:#1E1E1E !important; }
body.theme-night input::placeholder, body.theme-night textarea::placeholder{ color:#7a7a7a !important; }
body.theme-night select{ background-color:#1E1E1E !important; color:#EBEBEB !important; }
body.theme-night select option{ background-color:#1E1E1E !important; color:#EBEBEB !important; }

body.theme-night .border-gold-300\/10{ border-color:rgba(212,175,55,.18) !important; }
body.theme-night .border-gold-300\/20{ border-color:rgba(212,175,55,.22) !important; }
body.theme-night .border-gold-300\/30{ border-color:rgba(212,175,55,.30) !important; }
body.theme-night .border-gold-300\/40{ border-color:rgba(212,175,55,.40) !important; }

/* ============ 统一呼吸频率（日间/夜间一致，且比原来更快） ============ */
body::after{ animation:auroraResp 8s ease-in-out infinite alternate !important; }
body.theme-night::after{ animation:auroraResp 8s ease-in-out infinite alternate !important; background-size:170% 170% !important; }
@keyframes auroraResp{
  0%,100%{ background-position:0% 0%; opacity:.78; }
  50%{ background-position:100% 100%; opacity:1; }
}

/* 夜间：加载分析弹窗深色背景 */
body.theme-night #loading-overlay{ background-color:rgba(8,10,16,.88) !important; }
body.theme-night .loading-frame{ background-color:#161616 !important; border-color:rgba(212,175,55,.35) !important; }
body.theme-night .loading-frame h3,
body.theme-night .loading-frame p{ color:#EFE7CB !important; }
