/* =========================================
   贱狗模拟器 · 暗夜霓虹粉主题
   黑底 + 霓虹粉 + 心跳脉冲nsfw模式
   ========================================= */

/* ========== 隐藏区 ========== */
cot, rwyc, shd {
  display: none !important;
}

/* ========== 顶部状态栏 ========== */
stp {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(20, 8, 14, 0.85), rgba(35, 12, 22, 0.85));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 77, 141, 0.45);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 77, 141, 0.15), inset 0 0 20px rgba(255, 77, 141, 0.05);
}

sti {
  display: block;
  flex: 1 1 auto;
  min-width: 90px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 133, 176, 0.35);
  border-radius: 8px;
  font-size: 13px;
  color: #ffd6e3;
  text-align: center;
  text-shadow: 0 0 6px rgba(255, 77, 141, 0.4);
  transition: all 0.25s ease;
}

sti:hover {
  background: rgba(255, 77, 141, 0.12);
  border-color: #ff4d8d;
  box-shadow: 0 0 12px rgba(255, 77, 141, 0.5);
}

/* ========== 正文容器 ========== */
tb {
  display: block;
  margin: 16px 0;
  padding: 18px 20px;
  background: linear-gradient(160deg, rgba(15, 6, 11, 0.7), rgba(28, 10, 18, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 77, 141, 0.3);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

tb p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.85;
  color: #f0d8e2;
  letter-spacing: 0.3px;
}

tb p:last-child { margin-bottom: 0; }

/* 女王对话样式 */
tb ll {
  display: inline;
  padding: 1px 6px;
  margin: 0 2px;
  color: #ffafd0;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 77, 141, 0.6);
  border-bottom: 1px dashed rgba(255, 77, 141, 0.4);
}

/* nsfw 模式：心跳脉冲红光边 */
tb[data-mode="nsfw"] {
  border-color: #ff4d8d;
  animation: heartbeat 2.4s ease-in-out infinite;
}

tb[data-mode="nsfw"] p {
  color: #ffe0ec;
}

@keyframes heartbeat {
  0%, 100% { 
    box-shadow: 0 0 14px rgba(255, 77, 141, 0.3), inset 0 0 20px rgba(255, 77, 141, 0.05);
  }
  20% { 
    box-shadow: 0 0 28px rgba(255, 77, 141, 0.7), inset 0 0 30px rgba(255, 77, 141, 0.15);
  }
  40% { 
    box-shadow: 0 0 18px rgba(255, 77, 141, 0.4), inset 0 0 22px rgba(255, 77, 141, 0.08);
  }
  60% { 
    box-shadow: 0 0 32px rgba(255, 77, 141, 0.8), inset 0 0 34px rgba(255, 77, 141, 0.18);
  }
}

/* ========== 阿卡夏纪录 ========== */
details.ab {
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(18, 7, 12, 0.75), rgba(30, 10, 20, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 77, 141, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

details.ab > summary {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ff85b0;
  cursor: pointer;
  background: rgba(255, 77, 141, 0.08);
  border-bottom: 1px solid rgba(255, 77, 141, 0.25);
  list-style: none;
  text-shadow: 0 0 8px rgba(255, 77, 141, 0.5);
  transition: all 0.25s ease;
}

details.ab > summary:hover {
  background: rgba(255, 77, 141, 0.18);
  color: #ffafd0;
}

details.ab > summary::-webkit-details-marker { display: none; }

details.ab > summary::before {
  content: '✦ ';
  color: #ff4d8d;
  margin-right: 8px;
  text-shadow: 0 0 10px #ff4d8d;
}

details.ai {
  margin: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 133, 176, 0.3);
  border-radius: 8px;
  max-height: 280px;
  overflow-y: auto;
}

details.ai::-webkit-scrollbar { width: 6px; }
details.ai::-webkit-scrollbar-track { background: transparent; }
details.ai::-webkit-scrollbar-thumb { 
  background: rgba(255, 77, 141, 0.4); 
  border-radius: 3px; 
}
details.ai::-webkit-scrollbar-thumb:hover { background: #ff4d8d; }

details.ai > summary {
  padding: 8px 12px;
  font-size: 13px;
  color: #ffafd0;
  cursor: pointer;
  list-style: none;
  background: rgba(255, 77, 141, 0.1);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
}

details.ai > summary::-webkit-details-marker { display: none; }
details.ai > summary::before { 
  content: '› '; 
  color: #ff4d8d; 
  margin-right: 6px; 
}

details.ai p { 
  margin: 8px 12px; 
  font-size: 12px; 
  color: #e8c0d0; 
}

/* 表格 */
details.ai table {
  width: calc(100% - 16px);
  margin: 8px;
  border-collapse: collapse;
  font-size: 12px;
}

details.ai th {
  padding: 7px;
  background: rgba(255, 77, 141, 0.18);
  border: 1px solid rgba(255, 77, 141, 0.35);
  color: #ffafd0;
  font-weight: 600;
  text-align: left;
}

details.ai td {
  padding: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 77, 141, 0.2);
  color: #f0d8e2;
}

details.ai hr {
  border: none;
  border-top: 1px dashed rgba(255, 77, 141, 0.3);
  margin: 10px 8px;
}

/* ========== 角色与玩家面板 ========== */
gui { 
  display: block; 
  margin-top: 20px; 
}

ulb {
  display: block;
  margin: 16px 0 10px 0;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 700;
  color: #ff4d8d;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 77, 141, 0.6);
  border-top: 1px solid rgba(255, 77, 141, 0.2);
  border-bottom: 1px solid rgba(255, 77, 141, 0.2);
}

cdu, cdm {
  display: block;
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(20, 8, 14, 0.7), rgba(32, 12, 22, 0.7));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 77, 141, 0.4);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 133, 176, 0.1);
}

