/* ============================================
   🌸 精致动态爱心加载动画 + 粉色主题美化
   ============================================ */
/* --- 加载动画容器 --- */
@keyframes heartBeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 105, 140, 0.4));
  }
  15% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 16px rgba(255, 105, 140, 0.7));
  }
  30% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 10px rgba(255, 105, 140, 0.5));
  }
  45% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 14px rgba(255, 105, 140, 0.65));
  }
  60% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 105, 140, 0.4));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 105, 140, 0.4));
  }
}
@keyframes heartGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes floatParticle1 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translate(-15px, -10px) scale(1);
  }
  100% {
    transform: translate(-35px, -50px) scale(0);
    opacity: 0;
  }
}
@keyframes floatParticle2 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  25% {
    opacity: 0.8;
    transform: translate(12px, -8px) scale(1);
  }
  100% {
    transform: translate(30px, -45px) scale(0);
    opacity: 0;
  }
}
@keyframes floatParticle3 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  30% {
    opacity: 0.9;
    transform: translate(5px, -12px) scale(0.8);
  }
  100% {
    transform: translate(-10px, -55px) scale(0);
    opacity: 0;
  }
}
@keyframes floatParticle4 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
    transform: translate(-20px, -5px) scale(0.6);
  }
  100% {
    transform: translate(-40px, -40px) scale(0);
    opacity: 0;
  }
}
@keyframes floatParticle5 {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 0.85;
    transform: translate(18px, -15px) scale(0.7);
  }
  100% {
    transform: translate(25px, -55px) scale(0);
    opacity: 0;
  }
}
@keyframes ringPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
    border-width: 2px;
  }
  50% {
    transform: scale(1.4);
    opacity: 0;
    border-width: 0.5px;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
    border-width: 2px;
  }
}
@keyframes softRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes textFade {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
/* 加载动画主体 - 替换默认loading */
div[class*="loading"],
div[class*="Loading"],
.animate-spin {
  width: 60px !important;
  height: 60px !important;
  border: none !important;
  background: transparent !important;
  position: relative !important;
  animation: none !important;
}
div[class*="loading"]::before,
div[class*="Loading"]::before,
.animate-spin::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 32px !important;
  height: 30px !important;
  transform: translate(-50%, -50%) !important;
  background:
    radial-gradient(
      ellipse 16px 17px at 8px 10px,
      #ff6b8a 0%,
      #ff4d73 25%,
      #e8365d 50%,
      #d42a52 75%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 16px 17px at 24px 10px,
      #ff6b8a 0%,
      #ff4d73 25%,
      #e8365d 50%,
      #d42a52 75%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #ff4d73 10%,
      #e8365d 40%,
      #d42a52 65%,
      #c0203f 85%,
      transparent 100%
    ) !important;
  background-size: 32px 20px, 32px 20px, 20px 22px !important;
  background-position: 0 0, 0 0, 6px 8px !important;
  background-repeat: no-repeat !important;
  clip-path: path('M16 28 C16 28 2 18 2 9 C2 4 6 0 11 0 C13.5 0 15.5 1.5 16 3 C16.5 1.5 18.5 0 21 0 C26 0 30 4 30 9 C30 18 16 28 16 28Z') !important;
  animation: heartBeat 1.4s ease-in-out infinite !important;
  filter: drop-shadow(0 0 10px rgba(255, 77, 115, 0.5)) !important;
  z-index: 2 !important;
}
div[class*="loading"]::after,
div[class*="Loading"]::after,
.animate-spin::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 26px !important;
  height: 24px !important;
  transform: translate(-50%, -48%) !important;
  clip-path: path('M13 23 C13 23 1.5 14.5 1.5 7.5 C1.5 3.5 5 0 9 0 C11 0 12.5 1.2 13 2.5 C13.5 1.2 15 0 17 0 C21 0 24.5 3.5 24.5 7.5 C24.5 14.5 13 23 13 23Z') !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 60%
  ) !important;
  animation: heartBeat 1.4s ease-in-out infinite !important;
  z-index: 3 !important;
}
/* ============================================
   🌸 顶部栏美化
   ============================================ */
