/* 容器与配色体系 */
ai {
  --主色: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #fbc2eb 100%);
  --强调色: linear-gradient(135deg, #6a3093 0%, #a044ff 100%);
  --金色: #ffd700;
  --深紫: #6a3093;
  --文字: #2d2d2d;
  --文字淡: #666;
  --背景: rgba(255, 255, 255, 0.95);
  --边框: rgba(106, 48, 147, 0.2);
  --阴影: 0 4px 12px rgba(106, 48, 147, 0.15);
  --泛光: 0 0 3px rgba(255, 154, 158, 0.3), 0 0 6px rgba(250, 208, 196, 0.2);
  
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 12px;
  background: var(--背景);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cfilter id='glow'%3E%3CfeGaussianBlur stdDeviation='2' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='0.4'%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%23a044ff' stroke-width='1.5' filter='url(%23glow)'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 100 100' to='360 100 100' dur='20s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='100' cy='100' r='45' fill='none' stroke='%23fad0c4' stroke-width='1' filter='url(%23glow)'%3E%3CanimateTransform attributeName='transform' type='rotate' from='360 100 100' to='0 100 100' dur='15s' repeatCount='indefinite'/%3E%3C/circle%3E%3Cpath d='M100,55 L105,75 L125,75 L110,87 L115,107 L100,95 L85,107 L90,87 L75,75 L95,75 Z' fill='%23ffd700' opacity='0.6' filter='url(%23glow)'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 100 100' to='360 100 100' dur='25s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0.4;0.8;0.4' dur='3s' repeatCount='indefinite'/%3E%3C/path%3E%3Cline x1='100' y1='40' x2='100' y2='160' stroke='%236a3093' stroke-width='0.8' opacity='0.5'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 100 100' to='360 100 100' dur='18s' repeatCount='indefinite'/%3E%3C/line%3E%3Cline x1='40' y1='100' x2='160' y2='100' stroke='%236a3093' stroke-width='0.8' opacity='0.5'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 100 100' to='360 100 100' dur='18s' repeatCount='indefinite'/%3E%3C/line%3E%3C/g%3E%3Cg%3E%3Ccircle cx='20' cy='30' r='1.5' fill='%23fff'%3E%3Canimate attributeName='cx' values='20;180;20' dur='8s' repeatCount='indefinite'/%3E%3Canimate attributeName='cy' values='30;30;30' dur='8s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;1;1;0' keyTimes='0;0.1;0.9;1' dur='8s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='180' cy='60' r='1.5' fill='%23ffd700'%3E%3Canimate attributeName='cx' values='180;20;180' dur='10s' repeatCount='indefinite'/%3E%3Canimate attributeName='cy' values='60;60;60' dur='10s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;1;1;0' keyTimes='0;0.1;0.9;1' dur='10s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='50' cy='170' r='1.5' fill='%23fad0c4'%3E%3Canimate attributeName='cx' values='50;150;50' dur='12s' repeatCount='indefinite'/%3E%3Canimate attributeName='cy' values='170;170;170' dur='12s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0;1;1;0' keyTimes='0;0.1;0.9;1' dur='12s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  border-radius: 8px;
  box-shadow: var(--阴影);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--文字);
}

/* 头部时间地点 */
ai hd {
  display: block;
  padding: 8px 12px;
  margin: -12px -12px 12px;
  background: var(--主色);
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
}

ai hd::before,
ai hd::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: translateY(-50%);
}

ai hd::before { left: 8px; }
ai hd::after { right: 8px; }

/* 正文区 */
ai article {
  display: block;
  margin: 0 0 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(250,208,196,0.1));
  border-left: 3px solid var(--深紫);
  border-radius: 4px;
}

ai article p {
  margin: 0 0 10px;
  text-shadow: var(--泛光);
  transition: text-shadow 0.3s;
}

ai article p:last-child { margin-bottom: 0; }

