/* ========================================
   🐰 青春猪头少年不会梦到兔女郎学姐 主题
   ======================================== */

/* ----------------------------------------
   1. 消息气泡区 (咲太蓝 vs 麻衣粉)
   ---------------------------------------- */
/* 用户消息气泡 (咲太的制服蓝调) */
#customized-question-content {
    background: linear-gradient(135deg, #f0f4f8, #e1e9f0) !important;
    border-radius: 24px 24px 4px 24px !important;
    box-shadow: 0 4px 15px rgba(159, 185, 209, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
}
/* 用户消息顶部装饰条 */
#customized-question-content .bg-\[\#c9e1e9\] {
    background: #9fb9d1 !important;
    border-radius: 20px 20px 0 0 !important;
}
/* AI消息气泡 (麻衣学姐的樱花粉调) */
#customized-answer-content {
    background: linear-gradient(135deg, #fdf6f8, #f8e8ec) !important;
    border-radius: 24px 24px 24px 4px !important;
    box-shadow: 0 4px 15px rgba(228, 160, 183, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}
/* AI消息顶部装饰条 */
#customized-answer-content .bg-\[\#F1CBCB\] {
    background: #e4a0b7 !important;
    border-radius: 20px 20px 0 0 !important;
}
/* 消息正文文本 (确保高对比度阅读) */
#customized-question-content .text-gray-900,
#customized-answer-content .text-gray-900 {
    color: #2c2c38 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    line-height: 1.6 !important;
}
/* 模型标识与Token消耗 */
#customized-answer-content .text-purple-500.mt-1 {
    color: #9fb9d1 !important;
}
#customized-answer-content .text-orange-500 {
    color: #e4a0b7 !important;
    font-weight: 600 !important;
}

/* ----------------------------------------
   2. 加载动画 (缓慢呼吸的兔女郎标识)
   ---------------------------------------- */
/* 隐藏原有急促的加载点 */
#customized-answer-content [class*="dot-flashing"] {
    display: none !important;
}
/* 替换为缓慢闪烁的兔子 SVG */
#customized-answer-content .flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 28px !important;
    height: 28px !important;
}
#customized-answer-content .flex.items-center.justify-center.w-6.h-5::before {
    content: '';
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    /* 注入兔子 SVG，设置 dur='2.5s' 确保极其缓慢柔和的呼吸感 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e4a0b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 16a3 3 0 0 1 2.24 5'/%3E%3Cpath d='M18 12h.01'/%3E%3Cpath d='M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3'/%3E%3Cpath d='M20 8.54V4a2 2 0 1 0-4 0v3'/%3E%3Cpath d='M7.612 12.524a3 3 0 1 0-1.6 4.3'/%3E%3Canimate attributeName='opacity' values='0.15;1;0.15' dur='2.5s' repeatCount='indefinite'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* ----------------------------------------
   3. 界面控制区 (江之岛的微风拟态)
   ---------------------------------------- */
/* 顶部控制栏玻璃拟态 */
.sticky.top-0 {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(228, 160, 183, 0.2) !important;
}
/* 快捷按钮组柔和化 */
#ai-mod-button2 .MuiButton-outlinedPrimary {
    border-color: #9fb9d1 !important;
    color: #7a9cb9 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}
#ai-mod-button2 .MuiButton-outlinedPrimary:hover {
    background: rgba(228, 160, 183, 0.1) !important;
    border-color: #e4a0b7 !important;
    color: #d67b99 !important;
}
/* 底部输入框 */
#ai-chat-input {
    border: 2px solid #e1e9f0 !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#ai-chat-input:focus {
    border-color: #e4a0b7 !important;
    box-shadow: 0 0 0 4px rgba(228, 160, 183, 0.15) !important;
    outline: none !important;
}
/* 发送按钮 (渐变兔女郎粉) */
#ai-send-button {
    background: linear-gradient(135deg, #e4a0b7, #d67b99) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(228, 160, 183, 0.4) !important;
    transition: transform 0.2s !important;
}
#ai-send-button:hover {
    transform: scale(1.05) !important;
}
#ai-send-button .icon-icon-send {
    color: white !important;
}

/* ----------------------------------------
   4. 评论区 (学姐的秘密花园)
   ---------------------------------------- */
/* 面板主容器 */
.absolute.bottom-0.z-20.inset-x-0.bg-white {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 4px solid #e4a0b7 !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05) !important;
}
/* 评分星星 (变成樱花粉) */
.MuiRating-iconFilled {
    color: #e4a0b7 !important;
}
.MuiRating-iconEmpty {
    color: #e1e9f0 !important;
}
.text-orange-500.w-14 {
    color: #d67b99 !important;
}
/* 评论输入框 */
textarea[placeholder="发表评论"] {
    border: 2px solid #e1e9f0 !important;
    border-radius: 16px !important;
    background: #fdf6f8 !important;
    transition: all 0.3s !important;
}
textarea[placeholder="发表评论"]:focus {
    border-color: #9fb9d1 !important;
    box-shadow: 0 0 0 3px rgba(159, 185, 209, 0.2) !important;
    outline: none !important;
}
/* 评论列表项悬浮微动效 */
.group.ml-0 {
    padding: 8px !important;
    border-radius: 12px !important;
    transition: background 0.2s !important;
}
.group.ml-0:hover {
    background: rgba(240, 244, 248, 0.6) !important;
}
/* 评论区滚动条美化 */
.p-3.overflow-y-auto.h-full::-webkit-scrollbar {
    width: 6px !important;
}
.p-3.overflow-y-auto.h-full::-webkit-scrollbar-thumb {
    background: #e4a0b7 !important;
    border-radius: 10px !important;
}
.p-3.overflow-y-auto.h-full::-webkit-scrollbar-track {
    background: transparent !important;
}