cdm {
  border-color: rgba(255, 77, 141, 0.55);
  box-shadow: 0 4px 18px rgba(255, 77, 141, 0.18), inset 0 1px 0 rgba(255, 133, 176, 0.15);
}

cdh {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 77, 141, 0.3);
  font-size: 15px;
  font-weight: 600;
  color: #ffafd0;
  text-shadow: 0 0 10px rgba(255, 77, 141, 0.5);
}

tg {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  background: rgba(255, 77, 141, 0.18);
  border: 1px solid rgba(255, 77, 141, 0.5);
  border-radius: 10px;
  font-size: 12px;
  color: #ffd6e3;
  vertical-align: middle;
}

ifb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 133, 176, 0.25);
  border-radius: 10px;
}

g3 { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 8px; 
}

g1 { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 8px; 
  margin-bottom: 8px; 
}

gi {
  display: block;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 77, 141, 0.3);
  border-radius: 8px;
  font-size: 13px;
  color: #f0d8e2;
  transition: all 0.25s ease;
}

gi:hover {
  background: rgba(255, 77, 141, 0.1);
  border-color: #ff4d8d;
  box-shadow: 0 0 10px rgba(255, 77, 141, 0.3);
}

/* 移动端：g3 自动单列 */
@media (max-width: 480px) {
  g3 { grid-template-columns: repeat(2, 1fr); }
  sti { min-width: 70px; font-size: 12px; }
}

/* ========== 选项框（修复对比度） ========== */
slb {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

slo {
  display: block;
  position: relative;
  padding: 12px 16px 12px 42px;
  background: linear-gradient(90deg, rgba(15, 6, 11, 0.85), rgba(25, 10, 18, 0.85));
  border: 1px solid rgba(255, 77, 141, 0.45);
  border-radius: 10px;
  font-size: 14px;
  color: #ffe6f0;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

slo:hover {
  background: linear-gradient(90deg, rgba(40, 12, 24, 0.95), rgba(60, 18, 36, 0.9));
  border-color: #ff4d8d;
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 0 16px rgba(255, 77, 141, 0.55), inset 0 0 12px rgba(255, 77, 141, 0.1);
  text-shadow: 0 0 8px rgba(255, 77, 141, 0.6);
}

slo::before {
  content: '✧';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff4d8d;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(255, 77, 141, 0.8);
  transition: all 0.3s;
}

slo:hover::before {
  content: '✦';
  color: #ff85b0;
  transform: translateY(-50%) scale(1.3);
  text-shadow: 0 0 14px #ff4d8d, 0 0 24px rgba(255, 77, 141, 0.7);
}

/* =========================================
   贱狗模拟器 · 暗夜霓虹粉聊天框主题
   深色背景 + 霓虹粉边框 + 心跳脉冲动效
   ========================================= */

/* ========== 移除顶部颜色装饰条 ========== */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
  display: none !important;
}

/* ========== 统一聊天框基础样式 ========== */
.bg-gray-100\/90.relative.inline-block {
  background: linear-gradient(160deg, rgba(15, 6, 11, 0.92), rgba(28, 10, 18, 0.92)) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 77, 141, 0.45) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 77, 141, 0.15) !important;
  position: relative !important;
  isolation: isolate !important;
}

