/* ========== 现代魔导·柔光卷轴 主题 ========== */

/* 折叠面板基底 */
details {
  background: linear-gradient(135deg, #fdfbf7 0%, #f5ede0 100%);
  border: 1px solid #d4c5a9;
  border-left: 4px solid #c9a96e;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  box-shadow: 0 2px 12px rgba(201, 169, 110, 0.12), inset 0 0 30px rgba(255, 248, 230, 0.4);
  font-family: "Georgia", "Source Han Serif", serif;
  color: #4a3f2f;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

details::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 215, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: ether-drift 8s ease-in-out infinite;
}

@keyframes ether-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-30px, 20px) scale(1.2); opacity: 0.9; }
}

details:hover {
  border-left-color: #b8860b;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25), inset 0 0 40px rgba(255, 245, 220, 0.6);
  transform: translateY(-1px);
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05em;
  color: #6b4423;
  padding: 6px 8px;
  letter-spacing: 1px;
  list-style: none;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "✦";
  position: absolute;
  right: 8px;
  color: #c9a96e;
  transition: transform 0.4s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
  color: #b8860b;
}

/* 内部段落 */
details p {
  margin: 6px 0;
  line-height: 1.7;
  font-size: 0.95em;
  color: #4a3f2f;
  padding-left: 4px;
}

details b {
  color: #8b5e3c;
  font-weight: 600;
}

/* 分隔线·魔法阵纹路 */
details hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a96e 20%, #d4af37 50%, #c9a96e 80%, transparent);
  margin: 10px 0;
  position: relative;
}

details hr::after {
  content: "✧";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fdfbf7;
  padding: 0 8px;
  color: #c9a96e;
  font-size: 0.9em;
}

/* 玩家状态·暖白主调 */
.self-status {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.6), rgba(255, 240, 220, 0.3));
  border-radius: 6px;
  padding: 10px;
}

/* NPC主交互·淡粉魔力 */
.npc-main {
  background: linear-gradient(180deg, rgba(252, 230, 230, 0.5), rgba(255, 240, 240, 0.3));
  border-left: 3px solid #d4a5a5;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
}

.npc-main b { color: #a85858; }

/* 周围NPC·淡蓝 */
.npc-around {
  background: linear-gradient(180deg, rgba(220, 235, 245, 0.4), rgba(235, 245, 250, 0.2));
  border-left: 3px solid #8aa9c4;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
}

/* 关系网络·淡紫 */
.bonds {
  background: linear-gradient(180deg, rgba(235, 225, 245, 0.4), rgba(245, 240, 250, 0.2));
  border-left: 3px solid #a890c4;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
}

.bonds b { color: #6b4a8b; }

/* 世界消息·淡青 */
.world-news {
  background: linear-gradient(180deg, rgba(220, 240, 235, 0.4), rgba(235, 248, 245, 0.2));
  border-left: 3px solid #7ab8a8;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
}

/* 行动选项·淡金 */
.choices {
  background: linear-gradient(180deg, rgba(255, 245, 220, 0.5), rgba(255, 250, 235, 0.3));
  border-left: 3px solid #d4af37;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
}

.choices p:has(b) {
  background: rgba(255, 250, 235, 0.6);
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.choices p:has(b):hover {
  background: rgba(255, 240, 200, 0.9);
  border-color: #d4af37;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

/* 世界坐标·淡褐 */
.world-info {
  background: linear-gradient(180deg, rgba(245, 235, 220, 0.5), rgba(252, 245, 230, 0.3));
  border-left: 3px solid #b8956a;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
}

/* 记忆区表格 */
details table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.88em;
  background: rgba(255, 252, 245, 0.6);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(184, 134, 11, 0.1);
}

details table th {
  background: linear-gradient(135deg, #e8d9bb, #d4c094);
  color: #5d4520;
  padding: 8px 10px;
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: 2px solid #b8860b;
}

details table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e8dcc4;
  color: #4a3f2f;
  line-height: 1.6;
  vertical-align: top;
}

details table tr:nth-child(even) td {
  background: rgba(252, 245, 228, 0.5);
}

details table tr:hover td {
  background: rgba(255, 240, 200, 0.6);
}

/* 思维链隐藏 */
think {
  display: none;
}

/* 数值高亮·魔力光晕 */
details p b:has(+ *) {
  position: relative;
}

/* 标签气泡（#标签 类型） */
details p:has(> :contains("#")) {
  font-style: italic;
  color: #8b6f4e;
}

/* 滚动条美化 */
details::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

details::-webkit-scrollbar-thumb {
  background: #c9a96e;
  border-radius: 3px;
}

details::-webkit-scrollbar-track {
  background: #f5ede0;
}

/* 移动端适配 */
@media (max-width: 768px) {
  details { padding: 10px 12px; font-size: 0.92em; }
  summary { font-size: 1em; }
  details table { font-size: 0.82em; }
  details table th, details table td { padding: 6px 8px; }
}
/* ========== 现代魔导·柔光卷轴 - 全局UI主题 ========== */

/* ---------- 顶部栏 ---------- */
.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(135deg, #fdfbf7 0%, #f5ede0 100%) !important;
  border-bottom: 1px solid #d4c5a9 !important;
  box-shadow: 0 2px 12px rgba(201, 169, 110, 0.18), inset 0 -1px 0 rgba(212, 175, 55, 0.2) !important;
  font-family: "Georgia", "Source Han Serif", serif !important;
  position: relative;
}
.sticky.w-full.top-0.flex.items-center::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a96e 20%, #d4af37 50%, #c9a96e 80%, transparent);
  pointer-events: none;
}

/* 模型选择器 */
#ai-model-selector .group.flex.items-center {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.8), rgba(245, 237, 224, 0.6)) !important;
  border: 1px solid #d4c5a9 !important;
  border-left: 3px solid #c9a96e !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  box-shadow: 0 1px 4px rgba(201, 169, 110, 0.15), inset 0 0 12px rgba(255, 248, 230, 0.5) !important;
  transition: all 0.3s ease !important;
}
#ai-model-selector .group.flex.items-center:hover {
  border-left-color: #b8860b !important;
  box-shadow: 0 2px 10px rgba(201, 169, 110, 0.3), inset 0 0 16px rgba(255, 245, 220, 0.7) !important;
}
#ai-model-selector .truncate.text-\[13px\] {
  color: #6b4423 !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
