/* ========================================
   模块一：消息气泡区 (圣哉与莉丝妲的对话)
   ======================================== */

/* 用户消息气泡 (圣哉：极度慎重、冷酷的黑灰与冰蓝装甲) */
#customized-question-content {
    background: linear-gradient(145deg, #1e272e, #2c3e50) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), inset 0 0 0 1px #3498db !important;
    border-radius: 16px 16px 4px 16px !important;
    transition: all 0.3s ease !important;
}
#customized-question-content .markdown-body {
    color: #ecf0f1 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
}
/* 用户顶部装饰条 (冰蓝魔法) */
#customized-question-content .bg-\[\#c9e1e9\] {
    background: linear-gradient(90deg, #3498db, #2980b9) !important;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6) !important;
}

/* AI消息气泡 (莉丝妲：统一神界的纯白与治愈闪耀金) */
#customized-answer-content {
    background: linear-gradient(145deg, #ffffff, #fdfbf7) !important;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.15), inset 0 0 0 1px #f1c40f !important;
    border-radius: 16px 16px 16px 4px !important;
    transition: all 0.3s ease !important;
}
#customized-answer-content .markdown-body {
    color: #2c3e50 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
}
/* AI顶部装饰条 (女神金光) */
#customized-answer-content .bg-\[\#F1CBCB\] {
    background: linear-gradient(90deg, #f1c40f, #d4af37) !important;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.6) !important;
}

/* 消息操作按钮悬浮特效 (不影响原本功能) */
#customized-answer-content button:hover svg,
#customized-question-content button:hover svg {
    filter: drop-shadow(0 0 3px #d4af37) !important;
    transform: scale(1.1) !important;
    transition: all 0.2s ease !important;
}

/* ========================================
   模块二：加载动画 (Ready perfectly 魔法阵)
   ======================================== */

/* 隐藏默认的跳动点阵 */
#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: 45px !important;
    height: 45px !important;
    margin-left: 10px !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，转速设置为4s和3s，非常缓慢平稳 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3C!-- 外层神圣金环 --%3E%3Ccircle cx='50' cy='50' r='42' fill='none' stroke='%23d4af37' stroke-width='3' stroke-dasharray='40 20 10 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 50 50' to='360 50 50' dur='4s' repeatCount='indefinite' /%3E%3C/circle%3E%3C!-- 内层冰蓝魔法环 --%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%233498db' stroke-width='2' stroke-dasharray='30 15'%3E%3CanimateTransform attributeName='transform' type='rotate' from='360 50 50' to='0 50 50' dur='3s' repeatCount='indefinite' /%3E%3C/circle%3E%3C!-- 中心核心 --%3E%3Cpolygon points='50,38 58,56 42,56' fill='%23f1c40f'%3E%3Canimate attributeName='opacity' values='0.4;1;0.4' dur='2s' repeatCount='indefinite'/%3E%3C/polygon%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* ========================================
   模块三：界面控制区 (神界控制台)
   ======================================== */

/* 顶部控制栏 (神界之门玻璃态) */
.sticky.top-0 {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* 快捷按钮组 (慎重边框) */
#ai-mod-button2 .MuiButton-outlinedPrimary {
    border: 1px solid #7f8c8d !important;
    color: #2c3e50 !important;
    border-radius: 8px !important;
    transition: all 0.3s !important;
}
#ai-mod-button2 .MuiButton-outlinedPrimary:hover {
    border-color: #3498db !important;
    background: rgba(52, 152, 219, 0.1) !important;
}

/* 底部输入区 (圣哉的战术面板) */
.bg-white.border-\[1\.5px\] {
    border-radius: 16px !important;
    border: 2px solid #bdc3c7 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.bg-white.border-\[1\.5px\]:focus-within {
    border-color: #3498db !important;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15), 0 4px 20px rgba(52, 152, 219, 0.2) !important;
    transform: translateY(-2px) !important;
}
#ai-chat-input {
    color: #2c3e50 !important;
    font-weight: 500 !important;
}
#ai-chat-input::placeholder {
    color: #95a5a6 !important;
}

/* 发送按钮 (释放神圣魔法) */
#ai-send-button {
    background: linear-gradient(135deg, #f1c40f, #d4af37) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
#ai-send-button:hover {
    transform: scale(1.15) rotate(-10deg) !important;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.6) !important;
}
#ai-send-button .icon-icon-send {
    color: #ffffff !important;
}

/* ========================================
   模块四：评论区 (统一神界留言板)
   ======================================== */

/* 评论面板主容器 */
.absolute.bottom-0.z-20.inset-x-0.bg-white {
    background: linear-gradient(to bottom, #ffffff, #fdfbf7) !important;
    border-top: 3px solid #d4af37 !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.12) !important;
}

/* 标题 */
.text-lg.font-bold.pl-3 {
    color: #d4af37 !important;
    text-shadow: 1px 1px 0px rgba(212, 175, 55, 0.2) !important;
    letter-spacing: 1px !important;
}

/* 评分星星 (闪耀女神金) */
.MuiRating-iconFilled {
    color: #f1c40f !important;
    filter: drop-shadow(0 0 4px rgba(241, 196, 15, 0.6)) !important;
    transform: scale(1.1) !important;
}
.MuiRating-iconEmpty {
    color: #bdc3c7 !important;
}

/* 评论输入框 */
textarea[placeholder="发表评论"] {
    background: #f8f9fa !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    color: #2c3e50 !important;
    transition: all 0.3s ease !important;
}
textarea[placeholder="发表评论"]:focus {
    border-color: #d4af37 !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

/* 评论列表项 (神界卷轴卡片) */
.group.ml-0 {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease !important;
}
.group.ml-0:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.1) !important;
}
/* 评论用户名 */
.group.ml-0 .text-sm.text-grey-600 span.font-bold {
    color: #2980b9 !important;
}