/* ziweiai.cn 四术下拉 + 聊天悬浮窗样式（与站点暗金主题一致） */
:root { --gold:var(--gold-400,#C9A961); --purple:var(--violet-300,#8B7FD4); --bg-2:var(--ink-800,#14121f); --ink:var(--text-200,#e8e2d4); }
.nav-drop { position: relative; }
.nav-drop > button {
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; padding: 0;
}
.nav-drop .caret { font-size: 10px; opacity: .7; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 200px;
  background: var(--bg-2); border: 1px solid rgba(201,169,97,.35); border-radius: 12px;
  padding: 6px; display: none; z-index: 80;
  box-shadow: 0 14px 36px rgba(0,0,0,.5);
}
.nav-drop.open .drop-menu { display: block; }
.drop-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px;
}
.drop-menu a:hover { background: rgba(201,169,97,.12); color: var(--gold); }
.soon-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(139,127,212,.5); color: var(--purple); white-space: nowrap;
}
/* 四术占位页 */
.sishu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.sishu-card {
  background: var(--bg-2); border: 1px solid rgba(201,169,97,.25); border-radius: 16px;
  padding: 26px 22px;
}
.sishu-card h3 { margin: 0 0 10px; color: var(--gold); }
.sishu-card p { color: var(--ink); opacity: .85; line-height: 1.7; margin: 0 0 12px; }
/* 聊天悬浮窗 */
#azfChatBtn {
  position: fixed; right: 22px; bottom: 22px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(201,169,97,.55);
  background: linear-gradient(145deg, #1a1628, #0f0d18); color: var(--gold);
  font-size: 22px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
#azfChatBtn:hover { transform: translateY(-2px); }
#azfChatPanel {
  position: fixed; right: 22px; bottom: 88px; z-index: 9999;
  width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 130px));
  background: #0f0d18; border: 1px solid rgba(201,169,97,.4); border-radius: 16px;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.6); color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Noto Sans", sans-serif;
}
#azfChatPanel.open { display: flex; }
.azf-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: rgba(201,169,97,.1); border-bottom: 1px solid rgba(201,169,97,.25);
}
.azf-head b { color: var(--gold); font-size: 14px; }
.azf-head button { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 16px; }
.azf-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.azm { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.azm.user { align-self: flex-end; background: rgba(139,127,212,.25); }
.azm.bot  { align-self: flex-start; background: rgba(255,255,255,.06); }
.azm.err  { align-self: flex-start; background: rgba(220,80,80,.15); color: #f2b8b8; }
.azf-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(201,169,97,.25); }
.azf-form input {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(201,169,97,.3);
  border-radius: 10px; color: var(--ink); padding: 9px 11px; font-size: 14px; outline: none;
}
.azf-form input:focus { border-color: var(--gold); }
.azf-form button {
  background: var(--gold); color: #14121f; border: 0; border-radius: 10px;
  padding: 0 16px; font-weight: 600; cursor: pointer;
}
.azf-form button:disabled { opacity: .5; cursor: default; }

/* v3：浅色主题不再遗留固定深底浅字；聊天窗与菜单跟随 theme.css */
html[data-theme="light"] .drop-menu,
html[data-theme="light"] .sishu-card,
html[data-theme="light"] #azfChatPanel {
  background: var(--ink-800); color: var(--text-200);
  border-color: var(--line); box-shadow: 0 18px 48px rgba(87,66,22,.16);
}
html[data-theme="light"] .drop-menu a,
html[data-theme="light"] .sishu-card p,
html[data-theme="light"] .azf-head button { color: var(--text-200); }
html[data-theme="light"] .sishu-card h3,
html[data-theme="light"] .azf-head b { color: var(--gold); }
html[data-theme="light"] .azm.bot { background: rgba(26,22,17,.055); }
html[data-theme="light"] .azm.user { background: rgba(91,81,180,.12); }
html[data-theme="light"] .azm.err { color: #9E3029; background: rgba(198,75,66,.1); }
html[data-theme="light"] .azf-form input { background: var(--ink-900); color: var(--text-100); border-color: var(--line); }
html[data-theme="light"] #azfChatBtn { box-shadow: 0 10px 30px rgba(87,66,22,.25); }