#ai-model-selector .shrink-0.flex.items-center svg {
  color: #c9a96e !important;
}

/* 顶部裸SVG图标（历史、设置） */
.sticky.w-full.top-0 svg.lucide-clock-8,
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
  color: #8b5e3c !important;
  transition: transform 0.4s ease, color 0.3s ease !important;
}
.sticky.w-full.top-0 svg.lucide-clock-8:hover,
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
  color: #b8860b !important;
  transform: rotate(15deg) scale(1.1) !important;
}

/* 历史角标 */
.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
  background: #b8860b !important;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.7) !important;
}

/* 音乐按钮 */
.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
  color: #8b5e3c !important;
}

/* 设置按钮 */
#header-setting-button {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.7), rgba(245, 237, 224, 0.4)) !important;
  border: 1px solid #d4c5a9 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}
#header-setting-button:hover {
  background: linear-gradient(180deg, #fdfbf7, #f5ede0) !important;
  border-color: #b8860b !important;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3) !important;
}
#header-setting-button svg { color: #6b4423 !important; }

/* ---------- 开场白选择器 ---------- */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
  background: linear-gradient(135deg, #fdfbf7 0%, #f5ede0 100%) !important;
  border: 1px solid #d4c5a9 !important;
  border-left: 3px solid #c9a96e !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 6px rgba(201, 169, 110, 0.15), inset 0 0 14px rgba(255, 248, 230, 0.5) !important;
  color: #6b4423 !important;
  transition: all 0.3s ease !important;
}
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover {
  border-left-color: #b8860b !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(201, 169, 110, 0.25) !important;
}
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"] {
  color: #c9a96e !important;
}
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
  color: #b8860b !important;
  transition: transform 0.3s ease !important;
}

/* ---------- 按钮栏（Mod/流式 等） ---------- */
#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.85), rgba(245, 237, 224, 0.7)) !important;
  border: 1px solid #d4c5a9 !important;
  border-radius: 8px !important;
  color: #6b4423 !important;
  font-family: "Georgia", "Source Han Serif", serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 1px 4px rgba(201, 169, 110, 0.15), inset 0 0 10px rgba(255, 248, 230, 0.4) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}
#ai-mod-button2 button.MuiButton-root::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
  transition: left 0.6s ease;
}
#ai-mod-button2 button.MuiButton-root:hover {
  border-color: #b8860b !important;
  color: #8b5e3c !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(201, 169, 110, 0.3), inset 0 0 16px rgba(255, 245, 220, 0.7) !important;
}
#ai-mod-button2 button.MuiButton-root:hover::before { left: 100%; }
#ai-mod-button2 button.MuiButton-root svg {
  color: #c9a96e !important;
}