/* ========== 霓虹粉星空背景动效（SMIL优先） ========== */
.bg-gray-100\/90.relative.inline-block::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 16px !important;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><radialGradient id="star1"><stop offset="0%" stop-color="%23ff4d8d" stop-opacity="0.9"/><stop offset="100%" stop-color="%23ff4d8d" stop-opacity="0"/></radialGradient></defs><circle cx="10%" cy="15%" r="1.5"><animate attributeName="opacity" values="0.3;1;0.3" dur="2.8s" repeatCount="indefinite"/></circle><circle cx="85%" cy="25%" r="1.2" fill="url(%23star1)"><animate attributeName="opacity" values="0.5;1;0.5" dur="3.5s" repeatCount="indefinite"/></circle><circle cx="30%" cy="70%" r="1" fill="%23ffafd0"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="4.2s" repeatCount="indefinite"/></circle><circle cx="75%" cy="80%" r="1.3" fill="%23ff85b0"><animate attributeName="opacity" values="0.6;1;0.6" dur="3s" repeatCount="indefinite"/></circle></svg>') !important;
  background-size: cover !important;
  opacity: 0.25 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* ========== 聊天框主文本内容 ========== */
.markdown-body {
  color: #f0d8e2 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.85 !important;
  letter-spacing: 0.3px !important;
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}

.markdown-body strong {
  color: #ffafd0 !important;
  font-weight: 600 !important;
}

.markdown-body em {
  color: #ff85b0 !important;
  font-style: italic !important;
}

.markdown-body code {
  background: rgba(255, 77, 141, 0.12) !important;
  border: 1px solid rgba(255, 77, 141, 0.3) !important;
  color: #ffd6e3 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

.markdown-body a {
  color: #ff4d8d !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 77, 141, 0.4) !important;
  transition: all 0.25s ease !important;
}

.markdown-body a:hover {
  color: #ffafd0 !important;
  text-shadow: 0 0 8px rgba(255, 77, 141, 0.6) !important;
}

/* ========== 心跳脉冲动效（NSFW模式触发） ========== */
.bg-gray-100\/90.relative.inline-block[data-nsfw="true"],
.bg-gray-100\/90.relative.inline-block:has([data-nsfw="true"]) {
  border-color: #ff4d8d !important;
  animation: heartbeat-pulse 2.4s ease-in-out infinite !important;
}

@keyframes heartbeat-pulse {
  0%, 100% { 
    box-shadow: 0 0 16px rgba(255, 77, 141, 0.35), inset 0 0 22px rgba(255, 77, 141, 0.08) !important;
  }
  20% { 
    box-shadow: 0 0 32px rgba(255, 77, 141, 0.75), inset 0 0 34px rgba(255, 77, 141, 0.18) !important;
  }
  40% { 
    box-shadow: 0 0 20px rgba(255, 77, 141, 0.45), inset 0 0 24px rgba(255, 77, 141, 0.1) !important;
  }
  60% { 
    box-shadow: 0 0 36px rgba(255, 77, 141, 0.85), inset 0 0 38px rgba(255, 77, 141, 0.22) !important;
  }
}

/* ========== 聊天框底部附加元素 ========== */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
  color: #eaeaea !important;
  font-size: 13px !important;
  transition: all 0.25s ease !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
  color: #ffafd0 !important;
  background: rgba(255, 77, 141, 0.12) !important;
  text-shadow: 0 0 8px rgba(255, 77, 141, 0.5) !important;
}

.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
  color: #eaeaea !important;
  font-size: 12px !important;
}

