/* =============================================
   [伯母午睡] 主题 - 柔美粉紫版
   核心参数：base-hue:320 base-sat:25% is-dark:1 accent-hue:340 accent-sat:70%
   ============================================= */

/* --- 隐藏冗余 --- */
[class*="bg-[#F1CBCB]"], [class*="bg-[#c9e1e9]"] { display: none !important; }

/* --- 危险区域：代码与折叠 --- */
.markdown-body pre {
  background: hsl(320, 25%, 5%) !important;
  border: 1px solid hsl(320, 25%, 28%) !important;
  border-left: 3px solid hsl(340, 70%, 68%) !important;
  border-radius: 4px; padding: 1em;
}
.markdown-body pre code { background: transparent !important; color: hsl(320, 8%, 93%) !important; font-family: 'Georgia', serif; }
.markdown-body :not(pre)>code { background: hsl(280, 40%, 15%) !important; color: hsl(280, 60%, 80%) !important; padding: 0.2em 0.4em; border-radius: 3px; }

details { 
  background: linear-gradient(145deg, hsl(320, 25%, 18%), hsl(320, 25%, 12%)) !important; 
  border: 1px solid hsl(340, 40%, 30%) !important; 
  border-radius: 8px; margin: 10px 0; box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
details summary { color: hsl(340, 70%, 68%) !important; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
details summary::before { content: '💗'; margin-right: 8px; filter: sepia(1) saturate(2); }

/* --- 输入框强制可见 --- */
#ai-chat-input { 
  background: hsl(320, 25%, 15%) !important; 
  color: #FFFFFF !important;
  caret-color: hsl(340, 70%, 68%) !important; 
  border: none !important;
  font-family: 'serif' !important;
}
#ai-chat-bottom-input { 
  background: hsl(320, 25%, 15%) !important; 
  color: #FFFFFF !important;
}

/* --- 全局背景 --- */
body {
  background: linear-gradient(135deg, hsl(320, 25%, 7%) 0%, hsl(280, 20%, 10%) 50%, hsl(320, 25%, 7%) 100%) !important;
}

/* --- 卡片样式 --- */
.markdown-body > *:not(pre):not(details) {
  background: linear-gradient(145deg, hsl(320, 25%, 15%), hsl(320, 25%, 12%)) !important;
  border: 1px solid hsl(340, 40%, 30%) !important;
  border-radius: 8px; padding: 1em; margin: 10px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- 标题样式 --- */
h1, h2, h3, h4, h5, h6 {
  color: hsl(340, 70%, 68%) !important;
  font-family: 'Georgia', serif;
  margin-bottom: 1em;
  text-shadow: 0 0 10px rgba(219, 39, 119, 0.3);
}

/* --- 链接样式 --- */
a {
  color: hsl(340, 70%, 68%) !important;
  text-decoration: none;
  border-bottom: 1px solid hsl(340, 70%, 68%);
  transition: all 0.3s ease;
}

a:hover {
  color: hsl(340, 100%, 80%) !important;
  border-bottom: 1px solid hsl(340, 100%, 80%);
  text-shadow: 0 0 10px rgba(219, 39, 119, 0.5);
}

/* --- 列表样式 --- */
ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.5em;
  color: hsl(320, 8%, 93%);
}

/* --- 引用样式 --- */
blockquote {
  border-left: 3px solid hsl(340, 70%, 68%);
  padding-left: 1em;
  margin-left: 0;
  color: hsl(320, 25%, 70%);
  font-style: italic;
}

/* --- 滚动条样式 --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(320, 25%, 10%);
}

::-webkit-scrollbar-thumb {
  background: hsl(340, 70%, 68%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(340, 100%, 80%);
}