/* ---------- 底部栏 ---------- */
.bg-gradient-to-t {
  background: linear-gradient(to top, #f5ede0 0%, rgba(253, 251, 247, 0.85) 60%, transparent 100%) !important;
}

#ai-chat-bottom-input {
  background: linear-gradient(135deg, #fdfbf7 0%, #f5ede0 100%) !important;
  border: 1px solid #d4c5a9 !important;
  border-left: 4px solid #c9a96e !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 18px rgba(201, 169, 110, 0.2), inset 0 0 24px rgba(255, 248, 230, 0.5) !important;
  transition: all 0.4s ease !important;
  position: relative;
  overflow: hidden;
}
#ai-chat-bottom-input::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(212, 175, 215, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: ether-drift-bottom 9s ease-in-out infinite;
}
@keyframes ether-drift-bottom {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-20px, 15px) scale(1.2); opacity: 0.9; }
}
#ai-chat-bottom-input:focus-within {
  border-left-color: #b8860b !important;
  box-shadow: 0 6px 24px rgba(201, 169, 110, 0.3), inset 0 0 30px rgba(255, 245, 220, 0.65) !important;
}

#ai-chat-input {
  background: transparent !important;
  color: #4a3f2f !important;
  font-family: "Georgia", "Source Han Serif", serif !important;
  font-size: 0.95em !important;
  line-height: 1.7 !important;
  caret-color: #b8860b !important;
}
#ai-chat-input::placeholder {
  color: #b8a784 !important;
  font-style: italic !important;
  letter-spacing: 0.5px !important;
}
#ai-chat-input::selection {
  background: rgba(212, 175, 55, 0.35) !important;
  color: #5d4520 !important;
}

/* ---------- 分页栏 ---------- */
.MuiPaginationItem-root {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.7), rgba(245, 237, 224, 0.5)) !important;
  border: 1px solid #d4c5a9 !important;
  color: #6b4423 !important;
  font-family: "Georgia", serif !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}