ai article p:hover {
  text-shadow: 0 0 5px rgba(255, 154, 158, 0.4), 0 0 10px rgba(250, 208, 196, 0.3);
}

/* details通用样式 */
ai details {
  margin: 0 0 8px;
  border: 1px solid var(--边框);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s;
}

ai details:hover {
  border-color: var(--深紫);
  box-shadow: 0 2px 8px rgba(106, 48, 147, 0.2);
}

ai details[open] {
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(250,208,196,0.05));
}

ai summary {
  padding: 8px 12px;
  background: var(--强调色);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
  position: relative;
}

ai summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.3s;
}

ai details[open] summary::before {
  transform: rotate(90deg);
}

ai summary:hover {
  background: linear-gradient(135deg, #7b3fa3 0%, #b055ff 100%);
  box-shadow: 0 0 12px rgba(160, 68, 255, 0.5);
}

/* 数据行与字段 */
ai d {
  display: block;
  padding: 4px 12px;
  margin: 2px 0;
  font-size: 13px;
  color: var(--文字);
  transition: all 0.2s;
}

ai d:hover {
  background: rgba(255, 154, 158, 0.1);
  padding-left: 16px;
}

ai f {
  display: inline-block;
  padding: 2px 8px;
  background: var(--主色);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  margin-right: 8px;
  box-shadow: 0 2px 4px rgba(106, 48, 147, 0.2);
}

/* 分类标题 */
ai p[t]::before {
  content: attr(t);
  display: block;
  padding: 6px 10px;
  margin: 8px -12px 6px;
  background: linear-gradient(90deg, rgba(106, 48, 147, 0.1), transparent);
  border-left: 4px solid var(--深紫);
  font-weight: 700;
  font-size: 13px;
  color: var(--深紫);
}

ai p {
  margin: 0;
  padding: 0 12px 8px;
}

/* 表格样式 */
ai m {
  display: block;
  margin: 8px 0;
  overflow-x: auto;
}

ai m[t]::before {
  content: '⚜️ ' attr(t) '长期记忆区';
  display: block;
  padding: 6px 12px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), transparent);
  border-left: 4px solid var(--金色);
  font-weight: 700;
  font-size: 13px;
  color: #b8860b;
  margin-bottom: 6px;
}

ai m[t="STM"]::before {
  content: '⚜️ 短期记忆区';
  background: linear-gradient(90deg, rgba(106, 48, 147, 0.2), transparent);
  border-left-color: var(--深紫);
  color: var(--深紫);
}

ai tb {
  display: table;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

ai tb thead {
  background: var(--强调色);
  color: #fff;
}

ai tb th {
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--深紫);
}

ai tb td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--边框);
  transition: all 0.2s;
}

ai tb tbody tr {
  transition: all 0.2s;
  position: relative;
}

ai tb tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 154, 158, 0.2), transparent);
  transition: width 0.3s;
  pointer-events: none;
}

ai tb tbody tr:hover::before {
  width: 100%;
}

ai tb tbody tr:hover {
  background: rgba(250, 208, 196, 0.1);
  transform: translateX(4px);
}

ai tb tbody tr:hover td {
  color: var(--深紫);
  font-weight: 500;
}

/* 行动推荐 */
ai d[c] {
  padding: 8px 12px 8px 32px;
  margin: 4px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(250, 208, 196, 0.1));
  border-left: 3px solid var(--深紫);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

ai d[c]::before {
  content: attr(c);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--强调色);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(106, 48, 147, 0.3);
}

ai d[c]:hover {
  background: linear-gradient(90deg, rgba(255, 154, 158, 0.2), rgba(250, 208, 196, 0.2));
  border-left-width: 5px;
  padding-left: 34px;
  box-shadow: 0 0 16px rgba(255, 154, 158, 0.4), 0 0 24px rgba(250, 208, 196, 0.3);
  transform: translateX(4px);
}

