[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* ========== 风月平台评论区星星评分替换为 🔥（不影响点击） ========== */
.MuiRating-root .MuiRating-icon {
    font-size: 0 !important;               /* 隐藏原始星星文字 */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
}

.MuiRating-root .MuiRating-icon svg {
    display: none !important;             /* 隐藏原始 SVG 图标 */
}

/* 所有星星状态统一使用火苗背景图 */
.MuiRating-root .MuiRating-iconFilled,
.MuiRating-root .MuiRating-iconEmpty,
.MuiRating-root .MuiRating-iconHover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctext y='20' font-size='22'%3E🔥%3C/text%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 1 !important;
}

/* 未选中状态：降低透明度模拟灰色星星 */
.MuiRating-root .MuiRating-iconEmpty {
    opacity: 0.3 !important;
    filter: grayscale(100%);
}

/* 悬停状态（可选） */
.MuiRating-root .MuiRating-iconHover {
    opacity: 0.8 !important;
}


/*
 * ================================================
 *   摄像机采访录风格 · 对焦框 + 纸张纹理
 *   聊天框：对焦框四角L形标记 + 录制红点
 *   输入栏：纸张纹理质感
 *   适配手机/电脑，不透明背景，深色文字
 * ================================================
 */

/* ---------------------------------
 *   模块一：AI对话气泡 (摄像机取景框)
 * --------------------------------- */
.group .bg-gray-100\/90 {
    /* 纯白背景，模拟取景器画面 */
    background: #FEFCF8 !important;
    color: #2C1810 !important;

    /* 浅色单线边框 */
    border: 1.5px solid #D4C5B2 !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03),
                0 3px 10px rgba(0,0,0,0.06) !important;

    padding: 14px 14px 14px 18px !important;
    position: relative !important;
    overflow: visible !important; /* 保证红点不被裁剪 */
}

/* 左上角微小红色录制点 */
.group .bg-gray-100\/90::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: #E53935;
    border-radius: 50%;
    box-shadow: 0 0 4px #E53935, 0 0 8px rgba(229,57,53,0.3);
    z-index: 10;
    animation: cam-rec-blink 1.2s ease-in-out infinite;
}

@keyframes cam-rec-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 注意：已移除右下角多余装饰 */



/* ---------------------------------
 *   模块二：平台按钮美化 (右下角实阴影)
 * --------------------------------- */
.flex.items-center.gap-2.pb-2 > button {
    background: #FEFCF8 !important;
    color: #2C1810 !important;

    /* 浅色单线边框 */
    border: 1.5px solid #D4C5B2 !important;
    border-radius: 6px !important;
    /* 右下角实阴影偏移 */
    box-shadow: 3px 3px 0px #C4B0A0 !important;

    font-weight: bold !important;
    text-transform: none !important;
    transition: all 0.15s ease-in-out !important;
    padding: 6px 18px !important;
}

/* 悬停：按钮向右下移动，阴影消失 */
.flex.items-center.gap-2.pb-2 > button:hover {
    background: #F3EFE8 !important;
    color: #2C1810 !important;
    transform: translate(2px, 2px) !important;
    box-shadow: 0px 0px 0px rgba(0,0,0,0) !important;
}


/* ---------------------------------
 *   模块三：多余元素隐藏 (保持原样)
 * --------------------------------- */
.MuiButtonBase-root.MuiButton-root.MuiButton-default.css-w13mdt,
.absolute.z-40 .px-4.py-2.hover\:bg-indigo-100:nth-child(5),
.css-nkqe49 {
    /* display: none !important; */ /* 保持注释 */
}


/* ---------------------------------
 *   模块四：输入栏美化 (纸张纹理)
 * --------------------------------- */
#ai-chat-input {
    /* 纸张基底色 */
    background-color: #FEFCF8 !important;
    color: #2C1810 !important;

    /* 纸张纹理：细微颗粒 + 纤维纹路 */
    background-image:
        /* 微观颗粒纹理 */
        radial-gradient(circle at 25% 30%, rgba(180,150,120,0.08) 0.5px, transparent 0.5px),
        radial-gradient(circle at 60% 70%, rgba(160,130,100,0.06) 0.8px, transparent 0.8px),
        radial-gradient(circle at 80% 20%, rgba(180,150,120,0.07) 0.6px, transparent 0.6px),
        /* 水平纤维纹理 */
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 3px,
            rgba(180,150,120,0.03) 3px,
            rgba(180,150,120,0.03) 4px
        ),
        /* 垂直纤维纹理 */
        repeating-linear-gradient(
            to right,
            transparent,
            transparent 4px,
            rgba(180,150,120,0.02) 4px,
            rgba(180,150,120,0.02) 5px
        );
    background-size:
        80px 60px,    /* 颗粒1 */
        100px 80px,   /* 颗粒2 */
        90px 70px,    /* 颗粒3 */
        100% 100%,    /* 水平纤维 */
        100% 100%;    /* 垂直纤维 */
    background-position:
        0 0,
        10px 15px,
        -5px -10px,
        0 0,
        0 0;

    /* 浅色单线边框 + 轻微内凹 */
    border: 1.5px solid #D4C5B2 !important;
    border-radius: 6px !important;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.06) !important;

    outline: none;
    /* 不修改输入框尺寸 */
}

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







/* =============================================
 *   折叠状态栏（<details>）美化 — 明亮纸张色
 *   去除默认三角图标，适配手机/电脑，黑白背景均可读
 * ============================================= */

details {
    border: 1px solid #c9b896;          /* 柔和暖金边框 */
    border-radius: 8px;
    margin: 0.8em 0;
    background-color: #fefcf8;          /* 亮白米色底 */
    font-size: 0.95em;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

details > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.8em 1.2em;
    background-color: #f5efe5;          /* 浅奶茶色标题栏 */
    border-bottom: 1px solid #c9b896;
    font-weight: 600;
    color: #2c1810;
    transition: background-color 0.2s;
    user-select: none;
    position: relative;
}
details > summary::-webkit-details-marker {
    display: none;
}
details > summary::after {
    content: "▾";
    position: absolute;
    right: 1em;
    transition: transform 0.2s;
    font-size: 0.8em;
    opacity: 0.6;
    color: #8b7355;                    /* 暖褐色箭头 */
}
details[open] > summary::after {
    transform: rotate(-180deg);
}

details[open] > summary {
    background-color: #ebe1d2;
    border-bottom-color: #b89f80;
}

details > *:not(summary) {
    padding: 1em 1.2em;
}

/* ---------- Markdown 表格美化 ---------- */
details table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6em 0;
    font-size: 0.9em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

details table th,
details table td {
    border: 1px solid #c9b896;
    padding: 0.7em 0.9em;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
    color: #2c1810;
}

details table thead th {
    background-color: #5D4A38;        /* 深棕表头，保持对比 */
    color: #ffffff;
    font-weight: 700;
    border-color: #4a3728;
}

details table tbody tr:nth-child(even) {
    background-color: #f9f4ec;        /* 极浅斑马纹 */
}
details table tbody tr:hover {
    background-color: #efe3d4;        /* 暖色悬浮 */
}

/* 手机端适配 */
@media (max-width: 600px) {
    details {
        font-size: 0.9em;
    }
    details > summary {
        padding: 0.7em 1em;
    }
    details > *:not(summary) {
        padding: 0.8em 1em;
    }
    details table th,
    details table td {
        padding: 0.5em 0.7em;
        font-size: 0.85em;
    }
}