.MuiPaginationItem-root:hover {
  background: linear-gradient(180deg, #fdfbf7, #f5ede0) !important;
  border-color: #b8860b !important;
  color: #8b5e3c !important;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.25) !important;
}
.MuiPaginationItem-root.Mui-selected {
  background: linear-gradient(135deg, #e8d9bb, #d4c094) !important;
  border-color: #b8860b !important;
  color: #5d4520 !important;
  box-shadow: 0 2px 10px rgba(184, 134, 11, 0.35), inset 0 0 8px rgba(255, 248, 230, 0.6) !important;
}
.MuiPaginationItem-root.Mui-disabled {
  opacity: 0.45 !important;
  background: rgba(245, 237, 224, 0.4) !important;
}
.MuiPaginationItem-icon { color: #b8860b !important; }

.MuiStack-root.css-1uwir8f .MuiBox-root {
  color: #6b4423 !important;
  font-family: "Georgia", serif !important;
}
.MuiStack-root.css-1uwir8f .MuiInputBase-input {
  background: rgba(255, 248, 230, 0.7) !important;
  border: 1px solid #d4c5a9 !important;
  border-radius: 6px !important;
  color: #5d4520 !important;
  font-weight: 600 !important;
}

/* ---------- 评论区 ---------- */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background: linear-gradient(135deg, #fdfbf7 0%, #f5ede0 100%) !important;
  border-top: 1px solid #d4c5a9 !important;
  box-shadow: 0 -2px 14px rgba(201, 169, 110, 0.15) !important;
  font-family: "Georgia", "Source Han Serif", serif !important;
  color: #4a3f2f !important;
}

/* 顶部标题 */
div.text-lg.font-bold {
  color: #6b4423 !important;
  letter-spacing: 1px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  position: relative;
  padding-left: 14px !important;
}
div.text-lg.font-bold::before {
  content: "✦";
  color: #c9a96e;
  margin-right: 6px;
}

/* 评分区 */
p.MuiTypography-body1.text-grey-600 { color: #8b6f4e !important; }
span.MuiRating-iconEmpty svg { color: #d4c5a9 !important; }
span.MuiRating-iconFilled svg {
  color: #d4af37 !important;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
}
span.text-orange-500 {
  color: #b8860b !important;
  font-weight: 700 !important;
}

/* 评论输入框 */
div.flex.flex-col.border-gray-200 {
  background: rgba(255, 252, 245, 0.7) !important;
  border: 1px solid #d4c5a9 !important;
  border-left: 3px solid #c9a96e !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 16px rgba(255, 248, 230, 0.5) !important;
  transition: all 0.3s ease !important;
}
div.flex.flex-col.border-gray-200:focus-within {
  border-left-color: #b8860b !important;
  box-shadow: 0 2px 10px rgba(201, 169, 110, 0.2), inset 0 0 20px rgba(255, 245, 220, 0.7) !important;
}
textarea.rc-textarea {
  background: transparent !important;
  color: #4a3f2f !important;
  font-family: "Georgia", serif !important;
  line-height: 1.7 !important;
}
textarea.rc-textarea::placeholder {
  color: #b8a784 !important;
  font-style: italic !important;
}
div.bg-gray-100.text-gray-500 {
  background: rgba(232, 217, 187, 0.4) !important;
  color: #8b6f4e !important;
  border-radius: 4px !important;
}

/* 发送按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
  background: linear-gradient(135deg, #e8d9bb, #d4c094) !important;
  border: 1px solid #b8860b !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25) !important;
  transition: all 0.3s ease !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover {
  background: linear-gradient(135deg, #d4c094, #c9a96e) !important;
  box-shadow: 0 3px 12px rgba(184, 134, 11, 0.4) !important;
  transform: translateY(-1px);
}
div[data-state="closed"] svg[data-icon="Send03"] { color: #5d4520 !important; }

/* 分割线 */
div.style_divider__mW0YX {
  background: linear-gradient(90deg, transparent, #c9a96e 20%, #d4af37 50%, #c9a96e 80%, transparent) !important;
  height: 1px !important;
  position: relative;
}
div.style_divider__mW0YX::after {
  content: "✧";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fdfbf7;
  padding: 0 8px;
  color: #c9a96e;
  font-size: 0.9em;
}

/* 排序按钮 */
button.MuiButton-outlinedPrimary {
  background: rgba(255, 248, 230, 0.6) !important;
  border: 1px solid #d4c5a9 !important;
  color: #6b4423 !important;
  font-family: "Georgia", serif !important;
  transition: all 0.3s ease !important;
}
button.MuiButton-outlinedPrimary:hover {
  border-color: #b8860b !important;
  background: rgba(255, 245, 220, 0.85) !important;
  color: #8b5e3c !important;
}
button.MuiButton-containedPrimary {
  background: linear-gradient(135deg, #e8d9bb, #d4c094) !important;
  border: 1px solid #b8860b !important;
  color: #5d4520 !important;
  font-family: "Georgia", serif !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3), inset 0 0 8px rgba(255, 248, 230, 0.5) !important;
}

/* 评论项 */
div.group.ml-0 {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.4), rgba(245, 237, 224, 0.2)) !important;
  border-left: 2px solid #d4c5a9 !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 10px 12px !important;
  margin: 8px 0 !important;
  transition: all 0.3s ease !important;
}
div.group.ml-0:hover {
  border-left-color: #c9a96e !important;
  background: linear-gradient(180deg, rgba(255, 245, 220, 0.6), rgba(252, 240, 215, 0.3)) !important;
  box-shadow: 0 2px 10px rgba(201, 169, 110, 0.15) !important;
}

/* 头像 */
div.group img.rounded-full {
  border: 2px solid #d4c094 !important;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3) !important;
  transition: all 0.3s ease !important;
}
div.group img.rounded-full:hover {
  border-color: #b8860b !important;
  box-shadow: 0 0 12px rgba(184, 134, 11, 0.5) !important;
}

/* 用户名等 */
div.text-sm.text-grey-600 span.font-bold {
  color: #8b5e3c !important;
  font-weight: 700 !important;
}
span.text-\[10px\] {
  background: linear-gradient(135deg, #e8d9bb, #d4c094) !important;
  color: #5d4520 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  border: 1px solid #b8860b !important;
  font-style: normal !important;
}
div.break-all {
  color: #4a3f2f !important;
  line-height: 1.7 !important;
}
div.text-xs.text-grey-600 {
  color: #a8896a !important;
  font-style: italic !important;
}

/* 点赞 / 回复 */
button.text-gray-400 {
  color: #a8896a !important;
  transition: all 0.3s ease !important;
}
button.text-gray-400:hover { color: #b8860b !important; }
button.text-gray-400 svg { transition: transform 0.3s ease !important; }
button.text-gray-400:hover svg { transform: scale(1.2); }
span.cursor-pointer {
  color: #8b5e3c !important;
  font-weight: 600 !important;
  transition: color 0.3s ease !important;
}
span.cursor-pointer:hover { color: #b8860b !important; }

/* 回复区域 */
div.ml-8.border-l {
  border-left: 2px dashed #d4c094 !important;
  padding-left: 10px !important;
}
/* 顶部栏增加流动星点 */
.sticky.w-full.top-0.flex.items-center::before {
  content: "✦  ✧  ✦";
  position: absolute;
  right: 40%;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(201, 169, 110, 0.25);
  letter-spacing: 18px;
  font-size: 0.7em;
  pointer-events: none;
}

/* 评分星星点击脉冲 */
span.MuiRating-iconFilled svg:hover {
  animation: star-pulse 0.6s ease;
}
@keyframes star-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(15deg); filter: drop-shadow(0 0 8px #d4af37); }
}
/* ========== 现代魔导·柔光卷轴 - 聊天框主题 ========== */

/* 统一聊天框基底 */
.bg-gray-100\/90.relative.inline-block {
  background: linear-gradient(135deg, #fdfbf7 0%, #f5ede0 100%) !important;
  border: 1px solid #d4c5a9 !important;
  border-left: 4px solid #c9a96e !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 16px rgba(201, 169, 110, 0.18), inset 0 0 32px rgba(255, 248, 230, 0.45) !important;
  font-family: "Georgia", "Source Han Serif", serif !important;
  transition: all 0.4s ease !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 漂浮以太光晕（背景动效 - 伪元素，纯CSS备用） */
.bg-gray-100\/90.relative.inline-block::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 175, 215, 0.18) 0%, rgba(212, 175, 55, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ether-drift-chat 9s ease-in-out infinite;
}
.bg-gray-100\/90.relative.inline-block::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ether-drift-chat2 11s ease-in-out infinite;
}
@keyframes ether-drift-chat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-25px, 18px) scale(1.2); opacity: 1; }
}
@keyframes ether-drift-chat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(20px, -15px) scale(1.15); opacity: 0.9; }
}

.bg-gray-100\/90.relative.inline-block:hover {
  border-left-color: #b8860b !important;
  box-shadow: 0 5px 22px rgba(201, 169, 110, 0.28), inset 0 0 40px rgba(255, 245, 220, 0.65) !important;
  transform: translateY(-1px);
}

/* 输入聊天框（用户消息）单独点缀 - 淡粉魔力调 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
  background: linear-gradient(135deg, #fef6f0 0%, #f8e8dc 100%) !important;
  border-left-color: #d4a5a5 !important;
}
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90):hover {
  border-left-color: #a85858 !important;
}

/* 正文文本 */
.markdown-body {
  color: #4a3f2f !important;
  font-family: "Georgia", "Source Han Serif", serif !important;
  line-height: 1.75 !important;
  background: transparent !important;
  position: relative;
  z-index: 1;
}
.markdown-body b, .markdown-body strong {
  color: #8b5e3c !important;
  font-weight: 700 !important;
}
.markdown-body em, .markdown-body i {
  color: #8b6f4e !important;
}
.markdown-body a {
  color: #b8860b !important;
  text-decoration: underline dotted !important;
}
.markdown-body code {
  background: rgba(232, 217, 187, 0.5) !important;
  color: #5d4520 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(201, 169, 110, 0.3) !important;
}
.markdown-body blockquote {
  border-left: 3px solid #c9a96e !important;
  background: rgba(255, 248, 230, 0.5) !important;
  color: #6b4423 !important;
  padding: 6px 12px !important;
  border-radius: 0 6px 6px 0 !important;
}
.markdown-body hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #c9a96e 20%, #d4af37 50%, #c9a96e 80%, transparent) !important;
}

/* 底部附加元素 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
  color: #8b6f4e !important;
  font-family: "Georgia", serif !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
  background: rgba(232, 217, 187, 0.4) !important;
  color: #b8860b !important;
}
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
  color: #a8896a !important;
  font-style: italic !important;
  letter-spacing: 0.5px !important;
}
.text-orange-500 {
  color: #b8860b !important;
  font-weight: 600 !important;
}

/* ===== 加载动画：魔法阵 SVG 旋转 ===== */
/* 隐藏默认加载点 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
  display: none !important;
}

/* 加载容器 */
.flex.items-center.justify-center.w-6.h-5 {
  position: relative !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 auto !important;
}

/* 主魔法阵（双环旋转） - SMIL SVG */
.flex.items-center.justify-center.w-6.h-5::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><defs><radialGradient id='g' cx='50%25' cy='50%25'><stop offset='0%25' stop-color='%23d4af37' stop-opacity='0.4'/><stop offset='100%25' stop-color='%23d4af37' stop-opacity='0'/></radialGradient></defs><circle cx='50' cy='50' r='30' fill='url(%23g)'/><g fill='none' stroke='%23c9a96e' stroke-width='2'><circle cx='50' cy='50' r='38' stroke-dasharray='12 8' opacity='0.85'><animateTransform attributeName='transform' type='rotate' from='0 50 50' to='360 50 50' dur='4s' repeatCount='indefinite'/></circle><circle cx='50' cy='50' r='28' stroke='%23b8860b' stroke-dasharray='4 6' opacity='0.9'><animateTransform attributeName='transform' type='rotate' from='360 50 50' to='0 50 50' dur='3s' repeatCount='indefinite'/></circle><polygon points='50,20 60,50 50,80 40,50' stroke='%23d4af37' opacity='0.7'><animateTransform attributeName='transform' type='rotate' from='0 50 50' to='360 50 50' dur='6s' repeatCount='indefinite'/></polygon></g><text x='50' y='58' text-anchor='middle' font-size='18' fill='%23b8860b' font-family='Georgia'>✦<animate attributeName='opacity' values='0.4;1;0.4' dur='1.5s' repeatCount='indefinite'/></text></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  /* CSS 备用动画（SMIL 失效时仍可见旋转） */
  animation: magic-circle-spin 5s linear infinite;
}

