/* ========================================
   星际虫族主题 - 完整美化方案
   包含：顶部栏、底部输入栏、底部按钮、分页栏、评论区
   ======================================== */
/* === 核心动画定义 === */
@keyframes vein-pulse {
  0%, 100% { opacity: 0.3; filter: brightness(0.8); }
  50% { opacity: 0.7; filter: brightness(1.2); }
}
@keyframes bio-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(95, 181, 125, 0.3), 0 0 20px rgba(95, 181, 125, 0.15); }
  50% { box-shadow: 0 0 15px rgba(95, 181, 125, 0.5), 0 0 30px rgba(95, 181, 125, 0.25); }
}
@keyframes creep-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes hatch-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.02); opacity: 1; }
}
@keyframes spore-activate {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.15) rotate(5deg); }
}
/* ========================================
   1. 顶部栏美化
   ======================================== */
/* 主容器 - 虫族菌毯深紫黑渐变 */
.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(180deg, #1a0d1f 0%, #0d0a15 100%) !important;
  border-bottom: 1px solid rgba(95, 181, 125, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(74, 157, 111, 0.15) !important;
  position: relative !important;
  transition: all 0.4s ease !important;
}
/* 静脉纹路 - 不规则有机装饰 */
.sticky.w-full.top-0.flex.items-center::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: 
    radial-gradient(ellipse 300px 1px at 15% 50%, rgba(95, 181, 125, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 200px 1px at 45% 60%, rgba(74, 157, 111, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 250px 1px at 75% 40%, rgba(95, 181, 125, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 180px 1px at 88% 55%, rgba(74, 157, 111, 0.3) 0%, transparent 55%) !important;
  pointer-events: none !important;
  animation: vein-pulse 4s ease-in-out infinite !important;
  z-index: 1 !important;
}
/* 静脉次级纹路 - 垂直不规则线 */
.sticky.w-full.top-0.flex.items-center::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: 
    linear-gradient(92deg, transparent 0%, transparent 22%, rgba(95, 181, 125, 0.15) 23%, transparent 24%),
    linear-gradient(88deg, transparent 0%, transparent 57%, rgba(74, 157, 111, 0.12) 58%, transparent 59%),
    linear-gradient(91deg, transparent 0%, transparent 81%, rgba(95, 181, 125, 0.18) 82%, transparent 83%) !important;
  pointer-events: none !important;
  opacity: 0.6 !important;
  animation: creep-flow 20s linear infinite !important;
  z-index: 1 !important;
}
/* 确保子元素在静脉之上 */
.sticky.w-full.top-0.flex.items-center > * {
  position: relative !important;
  z-index: 2 !important;
}
/* 模型选择器 - 孵化囊容器 */
#ai-model-selector .group.flex.items-center {
  background: linear-gradient(135deg, rgba(45, 20, 60, 0.7) 0%, rgba(26, 13, 31, 0.85) 100%) !important;
  border: 1px solid rgba(95, 181, 125, 0.4) !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  box-shadow: 
    0 0 15px rgba(95, 181, 125, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: hatch-pulse 3s ease-in-out infinite !important;
}
#ai-model-selector .group.flex.items-center:hover {
  background: linear-gradient(135deg, rgba(45, 20, 60, 0.9) 0%, rgba(26, 13, 31, 1) 100%) !important;
  border-color: rgba(126, 201, 156, 0.7) !important;
  box-shadow: 
    0 0 25px rgba(95, 181, 125, 0.4),
    0 0 40px rgba(74, 157, 111, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-1px) scale(1.02) !important;
}
/* 模型名称文字 */
#ai-model-selector .truncate.text-\[13px\] {
  color: #b8f5cd !important;
  font-weight: 500 !important;
  text-shadow: 0 0 8px rgba(95, 181, 125, 0.3) !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
/* 下拉箭头 */
#ai-model-selector .shrink-0.flex.items-center svg {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 6px rgba(95, 181, 125, 0.4)) !important;
  transition: all 0.3s ease !important;
}
#ai-model-selector .group.flex.items-center:hover .shrink-0.flex.items-center svg {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 10px rgba(95, 181, 125, 0.6)) !important;
  transform: translateY(2px) !important;
}
/* 历史记录图标（移动端裸SVG） */
.sticky.w-full.top-0 svg.lucide-clock-8 {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 8px rgba(95, 181, 125, 0.35)) !important;
  transition: all 0.3s ease !important;
}
.sticky.w-full.top-0 svg.lucide-clock-8:hover {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 15px rgba(95, 181, 125, 0.6)) !important;
  transform: scale(1.1) rotate(15deg) !important;
}
/* 历史记录未读角标 */
.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
  background: radial-gradient(circle, #5fb57d 0%, #4a9d6f 100%) !important;
  box-shadow: 0 0 10px rgba(95, 181, 125, 0.8) !important;
  animation: bio-glow 2s ease-in-out infinite !important;
}
/* 音乐按钮 */
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2) {
  background: rgba(45, 20, 60, 0.5) !important;
  border: 1px solid rgba(95, 181, 125, 0.3) !important;
  border-radius: 10px !important;
  transition: all 0.35s ease !important;
}
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2):hover {
  background: rgba(45, 20, 60, 0.8) !important;
  border-color: rgba(126, 201, 156, 0.6) !important;
  box-shadow: 0 0 20px rgba(95, 181, 125, 0.4) !important;
  transform: scale(1.08) !important;
}
.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 6px rgba(95, 181, 125, 0.4)) !important;
  transition: all 0.3s ease !important;
}
.sticky.w-full.top-0 button.MuiIconButton-root:hover svg.lucide-music-2 {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 12px rgba(95, 181, 125, 0.7)) !important;
}
/* 移动端设置图标（裸SVG） */
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 8px rgba(95, 181, 125, 0.35)) !important;
  transition: all 0.3s ease !important;
}
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 15px rgba(95, 181, 125, 0.6)) !important;
  transform: scale(1.1) rotate(-15deg) !important;
}
/* 设置按钮 */
#header-setting-button {
  background: rgba(45, 20, 60, 0.5) !important;
  border: 1px solid rgba(95, 181, 125, 0.3) !important;
  border-radius: 10px !important;
  transition: all 0.35s ease !important;
  color: #b8f5cd !important;
}
#header-setting-button:hover {
  background: rgba(45, 20, 60, 0.8) !important;
  border-color: rgba(126, 201, 156, 0.6) !important;
  box-shadow: 0 0 20px rgba(95, 181, 125, 0.4) !important;
  transform: scale(1.05) !important;
}
#header-setting-button svg {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 6px rgba(95, 181, 125, 0.4)) !important;
  transition: all 0.3s ease !important;
}
#header-setting-button:hover svg {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 12px rgba(95, 181, 125, 0.7)) !important;
  transform: rotate(90deg) !important;
}
/* ========================================
   2. 开场白选择器美化
   ======================================== */
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, rgba(45, 20, 60, 0.6) 0%, rgba(26, 13, 31, 0.8) 100%) !important;
  border: 1px solid rgba(95, 181, 125, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 12px rgba(95, 181, 125, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.35s ease !important;
}
div.flex.items-center.h-9.cursor-pointer.group:hover,
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]):hover {
  background: linear-gradient(135deg, rgba(45, 20, 60, 0.85) 0%, rgba(26, 13, 31, 1) 100%) !important;
  border-color: rgba(126, 201, 156, 0.6) !important;
  box-shadow: 0 0 20px rgba(95, 181, 125, 0.35), 0 0 35px rgba(74, 157, 111, 0.2) !important;
  transform: translateY(-1px) !important;
}
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"],
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 5px rgba(95, 181, 125, 0.4)) !important;
  transition: all 0.3s ease !important;
}
div.flex.items-center.h-9.cursor-pointer.group:hover svg {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 10px rgba(95, 181, 125, 0.6)) !important;
}
/* ========================================
   3. 底部按钮栏美化（Mod按钮等）
   ======================================== */