.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(135deg, #fff0f3 0%, #ffe0e8 40%, #ffd1dd 100%) !important;
  border-bottom: 1px solid rgba(255, 150, 170, 0.25) !important;
  box-shadow: 0 2px 12px rgba(255, 105, 140, 0.12),
              0 1px 3px rgba(255, 105, 140, 0.08) !important;
  transition: all 0.3s ease !important;
}
.sticky.w-full.top-0.flex.items-center::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 105, 140, 0.3), transparent) !important;
}
#ai-model-selector .group.flex.items-center {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 150, 170, 0.3) !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(8px) !important;
}
#ai-model-selector .group.flex.items-center:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 105, 140, 0.5) !important;
  box-shadow: 0 2px 8px rgba(255, 105, 140, 0.15) !important;
}
#ai-model-selector .truncate.text-\[13px\] {
  color: #d4456a !important;
  font-weight: 600 !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
#ai-model-selector .shrink-0.flex.items-center svg {
  color: #e8628a !important;
  transition: transform 0.3s ease !important;
}
#ai-model-selector .group.flex.items-center:hover svg {
  transform: rotate(180deg) !important;
}
.sticky.w-full.top-0 svg.lucide-clock-8 {
  color: #d4456a !important;
  transition: all 0.3s ease !important;
}
.sticky.w-full.top-0 svg.lucide-clock-8:hover {
  color: #ff4d73 !important;
  filter: drop-shadow(0 0 4px rgba(255, 77, 115, 0.3)) !important;
}
.sticky.w-full.top-0 span.MuiBadge-dot.md\:hidden {
  background: linear-gradient(135deg, #ff6b8a, #ff4d73) !important;
  box-shadow: 0 0 6px rgba(255, 77, 115, 0.5) !important;
}
#header-setting-button {
  transition: all 0.3s ease !important;
  border-radius: 50% !important;
}
#header-setting-button:hover {
  background: rgba(255, 105, 140, 0.1) !important;
}
#header-setting-button svg {
  color: #d4456a !important;
  transition: transform 0.4s ease !important;
}
#header-setting-button:hover svg {
  transform: rotate(90deg) !important;
  color: #ff4d73 !important;
}
/* ============================================
   🌸 开场白选择器美化
   ============================================ */
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"] {
  background: linear-gradient(135deg, #fff5f7, #ffe8ee) !important;
  border: 1px solid rgba(255, 150, 170, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(255, 105, 140, 0.1) !important;
  transition: all 0.3s ease !important;
}
div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover {
  border-color: rgba(255, 105, 140, 0.5) !important;
  box-shadow: 0 4px 14px rgba(255, 105, 140, 0.18) !important;
  background: linear-gradient(135deg, #fff0f3, #ffe0e8) !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: #d4456a !important;
  transition: all 0.3s ease !important;
}
/* ============================================
   🌸 按钮栏美化
   ============================================ */
#ai-mod-button2 {
  background: transparent !important;
}
#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(135deg, #fff0f3, #ffe0e8) !important;
  border: 1px solid rgba(255, 150, 170, 0.3) !important;
  border-radius: 16px !important;
  color: #d4456a !important;
  font-weight: 500 !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 4px rgba(255, 105, 140, 0.1) !important;
}
#ai-mod-button2 button.MuiButton-root:hover {
  background: linear-gradient(135deg, #ffe0e8, #ffd1dd) !important;
  border-color: rgba(255, 105, 140, 0.5) !important;
  box-shadow: 0 3px 10px rgba(255, 105, 140, 0.2) !important;
  transform: translateY(-1px) !important;
}
#ai-mod-button2 button.MuiButton-root:active {
  transform: translateY(0) !important;
}
#ai-mod-button2 button.MuiButton-root svg {
  color: #e8628a !important;
  transition: all 0.3s ease !important;
}
#ai-mod-button2 button.MuiButton-root:hover svg {
  color: #ff4d73 !important;
}
/* ============================================
   🌸 底部栏美化
   ============================================ */