/* 外部光晕脉冲星点 */
.flex.items-center.justify-center.w-6.h-5::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='%23d4af37'><circle cx='50' cy='8' r='2'><animate attributeName='opacity' values='0;1;0' dur='1.8s' begin='0s' repeatCount='indefinite'/></circle><circle cx='92' cy='50' r='2'><animate attributeName='opacity' values='0;1;0' dur='1.8s' begin='0.45s' repeatCount='indefinite'/></circle><circle cx='50' cy='92' r='2'><animate attributeName='opacity' values='0;1;0' dur='1.8s' begin='0.9s' repeatCount='indefinite'/></circle><circle cx='8' cy='50' r='2'><animate attributeName='opacity' values='0;1;0' dur='1.8s' begin='1.35s' repeatCount='indefinite'/></circle></g><g fill='none' stroke='%23c9a96e' stroke-width='1' opacity='0.6'><animateTransform attributeName='transform' type='rotate' from='0 50 50' to='-360 50 50' dur='8s' repeatCount='indefinite'/><circle cx='50' cy='50' r='46' stroke-dasharray='2 10'/></g></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  animation: magic-glow-pulse 2s ease-in-out infinite;
}

@keyframes magic-circle-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes magic-glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* 顶部颜色条隐藏（如不需要可删除） */
[class*="bg-[#F1CBCB]"],
[class*="bg-[#c9e1e9]"] {
  display: none !important;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .bg-gray-100\/90.relative.inline-block {
    border-radius: 10px !important;
  }
  .flex.items-center.justify-center.w-6.h-5 {
    width: 40px !important;
    height: 40px !important;
  }
  .flex.items-center.justify-center.w-6.h-5::before {
    width: 36px !important;
    height: 36px !important;
  }
  .flex.items-center.justify-center.w-6.h-5::after {
    width: 46px !important;
    height: 46px !important;
  }
}