.text-orange-500 {
  color: #ff85b0 !important;
  font-size: 12px !important;
}

/* ========== 自定义加载动画（SMIL心跳粉点） ========== */
.style_dot-flashing__8L91Q.style_text__zGhNq {
  display: none !important;
}

.flex.items-center.justify-center.w-6.h-5 {
  position: relative !important;
  min-height: 32px !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
  content: '' !important;
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><circle cx="15" cy="15" r="6" fill="%23ff4d8d"><animate attributeName="r" values="4;7;4" dur="1.2s" repeatCount="indefinite"/><animate attributeName="opacity" values="0.5;1;0.5" dur="1.2s" repeatCount="indefinite"/></circle><circle cx="30" cy="15" r="6" fill="%23ff85b0"><animate attributeName="r" values="4;7;4" dur="1.2s" begin="0.3s" repeatCount="indefinite"/><animate attributeName="opacity" values="0.5;1;0.5" dur="1.2s" begin="0.3s" repeatCount="indefinite"/></circle><circle cx="45" cy="15" r="6" fill="%23ffafd0"><animate attributeName="r" values="4;7;4" dur="1.2s" begin="0.6s" repeatCount="indefinite"/><animate attributeName="opacity" values="0.5;1;0.5" dur="1.2s" begin="0.6s" repeatCount="indefinite"/></circle></svg>') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* ========== 移动端适配 ========== */
@media (max-width: 480px) {
  .bg-gray-100\/90.relative.inline-block {
    border-radius: 12px !important;
  }
  
  .markdown-body {
    font-size: 13.5px !important;
  }
  
  .flex.items-center.justify-center.w-6.h-5 {
    min-height: 28px !important;
  }
}

/* ========== 低动效模式 ========== */
@media (prefers-reduced-motion: reduce) {
  .bg-gray-100\/90.relative.inline-block::before {
    animation: none !important;
    opacity: 0.15 !important;
  }
  
  @keyframes heartbeat-pulse {
    0%, 100% { 
      box-shadow: 0 0 20px rgba(255, 77, 141, 0.5) !important;
    }
    50% { 
      box-shadow: 0 0 28px rgba(255, 77, 141, 0.7) !important;
    }
  }
  
  .flex.items-center.justify-center.w-6.h-5::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><circle cx="15" cy="15" r="5" fill="%23ff4d8d" opacity="0.8"/><circle cx="30" cy="15" r="5" fill="%23ff85b0" opacity="0.8"/><circle cx="45" cy="15" r="5" fill="%23ffafd0" opacity="0.8"/></svg>') !important;
  }
}

/* =========================================
   暗夜霓虹粉主题 · 聊天平台界面美化
   深色背景 + 霓虹粉强调 + 心跳脉冲动效
   ========================================= */

/* ========== 顶部栏美化 ========== */
.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(135deg, rgba(20, 8, 14, 0.95), rgba(35, 12, 22, 0.95)) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 77, 141, 0.45) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 77, 141, 0.12) !important;
}

/* 模型选择器容器 */
#ai-model-selector .group.flex.items-center {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 77, 141, 0.35) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  transition: all 0.3s ease !important;
}

#ai-model-selector .group.flex.items-center:hover {
  background: rgba(255, 77, 141, 0.12) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 14px rgba(255, 77, 141, 0.4) !important;
}

/* 模型名称文字 */
#ai-model-selector .truncate.text-\[13px\] {
  color: #ffafd0 !important;
  font-weight: 500 !important;
  text-shadow: 0 0 6px rgba(255, 77, 141, 0.3) !important;
}

/* 下拉箭头 */
#ai-model-selector .shrink-0.flex.items-center svg {
  color: #ff85b0 !important;
  filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.5)) !important;
  transition: transform 0.3s ease !important;
}

#ai-model-selector .group.flex.items-center:hover svg {
  transform: translateY(2px) !important;
}

/* 历史记录图标（移动端） */
.sticky.w-full.top-0 svg.lucide-clock-8 {
  color: #ff85b0 !important;
  filter: drop-shadow(0 0 6px rgba(255, 77, 141, 0.4)) !important;
  transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 svg.lucide-clock-8:hover {
  color: #ffafd0 !important;
  filter: drop-shadow(0 0 10px rgba(255, 77, 141, 0.7)) !important;
}

/* 历史记录未读角标 */
.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
  background: #ff4d8d !important;
  box-shadow: 0 0 8px rgba(255, 77, 141, 0.8) !important;
  animation: badge-pulse 2s ease-in-out infinite !important;
}