#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(135deg, rgba(31, 15, 40, 0.8) 0%, rgba(20, 10, 28, 0.9) 100%) !important;
  border: 1px solid rgba(95, 181, 125, 0.35) !important;
  border-radius: 12px !important;
  color: #b8f5cd !important;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(95, 181, 125, 0.15),
    inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
#ai-mod-button2 button.MuiButton-root:hover {
  background: linear-gradient(135deg, rgba(45, 25, 55, 0.95) 0%, rgba(30, 15, 40, 1) 100%) !important;
  border-color: rgba(126, 201, 156, 0.7) !important;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(95, 181, 125, 0.4),
    0 0 40px rgba(74, 157, 111, 0.25),
    inset 0 0 20px rgba(95, 181, 125, 0.15) !important;
  transform: translateY(-2px) scale(1.05) !important;
  color: #e8f8f5 !important;
}
#ai-mod-button2 button.MuiButton-root svg {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 6px rgba(95, 181, 125, 0.3)) !important;
  transition: all 0.3s ease !important;
}
#ai-mod-button2 button.MuiButton-root:hover svg {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 12px rgba(95, 181, 125, 0.7)) !important;
  transform: scale(1.15) !important;
}
/* 激活状态的按钮 */
#ai-mod-button2 button.MuiButton-root[aria-pressed="true"],
#ai-mod-button2 button.MuiButton-root.Mui-selected {
  background: linear-gradient(135deg, rgba(74, 157, 111, 0.25) 0%, rgba(45, 25, 55, 0.95) 100%) !important;
  border-color: rgba(95, 181, 125, 0.8) !important;
  box-shadow: 
    0 0 20px rgba(95, 181, 125, 0.5),
    0 0 35px rgba(74, 157, 111, 0.3),
    inset 0 0 15px rgba(95, 181, 125, 0.2) !important;
  animation: bio-glow 2.5s ease-in-out infinite !important;
}
/* ========================================
   4. 底部输入栏美化
   ======================================== */
/* 外层渐变背景容器（仅在需要时使用） */
.bg-gradient-to-t {
  background: linear-gradient(to top, #1a0d1f 0%, rgba(26, 13, 31, 0.95) 70%, transparent 100%) !important;
}
/* 输入框容器 */
#ai-chat-bottom-input {
  background: linear-gradient(135deg, rgba(31, 15, 40, 0.85) 0%, rgba(15, 8, 22, 0.9) 100%) !important;
  border: 1px solid rgba(95, 181, 125, 0.4) !important;
  border-radius: 16px !important;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(95, 181, 125, 0.2),
    inset 0 2px 5px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.4s ease !important;
  position: relative !important;
}
#ai-chat-bottom-input::before {
  content: '' !important;
  position: absolute !important;
  top: -1px !important;
  left: 10% !important;
  right: 10% !important;
  height: 2px !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(95, 181, 125, 0.6) 50%, 
    transparent 100%) !important;
  border-radius: 2px !important;
  animation: creep-flow 3s linear infinite !important;
  pointer-events: none !important;
}
#ai-chat-bottom-input:focus-within {
  border-color: rgba(126, 201, 156, 0.7) !important;
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(95, 181, 125, 0.4),
    0 0 50px rgba(74, 157, 111, 0.25),
    inset 0 2px 5px rgba(0, 0, 0, 0.4) !important;
}
/* 主输入框 */
#ai-chat-input {
  background: rgba(20, 10, 28, 0.6) !important;
  border: 1px solid rgba(95, 181, 125, 0.25) !important;
  border-radius: 12px !important;
  color: #b8f5cd !important;
  caret-color: #7ec99c !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  transition: all 0.3s ease !important;
}
#ai-chat-input:focus {
  background: rgba(25, 12, 35, 0.8) !important;
  border-color: rgba(126, 201, 156, 0.5) !important;
  box-shadow: 0 0 15px rgba(95, 181, 125, 0.3) !important;
  outline: none !important;
}
/* 占位符 */
#ai-chat-input::placeholder {
  color: rgba(126, 201, 156, 0.45) !important;
  font-style: italic !important;
}
/* 文字选中效果 */
#ai-chat-input::selection {
  background: rgba(95, 181, 125, 0.35) !important;
  color: #e8f8f5 !important;
}
/* ========================================
   5. 分页栏美化（仅视觉样式，禁止布局修改）
   ======================================== */