ai d[c]:hover::before {
  box-shadow: 0 0 8px rgba(160, 68, 255, 0.6), 0 0 16px rgba(160, 68, 255, 0.4);
}

/* 强调文本 */
ai strong {
  color: var(--深紫);
  font-weight: 700;
  text-shadow: 0 0 4px rgba(106, 48, 147, 0.3);
}

/* 嵌套details特殊处理 */
ai details details {
  margin: 8px 12px;
  border-color: rgba(106, 48, 147, 0.15);
}

ai details details summary {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8), rgba(160, 68, 255, 0.8));
  font-size: 13px;
}

/* 响应式优化 */
@media (max-width: 600px) {
  ai {
    padding: 8px;
    font-size: 13px;
  }
  
  ai hd {
    margin: -8px -8px 8px;
    font-size: 12px;
  }
  
  ai article {
    padding: 8px;
  }
  
  ai summary {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  ai d {
    font-size: 12px;
    padding: 3px 10px;
  }
  
  ai tb {
    font-size: 11px;
  }
  
  ai tb th,
  ai tb td {
    padding: 4px 6px;
  }
}

/* 动画增强 */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

ai summary::after {
  content: '✨';
  position: absolute;
  right: 12px;
  animation: pulse 2s infinite;
}

ai details[open] > *:not(summary) {
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

ai m::-webkit-scrollbar-track {
  background: rgba(106, 48, 147, 0.1);
  border-radius: 3px;
}

ai m::-webkit-scrollbar-thumb {
  background: var(--强调色);
  border-radius: 3px;
}

ai m::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7b3fa3, #b055ff);
}

/* ============================================
   🔮 中二病也要谈恋爱 — 邪王真眼の契约 主题
   配色: 深紫 #1a0a2e / 暗蓝 #16213e / 金瞳 #f5a623
         魔法紫 #7c3aed / 星光蓝 #60a5fa / 玫瑰粉 #f472b6
   ============================================ */

/* ══════════════════════════════════════════════
   ✦ 顶 部 栏
   ══════════════════════════════════════════════ */

/* 主容器 — 深紫夜空渐变 + 底部魔法光线 */
.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #1e1045 100%) !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.4) !important;
  box-shadow:
    0 2px 20px rgba(124, 58, 237, 0.3),
    0 1px 0 rgba(245, 166, 35, 0.15) inset !important;
  transition: all 0.4s ease !important;
  position: relative !important;
}

/* 顶部栏底部魔法纹线装饰 */
.sticky.w-full.top-0.flex.items-center::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #7c3aed 15%,
    #f5a623 35%,
    #f472b6 50%,
    #f5a623 65%,
    #7c3aed 85%,
    transparent 100%
  ) !important;
  animation: magicLine 4s ease-in-out infinite !important;
}

@keyframes magicLine {
  0%, 100% { opacity: 0.6; filter: hue-rotate(0deg); }
  50% { opacity: 1; filter: hue-rotate(15deg); }
}

/* 模型选择器 */
#ai-model-selector .group.flex.items-center {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(245, 166, 35, 0.1)) !important;
  border: 1px solid rgba(124, 58, 237, 0.35) !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

#ai-model-selector .group.flex.items-center:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(245, 166, 35, 0.2)) !important;
  border-color: rgba(245, 166, 35, 0.6) !important;
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.25), 0 0 6px rgba(124, 58, 237, 0.3) !important;
  transform: translateY(-1px) !important;
}

/* 模型名称文字 — 金色邪王真眼之色 */
#ai-model-selector .truncate.text-\[13px\] {
  color: #f5c76e !important;
  font-family: 'Noto Serif SC', 'Georgia', serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.3) !important;
  transition: all 0.3s ease !important;
}

#ai-model-selector .group.flex.items-center:hover .truncate.text-\[13px\] {
  color: #fcd984 !important;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.5) !important;
}