@keyframes badge-pulse {
  0%, 100% { 
    box-shadow: 0 0 8px rgba(255, 77, 141, 0.8) !important;
  }
  50% { 
    box-shadow: 0 0 16px rgba(255, 77, 141, 1), 0 0 24px rgba(255, 77, 141, 0.6) !important;
  }
}

/* 音乐按钮 */
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2) {
  background: rgba(255, 77, 141, 0.08) !important;
  border: 1px solid rgba(255, 77, 141, 0.3) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2):hover {
  background: rgba(255, 77, 141, 0.18) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 12px rgba(255, 77, 141, 0.5) !important;
}

.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
  color: #ff85b0 !important;
  filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.4)) !important;
}

/* 移动端设置图标 */
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
  color: #ff85b0 !important;
  filter: drop-shadow(0 0 6px rgba(255, 77, 141, 0.4)) !important;
  transition: all 0.3s ease !important;
}

.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
  color: #ffafd0 !important;
  filter: drop-shadow(0 0 10px rgba(255, 77, 141, 0.7)) !important;
}

/* 设置按钮 */
#header-setting-button {
  background: rgba(255, 77, 141, 0.08) !important;
  border: 1px solid rgba(255, 77, 141, 0.3) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

#header-setting-button:hover {
  background: rgba(255, 77, 141, 0.18) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 12px rgba(255, 77, 141, 0.5) !important;
}

#header-setting-button svg {
  color: #ff85b0 !important;
  filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.4)) !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(90deg, rgba(20, 8, 14, 0.85), rgba(30, 10, 18, 0.85)) !important;
  border: 1px solid rgba(255, 77, 141, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
}

div.flex.items-center.h-9.cursor-pointer.group:hover {
  background: linear-gradient(90deg, rgba(40, 12, 24, 0.9), rgba(50, 15, 30, 0.9)) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 14px rgba(255, 77, 141, 0.4) !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: #ff85b0 !important;
  filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.4)) !important;
}

/* ========== 按钮栏美化 ========== */
#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(135deg, rgba(20, 8, 14, 0.8), rgba(30, 10, 18, 0.8)) !important;
  border: 1px solid rgba(255, 77, 141, 0.4) !important;
  color: #ffafd0 !important;
  font-weight: 500 !important;
  text-shadow: 0 0 6px rgba(255, 77, 141, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover {
  background: linear-gradient(135deg, rgba(40, 12, 24, 0.95), rgba(50, 15, 30, 0.95)) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 16px rgba(255, 77, 141, 0.5) !important;
  transform: translateY(-2px) !important;
}

#ai-mod-button2 button.MuiButton-root svg {
  color: #ff85b0 !important;
  filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.4)) !important;
}

/* ========== 底部输入栏美化 ========== */
#ai-chat-bottom-input {
  background: linear-gradient(135deg, rgba(20, 8, 14, 0.92), rgba(35, 12, 22, 0.92)) !important;
  border: 1px solid rgba(255, 77, 141, 0.45) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 77, 141, 0.15) !important;
  padding: 12px !important;
}

#ai-chat-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 77, 141, 0.3) !important;
  border-radius: 12px !important;
  color: #f0d8e2 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif !important;
  font-size: 14px !important;
  padding: 10px 14px !important;
  transition: all 0.3s ease !important;
}

#ai-chat-input:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 16px rgba(255, 77, 141, 0.4), inset 0 0 12px rgba(255, 77, 141, 0.08) !important;
  outline: none !important;
}

#ai-chat-input::placeholder {
  color: rgba(255, 175, 208, 0.5) !important;
  font-style: italic !important;
}

#ai-chat-input::selection {
  background: rgba(255, 77, 141, 0.35) !important;
  color: #ffffff !important;
}

/* ========== 分页栏美化（仅颜色和视觉样式） ========== */
.MuiPaginationItem-root {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 77, 141, 0.3) !important;
  color: #ffafd0 !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.MuiPaginationItem-root:hover {
  background: rgba(255, 77, 141, 0.12) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 10px rgba(255, 77, 141, 0.4) !important;
}