/* 低动效偏好：放慢但保留 */
@media (prefers-reduced-motion: reduce) {
  .bg-gray-100\/90.relative.inline-block::before,
  .bg-gray-100\/90.relative.inline-block::after {
    animation-duration: 20s !important;
  }
  .flex.items-center.justify-center.w-6.h-5::before {
    animation-duration: 10s !important;
  }
}
/* 聊天框边框微光呼吸 */
.bg-gray-100\/90.relative.inline-block {
  animation: scroll-breathe 6s ease-in-out infinite;
}
@keyframes scroll-breathe {
  0%, 100% { border-left-color: #c9a96e; }
  50% { border-left-color: #d4af37; }
}

/* 表格也匹配卷轴风 */
.markdown-body table {
  background: rgba(255, 252, 245, 0.7) !important;
  border-radius: 6px !important;
  overflow: hidden;
}
.markdown-body th {
  background: linear-gradient(135deg, #e8d9bb, #d4c094) !important;
  color: #5d4520 !important;
  border-bottom: 2px solid #b8860b !important;
}
.markdown-body td {
  border-bottom: 1px solid #e8dcc4 !important;
}

/* ============ 顶部栏 · 法师塔控制台 ============ */
.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(135deg, #1a1530 0%, #2d1f4a 50%, #1f1a3a 100%) !important;
  border-bottom: 1px solid rgba(212, 175, 95, 0.4) !important;
  box-shadow: 0 2px 20px rgba(120, 80, 200, 0.25), inset 0 -1px 0 rgba(212, 175, 95, 0.2) !important;
  backdrop-filter: blur(12px);
  position: relative;
}
.sticky.w-full.top-0.flex.items-center::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #d4af5f, #a78bfa, #d4af5f, transparent);
  opacity: 0.6;
}

#ai-model-selector .group.flex.items-center {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(212, 175, 95, 0.08)) !important;
  border: 1px solid rgba(212, 175, 95, 0.35) !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  transition: all 0.3s ease;
}
#ai-model-selector .group.flex.items-center:hover {
  border-color: rgba(212, 175, 95, 0.7) !important;
  box-shadow: 0 0 12px rgba(212, 175, 95, 0.3);
}
#ai-model-selector .truncate.text-\[13px\] {
  color: #f5e6c8 !important;
  font-family: -apple-system, "SF Pro Display", system-ui, sans-serif !important;
  letter-spacing: 0.3px;
}
#ai-model-selector .shrink-0.flex.items-center svg { color: #d4af5f !important; }