/* 下拉箭头 */
#ai-model-selector .shrink-0.flex.items-center svg {
  color: #a78bfa !important;
  filter: drop-shadow(0 0 3px rgba(167, 139, 250, 0.4)) !important;
  transition: all 0.35s ease !important;
}

#ai-model-selector .group.flex.items-center:hover .shrink-0.flex.items-center svg {
  color: #f5a623 !important;
  filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.5)) !important;
  transform: rotate(180deg) !important;
}

/* 历史记录图标(移动端) */
.sticky.w-full.top-0 svg.lucide-clock-8 {
  color: #c4b5fd !important;
  filter: drop-shadow(0 0 4px rgba(196, 181, 253, 0.4)) !important;
  transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 svg.lucide-clock-8:hover {
  color: #f5a623 !important;
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.5)) !important;
  transform: rotate(-15deg) scale(1.1) !important;
}

/* 历史未读角标 */
.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
  background: linear-gradient(135deg, #f5a623, #f472b6) !important;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.6), 0 0 4px rgba(244, 114, 182, 0.4) !important;
  animation: badgePulse 2s ease-in-out infinite !important;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

/* 音乐按钮 */
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2) {
  transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
  color: #c4b5fd !important;
  filter: drop-shadow(0 0 3px rgba(196, 181, 253, 0.3)) !important;
  transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root:hover svg.lucide-music-2 {
  color: #f472b6 !important;
  filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.5)) !important;
  transform: rotate(10deg) scale(1.15) !important;
}

/* 移动端设置图标 */
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
  color: #c4b5fd !important;
  filter: drop-shadow(0 0 3px rgba(196, 181, 253, 0.3)) !important;
  transition: all 0.35s ease !important;
}

.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
  color: #f5a623 !important;
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.5)) !important;
  transform: rotate(60deg) !important;
}

/* 设置按钮 */
#header-setting-button {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(245, 166, 35, 0.08)) !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  border-radius: 50% !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

#header-setting-button:hover {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(124, 58, 237, 0.25)) !important;
  border-color: rgba(245, 166, 35, 0.5) !important;
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.3), 0 0 32px rgba(124, 58, 237, 0.15) !important;
}

#header-setting-button svg {
  color: #c4b5fd !important;
  transition: all 0.4s ease !important;
}

#header-setting-button:hover svg {
  color: #f5a623 !important;
  filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.5)) !important;
  transform: rotate(90deg) !important;
}


/* ══════════════════════════════════════════════
   ✦ 开 场 白 选 择 器
   ══════════════════════════════════════════════ */

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"],
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]) {
  background: linear-gradient(135deg, #1a0a2e, #201050) !important;
  border: 1px solid rgba(124, 58, 237, 0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.15) !important;
  transition: all 0.35s ease !important;
  color: #e0d4f5 !important;
}

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover,
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]):hover {
  border-color: rgba(245, 166, 35, 0.5) !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25), 0 0 10px rgba(245, 166, 35, 0.15) !important;
  transform: translateY(-1px) !important;
}

div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"] {
  color: #a78bfa !important;
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4)) !important;
  transition: all 0.3s ease !important;
}

div.flex.items-center.h-9.cursor-pointer.group:hover svg[data-icon="SlidersH"] {
  color: #f5a623 !important;
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.5)) !important;
}

div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
  color: #a78bfa !important;
  transition: all 0.3s ease !important;
}

div.flex.items-center.h-9.cursor-pointer.group:hover svg[data-icon="ChevronDown"] {
  color: #f5a623 !important;
  transform: rotate(180deg) !important;
}


/* ══════════════════════════════════════════════
   ✦ 按 钮 栏
   ══════════════════════════════════════════════ */

/* 按钮栏外层容器 */
#ai-mod-button2 {
  background: linear-gradient(180deg, transparent, rgba(26, 10, 46, 0.3)) !important;
  padding: 6px 4px !important;
}