.MuiPaginationItem-root.Mui-selected {
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.25), rgba(255, 133, 176, 0.25)) !important;
  border-color: #ff4d8d !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 77, 141, 0.5) !important;
}

.MuiPaginationItem-root.Mui-disabled {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 77, 141, 0.15) !important;
  color: rgba(255, 175, 208, 0.3) !important;
}

.MuiPaginationItem-icon {
  color: #ff85b0 !important;
  filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.4)) !important;
}

.MuiStack-root.css-1uwir8f {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 77, 141, 0.3) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
}

.MuiStack-root.css-1uwir8f .MuiBox-root {
  color: #ffafd0 !important;
  font-weight: 500 !important;
}

.MuiInputBase-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 77, 141, 0.35) !important;
  border-radius: 6px !important;
  color: #f0d8e2 !important;
  padding: 4px 8px !important;
}

.MuiInputBase-input:focus {
  border-color: #ff4d8d !important;
  box-shadow: 0 0 10px rgba(255, 77, 141, 0.4) !important;
  outline: none !important;
}

/* ========== 评论区美化 ========== */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background: linear-gradient(160deg, rgba(15, 6, 11, 0.95), rgba(28, 10, 18, 0.95)) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(255, 77, 141, 0.45) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 77, 141, 0.12) !important;
}

/* 评论区标题 */
div.text-lg.font-bold {
  color: #ffafd0 !important;
  text-shadow: 0 0 10px rgba(255, 77, 141, 0.5) !important;
  font-weight: 700 !important;
}

/* 个人评分文字 */
p.MuiTypography-body1.text-grey-600 {
  color: #f0d8e2 !important;
  font-weight: 500 !important;
}

/* 评分星星 */
span.MuiRating-iconEmpty svg {
  color: rgba(255, 133, 176, 0.3) !important;
  filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.2)) !important;
}

span.MuiRating-iconFilled svg {
  color: #ff4d8d !important;
  filter: drop-shadow(0 0 8px rgba(255, 77, 141, 0.6)) !important;
}

span.text-orange-500 {
  color: #ff85b0 !important;
  font-weight: 600 !important;
  text-shadow: 0 0 6px rgba(255, 77, 141, 0.4) !important;
}

/* 评论输入框容器 */
div.flex.flex-col.border-gray-200 {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 77, 141, 0.35) !important;
  border-radius: 12px !important;
  padding: 10px !important;
}

textarea.rc-textarea {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 77, 141, 0.3) !important;
  border-radius: 8px !important;
  color: #f0d8e2 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  transition: all 0.3s ease !important;
}

textarea.rc-textarea:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 14px rgba(255, 77, 141, 0.4) !important;
  outline: none !important;
}

textarea.rc-textarea::placeholder {
  color: rgba(255, 175, 208, 0.5) !important;
  font-style: italic !important;
}

/* 字数统计 */
div.bg-gray-100.text-gray-500 {
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 175, 208, 0.6) !important;
  font-size: 12px !important;
}

/* 发送评论按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.2), rgba(255, 133, 176, 0.2)) !important;
  border: 1px solid rgba(255, 77, 141, 0.5) !important;
  border-radius: 10px !important;
  padding: 8px 16px !important;
  transition: all 0.3s ease !important;
}

div.cursor-pointer.group.flex.items-center.justify-center:hover {
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.35), rgba(255, 133, 176, 0.35)) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 16px rgba(255, 77, 141, 0.6) !important;
  transform: translateY(-2px) !important;
}

div[data-state="closed"] svg[data-icon="Send03"] {
  color: #ffafd0 !important;
  filter: drop-shadow(0 0 6px rgba(255, 77, 141, 0.5)) !important;
}

/* 分割线 */
div.style_divider__mW0YX {
  background: linear-gradient(90deg, transparent, rgba(255, 77, 141, 0.3), transparent) !important;
  height: 1px !important;
}

/* 排序按钮 */
button.MuiButton-containedPrimary {
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.25), rgba(255, 133, 176, 0.25)) !important;
  border: 1px solid #ff4d8d !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 0 12px rgba(255, 77, 141, 0.4) !important;
}