.sticky.w-full.top-0 svg.lucide-clock-8,
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]),
.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
  color: #e0d4f7 !important;
  filter: drop-shadow(0 0 3px rgba(167, 139, 250, 0.5));
  transition: transform 0.3s;
}
.sticky.w-full.top-0 svg.lucide-clock-8:hover,
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover { transform: rotate(15deg); }

.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
  background: #ff6b9d !important;
  box-shadow: 0 0 8px #ff6b9d;
}

#header-setting-button {
  background: linear-gradient(135deg, rgba(212, 175, 95, 0.15), rgba(167, 139, 250, 0.15)) !important;
  border: 1px solid rgba(212, 175, 95, 0.4) !important;
  border-radius: 8px !important;
  transition: all 0.3s;
}
#header-setting-button:hover {
  background: linear-gradient(135deg, rgba(212, 175, 95, 0.3), rgba(167, 139, 250, 0.3)) !important;
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.4);
}
#header-setting-button svg { color: #f5e6c8 !important; }

/* ============ 开场白选择器 · 卷轴铭牌 ============ */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
  background: linear-gradient(135deg, #f7efdc 0%, #ede0c0 100%) !important;
  border: 1px solid #c9a961 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 6px rgba(120,80,40,0.15) !important;
  transition: all 0.3s;
}
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover {
  border-color: #a78bfa !important;
  box-shadow: 0 0 10px rgba(167,139,250,0.3), inset 0 1px 0 rgba(255,255,255,0.6) !important;
}
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"] { color: #8b6f3a !important; }
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] { color: #8b6f3a !important; }

/* ============ 按钮栏 · 魔力回路触点 ============ */
#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(135deg, #2d1f4a, #1f1a3a) !important;
  border: 1px solid rgba(212, 175, 95, 0.45) !important;
  color: #f5e6c8 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(120,80,200,0.2), inset 0 1px 0 rgba(212,175,95,0.15) !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
#ai-mod-button2 button.MuiButton-root::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,175,95,0.3), transparent);
  transition: left 0.5s;
}
#ai-mod-button2 button.MuiButton-root:hover::before { left: 100%; }
#ai-mod-button2 button.MuiButton-root:hover {
  border-color: #d4af5f !important;
  box-shadow: 0 0 14px rgba(212,175,95,0.45) !important;
  transform: translateY(-1px);
}
#ai-mod-button2 button.MuiButton-root svg {
  color: #d4af5f !important;
  filter: drop-shadow(0 0 2px rgba(212,175,95,0.5));
}

/* ============ 底部输入栏 · 以太铭文匣 ============ */
#ai-chat-bottom-input {
  background: linear-gradient(135deg, #2a2245 0%, #1f1a3a 100%) !important;
  border: 1px solid rgba(212, 175, 95, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 24px rgba(120,80,200,0.25), inset 0 1px 0 rgba(212,175,95,0.18) !important;
}
#ai-chat-input {
  color: #f5e6c8 !important;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif !important;
  caret-color: #d4af5f !important;
  letter-spacing: 0.2px;
}
#ai-chat-input::placeholder {
  color: rgba(245, 230, 200, 0.45) !important;
  font-style: italic;
}
#ai-chat-input::selection {
  background: rgba(212, 175, 95, 0.4) !important;
  color: #fff !important;
}