/* 按钮 */
#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(22, 33, 62, 0.6)) !important;
  border: 1px solid rgba(124, 58, 237, 0.35) !important;
  border-radius: 18px !important;
  color: #d4c4f0 !important;
  font-family: 'Noto Sans SC', system-ui, sans-serif !important;
  font-weight: 500 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.3px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* 按钮hover魔法光效 */
#ai-mod-button2 button.MuiButton-root::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.12), transparent) !important;
  transition: left 0.5s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover::before {
  left: 100% !important;
}

#ai-mod-button2 button.MuiButton-root:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(245, 166, 35, 0.12)) !important;
  border-color: rgba(245, 166, 35, 0.5) !important;
  color: #f5c76e !important;
  box-shadow: 0 2px 16px rgba(124, 58, 237, 0.25), 0 0 8px rgba(245, 166, 35, 0.15) !important;
  transform: translateY(-2px) !important;
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.3) !important;
}

#ai-mod-button2 button.MuiButton-root:active {
  transform: translateY(0px) scale(0.97) !important;
  box-shadow: 0 1px 6px rgba(124, 58, 237, 0.3) inset !important;
}

/* 按钮图标 */
#ai-mod-button2 button.MuiButton-root svg {
  color: #a78bfa !important;
  filter: drop-shadow(0 0 3px rgba(167, 139, 250, 0.3)) !important;
  transition: all 0.35s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover svg {
  color: #f5a623 !important;
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.5)) !important;
  transform: scale(1.1) !important;
}


/* ══════════════════════════════════════════════
   ✦ 底 部 输 入 栏
   ══════════════════════════════════════════════ */

/* 底部栏外层渐变背景 */
.bg-gradient-to-t {
  background: linear-gradient(to top, #1a0a2e 0%, rgba(26, 10, 46, 0.85) 60%, transparent 100%) !important;
}

/* 输入框容器 */
#ai-chat-bottom-input {
  background: linear-gradient(135deg, #1e1045 0%, #16213e 50%, #1a0a2e 100%) !important;
  border: 1.5px solid rgba(124, 58, 237, 0.35) !important;
  border-radius: 22px !important;
  box-shadow:
    0 4px 24px rgba(124, 58, 237, 0.15),
    0 0 0 1px rgba(124, 58, 237, 0.08) inset,
    0 -2px 12px rgba(245, 166, 35, 0.06) inset !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

/* 输入框容器 — 聚焦时的邪王真眼光效 */
#ai-chat-bottom-input:focus-within {
  border-color: rgba(245, 166, 35, 0.5) !important;
  box-shadow:
    0 4px 30px rgba(124, 58, 237, 0.25),
    0 0 20px rgba(245, 166, 35, 0.1),
    0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}

/* 容器底部魔法纹装饰线 */
#ai-chat-bottom-input::after {
  content: '' !important;
  position: absolute !important;
  bottom: -1px !important;
  left: 15% !important;
  right: 15% !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #7c3aed, #f5a623, #7c3aed, transparent) !important;
  border-radius: 0 0 22px 22px !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}

#ai-chat-bottom-input:focus-within::after {
  opacity: 1 !important;
  animation: magicLine 3s ease-in-out infinite !important;
}

/* 主输入框 */
#ai-chat-input {
  background: transparent !important;
  color: #e8dff5 !important;
  font-family: 'Noto Sans SC', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  caret-color: #f5a623 !important;
}

/* 占位符 — 六花的中二台词风格 */
#ai-chat-input::placeholder {
  color: rgba(167, 139, 250, 0.45) !important;
  font-style: italic !important;
  font-family: 'Noto Serif SC', 'Georgia', serif !important;
  letter-spacing: 0.5px !important;
}

/* 文字选中效果 — 金色邪王真眼 */
#ai-chat-input::selection {
  background: rgba(245, 166, 35, 0.3) !important;
  color: #fef3c7 !important;
}


