css
/* ============================================
   【玄明界 · 深墨朱砂主题】
   作者：兴趣使然的人 for rili
   ============================================ */

/* —— 1. 思维链【核武级】强制隐藏 —— */
/* 同时覆盖所有可能的写法：标签、class、自定义元素 */
.hidden-think,
.hidden-think *,
think,
think *,
thinking,
thinking *,
[class*="hidden-think"],
[class*="hidden-think"] * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: -9999px !important;
  color: transparent !important;
  background: transparent !important;
  text-shadow: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  z-index: -9999 !important;
  pointer-events: none !important;
  user-select: none !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  transform: scale(0) !important;
  white-space: nowrap !important;
}

/* —— 2. 顶部状态栏 —— */
status-top {
  display: block;
  background: linear-gradient(90deg, #2b1d14 0%, #3d2a1a 50%, #2b1d14 100%);
  border: 1px solid #8b6f3f;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 8px 0 12px 0;
  box-shadow: 0 0 12px rgba(196, 137, 64, 0.25), inset 0 0 8px rgba(0, 0, 0, 0.4);
  position: relative;
}
status-top::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(196, 137, 64, 0.06) 1px, transparent 2px),
                    radial-gradient(circle at 70% 70%, rgba(196, 137, 64, 0.05) 1px, transparent 2px);
  background-size: 30px 30px;
  pointer-events: none;
  border-radius: 6px;
}
status-top p {
  color: #f5d99a !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 0 6px rgba(245, 217, 154, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* —— 3. 正文容器 —— */
text {
  display: block;
  background: 
    linear-gradient(135deg, rgba(245, 230, 200, 0.04) 0%, rgba(245, 230, 200, 0.08) 100%),
    linear-gradient(180deg, #1f1410 0%, #2a1d15 100%);
  border: 1px solid #6b4a2a;
  border-radius: 10px;
  padding: 22px 24px;
  margin: 12px 0;
  box-shadow: 
    0 4px 18px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(196, 137, 64, 0.06),
    inset 0 0 0 1px rgba(196, 137, 64, 0.15);
  position: relative;
}
text::before, text::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, transparent, #b03a2e 20%, #b03a2e 80%, transparent);
  opacity: 0.5;
}
text::before { left: 8px; }
text::after { right: 8px; }
text p {
  color: #f0e3c4 !important;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.5px;
  text-indent: 2em;
  margin: 0 0 14px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-family: "KaiTi", "STKaiti", "楷体", serif;
}
text p:last-child { margin-bottom: 0; }

/* —— 4. details 折叠块 —— */
details {
  background: linear-gradient(180deg, #251810 0%, #1c1209 100%);
  border: 1px solid #8b6f3f;
  border-radius: 8px;
  margin: 10px 0;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(196, 137, 64, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}
details:hover {
  box-shadow: 0 2px 18px rgba(196, 137, 64, 0.3), inset 0 0 0 1px rgba(196, 137, 64, 0.2);
}
details summary {
  cursor: pointer;
  padding: 12px 16px;
  background: linear-gradient(90deg, #3d2a1a 0%, #4a3220 50%, #3d2a1a 100%);
  color: #ffd98a !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  border-bottom: 1px solid #6b4a2a;
  text-shadow: 0 0 8px rgba(255, 217, 138, 0.5), 0 1px 2px rgba(0, 0, 0, 0.7);
  user-select: none;
  list-style: none;
  position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "❖ ";
  color: #c4514a;
  margin-right: 6px;
  text-shadow: 0 0 6px rgba(196, 81, 74, 0.6);
}
details[open] summary {
  background: linear-gradient(90deg, #4a3220 0%, #5c3e28 50%, #4a3220 100%);
}
details p {
  color: #e8d5a8 !important;
  font-size: 13px;
  line-height: 1.8;
  margin: 6px 16px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
details p:first-of-type { margin-top: 12px; }
details p:last-of-type { margin-bottom: 12px; }

/* —— 5. 用户输入气泡 —— */
.message-user, .user-message, [class*="user"] .bubble, .chat-message-user {
  background: linear-gradient(135deg, #5a1f1a 0%, #7a2a22 50%, #5a1f1a 100%) !important;
  border: 1px solid #c4514a !important;
  border-radius: 14px 14px 4px 14px !important;
  color: #fff5dc !important;
  box-shadow: 
    0 3px 12px rgba(122, 42, 34, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  letter-spacing: 0.5px !important;
}

/* —— 6. AI 回复气泡 —— */
.message-ai, .ai-message, .assistant-message, [class*="assistant"] .bubble, .chat-message-ai {
  background: linear-gradient(135deg, #1f1410 0%, #2a1d15 100%) !important;
  border: 1px solid #8b6f3f !important;
  border-radius: 14px 14px 14px 4px !important;
  color: #f0e3c4 !important;
  box-shadow: 
    0 3px 14px rgba(0, 0, 0, 0.55),
    inset 0 0 22px rgba(196, 137, 64, 0.08) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* —— 7. AI 加载气泡 —— */
.loading, .typing, .message-loading, [class*="loading"] {
  background: linear-gradient(135deg, #1f1410 0%, #2a1d15 100%) !important;
  border: 1px solid #c4514a !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  position: relative !important;
  overflow: hidden !important;
  animation: rune-breath 1.8s ease-in-out infinite !important;
  box-shadow: 0 0 18px rgba(196, 81, 74, 0.4) !important;
}
.loading::before, .typing::before, .message-loading::before {
  content: "丹炉炼化中…";
  color: #ffd98a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 217, 138, 0.7);
  position: relative;
  z-index: 2;
  font-family: "KaiTi", "STKaiti", serif;
}
.loading::after, .typing::after, .message-loading::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 217, 138, 0.25), 
    rgba(196, 81, 74, 0.3), 
    transparent);
  animation: rune-flow 2s linear infinite;
}
@keyframes rune-breath {
  0%, 100% { box-shadow: 0 0 12px rgba(196, 81, 74, 0.35), inset 0 0 12px rgba(196, 81, 74, 0.15); }
  50% { box-shadow: 0 0 24px rgba(255, 217, 138, 0.5), inset 0 0 18px rgba(196, 81, 74, 0.25); }
}
@keyframes rune-flow {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* —— 8. 输入框 —— */
.input-area, .chat-input-wrapper, [class*="input-container"], .input-box-outer {
  background: linear-gradient(180deg, #1c1209 0%, #251810 100%) !important;
  border-top: 2px solid #8b6f3f !important;
  box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(196, 137, 64, 0.2) !important;
  padding: 10px !important;
}
textarea, input[type="text"], .chat-input, [class*="input-textarea"] {
  background: linear-gradient(180deg, #2a1d15 0%, #1f1410 100%) !important;
  border: 1px solid #8b6f3f !important;
  border-radius: 10px !important;
  color: #ffd98a !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  letter-spacing: 0.5px !important;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 137, 64, 0.1) !important;
  transition: all 0.3s ease !important;
  caret-color: #c4514a !important;
}
textarea::placeholder, input::placeholder, .chat-input::placeholder {
  color: rgba(196, 137, 64, 0.55) !important;
  font-style: italic;
}
textarea:focus, input:focus, .chat-input:focus {
  border-color: #c4514a !important;
  box-shadow: 
    inset 0 0 12px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(196, 81, 74, 0.45),
    0 0 0 2px rgba(196, 81, 74, 0.3) !important;
  outline: none !important;
}

/* —— 9. 发送按钮 —— */
button, .send-btn, [class*="send"] {
  background: linear-gradient(135deg, #b03a2e 0%, #c4514a 50%, #b03a2e 100%) !important;
  color: #fff5dc !important;
  border: 1px solid #ffd98a !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  box-shadow: 0 2px 10px rgba(196, 81, 74, 0.45) !important;
  transition: all 0.25s ease !important;
}
button:hover, .send-btn:hover {
  box-shadow: 0 0 18px rgba(255, 217, 138, 0.55), 0 2px 10px rgba(196, 81, 74, 0.6) !important;
  transform: translateY(-1px);
}

/* —— 10. 滚动条 —— */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #1c1209;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b6f3f, #c4514a);
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(196, 137, 64, 0.5);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffd98a, #c4514a);
}

/* —— 11. 选中文字 —— */
::selection {
  background: rgba(196, 81, 74, 0.55);
  color: #fff5dc;
  text-shadow: 0 0 6px rgba(255, 217, 138, 0.6);
}