button.MuiButton-outlinedPrimary {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 77, 141, 0.35) !important;
  color: #ffafd0 !important;
  font-weight: 500 !important;
}

button.MuiButton-outlinedPrimary:hover {
  background: rgba(255, 77, 141, 0.12) !important;
  border-color: #ff4d8d !important;
  box-shadow: 0 0 10px rgba(255, 77, 141, 0.3) !important;
}

/* 评论列表容器 */
div.p-3.overflow-y-auto {
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 10px !important;
}

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

div.p-3.overflow-y-auto::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 4px !important;
}

div.p-3.overflow-y-auto::-webkit-scrollbar-thumb {
  background: rgba(255, 77, 141, 0.4) !important;
  border-radius: 4px !important;
  transition: background 0.3s ease !important;
}

div.p-3.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #ff4d8d !important;
}

/* 评论项 */
div.group.ml-0 {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 77, 141, 0.25) !important;
  border-radius: 10px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  transition: all 0.3s ease !important;
}

div.group.ml-0:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 77, 141, 0.4) !important;
  box-shadow: 0 0 12px rgba(255, 77, 141, 0.2) !important;
}

/* 用户头像 */
div.group img.rounded-full {
  border: 2px solid rgba(255, 77, 141, 0.4) !important;
  box-shadow: 0 0 10px rgba(255, 77, 141, 0.3) !important;
}

/* 用户名 */
div.text-sm.text-grey-600 span.font-bold {
  color: #ffafd0 !important;
  font-weight: 600 !important;
  text-shadow: 0 0 6px rgba(255, 77, 141, 0.3) !important;
}

/* "（你）"标签 */
span.text-\[10px\] {
  color: #ff85b0 !important;
  background: rgba(255, 77, 141, 0.15) !important;
  border: 1px solid rgba(255, 77, 141, 0.4) !important;
  border-radius: 4px !important;
  padding: 1px 4px !important;
  font-weight: 500 !important;
}

/* 评论内容 */
div.break-all {
  color: #f0d8e2 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* 时间戳 */
div.text-xs.text-grey-600 {
  color: rgba(255, 175, 208, 0.6) !important;
  font-size: 12px !important;
}

/* 点赞按钮 */
button.text-gray-400 {
  color: rgba(255, 133, 176, 0.6) !important;
  transition: all 0.3s ease !important;
}

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

button.text-gray-400 svg {
  filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.3)) !important;
}

button.text-gray-400:hover svg {
  filter: drop-shadow(0 0 8px rgba(255, 77, 141, 0.6)) !important;
}

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

span.cursor-pointer:hover {
  color: #ffafd0 !important;
  text-shadow: 0 0 6px rgba(255, 77, 141, 0.5) !important;
}

/* 回复区域边框 */
div.ml-8.border-l {
  border-left-color: rgba(255, 77, 141, 0.35) !important;
  border-left-width: 2px !important;
  padding-left: 12px !important;
  margin-left: 32px !important;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  .sticky.w-full.top-0.flex.items-center {
    padding: 8px 12px !important;
  }

  #ai-chat-bottom-input {
    border-radius: 12px !important;
    padding: 10px !important;
  }

  #ai-chat-input {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }

  div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    border-radius: 12px 12px 0 0 !important;
  }

  div.group.ml-0 {
    padding: 10px !important;
  }

  div.ml-8.border-l {
    margin-left: 20px !important;
    padding-left: 8px !important;
  }
}

/* ========== 心跳脉冲动效（可选增强） ========== */
@keyframes neon-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.4)) drop-shadow(0 0 8px rgba(255, 77, 141, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255, 77, 141, 0.8)) drop-shadow(0 0 16px rgba(255, 77, 141, 0.4));
  }
}

/* 可选：为特定元素添加霓虹呼吸效果 */
.sticky.w-full.top-0.flex.items-center::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff4d8d, transparent);
  animation: neon-glow 3s ease-in-out infinite;
}

/* ========== 低动效模式支持 ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
    animation: none !important;
  }

  .sticky.w-full.top-0.flex.items-center::after {
    animation: none !important;
    opacity: 0.5 !important;
  }
}