/* ══════════════════════════════════════════════
   ✦ 分 页 栏
   ══════════════════════════════════════════════ */

/* 分页按钮 — 默认态 */
.MuiPaginationItem-root {
  color: #c4b5fd !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  background: rgba(26, 10, 46, 0.6) !important;
  font-family: 'Georgia', serif !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.MuiPaginationItem-root:hover {
  background: rgba(124, 58, 237, 0.25) !important;
  border-color: rgba(245, 166, 35, 0.4) !important;
  color: #f5c76e !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2) !important;
}

/* 选中态 — 金色邪王真眼发动 */
.MuiPaginationItem-root.Mui-selected {
  background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
  color: #fef3c7 !important;
  border-color: rgba(245, 166, 35, 0.5) !important;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.4), 0 0 6px rgba(245, 166, 35, 0.25) !important;
  text-shadow: 0 0 6px rgba(245, 166, 35, 0.4) !important;
}

/* 禁用态 */
.MuiPaginationItem-root.Mui-disabled {
  color: rgba(124, 58, 237, 0.25) !important;
  background: rgba(26, 10, 46, 0.3) !important;
  border-color: rgba(124, 58, 237, 0.1) !important;
}

/* 翻页箭头图标 */
.MuiPaginationItem-icon {
  color: #a78bfa !important;
  transition: all 0.3s ease !important;
}

.MuiPaginationItem-root:hover .MuiPaginationItem-icon {
  color: #f5a623 !important;
  filter: drop-shadow(0 0 4px rgba(245, 166, 35, 0.4)) !important;
}

/* 跳转输入区域容器 */
.MuiStack-root.css-1uwir8f {
  color: #c4b5fd !important;
}

/* 跳转输入区域文字 */
.MuiStack-root.css-1uwir8f .MuiBox-root {
  color: #c4b5fd !important;
  font-family: 'Noto Sans SC', system-ui, sans-serif !important;
}

/* 跳转输入框 */
.MuiInputBase-input {
  color: #f5c76e !important;
  background: rgba(26, 10, 46, 0.5) !important;
  border: 1px solid rgba(124, 58, 237, 0.35) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.MuiInputBase-input:focus {
  border-color: rgba(245, 166, 35, 0.5) !important;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2) !important;
}


/* ══════════════════════════════════════════════
   ✦ 评 论 区
   ══════════════════════════════════════════════ */

/* 背景主容器 — 深紫夜空 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background: linear-gradient(180deg, #1a0a2e 0%, #16213e 40%, #1e1045 100%) !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
  box-shadow: 0 -4px 30px rgba(124, 58, 237, 0.1) !important;
  color: #e0d4f5 !important;
}

/* 顶部标题 — "评论(x)" */
div.text-lg.font-bold {
  color: #f5c76e !important;
  font-family: 'Noto Serif SC', 'Georgia', serif !important;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.3) !important;
  letter-spacing: 1px !important;
  position: relative !important;
}

/* 标题下方魔法装饰线 */
div.text-lg.font-bold::after {
  content: '✦' !important;
  display: inline-block !important;
  margin-left: 8px !important;
  color: #a78bfa !important;
  font-size: 12px !important;
  animation: starTwinkle 2s ease-in-out infinite !important;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.5; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

/* '个人评分'文字 */
p.MuiTypography-body1.text-grey-600 {
  color: #b8a9d6 !important;
  font-family: 'Noto Sans SC', system-ui, sans-serif !important;
}

/* 评分容器 */
span.MuiRating-root {
  filter: drop-shadow(0 0 4px rgba(245, 166, 35, 0.3)) !important;
}

/* 未选中星星 — 暗紫幽光 */
span.MuiRating-iconEmpty svg {
  color: rgba(124, 58, 237, 0.3) !important;
  transition: all 0.25s ease !important;
}

span.MuiRating-iconEmpty:hover svg {
  color: rgba(245, 166, 35, 0.5) !important;
}

/* 选中星星 — 金色邪王真眼 */
span.MuiRating-iconFilled svg {
  color: #f5a623 !important;
  filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.5)) !important;
}