/* ============ 分页栏 · 卷轴书页 ============ */
.MuiPaginationItem-root {
  color: #f5e6c8 !important;
  background: rgba(45, 31, 74, 0.55) !important;
  border: 1px solid rgba(212,175,95,0.3) !important;
  transition: all 0.25s;
}
.MuiPaginationItem-root:hover {
  background: rgba(167,139,250,0.25) !important;
  border-color: #d4af5f !important;
}
.MuiPaginationItem-root.Mui-selected {
  background: linear-gradient(135deg, #d4af5f, #a78bfa) !important;
  color: #1a1530 !important;
  border-color: #d4af5f !important;
  box-shadow: 0 0 12px rgba(212,175,95,0.5) !important;
  font-weight: 700 !important;
}
.MuiPaginationItem-root.Mui-disabled { opacity: 0.4 !important; }
.MuiPaginationItem-icon { color: #d4af5f !important; }
.MuiStack-root.css-1uwir8f .MuiBox-root { color: #e0d4f7 !important; }
.MuiInputBase-input {
  color: #f5e6c8 !important;
  background: rgba(45,31,74,0.6) !important;
  border-radius: 6px !important;
}

/* ============ 评论区 · 魔导议会留言板 ============ */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background: linear-gradient(160deg, #1f1a3a 0%, #2a2048 60%, #1a1530 100%) !important;
  border-top: 1px solid rgba(212,175,95,0.4) !important;
}
div.text-lg.font-bold {
  color: #f5e6c8 !important;
  text-shadow: 0 0 10px rgba(212,175,95,0.4);
  letter-spacing: 0.5px;
}
p.MuiTypography-body1.text-grey-600 { color: #c9b8e8 !important; }
span.MuiRating-iconEmpty svg { color: rgba(212,175,95,0.3) !important; }
span.MuiRating-iconFilled svg {
  color: #d4af5f !important;
  filter: drop-shadow(0 0 4px rgba(212,175,95,0.6));
}
span.text-orange-500 { color: #d4af5f !important; font-weight: 700; }

div.flex.flex-col.border-gray-200 {
  background: rgba(45,31,74,0.55) !important;
  border: 1px solid rgba(212,175,95,0.35) !important;
  border-radius: 10px !important;
}
textarea.rc-textarea {
  color: #f5e6c8 !important;
  background: transparent !important;
}
textarea.rc-textarea::placeholder { color: rgba(245,230,200,0.4) !important; }
div.bg-gray-100.text-gray-500 {
  background: rgba(167,139,250,0.15) !important;
  color: #c9b8e8 !important;
  border-radius: 6px !important;
}
div.cursor-pointer.group.flex.items-center.justify-center {
  background: linear-gradient(135deg, #d4af5f, #a78bfa) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 10px rgba(212,175,95,0.4);
  transition: all 0.3s;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover {
  box-shadow: 0 0 18px rgba(167,139,250,0.7);
  transform: scale(1.05);
}
div[data-state="closed"] svg[data-icon="Send03"] { color: #1a1530 !important; }

div.style_divider__mW0YX {
  background: linear-gradient(90deg, transparent, rgba(212,175,95,0.5), transparent) !important;
  height: 1px !important;
}

button.MuiButton-containedPrimary {
  background: linear-gradient(135deg, #d4af5f, #a78bfa) !important;
  color: #1a1530 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(212,175,95,0.4) !important;
}
button.MuiButton-outlinedPrimary {
  background: rgba(45,31,74,0.5) !important;
  color: #f5e6c8 !important;
  border: 1px solid rgba(212,175,95,0.4) !important;
}
button.MuiButton-outlinedPrimary:hover {
  border-color: #d4af5f !important;
  background: rgba(167,139,250,0.2) !important;
}

div.group.ml-0 {
  background: rgba(45,31,74,0.4) !important;
  border: 1px solid rgba(212,175,95,0.18) !important;
  border-radius: 10px !important;
  padding: 10px !important;
  margin-bottom: 8px !important;
  transition: all 0.3s;
}
div.group.ml-0:hover {
  border-color: rgba(212,175,95,0.5) !important;
  background: rgba(45,31,74,0.6) !important;
}
div.group img.rounded-full {
  border: 2px solid rgba(212,175,95,0.5) !important;
  box-shadow: 0 0 8px rgba(167,139,250,0.4);
}
div.text-sm.text-grey-600 span.font-bold { color: #f5e6c8 !important; }
span.text-\[10px\] {
  background: linear-gradient(135deg, #d4af5f, #a78bfa) !important;
  color: #1a1530 !important;
  padding: 1px 6px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}
div.break-all { color: #ebe1cf !important; line-height: 1.65 !important; }
div.text-xs.text-grey-600 { color: #a89cc9 !important; }
button.text-gray-400 { color: #c9b8e8 !important; transition: all 0.2s; }
button.text-gray-400:hover { color: #ff6b9d !important; transform: scale(1.15); }
button.text-gray-400 svg:hover { filter: drop-shadow(0 0 4px #ff6b9d); }
span.cursor-pointer { color: #d4af5f !important; transition: text-shadow 0.2s; }
span.cursor-pointer:hover { text-shadow: 0 0 8px rgba(212,175,95,0.7); }
div.ml-8.border-l { border-left: 1px solid rgba(212,175,95,0.4) !important; }
/* 顶部栏添加流动魔力光带动画 */
@keyframes etherFlow { 0%,100%{background-position:0% 50%;} 50%{background-position:100% 50%;} }
.sticky.w-full.top-0.flex.items-center { background-size: 200% 200%; animation: etherFlow 12s ease infinite; }

/* 评分星星呼吸光效 */
@keyframes runePulse { 0%,100%{filter:drop-shadow(0 0 4px rgba(212,175,95,0.6));} 50%{filter:drop-shadow(0 0 10px rgba(212,175,95,1));} }
span.MuiRating-iconFilled svg { animation: runePulse 2.5s ease-in-out infinite; }