/* 
 * ---------------------------------
 *   模块一：对话气泡美化 (AI侧)
 * ---------------------------------
 */
.group .bg-gray-100\/90 {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%) !important;
    border: 2px solid #ffb6c1 !important;
    border-radius: 20px 20px 20px 5px !important;
    box-shadow: 5px 5px 15px rgba(255, 182, 193, 0.3) !important;
    color: #5a3d5c !important;
    padding: 15px 20px !important;
    position: relative;
}

.group .bg-gray-100\/90::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: #ffb6c1 transparent transparent transparent;
}

.group .bg-gray-100\/90::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 22px;
    border-width: 8px 8px 0 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* 
 * ---------------------------------
 *   模块二：平台按钮美化
 * ---------------------------------
 */
.flex.items-center.gap-2.pb-2 > button {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%) !important;
    color: #ffffff !important;
    border: 2px solid #ff6b8b !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 8px rgba(255, 107, 139, 0.3) !important;
    font-weight: bold !important;
    text-transform: none !important;
    transition: all 0.3s ease !important;
    padding: 10px 20px !important;
}

.flex.items-center.gap-2.pb-2 > button:hover {
    background: linear-gradient(135deg, #ff6b8b 0%, #ff9a9e 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 12px rgba(255, 107, 139, 0.4) !important;
}

.flex.items-center.gap-2.pb-2 > button:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(255, 107, 139, 0.4) !important;
}

/* 
 * ---------------------------------
 *   模块三：输入栏美化
 * ---------------------------------
 */
#ai-chat-input {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #ffb6c1 !important;
    border-radius: 25px !important;
    color: #5a3d5c !important;
    box-shadow: inset 2px 2px 5px rgba(255, 182, 193, 0.2) !important;
    padding: 12px 20px !important;
    transition: all 0.3s ease;
}

#ai-chat-input:focus {
    outline: none;
    border-color: #ff6b8b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.2), inset 2px 2px 5px rgba(255, 182, 193, 0.2) !important;
}

/* 输入框容器透明化，突出输入框本身 */
#ai-chat-bottom-input { 
    background: transparent !important; 
    backdrop-filter: none !important; 
}

/* 
 * ---------------------------------
 *   模块四：折叠状态栏美化
 * ---------------------------------
 */
details {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(255, 182, 193, 0.2);
    font-size: 1.2em;
    color: #5a3d5c;
}

details summary {
    font-weight: bold;
    color: #d23669;
    cursor: pointer;
    padding: 10px;
    margin: -15px;
    transition: all 0.3s ease;
}

details summary:hover {
    color: #ff6b8b;
}

details[open] summary {
    border-bottom: 1px solid #ffb6c1;
    margin-bottom: 15px;
}

/* Markdown表格美化 */
details table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
}

details th, details td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ffd6e7;
}

details th {
    background-color: rgba(255, 182, 193, 0.2);
    color: #d23669;
    font-weight: bold;
}

details tr:hover {
    background-color: rgba(255, 214, 231, 0.3);
}

/* 
 * ---------------------------------
 *   模块五：加载中状态美化
 * ---------------------------------
 */
.flex.items-center.justify-center.w-6.h-5 {
    width: 120px !important;
    height: 40px !important;
}

.style_dot-flashing__8L91Q.style_text__zGhNq {
    color: #d23669 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    animation: pulse 1.5s infinite !important;
    content: "正在思考中..." !important;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 
 * ---------------------------------
 *   模块六：输入输出积分美化
 * ---------------------------------
 */
.MuiStack-root.text-purple-500.mt-1.css-1kz283j {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%) !important;
    border: 2px solid #ffb6c1 !important;
    border-radius: 15px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 4px 8px rgba(255, 182, 193, 0.2) !important;
}

.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #d23669 !important;
    font-weight: bold !important;
    margin: 5px 10px !important;
    display: flex !important;
    align-items: center !important;
}

.MuiTypography-root.MuiTypography-body2.css-6c0gf2::before {
    content: "❤" !important;
    margin-right: 5px !important;
    color: #ff6b8b !important;
}

.MuiTypography-root.MuiTypography-body2.text-orange-500.css-1x48u03 {
    color: #ff6b8b !important;
    margin: 5px 10px !important;
    display: flex !important;
    align-items: center !important;
}

.MuiTypography-root.MuiTypography-body2.text-orange-500.css-1x48u03::before {
    content: "❤" !important;
    margin-right: 5px !important;
    color: #ff6b8b !important;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .MuiStack-root.text-purple-500.mt-1.css-1kz283j {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}