/* 评分数字 */
span.text-orange-500 {
  color: #f5a623 !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.35) !important;
}

/* 输入框容器 */
div.flex.flex-col.border-gray-200 {
  border-color: rgba(124, 58, 237, 0.3) !important;
  border-radius: 14px !important;
  background: rgba(30, 16, 69, 0.4) !important;
  transition: all 0.3s ease !important;
}

div.flex.flex-col.border-gray-200:focus-within {
  border-color: rgba(245, 166, 35, 0.4) !important;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.15) !important;
}

/* 评论输入框 */
textarea.rc-textarea {
  background: transparent !important;
  color: #e0d4f5 !important;
  font-family: 'Noto Sans SC', system-ui, sans-serif !important;
  caret-color: #f5a623 !important;
}

textarea.rc-textarea::placeholder {
  color: rgba(167, 139, 250, 0.4) !important;
  font-style: italic !important;
}

/* 输入字数统计 */
div.bg-gray-100.text-gray-500 {
  background: rgba(124, 58, 237, 0.1) !important;
  color: #8b7bb5 !important;
  border-radius: 0 0 14px 14px !important;
}

/* 发送评论按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
  transition: all 0.35s ease !important;
}

div.cursor-pointer.group.flex.items-center.justify-center:hover {
  filter: brightness(1.2) !important;
  transform: translateX(2px) !important;
}

/* 发送按钮图标 */
div[data-state="closed"] svg[data-icon="Send03"] {
  color: #a78bfa !important;
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.3)) !important;
  transition: all 0.35s ease !important;
}

div.cursor-pointer.group:hover svg[data-icon="Send03"] {
  color: #f5a623 !important;
  filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.5)) !important;
}

/* 分割线 — 魔法紫渐变 */
div.style_divider__mW0YX {
  background: linear-gradient(90deg, transparent 0%, rgba(124, 58, 237, 0.4) 30%, rgba(245, 166, 35, 0.2) 50%, rgba(124, 58, 237, 0.4) 70%, transparent 100%) !important;
  height: 1px !important;
}

/* 排序按钮(通用) */
button.MuiButton-containedPrimary,
button.MuiButton-outlinedPrimary {
  border-radius: 16px !important;
  font-family: 'Noto Sans SC', system-ui, sans-serif !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  letter-spacing: 0.5px !important;
}

/* 排序按钮 — 选中态 */
button.MuiButton-containedPrimary {
  background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
  color: #fef3c7 !important;
  border: 1px solid rgba(245, 166, 35, 0.3) !important;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3) !important;
  text-shadow: 0 0 6px rgba(245, 166, 35, 0.25) !important;
}

button.MuiButton-containedPrimary:hover {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4), 0 0 8px rgba(245, 166, 35, 0.15) !important;
}

/* 排序按钮 — 未选中态 */
button.MuiButton-outlinedPrimary {
  background: rgba(26, 10, 46, 0.4) !important;
  color: #b8a9d6 !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
}

button.MuiButton-outlinedPrimary:hover {
  background: rgba(124, 58, 237, 0.15) !important;
  color: #e0d4f5 !important;
  border-color: rgba(124, 58, 237, 0.5) !important;
}

/* 评论列表容器 */
div.p-3.overflow-y-auto {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(124, 58, 237, 0.3) transparent !important;
}

div.p-3.overflow-y-auto::-webkit-scrollbar {
  width: 5px !important;
}

div.p-3.overflow-y-auto::-webkit-scrollbar-track {
  background: transparent !important;
}

div.p-3.overflow-y-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed, #5b21b6) !important;
  border-radius: 10px !important;
}

/* 评论项 */
div.group.ml-0 {
  border-bottom: 1px solid rgba(124, 58, 237, 0.12) !important;
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
}