.MuiPaginationItem-root {
  background: linear-gradient(135deg, rgba(31, 15, 40, 0.7) 0%, rgba(20, 10, 28, 0.85) 100%) !important;
  border: 1px solid rgba(95, 181, 125, 0.35) !important;
  border-radius: 50% !important;
  color: #b8f5cd !important;
  box-shadow: 0 0 10px rgba(95, 181, 125, 0.15) !important;
  transition: all 0.35s ease !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
.MuiPaginationItem-root:hover {
  background: linear-gradient(135deg, rgba(45, 25, 55, 0.9) 0%, rgba(30, 15, 40, 1) 100%) !important;
  border-color: rgba(126, 201, 156, 0.6) !important;
  color: #e8f8f5 !important;
  box-shadow: 0 0 20px rgba(95, 181, 125, 0.4) !important;
  animation: spore-activate 0.3s ease forwards !important;
}
.MuiPaginationItem-root.Mui-selected {
  background: radial-gradient(circle, rgba(95, 181, 125, 0.3) 0%, rgba(45, 25, 55, 0.95) 70%) !important;
  border-color: rgba(95, 181, 125, 0.8) !important;
  color: #e8f8f5 !important;
  box-shadow: 
    0 0 20px rgba(95, 181, 125, 0.5),
    0 0 35px rgba(74, 157, 111, 0.3),
    inset 0 0 15px rgba(95, 181, 125, 0.2) !important;
  animation: bio-glow 2.5s ease-in-out infinite !important;
}
.MuiPaginationItem-root.Mui-disabled {
  background: rgba(20, 10, 28, 0.4) !important;
  border-color: rgba(95, 181, 125, 0.15) !important;
  color: rgba(184, 245, 205, 0.3) !important;
  box-shadow: none !important;
}
.MuiPaginationItem-icon {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 5px rgba(95, 181, 125, 0.3)) !important;
  transition: all 0.3s ease !important;
}
.MuiPaginationItem-root:hover .MuiPaginationItem-icon {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 10px rgba(95, 181, 125, 0.6)) !important;
}
/* 跳转输入区域容器 */
.MuiStack-root.css-1uwir8f {
  background: rgba(26, 13, 31, 0.6) !important;
  border: 1px solid rgba(95, 181, 125, 0.3) !important;
  border-radius: 10px !important;
}
.MuiStack-root.css-1uwir8f .MuiBox-root {
  color: #b8f5cd !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
.MuiInputBase-input {
  background: rgba(31, 15, 40, 0.7) !important;
  border: 1px solid rgba(95, 181, 125, 0.3) !important;
  border-radius: 8px !important;
  color: #b8f5cd !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
.MuiInputBase-input:focus {
  border-color: rgba(126, 201, 156, 0.6) !important;
  box-shadow: 0 0 12px rgba(95, 181, 125, 0.3) !important;
  outline: none !important;
}
/* ========================================
   6. 评论区美化
   ======================================== */
/* 背景主容器 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background: linear-gradient(180deg, #1a0d25 0%, #0f0818 100%) !important;
  border-top: 1px solid rgba(95, 181, 125, 0.3) !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6), 0 0 40px rgba(74, 157, 111, 0.15) !important;
}
/* 顶部标题 */
div.text-lg.font-bold {
  color: #b8f5cd !important;
  text-shadow: 0 0 10px rgba(95, 181, 125, 0.4) !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
/* '个人评分'文字 */
p.MuiTypography-body1.text-grey-600 {
  color: #7ec99c !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
/* 评分容器 */
span.MuiRating-root {
  filter: drop-shadow(0 0 8px rgba(95, 181, 125, 0.2)) !important;
}
/* 未选中星星 */
span.MuiRating-iconEmpty svg {
  color: rgba(95, 181, 125, 0.3) !important;
  filter: drop-shadow(0 0 3px rgba(95, 181, 125, 0.2)) !important;
  transition: all 0.3s ease !important;
}
/* 选中星星 */
span.MuiRating-iconFilled svg {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 10px rgba(95, 181, 125, 0.6)) !important;
  transition: all 0.3s ease !important;
}
span.MuiRating-iconFilled svg:hover {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 15px rgba(95, 181, 125, 0.8)) !important;
  transform: scale(1.15) !important;
}
/* 评分数字 */
span.text-orange-500 {
  color: #7ec99c !important;
  text-shadow: 0 0 8px rgba(95, 181, 125, 0.4) !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
/* 输入框容器 */
div.flex.flex-col.border-gray-200 {
  background: rgba(31, 15, 40, 0.6) !important;
  border: 1px solid rgba(95, 181, 125, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 15px rgba(95, 181, 125, 0.15) !important;
}
/* 输入框 */
textarea.rc-textarea {
  background: rgba(20, 10, 28, 0.7) !important;
  border: 1px solid rgba(95, 181, 125, 0.25) !important;
  border-radius: 10px !important;
  color: #b8f5cd !important;
  caret-color: #7ec99c !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  transition: all 0.3s ease !important;
}
textarea.rc-textarea:focus {
  background: rgba(25, 12, 35, 0.85) !important;
  border-color: rgba(126, 201, 156, 0.5) !important;
  box-shadow: 0 0 15px rgba(95, 181, 125, 0.3) !important;
  outline: none !important;
}
textarea.rc-textarea::placeholder {
  color: rgba(126, 201, 156, 0.4) !important;
}
textarea.rc-textarea::selection {
  background: rgba(95, 181, 125, 0.3) !important;
  color: #e8f8f5 !important;
}
/* 字数统计 */
div.bg-gray-100.text-gray-500 {
  background: rgba(26, 13, 31, 0.5) !important;
  color: #7ec99c !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  border-radius: 6px !important;
}
/* 发送评论按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
  background: linear-gradient(135deg, rgba(74, 157, 111, 0.3) 0%, rgba(31, 15, 40, 0.8) 100%) !important;
  border: 1px solid rgba(95, 181, 125, 0.5) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 15px rgba(95, 181, 125, 0.25) !important;
  transition: all 0.35s ease !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover {
  background: linear-gradient(135deg, rgba(95, 181, 125, 0.4) 0%, rgba(45, 25, 55, 0.95) 100%) !important;
  border-color: rgba(126, 201, 156, 0.7) !important;
  box-shadow: 
    0 0 25px rgba(95, 181, 125, 0.5),
    0 0 40px rgba(74, 157, 111, 0.3),
    inset 0 0 15px rgba(95, 181, 125, 0.15) !important;
  transform: scale(1.08) translateY(-2px) !important;
}
/* 发送按钮图标 */
div[data-state="closed"] svg[data-icon="Send03"] {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 8px rgba(95, 181, 125, 0.4)) !important;
  transition: all 0.3s ease !important;
}
div.cursor-pointer.group:hover svg[data-icon="Send03"] {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 15px rgba(95, 181, 125, 0.7)) !important;
  transform: translateX(3px) !important;
}
/* 分割线 */
div.style_divider__mW0YX {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(95, 181, 125, 0.3) 50%, 
    transparent 100%) !important;
  height: 1px !important;
  opacity: 0.6 !important;
}
/* 排序按钮容器 */
.MuiStack-root.css-1dmzxoz {
  gap: 8px !important;
}
/* 排序按钮 - 已选中 */
button.MuiButton-containedPrimary {
  background: linear-gradient(135deg, rgba(95, 181, 125, 0.35) 0%, rgba(45, 25, 55, 0.9) 100%) !important;
  border: 1px solid rgba(95, 181, 125, 0.7) !important;
  border-radius: 10px !important;
  color: #e8f8f5 !important;
  box-shadow: 
    0 0 18px rgba(95, 181, 125, 0.4),
    0 0 30px rgba(74, 157, 111, 0.25),
    inset 0 0 12px rgba(95, 181, 125, 0.15) !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  transition: all 0.3s ease !important;
  animation: bio-glow 3s ease-in-out infinite !important;
}
button.MuiButton-containedPrimary:hover {
  box-shadow: 
    0 0 25px rgba(95, 181, 125, 0.6),
    0 0 45px rgba(74, 157, 111, 0.35) !important;
  transform: scale(1.05) !important;
}
/* 排序按钮 - 未选中 */
button.MuiButton-outlinedPrimary {
  background: rgba(31, 15, 40, 0.6) !important;
  border: 1px solid rgba(95, 181, 125, 0.35) !important;
  border-radius: 10px !important;
  color: #b8f5cd !important;
  box-shadow: 0 0 10px rgba(95, 181, 125, 0.15) !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  transition: all 0.3s ease !important;
}
button.MuiButton-outlinedPrimary:hover {
  background: rgba(45, 25, 55, 0.8) !important;
  border-color: rgba(126, 201, 156, 0.6) !important;
  color: #e8f8f5 !important;
  box-shadow: 0 0 20px rgba(95, 181, 125, 0.3) !important;
  transform: scale(1.05) !important;
}
/* 评论列表容器 */
div.p-3.overflow-y-auto {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(95, 181, 125, 0.4) rgba(26, 13, 31, 0.5) !important;
}
div.p-3.overflow-y-auto::-webkit-scrollbar {
  width: 8px !important;
}
div.p-3.overflow-y-auto::-webkit-scrollbar-track {
  background: rgba(26, 13, 31, 0.5) !important;
  border-radius: 4px !important;
}
div.p-3.overflow-y-auto::-webkit-scrollbar-thumb {
  background: rgba(95, 181, 125, 0.4) !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
}
div.p-3.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: rgba(95, 181, 125, 0.6) !important;
  box-shadow: 0 0 8px rgba(95, 181, 125, 0.5) !important;
}
/* 评论项 */
div.group.ml-0 {
  background: rgba(31, 15, 40, 0.4) !important;
  border: 1px solid rgba(95, 181, 125, 0.2) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.35s ease !important;
}
div.group.ml-0:hover {
  background: rgba(45, 25, 55, 0.6) !important;
  border-color: rgba(126, 201, 156, 0.4) !important;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(95, 181, 125, 0.2) !important;
  transform: translateY(-2px) !important;
}
/* 用户头像 */
div.group img.rounded-full {
  border: 2px solid rgba(95, 181, 125, 0.4) !important;
  box-shadow: 0 0 12px rgba(95, 181, 125, 0.3) !important;
  transition: all 0.3s ease !important;
}
div.group:hover img.rounded-full {
  border-color: rgba(126, 201, 156, 0.7) !important;
  box-shadow: 0 0 18px rgba(95, 181, 125, 0.5) !important;
  transform: scale(1.05) !important;
}
/* 用户名 */
div.text-sm.text-grey-600 span.font-bold {
  color: #b8f5cd !important;
  text-shadow: 0 0 6px rgba(95, 181, 125, 0.3) !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
/* "（你）"标签 */
span.text-\[10px\] {
  color: #7ec99c !important;
  background: rgba(95, 181, 125, 0.15) !important;
  border: 1px solid rgba(95, 181, 125, 0.3) !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
/* 评论内容 */
div.break-all {
  color: #b8f5cd !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  line-height: 1.6 !important;
}
/* 时间戳 */
div.text-xs.text-grey-600 {
  color: rgba(126, 201, 156, 0.6) !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}
/* 点赞按钮 */
button.text-gray-400 {
  background: rgba(31, 15, 40, 0.5) !important;
  border: 1px solid rgba(95, 181, 125, 0.25) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  color: #7ec99c !important;
  transition: all 0.3s ease !important;
}
button.text-gray-400:hover {
  background: rgba(45, 25, 55, 0.7) !important;
  border-color: rgba(126, 201, 156, 0.5) !important;
  box-shadow: 0 0 15px rgba(95, 181, 125, 0.3) !important;
  transform: scale(1.1) !important;
}
/* 点赞按钮图标 */
button.text-gray-400 svg {
  color: #7ec99c !important;
  filter: drop-shadow(0 0 5px rgba(95, 181, 125, 0.3)) !important;
  transition: all 0.3s ease !important;
}
button.text-gray-400:hover svg {
  color: #5fb57d !important;
  filter: drop-shadow(0 0 10px rgba(95, 181, 125, 0.6)) !important;
}
/* 回复文字 */
span.cursor-pointer {
  color: #7ec99c !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  transition: all 0.3s ease !important;
}
span.cursor-pointer:hover {
  color: #5fb57d !important;
  text-shadow: 0 0 8px rgba(95, 181, 125, 0.5) !important;
  text-decoration: underline !important;
}
/* 回复区域边框 */
div.ml-8.border-l {
  border-left: 2px solid rgba(95, 181, 125, 0.35) !important;
  padding-left: 12px !important;
  margin-left: 20px !important;
  position: relative !important;
}
div.ml-8.border-l::before {
  content: '' !important;
  position: absolute !important;
  left: -2px !important;
  top: 0 !important;
  width: 2px !important;
  height: 100% !important;
  background: linear-gradient(180deg, 
    rgba(95, 181, 125, 0.5) 0%, 
    rgba(74, 157, 111, 0.3) 50%,
    rgba(95, 181, 125, 0.5) 100%) !important;
  animation: creep-flow 4s linear infinite !important;
}
/* 隐藏顶部颜色装饰条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}
/* 输出框（AI回复）- 虫巢紫样式 */
.bg-gray-100\/90.relative.inline-block {
    background: radial-gradient(ellipse at 30% 40%, #1a0d28 0%, #0d0618 100%) !important;
    border: none !important;
    border-radius: 25px 15px 30px 20px !important;
    box-shadow: 
        0 0 20px rgba(107, 45, 122, 0.6),
        0 0 40px rgba(139, 58, 158, 0.4),
        inset 0 0 60px rgba(107, 45, 122, 0.15) !important;
    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;
    transition: box-shadow 0.3s ease !important;
}
/* 输出框内文字颜色 */
.bg-gray-100\/90.relative.inline-block .markdown-body {
    color: #e8dff5 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
}
/* 输出框底部附加元素 */
.bg-gray-100\/90.relative.inline-block .MuiButtonBase-root.MuiButton-root {
    color: #d4c5e0 !important;
}
.bg-gray-100\/90.relative.inline-block .MuiTypography-root.MuiTypography-body2 {
    color: #d4c5e0 !important;
}
.bg-gray-100\/90.relative.inline-block .text-orange-500 {
    color: #c49fd1 !important;
}
/* 输出框绿色发光囊泡 - 囊泡1 */
.bg-gray-100\/90.relative.inline-block::before {
    content: '' !important;
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    background: radial-gradient(circle, #39ff14 0%, rgba(57, 255, 20, 0.3) 70%, transparent 100%) !important;
    border-radius: 50% !important;
    top: 15% !important;
    right: 8% !important;
    z-index: 0 !important;
    box-shadow: 
        0 0 10px #39ff14,
        0 0 20px rgba(57, 255, 20, 0.5) !important;
    animation: vesicle-pulse-1 2.1s ease-in-out infinite !important;
    pointer-events: none !important;
}
/* 输出框绿色发光囊泡 - 囊泡2 */
.bg-gray-100\/90.relative.inline-block::after {
    content: '' !important;
    position: absolute !important;
    width: 8px !important;
    height: 8px !important;
    background: radial-gradient(circle, #39ff14 0%, rgba(57, 255, 20, 0.3) 70%, transparent 100%) !important;
    border-radius: 50% !important;
    bottom: 25% !important;
    left: 5% !important;
    z-index: 0 !important;
    box-shadow: 
        0 0 8px #39ff14,
        0 0 15px rgba(57, 255, 20, 0.4) !important;
    animation: vesicle-pulse-2 1.8s ease-in-out infinite !important;
    pointer-events: none !important;
}
/* 囊泡呼吸动画 */
@keyframes vesicle-pulse-1 {
    0%, 100% { opacity: 0.6; filter: brightness(0.8); }
    50% { opacity: 1; filter: brightness(1.2); }
}
@keyframes vesicle-pulse-2 {
    0%, 100% { opacity: 0.7; filter: brightness(0.85); }
    50% { opacity: 1; filter: brightness(1.15); }
}
/* 输入框（User消息）- 卵泡绿样式 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    background: #330B4F !important;
    border: none !important;
    border-radius: 20px 28px 18px 32px !important;
    box-shadow: 
        0 0 25px rgba(107, 45, 122, 0.7),
        0 0 45px rgba(139, 58, 158, 0.5),
        0 0 60px rgba(107, 45, 122, 0.3),
        inset 0 0 30px rgba(127, 255, 0, 0.3) !important;
    animation: user-box-glow 2.5s ease-in-out infinite !important;
    isolation: isolate !important;
}
/* 输入框内文字颜色 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .markdown-body {
    color: #66DE21 !important;
    background: transparent !important;
    font-weight: 500 !important;
}
/* 输入框底部附加元素 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .MuiButtonBase-root.MuiButton-root {
    color: #66DE21 !important;
}
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .MuiTypography-root.MuiTypography-body2 {
    color: #66DE21 !important;
}
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .text-orange-500 {
    color: #2d0a1f !important;
}
/* 输入框边缘发光呼吸动画 */
@keyframes user-box-glow {
    0%, 100% { 
        box-shadow: 
            0 0 25px rgba(107, 45, 122, 0.7),
            0 0 45px rgba(139, 58, 158, 0.5),
            0 0 60px rgba(107, 45, 122, 0.3),
            inset 0 0 30px rgba(127, 255, 0, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(107, 45, 122, 0.85),
            0 0 55px rgba(139, 58, 158, 0.65),
            0 0 75px rgba(107, 45, 122, 0.4),
            inset 0 0 35px rgba(127, 255, 0, 0.4);
    }
}
/* 低动效模式适配 */
@media(prefers-reduced-motion: reduce) {
    .bg-gray-100\/90.relative.inline-block::before,
    .bg-gray-100\/90.relative.inline-block::after {
        animation-duration: 4s !important;
    }
    .bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
        animation-duration: 5s !important;
    }
}
/* 移动端适配 */
@media(max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block::before {
        width: 10px !important;
        height: 10px !important;
    }
    .bg-gray-100\/90.relative.inline-block::after {
        width: 7px !important;
        height: 7px !important;
    }
    .bg-gray-100\/90.relative.inline-block {
        border-radius: 20px 12px 24px 16px !important;
    }
    .bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
        border-radius: 16px 22px 14px 26px !important;
    }
}
ai {
  font-family: Consolas, "Courier New", monospace, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #e0e0e0;
}
/* ==================== 模块1: 时间地点模块 ==================== */
tsec[s="loc"] {
  display: block;
  box-sizing: border-box; 
  overflow: hidden; 
  position: relative;
  background: linear-gradient(135deg, rgba(57,255,20,0.03) 0%, rgba(139,47,90,0.05) 100%);
  border: 3px solid #39FF14;
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
  box-shadow: 0 0 20px rgba(57,255,20,0.4), inset 0 0 30px rgba(57,255,20,0.08);
  animation: locPulse 4s ease-in-out infinite;
  overflow: hidden;
}
tsec[s="loc"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(57,255,20,0.15) 2px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(57,255,20,0.15) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(57,255,20,0.15) 2px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(57,255,20,0.15) 2px, transparent 2px);
  background-size: 100px 100px, 150px 150px, 120px 120px, 180px 180px;
  background-position: 0 0, 30px 30px, 60px 10px, 10px 60px;
  pointer-events: none;
  animation: sporeFloat 8s linear infinite;
  opacity: 0.6;
}
tsec[s="loc"]::after {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(57,255,20,0.3) 20%, 
    transparent 40%, 
    transparent 60%, 
    rgba(57,255,20,0.3) 80%, 
    transparent 100%);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
tsec[s="loc"]:hover::after {
  opacity: 1;
  animation: neuralScan 2s linear infinite;
}
tsec[s="loc"] > hd {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #39FF14;
  text-shadow: 0 0 8px rgba(57,255,20,0.8);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
tsec[s="loc"] details {
  position: relative;
  z-index: 1;
}
tsec[s="loc"] summary {
  cursor: pointer;
  padding: 6px 8px;
  background: rgba(57,255,20,0.1);
  border-left: 3px solid #39FF14;
  margin: 8px 0;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
tsec[s="loc"] summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(57,255,20,0.3), transparent);
  transition: width 0.5s;
}
tsec[s="loc"] summary:hover::before {
  width: 100%;
}
tsec[s="loc"] summary:hover {
  background: rgba(57,255,20,0.15);
  padding-left: 12px;
}
tsec[s="loc"] p {
  margin: 6px 0;
  padding: 4px 0;
}
tsec[s="loc"] p[t]::before {
  content: "◆ " attr(t) " ";
  color: #39FF14;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(57,255,20,0.6);
}
tsec[s="loc"] d {
  display: inline-block;
  margin-right: 12px;
  padding: 2px 6px;
  background: rgba(74,14,31,0.3);
  border-radius: 3px;
  border-left: 2px solid rgba(57,255,20,0.5);
}
tsec[s="loc"] lv {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  background: rgba(57,255,20,0.2);
  color: #39FF14;
  text-shadow: 0 0 4px rgba(57,255,20,0.8);
}
tsec[s="loc"] link[ok] {
  color: #39FF14;
  font-weight: bold;
  animation: linkPulse 3s ease-in-out infinite;
}
tsec[s="loc"] link[fail] {
  color: #ff3939;
  font-weight: bold;
  animation: linkPulse 3s ease-in-out infinite 0.5s;
}
tsec[s="loc"] link[lag] {
  color: #D4AF37;
  font-weight: bold;
  animation: linkPulse 3s ease-in-out infinite 1s;
}
@keyframes locPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(57,255,20,0.4), inset 0 0 30px rgba(57,255,20,0.08); }
  50% { box-shadow: 0 0 30px rgba(57,255,20,0.6), inset 0 0 40px rgba(57,255,20,0.12); }
}
@keyframes sporeFloat {
  0% { transform: translate(0, 0); }
  50% { transform: translate(5px, 5px); }
  100% { transform: translate(0, 0); }
}
@keyframes neuralScan {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
@keyframes linkPulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.6; filter: brightness(1.4); }
}
/* ==================== 模块2: 个体状态栏 ==================== */
tsec[s="unit"] {
  display: block; 
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(139,47,90,0.08) 0%, rgba(74,14,31,0.12) 100%);
  border: 3px solid;
  border-image: linear-gradient(135deg, #8B2F5A 0%, #4A0E1F 100%) 1;
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
  box-shadow: 0 0 25px rgba(139,47,90,0.5), inset 0 0 35px rgba(139,47,90,0.1);
  animation: unitBreath 5s ease-in-out infinite;
  overflow: hidden;
  transition: all 0.3s;
}
tsec[s="unit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at center, transparent 30%, rgba(139,47,90,0.15) 31%, transparent 32%),
    radial-gradient(ellipse at 20% 40%, transparent 15%, rgba(139,47,90,0.2) 16%, transparent 17%),
    radial-gradient(ellipse at 80% 60%, transparent 15%, rgba(139,47,90,0.2) 16%, transparent 17%),
    linear-gradient(45deg, transparent 48%, rgba(139,47,90,0.15) 49%, rgba(139,47,90,0.15) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(139,47,90,0.15) 49%, rgba(139,47,90,0.15) 51%, transparent 52%);
  background-size: 80px 80px, 120px 120px, 100px 100px, 60px 60px, 60px 60px;
  pointer-events: none;
  opacity: 0.7;
  animation: veinPulse 6s ease-in-out infinite;
}
tsec[s="unit"]::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,47,90,0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: heartbeat 4s ease-in-out infinite;
  opacity: 0;
}
tsec[s="unit"]:hover {
  transform: scale(1.01);
  box-shadow: 
    0 0 35px rgba(139,47,90,0.7), 
    inset 0 0 40px rgba(139,47,90,0.15),
    0 4px 20px rgba(139,47,90,0.4);
}
tsec[s="unit"] > hd {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #8B2F5A;
  text-shadow: 0 0 10px rgba(139,47,90,0.9);
  margin-bottom: 8px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
tsec[s="unit"] > hd em {
  color: #D4AF37;
  font-style: normal;
  text-shadow: 0 0 8px rgba(212,175,55,0.8);
}
tsec[s="unit"] details {
  position: relative;
  z-index: 1;
}
tsec[s="unit"] summary {
  cursor: pointer;
  padding: 6px 8px;
  background: rgba(139,47,90,0.15);
  border-left: 3px solid #8B2F5A;
  margin: 8px 0;
  transition: all 0.3s;
}
tsec[s="unit"] summary:hover {
  background: rgba(139,47,90,0.25);
  padding-left: 12px;
  box-shadow: 0 2px 8px rgba(139,47,90,0.4);
}
tsec[s="unit"] nm {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #D4AF37;
  text-shadow: 0 0 8px rgba(212,175,55,0.7);
  margin: 8px 0;
  padding: 6px;
  background: rgba(74,14,31,0.3);
  border-left: 4px solid #8B2F5A;
}
tsec[s="unit"] p {
  margin: 6px 0;
  padding: 4px 0;
}
tsec[s="unit"] p[t]::before {
  content: "▸ " attr(t) " ";
  color: #8B2F5A;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(139,47,90,0.7);
}
tsec[s="unit"] d {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 6px;
  background: rgba(74,14,31,0.25);
  border-radius: 3px;
  border-left: 2px solid rgba(139,47,90,0.6);
}
tsec[s="unit"] wn {
  display: block;
  color: #ff6b6b;
  background: rgba(255,57,57,0.1);
  padding: 4px 8px;
  margin: 4px 0;
  border-left: 3px solid #ff3939;
  border-radius: 3px;
  animation: warnBlink 1.5s ease-in-out infinite;
}
tsec[s="unit"] details.ap {
  background: rgba(139,47,90,0.08);
  border: 1px solid rgba(139,47,90,0.3);
  border-radius: 6px;
  padding: 8px;
  margin: 8px 0;
}
tsec[s="unit"] details.ap summary {
  background: rgba(139,47,90,0.2);
  border-left-color: #D4AF37;
}
tsec[s="unit"] bar {
  display: block;
  position: relative;
  height: 24px;
  background: rgba(74,14,31,0.4);
  border: 2px solid #8B2F5A;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
}
tsec[s="unit"] bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: attr(v "%", 0%);
  background: linear-gradient(90deg, #8B2F5A 0%, #D4AF37 100%);
  box-shadow: 0 0 10px rgba(139,47,90,0.8);
  animation: barGrow 3s ease-in-out infinite;
}
tsec[s="unit"] bar[v="0"]::before { width: 0%; }
tsec[s="unit"] bar[v="10"]::before { width: 10%; }
tsec[s="unit"] bar[v="20"]::before { width: 20%; }
tsec[s="unit"] bar[v="30"]::before { width: 30%; }
tsec[s="unit"] bar[v="40"]::before { width: 40%; }
tsec[s="unit"] bar[v="50"]::before { width: 50%; }
tsec[s="unit"] bar[v="60"]::before { width: 60%; }
tsec[s="unit"] bar[v="70"]::before { width: 70%; }
tsec[s="unit"] bar[v="80"]::before { width: 80%; }
tsec[s="unit"] bar[v="90"]::before { width: 90%; }
tsec[s="unit"] bar[v="100"]::before { width: 100%; }
tsec[s="unit"] bar span {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 20px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
  font-size: 12px;
}
tsec[s="unit"] link[ok] {
  color: #39FF14;
  font-weight: bold;
  animation: linkPulse 3s ease-in-out infinite;
}
tsec[s="unit"] link[fail] {
  color: #ff3939;
  font-weight: bold;
  animation: linkPulse 3s ease-in-out infinite 0.5s;
}
tsec[s="unit"] link[lag] {
  color: #D4AF37;
  font-weight: bold;
  animation: linkPulse 3s ease-in-out infinite 1s;
}
@keyframes unitBreath {
  0%, 100% { 
    box-shadow: 0 0 25px rgba(139,47,90,0.5), inset 0 0 35px rgba(139,47,90,0.1);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 35px rgba(139,47,90,0.7), inset 0 0 45px rgba(139,47,90,0.15);
    filter: brightness(1.1);
  }
}
@keyframes veinPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.9; }
}
@keyframes heartbeat {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
  10% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.05); }
  20% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes warnBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; background: rgba(255,57,57,0.2); }
}
@keyframes barGrow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}
/* ==================== 模块3: 虫群面板 ==================== */
tsec[s="cmd"] {
  display: block;
  box-sizing: border-box;
  overflow: hidden; 
  position: relative;
  background: linear-gradient(135deg, rgba(139,47,90,0.1) 0%, rgba(106,13,173,0.08) 100%);
  border: 2px solid;
  border-image: linear-gradient(135deg, #8B2F5A 0%, #D4AF37 50%, #8B2F5A 100%) 1;
  border-radius: 6px;
  padding: 10px;
  margin: 12px 0;
  box-shadow: 0 0 30px rgba(139,47,90,0.6), inset 0 0 40px rgba(139,47,90,0.12);
  animation: cmdPulse 4.5s ease-in-out infinite;
  overflow: hidden;
}
tsec[s="cmd"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(212,175,55,0.8) 50%, 
    transparent 100%);
  animation: scanLine 3s linear infinite;
  box-shadow: 0 0 10px rgba(212,175,55,0.6);
}
tsec[s="cmd"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(0deg, transparent 48%, rgba(139,47,90,0.12) 49%, rgba(139,47,90,0.12) 51%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(139,47,90,0.12) 49%, rgba(139,47,90,0.12) 51%, transparent 52%),
    repeating-linear-gradient(45deg, 
      transparent, 
      transparent 20px, 
      rgba(212,175,55,0.08) 20px, 
      rgba(212,175,55,0.08) 22px);
  background-size: 60px 60px, 60px 60px, 80px 80px;
  pointer-events: none;
  opacity: 0.6;
}
tsec[s="cmd"]:hover {
  animation: cmdShake 0.5s ease-in-out;
  box-shadow: 
    0 0 40px rgba(139,47,90,0.8), 
    inset 0 0 50px rgba(139,47,90,0.18),
    0 0 20px rgba(212,175,55,0.5);
}
tsec[s="cmd"] > hd {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #8B2F5A;
  text-shadow: 0 0 12px rgba(139,47,90,1);
  margin-bottom: 8px;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 1;
}
tsec[s="cmd"] > hd em {
  color: #D4AF37;
  font-style: normal;
  text-shadow: 0 0 10px rgba(212,175,55,0.9);
}
tsec[s="cmd"] details {
  position: relative;
  z-index: 1;
}
tsec[s="cmd"] summary {
  cursor: pointer;
  padding: 6px 8px;
  background: rgba(139,47,90,0.2);
  border-left: 4px solid #8B2F5A;
  margin: 8px 0;
  transition: all 0.3s;
  position: relative;
}
tsec[s="cmd"] summary::after {
  content: "▼";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #D4AF37;
  transition: transform 0.3s;
}
tsec[s="cmd"] details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}
tsec[s="cmd"] summary:hover {
  background: rgba(139,47,90,0.3);
  padding-left: 14px;
  box-shadow: 0 2px 10px rgba(139,47,90,0.5);
}
tsec[s="cmd"] p {
  margin: 6px 0;
  padding: 4px 0;
}
tsec[s="cmd"] p[t]::before {
  content: "◢ " attr(t) " ";
  color: #D4AF37;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(212,175,55,0.8);
}
tsec[s="cmd"] d {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 6px;
  background: rgba(74,14,31,0.3);
  border-radius: 3px;
  border-left: 2px solid rgba(212,175,55,0.6);
}
tsec[s="cmd"] wn {
  display: block;
  color: #ff3939;
  background: rgba(255,57,57,0.15);
  padding: 6px 10px;
  margin: 4px 0;
  border-left: 4px solid #ff3939;
  border-radius: 3px;
  position: relative;
  animation: alertBlink 1.5s ease-in-out infinite;
}
tsec[s="cmd"] wn::before {
  content: "⚠";
  position: absolute;
  left: -20px;
  color: #ff3939;
  font-size: 16px;
  animation: alertShake 0.5s ease-in-out infinite;
}
tsec[s="cmd"] details.res,
tsec[s="cmd"] details.intel {
  background: rgba(74,14,31,0.2);
  border: 2px solid rgba(139,47,90,0.4);
  border-radius: 6px;
  padding: 8px;
  margin: 8px 0;
  animation: subPulse 5s ease-in-out infinite;
}
tsec[s="cmd"] details.res summary,
tsec[s="cmd"] details.intel summary {
  background: rgba(139,47,90,0.25);
  border-left-color: #D4AF37;
}
tsec[s="cmd"] bar {
  display: block;
  position: relative;
  height: 20px;
  background: rgba(74,14,31,0.5);
  border: 2px solid #8B2F5A;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
}
tsec[s="cmd"] bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #8B2F5A 0%, #D4AF37 50%, #39FF14 100%);
  box-shadow: 0 0 8px rgba(139,47,90,0.8);
  animation: barFlicker 2s ease-in-out infinite;
}
tsec[s="cmd"] bar[v="0"]::before { width: 0%; }
tsec[s="cmd"] bar[v="10"]::before { width: 10%; }
tsec[s="cmd"] bar[v="20"]::before { width: 20%; }
tsec[s="cmd"] bar[v="30"]::before { width: 30%; }
tsec[s="cmd"] bar[v="40"]::before { width: 40%; }
tsec[s="cmd"] bar[v="50"]::before { width: 50%; }
tsec[s="cmd"] bar[v="60"]::before { width: 60%; }
tsec[s="cmd"] bar[v="70"]::before { width: 70%; }
tsec[s="cmd"] bar[v="80"]::before { width: 80%; }
tsec[s="cmd"] bar[v="90"]::before { width: 90%; }
tsec[s="cmd"] bar[v="100"]::before { width: 100%; }
tsec[s="cmd"] bar span {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 16px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,0.9);
  font-size: 11px;
}
tsec[s="cmd"] lv {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  background: rgba(139,47,90,0.3);
  color: #ff6b6b;
  text-shadow: 0 0 6px rgba(255,57,57,0.8);
}
tsec[s="cmd"] link[ok] {
  color: #39FF14;
  font-weight: bold;
  animation: linkPulse 3s ease-in-out infinite;
}
tsec[s="cmd"] link[fail] {
  color: #ff3939;
  font-weight: bold;
  animation: linkPulse 3s ease-in-out infinite 0.5s;
}
tsec[s="cmd"] link[lag] {
  color: #D4AF37;
  font-weight: bold;
  animation: linkPulse 3s ease-in-out infinite 1s;
}
@keyframes cmdPulse {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(139,47,90,0.6), inset 0 0 40px rgba(139,47,90,0.12);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(139,47,90,0.8), inset 0 0 50px rgba(139,47,90,0.18);
    filter: brightness(1.15);
  }
}
@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes cmdShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
}
@keyframes alertBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; box-shadow: 0 0 15px rgba(255,57,57,0.6); }
}
@keyframes alertShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}
@keyframes subPulse {
  0%, 100% { border-color: rgba(139,47,90,0.4); }
  50% { border-color: rgba(139,47,90,0.6); }
}
@keyframes barFlicker {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}
/* ==================== 模块4: 记忆区模块 ==================== */
mch {
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(106,13,173,0.1) 0%, rgba(139,47,90,0.08) 100%);
  border: 3px solid;
  border-image: linear-gradient(90deg, #6A0DAD 0%, #8B2F5A 50%, #6A0DAD 100%) 1;
  border-radius: 6px;
  padding: 10px;
  margin: 12px 0;
  box-shadow: 0 0 25px rgba(106,13,173,0.5), inset 0 0 35px rgba(106,13,173,0.08);
  animation: memPulse 4s ease-in-out infinite;
  overflow: hidden;
}
mch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, 
      transparent, 
      transparent 2px, 
      rgba(106,13,173,0.08) 2px, 
      rgba(106,13,173,0.08) 4px);
  pointer-events: none;
  animation: matrixRain 10s linear infinite;
  opacity: 0.6;
}
mch::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(106,13,173,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(139,47,90,0.12) 0%, transparent 50%);
  pointer-events: none;
 animation: psionicWave 8s ease-in-out infinite;
}
mch > hd {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #6A0DAD;
  text-shadow: 0 0 10px rgba(106,13,173,0.9);
  margin-bottom: 8px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
mch > hd em {
  color: #D4AF37;
  font-style: normal;
  text-shadow: 0 0 8px rgba(212,175,55,0.8);
  background: rgba(212,175,55,0.15);
  padding: 2px 6px;
  border-radius: 3px;
}
mch details {
  position: relative;
  z-index: 1;
  margin: 8px 0;
}
mch summary {
  cursor: pointer;
  padding: 6px 8px;
  background: rgba(106,13,173,0.15);
  border-left: 3px solid #6A0DAD;
  margin: 6px 0;
  transition: all 0.3s;
  position: relative;
}
mch summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #6A0DAD, #D4AF37);
  box-shadow: 0 0 8px rgba(106,13,173,0.8);
  animation: dataFlow 2s linear infinite;
}
mch summary:hover {
  background: rgba(106,13,173,0.25);
  padding-left: 12px;
  box-shadow: 0 2px 10px rgba(106,13,173,0.6);
}
mch row {
  display: grid;
  grid-template-columns: 40px auto auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  margin: 4px 0;
  background: rgba(74,14,31,0.25);
  border-left: 2px solid rgba(106,13,173,0.5);
  border-radius: 3px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
mch row::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(106,13,173,0.3), transparent);
  transition: left 0.5s;
}
mch row:hover::before {
  left: 100%;
}
mch row:hover {
  background: rgba(106,13,173,0.2);
  border-left-color: #D4AF37;
  box-shadow: 0 0 15px rgba(106,13,173,0.4);
}
mch row:nth-child(odd) {
  animation: scanFadeIn 0.5s ease-out;
}
mch row:nth-child(even) {
  animation: scanFadeIn 0.5s ease-out 0.1s;
  animation-fill-mode: backwards;
}
mch row[lt] {
  background: rgba(212,175,55,0.15);
  border-left: 3px solid #D4AF37;
  box-shadow: 0 0 10px rgba(212,175,55,0.3);
}
mch row[lt]:hover {
  background: rgba(212,175,55,0.25);
  box-shadow: 0 0 20px rgba(212,175,55,0.5);
}
mch n {
  display: block;
  font-weight: bold;
  color: #6A0DAD;
  text-align: center;
  background: rgba(106,13,173,0.2);
  padding: 4px;
  border-radius: 3px;
  text-shadow: 0 0 6px rgba(106,13,173,0.8);
  position: relative;
}
mch n::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #6A0DAD;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(106,13,173,0.9);
  animation: indicatorBlink 2s ease-in-out infinite;
}
mch row[lt] n {
  color: #D4AF37;
  background: rgba(212,175,55,0.25);
  text-shadow: 0 0 8px rgba(212,175,55,0.9);
}
mch row[lt] n::before {
  background: #D4AF37;
  box-shadow: 0 0 8px rgba(212,175,55,1);
}
mch tm {
  display: block;
  color: #8B2F5A;
  font-size: 12px;
  font-weight: bold;
}
mch sc {
  display: block;
  color: #6A0DAD;
  font-size: 12px;
}
mch ev {
  display: block;
  color: #e0e0e0;
  font-size: 13px;
  line-height: 1.4;
}
@keyframes memPulse {
  0%, 100% { 
    box-shadow: 0 0 25px rgba(106,13,173,0.5), inset 0 0 35px rgba(106,13,173,0.08);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 35px rgba(106,13,173,0.7), inset 0 0 45px rgba(106,13,173,0.12);
    filter: brightness(1.1);
  }
}
@keyframes matrixRain {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}
@keyframes psionicWave {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
@keyframes dataFlow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(500%); }
}
@keyframes scanFadeIn {
  0% { 
    opacity: 0; 
    transform: translateX(-20px);
    filter: blur(2px);
  }
  100% { 
    opacity: 1; 
    transform: translateX(0);
    filter: blur(0);
  }
}
@keyframes indicatorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  ai {
    font-size: 13px;
  }
  tsec[s="loc"],
  tsec[s="unit"],
  tsec[s="cmd"],
  mch {
    padding: 8px;
    margin: 10px 0;
  }
  tsec[s="loc"]::before,
  tsec[s="unit"]::before,
  tsec[s="cmd"]::after {
    opacity: 0.4;
  }
  tsec summary {
    padding: 5px 6px;
  }
  tsec d {
    margin-right: 8px;
    padding: 2px 4px;
    font-size: 12px;
  }
  mch row {
    grid-template-columns: 35px 100px 1fr;
    gap: 6px;
    padding: 5px 6px;
  }
  mch sc {
    display: none;
  }
  mch n {
    font-size: 11px;
    padding: 3px;
  }
  mch tm,
  mch ev {
    font-size: 11px;
  }
}
/* ==================== 触屏设备交互优化 ==================== */
@media (hover: none) {
  tsec[s="loc"]:active {
    transform: scale(0.99);
  }
  tsec[s="unit"]:active {
    transform: scale(1.01);
  }
  tsec[s="cmd"]:active {
    animation: cmdShake 0.3s ease-in-out;
  }
  tsec summary:active,
  mch summary:active {
    background: rgba(139,47,90,0.3);
  }
  mch row:active {
    background: rgba(106,13,173,0.25);
  }
}