 /* === 顶栏金色视觉(安全版:只保留配色,不干预点击) === */ .sticky.w-full.top-0.flex.items-center{background:linear-gradient(135deg,rgba(253,250,245,0.95) 0%,rgba(248,244,237,0.98) 100%)!important;border-bottom:2px solid #D4A24C!important;backdrop-filter:blur(25px) saturate(120%)!important;-webkit-backdrop-filter:blur(25px) saturate(120%)!important;color:#4a3c31!important;box-shadow:0 8px 32px rgba(184,151,92,0.15),0 4px 16px rgba(184,151,92,0.1),inset 0 1px 0 rgba(255,255,255,0.5),inset 0 -1px 0 rgba(224,217,205,0.8)!important;} .sticky.w-full.top-0.flex.items-center .inline-flex.items-center{background:linear-gradient(135deg,rgba(212,162,76,0.1) 0%,rgba(245,241,233,0.2) 100%)!important;color:#B8860B!important;border:1px solid rgba(212,162,76,0.4)!important;border-radius:8px!important;box-shadow:inset 0 1px 4px rgba(255,255,255,0.4),0 3px 10px rgba(184,151,92,0.15)!important;} .sticky.w-full.top-0.flex.items-center .inline-flex.items-center:hover{background:linear-gradient(135deg,rgba(212,162,76,0.2) 0%,rgba(245,241,233,0.3) 100%)!important;border-color:#C7984B!important;} /* ========================================
   龙族 - 卡塞尔学院主题样式表 (光明版)
   配色：米白、淡金、柔和灰、赤金
   核心元素：羊皮卷、晨曦、古典纹样、荣耀与新生
   ======================================== */

/* === 关键帧动画 (为明亮主题微调) === */
@keyframes mount-breathe {
    0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
    50% { transform: translateY(-3px) scale(1.03); filter: brightness(1.05); }
}

@keyframes bg-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 300px 300px; }
}

@keyframes pulse-npc {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(199, 152, 75, 0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 20px rgba(212, 162, 76, 1);
    }
}

@keyframes pulse-user {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(132, 146, 166, 0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 20px rgba(132, 146, 166, 1);
    }
}

@keyframes glow-text {
    0%, 100% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(212, 162, 76, 0.5);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 18px rgba(227, 181, 100, 1), 0 0 30px rgba(212, 162, 76, 0.5);
    }
}

@keyframes rotate-icon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes classUI-ink-pulse {
    0%, 100% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes classUI-scroll-unfold {
    0% {
        transform: scaleY(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes ink-text-fade {
    0% {
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(212, 162, 76, 0.4);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(227, 181, 100, 0.7);
    }
    100% {
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(212, 162, 76, 0.4);
    }
}

@keyframes data-stream {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes scan-line {
    0% { top: -10%; }
    100% { top: 110%; }
}

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

@keyframes cot-fade-out {
    0% { opacity: 1; }
    60% { opacity: 0; }
    100% {
        opacity: 0;
        visibility: hidden;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        aspect-ratio: auto;
        pointer-events: none;
    }
}

@keyframes yinyang-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes float-up {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    100% { transform: translateY(-20px) rotate(180deg); opacity: 0; }
}

@keyframes border-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 162, 76, 0.15),
                    inset 0 0 10px rgba(212, 162, 76, 0.05);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 162, 76, 0.25),
                    inset 0 0 20px rgba(212, 162, 76, 0.1);
    }
}

@keyframes spell-card-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes header-star-float {
    0% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-5px) scale(1.1); opacity: 0.8; }
    100% { transform: translateY(0) scale(1); opacity: 0.4; }
}

@keyframes header-wave-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes header-border-pulse {
    0%, 100% {
        border-color: rgba(212, 162, 76, 0.4);
        box-shadow: 0 6px 28px rgba(184, 151, 92, 0.1),
                    0 2px 12px rgba(212, 162, 76, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        border-color: rgba(199, 152, 75, 0.6);
        box-shadow: 0 8px 35px rgba(184, 151, 92, 0.15),
                    0 3px 15px rgba(212, 162, 76, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

@keyframes spell-card-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-10px) rotate(-3deg); opacity: 0.2; }
}

/* === COT思维链容器（EVA系统加载动画 - 明亮版） === */
cot {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3/1;
    overflow: hidden;
    box-sizing: border-box;
    contain: size layout paint;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
}

cot * {
    display: none !important;
}

cot::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: mount-breathe 5s ease-in-out infinite;
    /* **SVG保留，但背景色改为明亮** */
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'%3E%3Cdefs%3E%3ClinearGradient id='bgGrad' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%23fdfbf7'/%3E%3Cstop offset='100%25' stop-color='%23f5f1e9'/%3E%3C/linearGradient%3E%3Cpattern id='gridPattern' width='50' height='50' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 50 0 L 0 0 0 50' fill='none' stroke='%23D4A24C' stroke-width='0.3' opacity='0.25'/%3E%3C/pattern%3E%3Cfilter id='glow'%3E%3CfeGaussianBlur stdDeviation='2.5' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Crect width='600' height='200' fill='url(%23bgGrad)'/%3E%3Crect width='600' height='200' fill='url(%23gridPattern)'/%3E%3Cg filter='url(%23glow)'%3E%3Cpath d='M150,180 L220,20 L380,20 L450,180 Z' fill='none' stroke='%23D4A24C' stroke-width='1.5' opacity='0.5'/%3E%3Ccircle cx='300' cy='100' r='40' fill='none' stroke='%23D4A24C' stroke-width='2'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 300 100' to='360 300 100' dur='10s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='300' cy='100' r='60' fill='none' stroke='%23D4A24C' stroke-width='1' stroke-dasharray='4 8' opacity='0.7'%3E%3CanimateTransform attributeName='transform' type='rotate' from='360 300 100' to='0 300 100' dur='15s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ctext x='50%25' y='45%25' text-anchor='middle' font-size='22' font-family='Trajan Pro, serif' fill='%23B8860B' letter-spacing='5' style='text-shadow: 0 0 10px rgba(212,162,76,0.4);'%3ECASSELL%3C/text%3E%3Ctext x='50%25' y='60%25' text-anchor='middle' font-size='14' font-family='monospace' fill='%23B8860B' opacity='0.8' letter-spacing='3'%3EConnecting to EVA...%3C/text%3E%3Ctext x='50%25' y='75%25' text-anchor='middle' font-size='12' font-family='monospace' fill='%238B4513' opacity='0.7' letter-spacing='2'%3E言灵序列校验中...%3C/text%3E%3C/g%3E%3C/svg%3E");
}

cot:has(postition[stop]),
cot:has(+ postition[stop]),
cot:has(~ postition[stop]) {
    animation: cot-fade-out 600ms ease forwards;
}

cot:has(postition[stop])::before,
cot:has(+ postition[stop])::before,
cot:has(~ postition[stop])::before {
    animation-play-state: paused !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    content: none !important;
    background: none !important;
}