.bg-gradient-to-t {
  background: linear-gradient(to top, #fff0f3 0%, rgba(255, 240, 243, 0.8) 60%, transparent 100%) !important;
}
#ai-chat-bottom-input {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1.5px solid rgba(255, 150, 170, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 12px rgba(255, 105, 140, 0.1),
              inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.3s ease !important;
}
#ai-chat-bottom-input:focus-within {
  border-color: rgba(255, 105, 140, 0.55) !important;
  box-shadow: 0 4px 18px rgba(255, 105, 140, 0.18),
              inset 0 1px 2px rgba(255, 255, 255, 0.8),
              0 0 0 3px rgba(255, 105, 140, 0.08) !important;
}
#ai-chat-input {
  color: #4a2030 !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  caret-color: #ff4d73 !important;
}
#ai-chat-input::placeholder {
  color: rgba(212, 69, 106, 0.4) !important;
  font-style: italic !important;
}
#ai-chat-input::selection {
  background: rgba(255, 105, 140, 0.25) !important;
  color: #4a2030 !important;
}
/* ============================================
   🌸 分页栏美化
   ============================================ */
.MuiPaginationItem-root {
  color: #d4456a !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  font-weight: 500 !important;
  border-color: rgba(255, 150, 170, 0.3) !important;
  transition: all 0.3s ease !important;
}
.MuiPaginationItem-root:hover {
  background: rgba(255, 105, 140, 0.08) !important;
  border-color: rgba(255, 105, 140, 0.4) !important;
}
.MuiPaginationItem-root.Mui-selected {
  background: linear-gradient(135deg, #ff6b8a, #ff4d73) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(255, 77, 115, 0.3) !important;
}
.MuiPaginationItem-root.Mui-disabled {
  color: rgba(212, 69, 106, 0.25) !important;
}
.MuiPaginationItem-icon {
  color: #d4456a !important;
}
.MuiStack-root.css-1uwir8f {
  color: #d4456a !important;
}
.MuiStack-root.css-1uwir8f .MuiBox-root {
  color: #d4456a !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
.MuiInputBase-input {
  color: #d4456a !important;
  border-color: rgba(255, 150, 170, 0.3) !important;
}
/* ============================================
   🌸 评论区美化
   ============================================ */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background: linear-gradient(180deg, #fff5f7 0%, #fff0f3 50%, #ffe8ee 100%) !important;
  border-top: 1px solid rgba(255, 150, 170, 0.2) !important;
}
div.text-lg.font-bold {
  color: #c0304a !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
p.MuiTypography-body1.text-grey-600 {
  color: #d4456a !important;
}
span.MuiRating-iconEmpty svg {
  color: rgba(255, 150, 170, 0.35) !important;
}
span.MuiRating-iconFilled svg {
  color: #ff4d73 !important;
  filter: drop-shadow(0 0 3px rgba(255, 77, 115, 0.3)) !important;
}
span.text-orange-500 {
  color: #ff4d73 !important;
  font-weight: 700 !important;
}
div.flex.flex-col.border-gray-200 {
  border-color: rgba(255, 150, 170, 0.25) !important;
  border-radius: 14px !important;
}
textarea.rc-textarea {
  background: rgba(255, 255, 255, 0.7) !important;
  color: #4a2030 !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  border-radius: 12px !important;
  caret-color: #ff4d73 !important;
}
textarea.rc-textarea:focus {
  box-shadow: 0 0 0 2px rgba(255, 105, 140, 0.15) !important;
}
div.bg-gray-100.text-gray-500 {
  background: rgba(255, 220, 230, 0.4) !important;
  color: #d4456a !important;
}
div.cursor-pointer.group.flex.items-center.justify-center {
  background: linear-gradient(135deg, #ff6b8a, #ff4d73) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(255, 77, 115, 0.25) !important;
  transition: all 0.3s ease !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover {
  box-shadow: 0 4px 14px rgba(255, 77, 115, 0.4) !important;
  transform: translateY(-1px) !important;
}
div[data-state="closed"] svg[data-icon="Send03"] {
  color: #fff !important;
}
div.style_divider__mW0YX {
  background: linear-gradient(90deg, transparent, rgba(255, 150, 170, 0.3), transparent) !important;
}
button.MuiButton-containedPrimary {
  background: linear-gradient(135deg, #ff6b8a, #ff4d73) !important;
  color: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 6px rgba(255, 77, 115, 0.2) !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  transition: all 0.3s ease !important;
}
button.MuiButton-containedPrimary:hover {
  box-shadow: 0 3px 10px rgba(255, 77, 115, 0.35) !important;
}
button.MuiButton-outlinedPrimary {
  color: #d4456a !important;
  border-color: rgba(255, 150, 170, 0.4) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  transition: all 0.3s ease !important;
}
button.MuiButton-outlinedPrimary:hover {
  background: rgba(255, 240, 243, 0.8) !important;
  border-color: rgba(255, 105, 140, 0.5) !important;
}
div.p-3.overflow-y-auto {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 150, 170, 0.3) transparent !important;
}
div.group.ml-0 {
  border-radius: 12px !important;
  transition: background 0.3s ease !important;
}
div.group.ml-0:hover {
  background: rgba(255, 240, 243, 0.5) !important;
}
div.group img.rounded-full {
  border: 2px solid rgba(255, 150, 170, 0.3) !important;
  box-shadow: 0 1px 4px rgba(255, 105, 140, 0.12) !important;
  transition: all 0.3s ease !important;
}
div.group img.rounded-full:hover {
  border-color: rgba(255, 105, 140, 0.5) !important;
  box-shadow: 0 2px 8px rgba(255, 105, 140, 0.2) !important;
}
div.text-sm.text-grey-600 span.font-bold {
  color: #c0304a !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
span.text-\[10px\] {
  color: #e8628a !important;
  background: rgba(255, 220, 230, 0.4) !important;
  border-radius: 6px !important;
  padding: 1px 4px !important;
}
div.break-all {
  color: #4a2030 !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  line-height: 1.6 !important;
}
div.text-xs.text-grey-600 {
  color: rgba(180, 80, 110, 0.55) !important;
}
button.text-gray-400 {
  color: rgba(212, 69, 106, 0.4) !important;
  transition: all 0.3s ease !important;
}
button.text-gray-400:hover {
  color: #ff4d73 !important;
}
button.text-gray-400 svg {
  transition: all 0.3s ease !important;
}
button.text-gray-400:hover svg {
  transform: scale(1.15) !important;
  filter: drop-shadow(0 0 3px rgba(255, 77, 115, 0.3)) !important;
}
span.cursor-pointer {
  color: #d4456a !important;
  transition: all 0.2s ease !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
span.cursor-pointer:hover {
  color: #ff4d73 !important;
  text-shadow: 0 0 4px rgba(255, 77, 115, 0.2) !important;
}
div.ml-8.border-l {
  border-color: rgba(255, 150, 170, 0.25) !important;
}
/* ============================================
   🌸 移动端设置图标
   ============================================ */
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]) {
  color: #d4456a !important;
  transition: all 0.3s ease !important;
}
.sticky.w-full.top-0 svg:has(use[href="#icon-icon-set"]):hover {
  color: #ff4d73 !important;
}
/* ============================================
   🌸 音乐按钮
   ============================================ */
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2) {
  transition: all 0.3s ease !important;
}
.sticky.w-full.top-0 button.MuiIconButton-root:has(svg.lucide-music-2):hover {
  background: rgba(255, 105, 140, 0.1) !important;
}
.sticky.w-full.top-0 button.MuiIconButton-root svg.lucide-music-2 {
  color: #d4456a !important;
  transition: all 0.3s ease !important;
}
.sticky.w-full.top-0 button.MuiIconButton-root:hover svg.lucide-music-2 {
  color: #ff4d73 !important;
  filter: drop-shadow(0 0 4px rgba(255, 77, 115, 0.3)) !important;
}
/* ============================================
   🌸 滚动条全局美化
   ============================================ */
div.p-3.overflow-y-auto::-webkit-scrollbar {
  width: 5px !important;
}
div.p-3.overflow-y-auto::-webkit-scrollbar-track {
  background: transparent !important;
}
div.p-3.overflow-y-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 150, 170, 0.3), rgba(255, 105, 140, 0.4)) !important;
  border-radius: 10px !important;
}
div.p-3.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 150, 170, 0.5), rgba(255, 105, 140, 0.6)) !important;
}