div.group.ml-0:hover {
  background: rgba(124, 58, 237, 0.06) !important;
}

/* 用户头像 — 魔法光环 */
div.group img.rounded-full {
  border: 2px solid rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2) !important;
  transition: all 0.35s ease !important;
}

div.group.ml-0:hover img.rounded-full {
  border-color: rgba(245, 166, 35, 0.5) !important;
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.25), 0 0 6px rgba(124, 58, 237, 0.3) !important;
}

/* 用户名 */
div.text-sm.text-grey-600 span.font-bold {
  color: #c4b5fd !important;
  font-family: 'Noto Sans SC', system-ui, sans-serif !important;
  transition: color 0.3s ease !important;
}

div.group.ml-0:hover div.text-sm.text-grey-600 span.font-bold {
  color: #e0d4f5 !important;
}

/* "（你）" 标签 — 邪王真眼の印记 */
span.text-\[10px\] {
  color: #1a0a2e !important;
  background: linear-gradient(135deg, #f5a623, #f59e0b) !important;
  padding: 1px 6px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.3) !important;
}

/* 评论内容 */
div.break-all {
  color: #d6cce8 !important;
  font-family: 'Noto Sans SC', system-ui, sans-serif !important;
  line-height: 1.65 !important;
}

/* 时间戳 */
div.text-xs.text-grey-600 {
  color: #7c6fa0 !important;
  font-family: 'Georgia', serif !important;
  font-style: italic !important;
}

/* 点赞按钮 */
button.text-gray-400 {
  color: #8b7bb5 !important;
  transition: all 0.3s ease !important;
}

button.text-gray-400:hover {
  color: #f472b6 !important;
}

/* 点赞按钮图标 */
button.text-gray-400 svg {
  transition: all 0.3s ease !important;
}

button.text-gray-400:hover svg {
  color: #f472b6 !important;
  filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.4)) !important;
  transform: scale(1.2) !important;
}

/* 回复文字 */
span.cursor-pointer {
  color: #a78bfa !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

span.cursor-pointer:hover {
  color: #f5a623 !important;
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.3) !important;
}

/* 回复区域边框 — 魔法连线 */
div.ml-8.border-l {
  border-left-color: rgba(124, 58, 237, 0.3) !important;
  border-left-width: 2px !important;
  position: relative !important;
}

div.ml-8.border-l::before {
  content: '' !important;
  position: absolute !important;
  left: -1px !important;
  top: 0 !important;
  width: 2px !important;
  height: 20px !important;
  background: linear-gradient(180deg, #f5a623, rgba(124, 58, 237, 0.3)) !important;
  border-radius: 2px !important;
}


/* ══════════════════════════════════════════════
   ✦ 全 局 动 画 定 义
   ══════════════════════════════════════════════ */

/* 星光闪烁通用动画 */
@keyframes eyeGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.2), 0 0 20px rgba(124, 58, 237, 0.15);
  }
  50% {
    box-shadow: 0 0 16px rgba(245, 166, 35, 0.35), 0 0 32px rgba(124, 58, 237, 0.25);
  }
}

/* 顶部栏微星光背景纹理 */
.sticky.w-full.top-0.flex.items-center::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-image:
    radial-gradient(1px 1px at 10% 30%, rgba(245, 166, 35, 0.4), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(196, 181, 253, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 55% 20%, rgba(245, 166, 35, 0.3), transparent),
    radial-gradient(1px 1px at 75% 60%, rgba(167, 139, 250, 0.35), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(244, 114, 182, 0.25), transparent) !important;
  animation: twinkleField 6s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

@keyframes twinkleField {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

#ai-chat-bottom-input {
  animation: eyeGlow 4s ease-in-out infinite !important;
}

div.text-lg.font-bold::before {
  content: '⟡ ' !important;
  color: #7c3aed !important;
  font-size: 14px !important;
  filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.5)) !important;
}