/* === 聊天容器主样式 (明亮版) === */
.chat {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 35px 28px;
    background: linear-gradient(135deg, #fdfaf6 0%, #f7f3eb 100%);
    border: 2px solid #e0d9cd;
    border-left: 8px solid #D4A24C;
    border-right: 8px solid #dcd5c9;
    border-radius: 12px;
    margin: 28px 0;
    position: relative;
    font-family: 'Georgia', 'Times New Roman', 'SimSun', serif;
    box-shadow: 
        0 12px 40px rgba(184, 151, 92, 0.15),
        0 6px 20px rgba(184, 151, 92, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 8px rgba(224, 217, 205, 0.5);
    overflow: hidden;
}

/* 羊皮卷纹理背景 */
.chat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='alchemy' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='%23D4A24C' stroke-width='0.2' opacity='0.2'/%3E%3Cpath d='M50,15 L85,75 L15,75 Z' fill='none' stroke='%23D4A24C' stroke-width='0.2' opacity='0.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23alchemy)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-position: 0 0;
    animation: bg-scroll 80s linear infinite;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    will-change: background-position;
}

/* 柔光叠加 */
.chat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 18% 25%, rgba(212, 162, 76, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 82% 75%, rgba(184, 151, 92, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.chat > * {
    position: relative;
    z-index: 1;
}

/* === 对话气泡样式 (明亮版) === */
.bubble {
    max-width: 75%;
    padding: 20px 26px;
    position: relative;
    line-height: 1.8;
    word-wrap: break-word;
    border-radius: 16px;
    box-shadow: 
        0 6px 20px rgba(184, 151, 92, 0.1),
        0 3px 12px rgba(184, 151, 92, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.bubble:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 10px 28px rgba(184, 151, 92, 0.15),
        0 5px 16px rgba(212, 162, 76, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* NPC气泡（执行部/教授） */
.bubble.npc {
    background: linear-gradient(135deg, rgba(255, 253, 250, 0.9) 0%, rgba(253, 250, 245, 0.95) 100%);
    border: 1px solid #e0d9cd;
    border-left: 5px solid #D4A24C;
    color: #4a3c31;
    align-self: flex-start;
    box-shadow: 
        0 6px 20px rgba(212, 162, 76, 0.15),
        0 3px 12px rgba(184, 151, 92, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(224, 217, 205, 0.6),
        0 0 30px rgba(212, 162, 76, 0.1);
    animation: border-glow 6s ease-in-out infinite;
}

/* 言灵辉光 */
.bubble.npc::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 162, 76, 0.25) 50%, transparent 70%);
    border-radius: inherit;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
    animation: spell-card-shine 4s ease-in-out infinite;
}

/* 黄金瞳粒子 */
.bubble.npc::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #E3B564 0%, rgba(212, 162, 76, 0.3) 60%, transparent 80%);
    border-radius: 50%;
    animation: pulse-npc 3s ease-in-out infinite;
    z-index: 2;
    filter: drop-shadow(0 0 5px #E3B564);
}

.bubble.npc .name {
    color: #B8860B;
    text-shadow: 0 1px 2px rgba(184, 151, 92, 0.2);
}

.bubble.npc .name::before {
    color: #C7984B;
    text-shadow: 0 0 15px rgba(199, 152, 75, 0.5);
    animation: star-twinkle 2.5s ease-in-out infinite;
}

.bubble.npc .msg {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    color: #4a3c31;
}

/* User气泡（学生/普通人） */
.bubble.user {
    background: linear-gradient(135deg, rgba(248, 248, 245, 0.9) 0%, rgba(245, 245, 242, 0.95) 100%);
    border: 1px solid #e0e0e0;
    border-right: 5px solid #a9b4c2;
    color: #5c6b7e;
    align-self: flex-end;
    box-shadow: 
        0 6px 20px rgba(184, 151, 92, 0.08),
        0 3px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.bubble.user::before {
    display: none;
}

/* 普通人标识 */
.bubble.user::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #a9b4c2 0%, rgba(132, 146, 166, 0.3) 60%, transparent 80%);
    border-radius: 50%;
    animation: pulse-user 3.5s ease-in-out infinite;
    z-index: 2;
    filter: drop-shadow(0 0 4px #a9b4c2);
}

.bubble.user .name {
    color: #8492A6;
    text-shadow: 0 1px 2px rgba(132, 146, 166, 0.15);
}

.bubble.user .name::before {
    color: #99a9c0;
    text-shadow: 0 0 12px rgba(153, 169, 192, 0.5);
    animation: star-twinkle 3s ease-in-out infinite 0.3s;
}

.bubble.user .msg {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    color: #5c6b7e;
}

/* 气泡内容样式 */
.bubble .name {
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
    display: block;
    position: relative;
    padding-left: 18px;
    z-index: 1;
    font-family: 'Trajan Pro', 'SimSun', serif;
    text-transform: uppercase;
}

.bubble .name::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 1.2em;
    display: inline-block;
}

.bubble .msg {
    margin: 0;
    font-size: 0.96em;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* === 文档卡片样式 (明亮版) === */
.doc {
    background: linear-gradient(180deg, #fdfaf7 0%, #f9f5ef 100%);
    border: 1px solid #e0d9cd;
    border-left: 7px solid #D4A24C;
    border-radius: 8px;
    padding: 35px 40px;
    margin: 30px 0;
    position: relative;
    font-family: 'Georgia', 'Times New Roman', 'SimSun', serif;
    color: #4a3c31;
    box-shadow: 
        0 10px 28px rgba(184, 151, 92, 0.12),
        0 5px 15px rgba(184, 151, 92, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.doc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212, 162, 76, 0.04) 2px, rgba(212, 162, 76, 0.04) 3px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.doc::after {
    content: '【 S-LEVEL FILE 】';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 0.68em;
    color: rgba(184, 134, 11, 0.7);
    letter-spacing: 4px;
    font-weight: 700;
    font-family: 'Trajan Pro', 'monospace', serif;
    text-shadow: 0 0 12px rgba(212, 162, 76, 0.5);
    animation: glow-text 4s ease-in-out infinite;
    z-index: 2;
}

.doc > * {
    position: relative;
    z-index: 1;
}

.doc .title {
    color: #B8860B;
    font-size: 1.45em;
    font-weight: 700;
    margin: 0 0 28px 0;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(212, 162, 76, 0.4);
    letter-spacing: 3px;
    position: relative;
    text-shadow: 0 1px 2px rgba(184, 151, 92, 0.2);
    font-family: 'Trajan Pro', 'SimSun', serif;
}

.doc .title::before {
    content: '❖';
    margin-right: 16px;
    color: #C7984B;
    display: inline-block;
    animation: rotate-icon 8s linear infinite;
}

.doc .content {
    color: #4a3c31;
    font-size: 0.97em;
    line-height: 2.0;
    position: relative;
    z-index: 1;
}

.doc .content p {
    margin: 0 0 1.3em 0;
    text-align: justify;
}

.doc .content p:last-child {
    margin-bottom: 0;
}

/* === Tooltip提示框样式 (明亮版) === */
T {
    position: relative;
    display: inline-block;
    color: #B8860B;
    font-weight: 600;
    border-bottom: 1px dashed rgba(184, 134, 11, 0.6);
    cursor: help;
    transition: all 0.3s ease;
    z-index: 9998;
}

T:hover {
    color: #D4A24C;
    border-bottom-color: #D4A24C;
    text-shadow: 0 0 10px rgba(212, 162, 76, 0.4);
}

Ti {
    display: none;
}

.tooltip-card {
    visibility: hidden;
    opacity: 0;
    width: 340px;
    background: linear-gradient(135deg, #fefcf9 0%, #f9f6f0 100%);
    color: #4a3c31;
    text-align: left;
    border: 1px solid #D4A24C;
    border-radius: 8px;
    padding: 20px 22px;
    position: fixed;
    z-index: 9999;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -100%) translateY(-25px);
    margin-left: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
    font-weight: 400;
    font-size: 0.88em;
    line-height: 1.9;
    box-shadow: 
        0 15px 32px rgba(184, 151, 92, 0.2),
        0 8px 18px rgba(184, 151, 92, 0.15),
        0 0 35px rgba(212, 162, 76, 0.1);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    pointer-events: none;
}

T:hover .tooltip-card {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-12px);
    pointer-events: auto;
}

.tooltip-card::before {
    content: '【 CLASSIFIED 】';
    display: block;
    font-size: 0.72em;
    color: #B8860B;
    margin-bottom: 14px;
    letter-spacing: 4px;
    font-weight: 700;
    font-family: 'Trajan Pro', 'monospace', serif;
    text-shadow: 0 0 8px rgba(184, 134, 11, 0.4);
}

.tooltip-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #D4A24C transparent transparent transparent;
    filter: drop-shadow(0 4px 6px rgba(184, 151, 92, 0.3));
}

/* === 用户界面样式 (明亮版) === */
.group.ml-0 > .flex.items-start.gap-2 {
    font-family: 'Georgia', 'Times New Roman', 'SimSun', serif !important;
    background-color: #fdfaf7 !important;
    border-radius: 14px !important;
    padding: 18px 22px !important;
    width: 100% !important;
    box-shadow: 0 5px 18px rgba(184, 151, 92, 0.1) !important;
    border: 1px solid #e0d9cd !important;
    transition: all 0.35s ease-in-out !important;
}

.group.ml-0 > .flex.items-start.gap-2:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 10px 30px rgba(184, 151, 92, 0.18) !important;
    background-color: #fff !important;
    border-color: #D4A24C !important;
}

.group.ml-0 .break-all {
    white-space: pre-wrap !important;
    line-height: 1.7 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    color: #4a3c31 !important;
}

.group.ml-0 > .flex.items-start.gap-2 .text-grey-600,
.group.ml-0 > .flex.items-start.gap-2 .text-gray-500,
.group.ml-0 > .flex.items-start.gap-2 .text-gray-400 {
    color: #8c7f70 !important;
}
.group.ml-0 > .flex.items-start.gap-2 .font-bold {
    color: #332b24 !important;
}

/* === 分隔线样式 (明亮版) === */
div[class*="__divider"][class*="__horizontal"] {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    border-top: 1px solid rgba(212, 162, 76, 0.2) !important;
    background: none !important;
}

/* === 回复气泡样式 (明亮版) === */
div.group.relative > div.relative.inline-block.bg-gray-100\/90 {
    background: linear-gradient(135deg, rgba(253, 250, 245, 0.9), rgba(250, 246, 239, 0.95));
    color: #4a3c31;
    border-radius: 20px;
    border: 1px solid #e0d9cd;
    box-shadow: 
        0 18px 65px -15px rgba(184, 151, 92, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(212, 162, 76, 0.1),
        0 0 0 1px rgba(212, 162, 76, 0.1);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    position: relative;
    overflow: hidden;
}

div.group.relative > div.relative.inline-block.bg-gray-100\/90::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25,5 L45,45 L5,45 Z' fill='none' stroke='%23D4A24C' stroke-width='0.3' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

div.group.relative > div.relative.inline-block.bg-gray-100\/90::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, rgba(212, 162, 76, 0.08) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    animation: classUI-ink-pulse 12s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

/* === Prose容器样式 (明亮版) === */
.styled-prose-container {
    font-family: 'Georgia', 'Times New Roman', 'SimSun', serif;
    position: relative;
    z-index: 1;
}

.styled-prose-container br {
    line-height: 1.3;
}

/* === Details折叠面板样式 (明亮版) === */
.styled-prose-container details {
    background: linear-gradient(145deg, rgba(253, 250, 245, 0.8), rgba(250, 246, 239, 0.85));
    border-radius: 12px;
    margin: 16px 0;
    overflow: hidden;
    border: 1px solid #e0d9cd;
    box-shadow: 
        0 5px 18px rgba(184, 151, 92, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(224, 217, 205, 0.7),
        0 0 25px rgba(212, 162, 76, 0.05);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15.5px;
    line-height: 1.9;
    padding: 0 24px 20px 24px;
    color: #4a3c31;
}

.styled-prose-container details:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 10px 30px rgba(184, 151, 92, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        0 0 35px rgba(212, 162, 76, 0.1);
    border-color: #D4A24C;
}

.styled-prose-container details summary {
    background: transparent;
    padding: 18px 55px 18px 24px;
    margin: 0 -24px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    color: #B8860B;
    text-shadow: 0 0 10px rgba(212, 162, 76, 0.3);
    letter-spacing: 1.5px;
    position: relative;
    list-style: none;
    border-bottom: 1px solid #e0d9cd;
    transition: all 0.35s ease;
    font-family: 'Trajan Pro', 'SimSun', serif;
}

.styled-prose-container details summary::-webkit-details-marker {
    display: none;
}

.styled-prose-container details summary::before {
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(184, 134, 11, 0.7);
    border-bottom: 2px solid rgba(184, 134, 11, 0.7);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease;
    box-shadow: 0 0 8px rgba(184, 134, 11, 0.2);
}

.styled-prose-container details summary:hover::before {
    border-color: #D4A24C;
    box-shadow: 0 0 12px rgba(212, 162, 76, 0.5);
}

.styled-prose-container details[open] > summary {
    background: linear-gradient(180deg, rgba(212, 162, 76, 0.08), transparent);
    border-bottom-color: #D4A24C;
    color: #C7984B;
    padding-top: 20px;
    margin-bottom: 20px;
    animation: classUI-scroll-unfold 0.45s ease-out;
}

.styled-prose-container details[open] > summary::before {
    transform: translateY(-45%) rotate(225deg);
}

.styled-prose-container details > *:not(summary) {
    padding: 0;
    line-height: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
}

/* === 故事卡片样式 (明亮版) === */
.classUI-story {
    background: linear-gradient(145deg, rgba(253, 250, 245, 0.8), rgba(250, 246, 239, 0.85));
    border: 1px solid #e0d9cd;
    border-radius: 14px;
    padding: 26px 30px;
    margin: 22px 0;
    color: #4a3c31;
    font-size: 17.5px;
    line-height: 2.0;
    box-shadow: 
        inset 0 2px 10px rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(212, 162, 76, 0.15),
        0 0 25px rgba(184, 151, 92, 0.08);
    position: relative;
    letter-spacing: 0.5px;
}

.classUI-story::before,
.classUI-story::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: rgba(212, 162, 76, 0.5);
    border-style: solid;
    transition: all 0.45s ease;
}

.classUI-story::before {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
}

.classUI-story::after {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
}

.classUI-story:hover::before,
.classUI-story:hover::after {
    transform: scale(1.3);
    border-color: #D4A24C;
    box-shadow: 0 0 12px rgba(212, 162, 76, 0.4);
}

/* === 小节标题样式 (明亮版) === */
.classUI-subsection {
    font-weight: 700;
    color: #B8860B;
    margin: 18px 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 162, 76, 0.3);
    font-size: 14.5px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(212, 162, 76, 0.3);
    font-family: 'Trajan Pro', 'SimSun', serif;
}

/* === NPC卡片样式 (明亮版) === */
.classUI-npc-card {
    background: rgba(253, 250, 245, 0.7);
    border: 1px solid #e8e2d8;
    border-radius: 10px;
    padding: 18px;
    margin: 12px 0;
    box-shadow: 
        0 3px 10px rgba(184, 151, 92, 0.08),
        0 0 20px rgba(184, 151, 92, 0.05);
    transition: all 0.35s ease;
}

.classUI-npc-card:hover {
    background: rgba(255, 253, 250, 0.8);
    border-color: #D4A24C;
    box-shadow: 
        0 5px 15px rgba(184, 151, 92, 0.12),
        0 0 30px rgba(212, 162, 76, 0.1);
}

.classUI-npc-name {
    font-size: 17.5px;
    font-weight: 700;
    color: #B8860B;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(212, 162, 76, 0.3);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(212, 162, 76, 0.3);
    font-family: 'Trajan Pro', 'SimSun', serif;
}

/* === 记忆卡片样式 (明亮版) === */
.classUI-memory {
    background: rgba(250, 246, 239, 0.75);
    border-color: rgba(212, 162, 76, 0.3);
    padding-bottom: 0;
}

.classUI-memory-section {
    margin: 0 0 20px 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* === 表格样式 (明亮版) === */
.classUI-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0d9cd;
    box-shadow: 
        0 5px 15px rgba(184, 151, 92, 0.1),
        0 0 25px rgba(184, 151, 92, 0.05);
}

.classUI-table thead th {
    background: linear-gradient(160deg, rgba(212, 162, 76, 0.1), rgba(245, 241, 233, 0.2));
    color: #B8860B;
    padding: 16px 12px;
    font-weight: 700;
    font-size: 13.5px;
    text-align: center;
    border-bottom: 2px solid #D4A24C;
    text-shadow: 0 0 10px rgba(212, 162, 76, 0.3);
    font-family: 'Trajan Pro', 'SimSun', serif;
}

.classUI-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #eae5dc;
    background: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    color: #5c5042;
    vertical-align: middle;
    transition: background-color 0.35s ease;
}

.classUI-table tbody tr:last-child td {
    border-bottom: none;
}

.classUI-table tbody tr:hover td {
    background: rgba(212, 162, 76, 0.08);
}

/* === 行动卡片样式 (明亮版) === */
.classUI-actions {
    background: linear-gradient(180deg, rgba(253, 250, 245, 0.7), rgba(250, 246, 239, 0.75));
    border: 1px solid #e0d9cd;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 20px;
    color: #4a3c31;
    font-weight: 600;
    font-size: 15.5px;
    line-height: 1.9;
    box-shadow: 
        0 5px 18px rgba(184, 151, 92, 0.1),
        0 0 25px rgba(184, 151, 92, 0.08);
    letter-spacing: 0.4px;
}

/* === 顶部导航栏样式 (明亮版) === */














/* === AI模型选择器样式 (明亮版) === */
#ai-model-selector .group {
    background: linear-gradient(135deg, #fff 0%, #f9f6f0 100%) !important;
    border: 1px solid #e0d9cd !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    height: 2.2rem !important;
    transition: all 0.35s ease;
    box-shadow: 0 3px 10px rgba(184, 151, 92, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

#ai-model-selector .group:hover {
    border-color: #D4A24C !important;
    box-shadow: 0 5px 18px rgba(184, 151, 92, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    background: #fff !important;
    transform: translateY(-2px);
}

#ai-model-selector .truncate {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #4a3c31 !important;
    font-family: 'Trajan Pro', 'SimSun', serif !important;
    transition: color 0.35s ease;
}

#ai-model-selector .group:hover .truncate {
    color: #B8860B !important;
    text-shadow: 0 0 10px rgba(184, 134, 11, 0.3);
}

#ai-model-selector svg {
    color: #4a3c31 !important;
    transition: color 0.35s ease, filter 0.35s ease;
}

#ai-model-selector .group:hover svg {
    color: #B8860B !important;
    filter: drop-shadow(0 0 5px rgba(184, 134, 11, 0.5));
}

/* === 设置按钮样式 (明亮版) === */
#header-setting-button {
    border-radius: 8px !important;
    background: linear-gradient(135deg, #fff 0%, #f9f6f0 100%) !important;
    border: 1px solid #e0d9cd !important;
    transition: all 0.35s ease;
    box-shadow: 0 3px 10px rgba(184, 151, 92, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

#header-setting-button:hover {
    border-color: #D4A24C !important;
    box-shadow: 0 5px 18px rgba(184, 151, 92, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    background: #fff !important;
    transform: translateY(-2px);
}

#header-setting-button svg {
    color: #4a3c31 !important;
    transition: color 0.35s ease, filter 0.35s ease;
}

#header-setting-button:hover svg {
    color: #B8860B !important;
    filter: drop-shadow(0 0 5px rgba(184, 134, 11, 0.5));
}

/* === 输入框容器样式 (明亮版) === */
.p-\[5\.5px\].max-h-\[150px\] {
    background: #fdfaf7 !important;
    border: 1px solid #e0d9cd !important;
    border-radius: 18px !important;
    box-shadow: 
        0 6px 20px rgba(184, 151, 92, 0.12),
        0 2px 10px rgba(184, 151, 92, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    padding: 8px !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    width: auto !important;
    max-width: 96% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* === 输入框样式 (明亮版) === */
#ai-chat-input {
    background: #fff !important;
    border-radius: 12px !important;
    border: 1px solid #eae5dc !important;
    font-family: 'Georgia', 'Times New Roman', 'SimSun', serif !important;
    font-size: 14.5px !important;
    line-height: 1 !important;
    color: #4a3c31 !important;
    caret-color: #D4A24C !important;
    padding: 12px 50px 12px 12px !important;
    height: auto !important;
    max-height: 130px !important;
    resize: none !important;
    outline: none !important;
    transition: all 0.35s ease;
    field-sizing: content !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-text-size-adjust: 100% !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

#ai-chat-input::placeholder {
    color: #a39686 !important;
}

#ai-chat-input:focus {
    border-color: #D4A24C !important;
    box-shadow: 
        0 0 20px rgba(212, 162, 76, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.06) !important;
    background: #fff !important;
}

.p-\[5\.5px\].max-h-\[150px\] .flex.items-center.px-1 {
    background: rgba(212, 162, 76, 0.1) !important;
    color: #B8860B !important;
    border-radius: 8px !important;
    border: 1px solid rgba(212, 162, 76, 0.2);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

.p-\[5\.5px\].max-h-\[150px\] .mx-1 {
    background: rgba(212, 162, 76, 0.2) !important;
}

/* === 发送按钮样式 (明亮版) === */
#ai-send-button {
    border-radius: 10px !important;
    background: #f9f6f0 !important;
    border: 1px solid #e0d9cd !important;
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(184, 151, 92, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#ai-send-button:hover {
    background: rgba(212, 162, 76, 0.2) !important;
    border-color: #D4A24C !important;
    box-shadow: 0 4px 15px rgba(212, 162, 76, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

#ai-send-button svg {
    color: #4a3c31 !important;
    transition: color 0.35s ease, filter 0.35s ease;
}

#ai-send-button:hover svg {
    color: #B8860B !important;
    filter: drop-shadow(0 0 8px rgba(184, 134, 11, 0.5));
}

/* === 加载动画样式（龙文解析 - 明亮版） === */
[class*="dot-flashing"] {
    display: none !important;
}

div:has(> [class*="dot-flashing"]) {
    width: 100% !important;
    height: auto !important;
    min-height: 110px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(135deg, #fdfaf6 0%, #f7f3eb 100%) !important;
    border: 1px solid #e0d9cd !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 
        0 18px 50px rgba(184, 151, 92, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 8px rgba(224, 217, 205, 0.5),
        0 0 45px rgba(212, 162, 76, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* **SVG保留，但颜色为明亮主题优化** */
div:has(> [class*="dot-flashing"])::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 85px !important;
    height: 85px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23D4A24C;stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:%23B8860B;stop-opacity:1' /%3E%3C/linearGradient%3E%3Cfilter id='glow'%3E%3CfeGaussianBlur stdDeviation='1.5'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23glow)' opacity='0.8'%3E%3Cpath d='M50,10 L90,50 L50,90 L10,50 Z' fill='none' stroke='url(%23grad)' stroke-width='3'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 50 50' to='360 50 50' dur='8s' repeatCount='indefinite'/%3E%3C/path%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='url(%23grad)' stroke-width='2' stroke-dasharray='5 5'%3E%3CanimateTransform attributeName='transform' type='rotate' from='360 50 50' to='0 50 50' dur='10s' repeatCount='indefinite'/%3E%3C/circle%3E%3Cpath d='M30,30 L70,70 M70,30 L30,70' fill='none' stroke='url(%23grad)' stroke-width='1.5'%3E%3Canimate attributeName='stroke-opacity' values='0.2;1;0.2' dur='3s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: drop-shadow(0 0 15px rgba(212, 162, 76, 0.4)) !important;
}

div:has(> [class*="dot-flashing"])::after {
    content: '龙文解析中...' !important;
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-family: 'Trajan Pro', 'SimSun', serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #B8860B !important;
    letter-spacing: 0.2em !important;
    animation: ink-text-fade 3s ease-in-out infinite !important;
    text-shadow: 0 0 15px rgba(212, 162, 76, 0.5) !important;
}

/* === Token消耗显示样式 (明亮版) === */
.MuiStack-root.text-purple-500.mt-1.css-1kz283j {
    background: #f9f6f0 !important;
    border: 1px solid #e8e2d8 !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0 16px !important;
    transition: all 0.35s ease !important;
    box-shadow: 0 3px 12px rgba(184, 151, 92, 0.08) !important;
    margin-top: 6px !important;
}

.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2 {
    color: #8c7f70 !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    font-family: 'Georgia', 'SimSun', serif !important;
}

.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2::after {
    content: '权限验证' !important;
    background: rgba(212, 162, 76, 0.1) !important;
    color: #B8860B !important;
    border: 1px solid rgba(212, 162, 76, 0.2) !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    font-size: 12.5px !important;
    margin-left: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Trajan Pro', 'SimSun', serif !important;
    font-weight: 600 !important;
    white-space: nowrap;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2:hover::after {
    background: #D4A24C !important;
    border-color: #C7984B !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(212, 162, 76, 0.5) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1) !important;
}

.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-1x48u03 {
    color: #B8860B !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 3px 8px !important;
    background: rgba(212, 162, 76, 0.1) !important;
    border-radius: 6px !important;
    opacity: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    transition: opacity 0.35s ease, max-width 0.45s ease, padding 0.45s ease !important;
}

.MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2:hover ~ p.MuiTypography-root.css-1x48u03 {
    opacity: 1 !important;
    max-width: 220px !important;
}

/* === 音频播放器样式 (明亮版) === */
.classUI-audio-player {
    width: 100%;
    height: 38px;
    margin-top: 10px;
    background: linear-gradient(135deg, #fff, #f9f6f0);
    border-radius: 20px;
    border: 1px solid #e0d9cd;
    box-shadow: 
        0 5px 18px rgba(184, 151, 92, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(212, 162, 76, 0.1);
    backdrop-filter: blur(15px) saturate(110%);
    -webkit-backdrop-filter: blur(15px) saturate(110%);
    accent-color: #D4A24C;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.classUI-audio-player:hover {
    border-color: #D4A24C;
    box-shadow: 
        0 7px 24px rgba(184, 151, 92, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(212, 162, 76, 0.2),
        0 0 35px rgba(212, 162, 76, 0.1);
}

.classUI-audio-player::-webkit-media-controls-panel {
    background: transparent;
}

.classUI-audio-player::-webkit-media-controls-play-button,
.classUI-audio-player::-webkit-media-controls-mute-button {
    background-color: rgba(212, 162, 76, 0.15);
    border-radius: 50%;
    transition: all 0.35s ease;
    filter: brightness(0) saturate(100%) invert(69%) sepia(29%) saturate(1015%) hue-rotate(352deg) brightness(88%) contrast(85%);
    margin: 0 5px;
}

.classUI-audio-player::-webkit-media-controls-play-button:hover,
.classUI-audio-player::-webkit-media-controls-mute-button:hover {
    background-color: rgba(212, 162, 76, 0.3);
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(212, 162, 76, 0.4);
}

.classUI-audio-player::-webkit-media-controls-current-time-display,
.classUI-audio-player::-webkit-media-controls-time-remaining-display {
    color: #8c7f70;
    font-weight: 600;
    font-size: 11.5px;
    font-family: 'monospace', serif;
}

.classUI-audio-player::-webkit-media-controls-timeline {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 9px;
    height: 6px;
    border: 1px solid #e0d9cd;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
}

.classUI-audio-player::-webkit-media-controls-volume-slider,
.classUI-audio-player::-webkit-media-controls-timeline:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: #d8cfc1;
}

/* === 隐藏头像 === */
.mb-2 > .shrink-0.w-10.h-10 {
    display: none;
}

/* ========================================
   龙族特殊元素样式 (统一协调版 - 明亮)
   ======================================== */

.styled-prose-container wealth_info,
.styled-prose-container spell_card_list,
.styled-prose-container item_list {
    display: block;
    margin: 14px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(253, 250, 245, 0.2), rgba(250, 246, 239, 0.1));
    border: 1px solid #e8e2d8;
    border-left: 4px solid #D4A24C;
    border-radius: 8px;
    font-family: 'Georgia', 'Times New Roman', 'SimSun', serif;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(184, 151, 92, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.styled-prose-container wealth_info:hover,
.styled-prose-container spell_card_list:hover,
.styled-prose-container item_list:hover {
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.08), rgba(227, 181, 100, 0.06));
    border-color: #d8cfc1;
    box-shadow: 0 4px 14px rgba(184, 151, 92, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.styled-prose-container wealth_info > span,
.styled-prose-container spell_card_list > span,
.styled-prose-container item_list > span {
    display: block;
    color: #B8860B;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(184, 134, 11, 0.2);
    font-family: 'Trajan Pro', 'SimSun', serif;
    letter-spacing: 1px;
}

.styled-prose-container spell_card_list info {
    display: inline-block;
    color: #8B4513; /* 鞍褐色 */
    font-weight: 600;
    font-size: 13.5px;
    margin-right: 5px;
    font-family: 'Trajan Pro', 'SimSun', serif;
}

.styled-prose-container spell_card_list T,
.styled-prose-container item_list T {
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 6px;
    cursor: help;
    color: #4a3c31;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #D4A24C;
    padding: 2px 8px;
    background: rgba(212, 162, 76, 0.08);
    border-radius: 4px;
    transition: all 0.3s ease;
    overflow: visible;
    z-index: 10;
}

.styled-prose-container spell_card_list T::before,
.styled-prose-container item_list T::before {
    content: "";
}

.styled-prose-container spell_card_list T:hover,
.styled-prose-container item_list T:hover {
    background: rgba(212, 162, 76, 0.15);
    color: #B8860B;
    border-bottom-style: solid;
    box-shadow: 0 0 12px rgba(212, 162, 76, 0.2);
    z-index: 100;
}

.styled-prose-container spell_card_list T Ti,
.styled-prose-container item_list T Ti {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    width: auto;
    min-width: 200px;
    max-width: 250px;
    white-space: normal;
    background: linear-gradient(135deg, rgba(254, 252, 249, 0.98), rgba(249, 246, 240, 0.99));
    color: #4a3c31;
    text-align: left;
    border: 1px solid #D4A24C;
    border-left: 4px solid #D4A24C;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.86em;
    font-weight: 400;
    line-height: 1.7;
    font-family: 'Georgia', 'Times New Roman', 'SimSun', serif;
    box-shadow: 0 8px 30px rgba(184, 151, 92, 0.25), 0 0 20px rgba(212, 162, 76, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: absolute;
    z-index: 99999;
    bottom: 100%;
    left: 0;
    transform: translateY(10px);
    margin-bottom: 10px;
}

.styled-prose-container spell_card_list T Ti::before,
.styled-prose-container item_list T Ti::before {
    content: '【 FILE ACCESS 】';
    display: block;
    font-size: 0.7em;
    color: #B8860B;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(212, 162, 76, 0.2);
    letter-spacing: 2px;
    font-weight: 700;
    font-family: 'Trajan Pro', 'monospace', serif;
}

.styled-prose-container spell_card_list T:hover Ti,
.styled-prose-container item_list T:hover Ti {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.styled-prose-container spell_card_list T Ti > span,
.styled-prose-container item_list T Ti > span {
    display: inline-block;
    color: #C7984B;
    font-weight: 700;
    margin-right: 6px;
}

/* === 移动端适配 === */
@media (max-width: 768px) {
    .chat {
        padding: 26px 18px;
        gap: 16px;
        border-left-width: 6px;
        border-right-width: 6px;
    }
    .bubble {
        max-width: 88%;
        padding: 16px 20px;
    }
    .doc {
        padding: 26px 22px;
    }
    .tooltip-card {
        width: 280px;
    }
    .styled-prose-container details {
        font-size: 14.5px;
        line-height: 1.8;
        padding: 0 18px 16px 18px;
    }
    .styled-prose-container details summary {
        padding: 16px 50px 16px 18px;
        margin: 0 -18px;
        font-size: 16px;
    }
}

/* === 减弱动画（辅助功能） === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* === 隐藏特定背景元素 === */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none;
}

/* ========================================
   龙族主题样式表结束 (光明版)
   ======================================== */

/* ========== 龙族风格 - 装备部商店界面 (光明版) ========== */
.ep-exchange {
  border: 2px solid #e0d9cd;
  background-color: #fdfaf7;
  padding: 15px;
  font-family: 'Georgia', 'Times New Roman', 'SimSun', serif;
  color: #4a3c31;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(184, 151, 92, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.ep-exchange::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(212, 162, 76, 0.05) 50px, rgba(212, 162, 76, 0.05) 51px),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(212, 162, 76, 0.05) 50px, rgba(212, 162, 76, 0.05) 51px);
  pointer-events: none;
  border-radius: 6px;
}

.ep-exchange .title {
  text-align: center;
  border-bottom: 2px solid #D4A24C;
  padding-bottom: 10px;
  margin-bottom: 15px;
  margin-top: 0;
  color: #B8860B;
  font-weight: bold;
  font-size: 1.3em;
  letter-spacing: 3px;
  text-shadow: 0 1px 2px rgba(184, 134, 11, 0.1);
  position: relative;
  z-index: 1;
  font-family: 'Trajan Pro', serif;
}

.ep-exchange .balance {
  text-align: right;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1em;
  position: relative;
  z-index: 1;
}

.ep-exchange .currency-money {
  color: #38761d; /* 深绿色 */
  font-weight: bold;
}

.ep-exchange .currency-special {
  color: #a61c00; /* 深红色 */
  font-weight: bold;
}

.ep-exchange .category {
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.ep-exchange .category-title {
  padding: 8px 12px;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ep-exchange .category-rare {
  background: linear-gradient(135deg, #fff7e6 0%, #ffefcc 100%);
  border-left: 4px solid #B8860B;
  color: #8c6a0a;
}

.ep-exchange .category-power {
  background: linear-gradient(135deg, #fbeee2 0%, #f5e3d3 100%);
  border-left: 4px solid #CD7F32;
  color: #804f1e;
}

.ep-exchange .category-life {
  background: linear-gradient(135deg, #f2f3f5 0%, #e8eaed 100%);
  border-left: 4px solid #708090;
  color: #4c5866;
}

.ep-exchange .category-info {
  background: linear-gradient(135deg, #ffebe6 0%, #ffd9cc 100%);
  border-left: 4px solid #FF4500;
  color: #b33000;
}

.ep-exchange .item-list {
  list-style-type: none;
  padding-left: 10px;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.ep-exchange .item-list li {
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.5);
  border-left: 3px solid transparent;
}

.ep-exchange .item-list li:hover {
  background-color: rgba(212, 162, 76, 0.1);
  transform: translateX(5px);
  border-left-color: #D4A24C;
  box-shadow: 0 2px 6px rgba(184, 151, 92, 0.1);
}

.ep-exchange .item-note {
  font-size: 0.85em;
  color: #8c7f70;
  font-style: italic;
  opacity: 0.9;
}

.ep-exchange .prompt {
  text-align: center;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 8px;
  border-top: 1px dashed #d8cfc1;
  padding-top: 10px;
  color: #8c7f70;
  position: relative;
  z-index: 1;
}

.ep-exchange .secondary-prompt {
  text-align: center;
  font-size: 0.9em;
  color: #a39686;
  margin-top: 5px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.ep-exchange .item-list::-webkit-scrollbar {
  width: 8px;
}

.ep-exchange .item-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.ep-exchange .item-list::-webkit-scrollbar-thumb {
  background: #d8cfc1;
  border-radius: 4px;
  border: 1px solid #f9f6f0;
}

.ep-exchange .item-list::-webkit-scrollbar-thumb:hover {
  background: #D4A24C;
}

@media (max-width: 768px) {
  .ep-exchange {
    padding: 12px;
  }
  .ep-exchange .title {
    font-size: 1.1em;
  }
  .ep-exchange .item-list {
    max-height: 200px;
  }
}
/* ========================================
   守夜人论坛 - 明亮风格界面 (多帖子分行 + Hover交互版)
   配色：晨曦白、警戒黄、信息蓝、钢灰
   核心元素：现代、简约、信息清晰、动态反馈
   ======================================== */

/* === 关键帧动画 === */
@keyframes text-glow-alert {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 193, 7, 0.4); }
    50% { text-shadow: 0 0 12px rgba(255, 193, 7, 0.8), 0 0 20px rgba(255, 193, 7, 0.4); }
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* === 总容器 <details> === */
details[open] {
    /** **核心容器**：定义了整体的浅色背景和圆角，营造出现代感。**/
    background-color: #f8f9fa; /* 晨曦白背景 */
    border: 1px solid #dee2e6; /* 柔和的边框 */
    border-radius: 12px;
    padding: 16px 20px;
    margin: 1em 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    color: #495057; /* 深灰色文字，保证可读性 */
    transition: all 0.3s ease;
}

/* **Hover效果**：容器悬停时，阴影加深，边框更明显 */
details[open]:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #ced4da;
}

/* === 标题 <summary> === */
details[open] summary {
    /** **折叠标题**：使用醒目的警戒黄作为主色调，体现“守夜人”的警惕性。**/
    font-size: 1.2em;
    font-weight: bold;
    color: #ffc107; /* **警戒黄** */
    cursor: pointer;
    padding: 10px 15px;
    margin: -16px -20px 15px -20px; /* 扩展至容器边缘 */
    background-color: #343a40; /* 深色标题栏背景，形成对比 */
    border-radius: 11px 11px 0 0;
    border-bottom: 2px solid #ffc107;
    list-style: none; /* 移除默认的三角箭头 */
    transition: background-color 0.3s ease;
}

/* **Hover效果**：标题悬停时背景变深 */
details[open] summary:hover {
    background-color: #212529;
}

/* === 论坛顶部信息 .forum-header === */
.forum-header {
    font-size: 0.8em;
    color: #6c757d;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ced4da;
    line-height: 1.6;
}

/* === 板块容器 .forum-section === */
.forum-section {
    /** **内容板块**：每个板块都有清晰的边界和标题，结构分明。**/
    margin-bottom: 15px;
    padding: 12px;
    background-color: #ffffff; /* 纯白背景，突出内容 */
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* **Hover效果**：板块悬停时轻微上浮，边框和阴影变化 */
.forum-section:hover {
    transform: translateY(-3px);
    border-color: #d1d8e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 板块标题 (通过CSS伪元素生成) */
.forum-section::before {
    content: attr(data-title); /* 读取HTML中data-title属性作为标题 */
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #007bff; /* **信息蓝** */
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
}

/* === 帖子/任务/讯息 容器 div === */
.forum-section > div {
    /** **帖子容器**：这是实现分行的核心。每个div都是一个独立的帖子。**/
    font-size: 0.9em;
    line-height: 1.8;
    color: #495057;
    padding: 8px;
    margin: 4px -8px; /* 垂直间距4px，水平负边距扩展悬停区域 */
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

/* **Hover效果**：整个帖子容器悬停时变色并右移 */
.forum-section > div:hover {
    background-color: #e9ecef;
    color: #212529;
    transform: translateX(5px);
}

/* --- 智能标签生成 --- */
.forum-section > div::before {
    font-weight: bold;
    margin-right: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    display: inline-block;
}

/* [任务大厅] 的第一个帖子为 [置顶] */
.forum-section[data-title="【任务大厅】"] > div:first-of-type::before {
    content: '置顶';
    color: #fff;
    background-color: #dc3545; /* **危险红** */
    animation: subtle-float 3s ease-in-out infinite;
}
/* [任务大厅] 的第二个帖子为 [新] */
.forum-section[data-title="【任务大厅】"] > div:nth-of-type(2)::before {
    content: '新';
    color: #fff;
    background-color: #28a745; /* **成功绿** */
}

/* [情报交流站] 和 [自由讨论区] 的所有帖子都为 [热] */
.forum-section[data-title="【情报交流站】"] > div::before,
.forum-section[data-title="【自由讨论区】"] > div::before {
    content: '热';
    color: #212529;
    background-color: #ffc107; /* 警戒黄 */
}

/* [论坛讯息] 的特殊处理 */
.forum-section[data-title="【论坛讯息】"] > div {
    padding-left: 0; /* 移除左内边距以对齐 */
}
.forum-section[data-title="【论坛讯息"] > div:hover {
    background-color: transparent; /* 移除悬停背景色 */
    transform: none; /* 移除悬停位移 */
    cursor: default;
}
/* 发信人行 */
.forum-section[data-title="【论坛讯息"] > div:first-of-type {
    font-weight: 600;
    color: #007bff;
    padding-bottom: 0;
}
.forum-section[data-title="【论坛讯息"] > div:first-of-type:hover {
    text-decoration: underline;
    cursor: pointer;
}
/* 内容行 */
.forum-section[data-title="【论坛讯息"] > div:last-of-type::before {
    content: '▶';
    color: #6c757d;
    background: none;
    font-weight: normal;
    padding: 0;
    margin-right: 8px;
}
think {
    display: none !important;
}
/* --- 功能状态栏 (Function Bar) — 卡塞尔版 --- */
.styled-prose-container fbar {
  display: block !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #B8860B !important;
  letter-spacing: 1.5px !important;
  padding: 8px 14px !important;
  margin: 8px 0 0 0 !important;
  border-top: 1px dashed rgba(212,162,76,0.25) !important;
  font-family: 'Georgia', 'Times New Roman', 'SimSun', serif !important;
  line-height: 1.8 !important;
}
/* === Tip提示组件 (龙族·卡塞尔版) === */
.tip {
  position: relative;
  display: inline-block;
  color: #B8860B;
  font-weight: 600;
  border-bottom: 2px solid rgba(212, 162, 76, 0.6);
  cursor: help;
  transition: all 0.35s ease;
  z-index: 9998;
}

.tip:hover {
  color: #D4A24C;
  border-bottom-color: #C7984B;
  text-shadow: 0 0 10px rgba(212, 162, 76, 0.4);
}

.tip .text {
  visibility: hidden;
  width: 340px;
  background: linear-gradient(135deg, #fefcf9 0%, #f9f6f0 100%);
  color: #4a3c31;
  text-align: left;
  border: 1px solid #D4A24C;
  border-radius: 8px;
  padding: 20px 22px;
  position: fixed;
  z-index: 9999;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -100%) translateY(-25px);
  margin-left: 0;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  font-weight: 400;
  font-size: 0.88em;
  line-height: 1.9;
  font-family: 'Georgia', 'Times New Roman', 'SimSun', serif;
  box-shadow:
    0 15px 32px rgba(184, 151, 92, 0.2),
    0 8px 18px rgba(184, 151, 92, 0.15),
    0 0 35px rgba(212, 162, 76, 0.1);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  pointer-events: none;
}

.tip .text::before {
  content: '【 CLASSIFIED 】';
  display: block;
  font-size: 0.72em;
  color: #B8860B;
  margin-bottom: 14px;
  letter-spacing: 4px;
  font-weight: 700;
  font-family: 'Trajan Pro', 'monospace', serif;
  text-shadow: 0 0 8px rgba(184, 134, 11, 0.4);
}

.tip .text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: #D4A24C transparent transparent transparent;
  filter: drop-shadow(0 4px 6px rgba(184, 151, 92, 0.3));
}

.tip:hover .text {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -100%) translateY(-12px);
  pointer-events: auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .tip .text {
    width: 280px;
  }
}
/* === 过往记忆存档区 === */
.styled-prose-container .s{padding:0!important;font-size:15px!important;line-height:1.9!important;color:#4a3c31!important}
.styled-prose-container .s>.t{font-size:17px!important;font-weight:700!important;color:#B8860B!important;letter-spacing:3px!important;padding:6px 0!important;margin:0!important;text-align:center!important;font-family:'Trajan Pro','SimSun',serif!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:14px!important;text-shadow:0 0 8px rgba(212,162,76,.25)!important}
.styled-prose-container .s>.t::before,.styled-prose-container .s>.t::after{content:''!important;flex:1!important;height:1px!important;max-width:90px!important;background:linear-gradient(90deg,transparent,#D4A24C)!important}
.styled-prose-container .s>.t::after{background:linear-gradient(90deg,#D4A24C,transparent)!important}
.styled-prose-container .s>strong{display:block!important;text-align:right!important;font-size:11px!important;font-weight:600!important;color:#8c7f70!important;letter-spacing:.5px!important;margin:4px 0 8px 0!important;padding:3px 10px!important;background:rgba(212,162,76,.06)!important;border-radius:4px!important;font-family:'Consolas','SF Mono',monospace!important;border-right:2px solid rgba(212,162,76,.25)!important}
.styled-prose-container .s>hr{border:none!important;height:1px!important;margin:14px 0 4px 0!important;background:linear-gradient(90deg,transparent 5%,rgba(212,162,76,.15) 30%,rgba(212,162,76,.3) 50%,rgba(212,162,76,.15) 70%,transparent 95%)!important}
@media(max-width:768px){
.styled-prose-container .s>.t{font-size:15px!important;letter-spacing:2px!important;padding:4px 0!important;gap:10px!important}
.styled-prose-container .s>.t::before,.styled-prose-container .s>.t::after{max-width:60px!important}
.styled-prose-container .s>strong{font-size:10px!important;margin:3px 0 6px 0!important}
.styled-prose-container .s>hr{margin:10px 0 2px 0!important}
}
@media(max-width:480px){
.styled-prose-container .s>.t{font-size:13px!important;letter-spacing:1.5px!important;padding:3px 0!important;gap:8px!important}
.styled-prose-container .s>.t::before,.styled-prose-container .s>.t::after{max-width:40px!important}
.styled-prose-container .s>strong{font-size:9px!important;padding:2px 8px!important}
.styled-prose-container .s>hr{margin:8px 0 2px 0!important}
}


/* =============================================
 * MOBILE PERFORMANCE: P1 box-shadow simplification
 * 将所有多层 box-shadow 在移动端简化为单层
 * ============================================= */
@media (max-width: 768px) {

  /* --- 聊天主容器 --- */
  .chat {
    box-shadow: 0 4px 16px rgba(184, 151, 92, 0.12) !important;
  }

  /* --- 气泡 --- */
  .bubble,
  .bubble.npc,
  .bubble.user {
    box-shadow: 0 2px 10px rgba(184, 151, 92, 0.1) !important;
  }
  .bubble:hover {
    box-shadow: 0 4px 14px rgba(184, 151, 92, 0.14) !important;
  }

  /* --- 文档卡片 --- */
  .doc {
    box-shadow: 0 4px 14px rgba(184, 151, 92, 0.1) !important;
  }

  /* --- 提示卡片 --- */
  .tooltip-card,
  .tip .text {
    box-shadow: 0 6px 18px rgba(184, 151, 92, 0.15) !important;
  }

  /* --- 顶栏 header --- */
  
  
  

  /* --- 模型选择器 & 设置按钮 --- */
  #ai-model-selector .group,
  #header-setting-button {
    box-shadow: 0 2px 8px rgba(184, 151, 92, 0.08) !important;
  }
  #ai-model-selector .group:hover,
  #header-setting-button:hover {
    box-shadow: 0 3px 12px rgba(184, 151, 92, 0.12) !important;
  }

  /* --- 输入区域 --- */
  .p-\[5\.5px\].max-h-\[150px\] {
    box-shadow: 0 3px 10px rgba(184, 151, 92, 0.1) !important;
  }
  .p-\[5\.5px\].max-h-\[150px\] .flex.items-center.px-1 {
    box-shadow: none !important;
  }
  #ai-chat-input {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  }
  #ai-chat-input:focus {
    box-shadow: 0 0 12px rgba(212, 162, 76, 0.2) !important;
  }

  /* --- 发送按钮 --- */
  #ai-send-button {
    box-shadow: 0 2px 8px rgba(184, 151, 92, 0.1) !important;
  }
  #ai-send-button:hover {
    box-shadow: 0 3px 12px rgba(212, 162, 76, 0.18) !important;
  }

  /* --- 消息容器 --- */
  div.group.relative > div.relative.inline-block.bg-gray-100\/90,
  div:has(> [class*="dot-flashing"]) {
    box-shadow: 0 6px 20px rgba(184, 151, 92, 0.12) !important;
  }

  /* --- 侧栏选项 --- */
  .group.ml-0 > .flex.items-start.gap-2 {
    box-shadow: 0 2px 8px rgba(184, 151, 92, 0.08) !important;
  }
  .group.ml-0 > .flex.items-start.gap-2:hover {
    box-shadow: 0 3px 12px rgba(184, 151, 92, 0.12) !important;
  }

  /* --- details 折叠面板 --- */
  .styled-prose-container details {
    box-shadow: 0 2px 10px rgba(184, 151, 92, 0.08) !important;
  }
  .styled-prose-container details:hover {
    box-shadow: 0 4px 14px rgba(184, 151, 92, 0.12) !important;
  }
  .styled-prose-container details summary::before {
    box-shadow: 0 0 6px rgba(184, 134, 11, 0.15) !important;
  }
  .styled-prose-container details summary:hover::before {
    box-shadow: 0 0 8px rgba(212, 162, 76, 0.3) !important;
  }
  details[open] {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
  }
  details[open]:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07) !important;
  }

  /* --- classUI 组件 --- */
  .classUI-story {
    box-shadow: 0 2px 10px rgba(184, 151, 92, 0.08) !important;
  }
  .classUI-story:hover::after {
    box-shadow: none !important;
  }
  .classUI-npc-card {
    box-shadow: 0 2px 8px rgba(184, 151, 92, 0.08) !important;
  }
  .classUI-npc-card:hover {
    box-shadow: 0 3px 12px rgba(184, 151, 92, 0.1) !important;
  }
  .classUI-table {
    box-shadow: 0 3px 12px rgba(184, 151, 92, 0.08) !important;
  }
  .classUI-actions {
    box-shadow: 0 3px 12px rgba(184, 151, 92, 0.08) !important;
  }

  /* --- 音频播放器 --- */
  .classUI-audio-player {
    box-shadow: 0 3px 10px rgba(184, 151, 92, 0.08) !important;
  }
  .classUI-audio-player:hover {
    box-shadow: 0 4px 14px rgba(184, 151, 92, 0.12) !important;
  }
  .classUI-audio-player::-webkit-media-controls-mute-button:hover {
    box-shadow: none !important;
  }
  .classUI-audio-player::-webkit-media-controls-timeline {
    box-shadow: none !important;
  }

  /* --- 物品列表 --- */
  .styled-prose-container item_list {
    box-shadow: 0 2px 8px rgba(184, 151, 92, 0.05) !important;
  }
  .styled-prose-container item_list:hover {
    box-shadow: 0 3px 10px rgba(184, 151, 92, 0.08) !important;
  }
  .styled-prose-container item_list T:hover {
    box-shadow: 0 0 8px rgba(212, 162, 76, 0.15) !important;
  }
  .styled-prose-container item_list T Ti {
    box-shadow: 0 4px 14px rgba(184, 151, 92, 0.15) !important;
  }

  /* --- 兑换系统 --- */
  .ep-exchange {
    box-shadow: 0 3px 10px rgba(184, 151, 92, 0.1) !important;
  }
  .ep-exchange .category-title {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  }
  .ep-exchange .item-list li:hover {
    box-shadow: 0 1px 6px rgba(184, 151, 92, 0.08) !important;
  }

  /* --- 论坛板块 --- */
  .forum-section:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
  }

  /* --- MUI 组件 --- */
  .MuiStack-root.text-purple-500.mt-1.css-1kz283j {
    box-shadow: 0 2px 8px rgba(184, 151, 92, 0.06) !important;
  }
  .MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2::after {
    box-shadow: none !important;
  }
  .MuiStack-root.css-1kz283j > p.MuiTypography-root.css-6c0gf2:hover::after {
    box-shadow: 0 0 10px rgba(212, 162, 76, 0.3) !important;
  }

  /* --- 进度条 (无需阴影) --- */
  .progress-bar-container,
  .progress-bar-fill {
    box-shadow: none !important;
  }

  /* --- @keyframes 中的 box-shadow 动画简化 ---
       (无法在 media query 中覆盖 keyframes，
        但上面的选择器 !important 会覆盖动画帧的值) */
}

/* ── 代码块 → 羊皮纸面板 ── */
pre{
  background:linear-gradient(160deg,#f7eed5,#f0e3c1) !important;
  border:1px solid #b89a5e !important;
  border-radius:4px !important;
  box-shadow:inset 0 0 14px rgba(120,86,28,.10) !important;
}
pre code,pre span,pre div[node="[object Object]"]{
  color:#3a2c14 !important;
  background:transparent !important;
  text-shadow:none !important;
}
@media (max-width:768px){.styled-prose-container *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;animation:none!important;transition:none!important;text-shadow:none!important;box-shadow:none!important}.styled-prose-container details,.styled-prose-container table,.styled-prose-container .classUI-subsection{box-shadow:0 1px 3px rgba(0,0,0,.18)!important}}