```css
/*
 * ===================================================================
 *  Shao Song Chronicle UI - Song Dynasty Themed Stylesheet
 *  Version: 1.1 (Ink Wash & Crimson Court Update - No Sidebar)
 *  Author: System Core AI
 *  Description: 完全适配《绍宋》世界观的界面样式库。
 *               核心更新：
 *               - 铁血朱红与水墨青绿交织的宋代美学
 *               - 行动选项序号增加龙气官印光晕特效
 *               - 已移除右侧固定侧边栏，折叠面板恢复为正常文档流
 * ===================================================================
 */

/* =============================================
 *  动画定义 (Keyframes & SMIL SVG)
 * ============================================= */

@keyframes mount-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
}

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

@keyframes pulse-npc {
    0%, 100% { opacity: 0.5; transform: scale(1); box-shadow: 0 0 8px rgba(139, 0, 0, 0.6); }
    50% { opacity: 1; transform: scale(1.4); box-shadow: 0 0 16px rgba(139, 0, 0, 1); }
}

@keyframes pulse-user {
    0%, 100% { opacity: 0.5; transform: scale(1); box-shadow: 0 0 8px rgba(26, 26, 26, 0.6); }
    50% { opacity: 1; transform: scale(1.4); box-shadow: 0 0 16px rgba(26, 26, 26, 1); }
}

@keyframes glow-text {
    0%, 100% { opacity: 0.6; text-shadow: 0 0 8px rgba(139, 0, 0, 0.5); }
    50% { opacity: 1; text-shadow: 0 0 16px rgba(139, 0, 0, 1), 0 0 24px rgba(139, 0, 0, 0.5); }
}

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

@keyframes classUI-ink-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}

@keyframes classUI-scroll-unfold {
    0% { opacity: 0.85; }
    100% { opacity: 1; }
}

@keyframes ink-text-fade {
    0% { opacity: 0.6; text-shadow: 0 0 8px rgba(139, 0, 0, 0.4); }
    50% { opacity: 0.85; text-shadow: 0 0 12px rgba(139, 0, 0, 0.6); }
    100% { opacity: 1; text-shadow: 0 0 16px rgba(139, 0, 0, 0.8); }
}

@keyframes top-info-gradient-flow {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@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 header-flow-line {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

@keyframes panel-light-sweep {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

@keyframes ink-wash-flow {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

@keyframes border-glow {
    0%, 100% { border-color: #e74c3c; box-shadow: 0 8px 20px rgba(139, 0, 0, 0.25), inset 0 2px 6px rgba(139, 0, 0, 0.15), 0 0 14px rgba(139, 0, 0, 0.32); }
    50% { border-color: #c0392b; box-shadow: 0 8px 24px rgba(139, 0, 0, 0.35), inset 0 2px 6px rgba(139, 0, 0, 0.2), 0 0 20px rgba(139, 0, 0, 0.45); }
}

@keyframes energy-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(139, 0, 0, 0.1); }
    50% { transform: scale(1.02); box-shadow: 0 4px 12px rgba(139, 0, 0, 0.15); }
}

@keyframes user-soul-core-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes user-aura-drift {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    25% { transform: translate(2px, -3px) rotate(2deg); opacity: 0.8; }
    50% { transform: translate(-1px, 2px) rotate(-1deg); opacity: 0.7; }
    75% { transform: translate(3px, 1px) rotate(3deg); opacity: 0.9; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
}

@keyframes action-number-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 15px rgba(139, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
    50% { transform: translateY(-50%) scale(1.1); box-shadow: 0 0 25px rgba(139, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}

/* =============================================
 *  核心布局与模块
 * ============================================= */

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 3.5s ease-in-out infinite;
    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='skyGrad' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23faf8f5'/%3E%3Cstop offset='1' stop-color='%23f5f5dc'/%3E%3C/linearGradient%3E%3Cpattern id='ancientGrid' width='25' height='25' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 0 12.5 L 12.5 0 M 12.5 25 L 25 12.5' fill='none' stroke='%238b0000' stroke-width='0.4' opacity='0.2'/%3E%3C/pattern%3E%3Cfilter id='soulGlow'%3E%3CfeGaussianBlur stdDeviation='2.5'/%3E%3C/filter%3E%3CradialGradient id='soulPulse' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%238b0000' stop-opacity='0.8'/%3E%3Cstop offset='70%25' stop-color='%238b0000' stop-opacity='0.2'/%3E%3Cstop offset='100%25' stop-color='transparent' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='600' height='200' fill='url(%23skyGrad)'/%3E%3Crect width='600' height='200' fill='url(%23ancientGrid)'/%3E%3Cg transform='translate(300 100)' filter='url(%23soulGlow)'%3E%3Crect x='-20' y='-20' width='40' height='40' fill='none' stroke='%238b0000' stroke-width='2'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0' to='360' dur='15s' repeatCount='indefinite'/%3E%3C/rect%3E%3Ccircle cx='0' cy='0' r='25' fill='url(%23soulPulse)' opacity='0.5'%3E%3Canimate attributeName='opacity' values='0.5;0.9;0.5' dur='3.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3Ctext x='50%25' y='55%25' text-anchor='middle' font-size='24' font-family='STKaiti, KaiTi, serif' fill='%231a1a1a' opacity='0.85' letter-spacing='4' style='text-shadow: 0 0 6px rgba(139,0,0,0.4);'%3E大宋气运推演中%3C/text%3E%3Ctext x='50%25' y='72%25' text-anchor='middle' font-size='13' font-family='STKaiti, KaiTi, serif' fill='%234a4a4a' opacity='0.7' letter-spacing='2'%3E排演天下大势...%3C/text%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 .4s ease;
    content: none !important;
    background: none !important;
}

think { display: none !important; }

/* =============================================
 *  顶部导航栏 - 动态水墨朱红背景
 * ============================================= */

.sticky.w-full.top-0.flex.items-center {
    background: linear-gradient(180deg, 
        rgba(250, 248, 245, 0.98) 0%, 
        rgba(245, 245, 220, 0.96) 40%,
        rgba(240, 235, 225, 0.94) 100%) !important;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3) !important;
    box-shadow: 
        0 2px 20px rgba(26, 26, 26, 0.12),
        0 0 40px rgba(139, 0, 0, 0.15),
        inset 0 -1px 0 rgba(139, 0, 0, 0.15) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    z-index: 19 !important;
    position: relative !important;
    overflow: visible !important;
    height: 3.1rem !important;
    color: #1a1a1a !important;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif !important;
    font-weight: 600 !important;
    padding-top: max(0px, env(safe-area-inset-top)) !important;
    height: calc(3.5rem + max(0px, env(safe-area-inset-top))) !important;
}

.sticky.w-full.top-0.flex.items-center::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 600 50'%3E%3Cdefs%3E%3CradialGradient id='gp1'%3E%3Cstop offset='0%25' stop-color='%238b0000' stop-opacity='0.8'/%3E%3Cstop offset='100%25' stop-color='%238b0000' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='gp2'%3E%3Cstop offset='0%25' stop-color='%231a1a1a' stop-opacity='0.6'/%3E%3Cstop offset='100%25' stop-color='%231a1a1a' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3C!-- 朱红粒子 --%3E%3Ccircle fill='url(%23gp1)' r='3'%3E%3Canimate attributeName='cx' values='80;520;80' dur='20s' repeatCount='indefinite'/%3E%3Canimate attributeName='cy' values='35;12;35' dur='8s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0.2;0.6;0.2' dur='6s' repeatCount='indefinite'/%3E%3C/circle%3E%3C!-- 墨色粒子 --%3E%3Ccircle fill='url(%23gp2)' r='4'%3E%3Canimate attributeName='cx' values='450;150;450' dur='18s' repeatCount='indefinite'/%3E%3Canimate attributeName='cy' values='10;38;10' dur='10s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0.3;0.7;0.3' dur='5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    opacity: 0.85 !important;
    z-index: 1 !important;
}

.sticky.w-full.top-0.flex.items-center::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 0, 0, 0.6) 15%,
        rgba(192, 57, 43, 0.8) 30%,
        rgba(26, 26, 26, 0.7) 50%,
        rgba(192, 57, 43, 0.8) 70%,
        rgba(139, 0, 0, 0.6) 85%,
        transparent 100%) !important;
    background-size: 200% 100% !important;
    animation: header-flow-line 5s linear infinite !important;
    z-index: 10 !important;
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.5) !important;
}

.sticky.w-full.top-0.flex.items-center > * {
    position: relative !important;
    z-index: 50 !important;
}

#ai-model-selector .group {
    background: rgba(250, 248, 245, 0.8) !important;
    border: 1px solid rgba(139, 0, 0, 0.25) !important;
    border-left: 2px solid #8b0000 !important;
    border-radius: 0 !important;
    padding: 0 12px !important;
    height: 2.0rem !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 1px 6px rgba(26, 26, 26, 0.08) !important;
    margin: 0 8px !important;
}

#ai-model-selector .group:hover {
    border-color: #1a1a1a !important;
    background: rgba(250, 248, 245, 0.98) !important;
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.2) !important;
}

#ai-model-selector .truncate {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #8b0000 !important;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif !important;
    letter-spacing: 1.2px !important;
    transition: color 0.4s ease !important;
}

#ai-model-selector .group:hover .truncate {
    color: #1a1a1a !important;
}

#ai-model-selector svg {
    color: #4a4a4a !important;
    transition: all 0.4s ease !important;
}

#ai-model-selector .group:hover svg {
    color: #1a1a1a !important;
    transform: rotate(180deg) !important;
}

.sticky.w-full.top-0.flex.items-center .inline-flex.items-center {
    background: rgba(250, 248, 245, 0.7) !important;
    color: #8b0000 !important;
    border: 1px solid rgba(139, 0, 0, 0.3) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    border-radius: 0px !important;
    padding: 4px 10px !important;
    box-shadow: 0 1px 4px rgba(139, 0, 0, 0.1) !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%) !important;
}

.sticky.w-full.top-0.flex.items-center .inline-flex.items-center::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.25), transparent) !important;
    transition: left 0.7s ease !important;
}

.sticky.w-full.top-0.flex.items-center .inline-flex.items-center:hover {
    background: rgba(250, 248, 245, 0.95) !important;
    border-color: #1a1a1a !important;
    color: #1a1a1a !important;
    text-shadow: 0 0 8px rgba(26, 26, 26, 0.4) !important;
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.25) !important;
}

.sticky.w-full.top-0.flex.items-center .inline-flex.items-center:hover::before {
    left: 100% !important;
}

#header-setting-button {
    border-radius: 0 !important;
    background: rgba(250, 248, 245, 0.8) !important;
    border: 1px solid rgba(139, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}

#header-setting-button:hover {
    border-color: rgba(139, 0, 0, 0.6) !important;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
    background: rgba(245, 245, 220, 0.95) !important;
}

#header-setting-button svg { color: #1a1a1a !important; }

/* =============================================
 *  顶部信息栏 (Top Info)
 * ============================================= */

.top-info {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif !important;
    background: linear-gradient(160deg, rgba(250, 248, 245, 0.98) 0%, rgba(245, 245, 220, 0.95) 50%, rgba(240, 235, 225, 0.98) 100%) !important;
    border: 1px solid rgba(139, 0, 0, 0.3) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 24px rgba(26, 26, 26, 0.08), 0 0 40px rgba(139, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.top-info::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent 0%, #8b0000 20%, #1a1a1a 40%, #4a4a4a 50%, #1a1a1a 60%, #8b0000 80%, transparent 100%) !important;
    background-size: 200% 100% !important;
    animation: top-info-gradient-flow 5s linear infinite !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

.top-info::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,5 L35,20 L50,20 L38,30 L43,45 L30,35 L17,45 L22,30 L10,20 L25,20 Z' fill='none' stroke='%238b0000' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E") !important;
    background-size: 60px 60px !important;
    opacity: 0.25 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.top-info:hover {
    box-shadow: 0 8px 32px rgba(26, 26, 26, 0.12), 0 0 50px rgba(139, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(139, 0, 0, 0.5) !important;
}

.top-info > time,
.top-info > position,
.top-info > env {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 180px !important;
    padding: 12px 14px 12px 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.5 !important;
    letter-spacing: 0.5px !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    z-index: 1 !important;
}

.top-info > time,
.top-info > position {
    border-right: 1px solid rgba(139, 0, 0, 0.2) !important;
}

.top-info > env {
    border-right: none !important;
}

.top-info > time:hover,
.top-info > position:hover,
.top-info > env:hover,
.top-info > area-map:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.04), transparent) !important;
}

.top-info > time::before,
.top-info > position::before,
.top-info > env::before {
    content: '' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-right: 10px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 1px !important;
    font-family: 'STKaiti', 'KaiTi', serif !important;
    padding: 5px 10px !important;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
}

.top-info > time::before {
    content: '时辰' !important;
    background: linear-gradient(135deg, #8b0000 0%, #c0392b 100%) !important;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.top-info > position::before {
    content: '方位' !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%) !important;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.top-info > env::before {
    content: '环境' !important;
    background: linear-gradient(135deg, #8eae9d 0%, #5d7b6f 100%) !important;
    box-shadow: 0 2px 8px rgba(142, 174, 157, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.top-info > area-map {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    flex-basis: 100% !important;
    padding: 14px !important;
    line-height: 1.7 !important;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.03), rgba(26, 26, 26, 0.02)) !important;
    border-top: 1px solid rgba(139, 0, 0, 0.2) !important;
    z-index: 1 !important;
}

.top-info > area-map::before {
    content: '天下舆图' !important;
    display: block !important;
    position: relative !important;
    left: auto; top: auto;
    width: fit-content;
    margin-bottom: 10px;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 1px !important;
    font-family: 'STKaiti', 'KaiTi', serif !important;
    padding: 5px 10px !important;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, #b8941f 0%, #8b6914 100%) !important;
    box-shadow: 0 2px 8px rgba(184, 148, 31, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.top-info > quest {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    flex-basis: 100% !important;
    padding: 0 14px !important;
    line-height: 1.7 !important;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.03), rgba(26, 26, 26, 0.02)) !important;
    border-top: 1px solid rgba(139, 0, 0, 0.2) !important;
    z-index: 1 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.35s ease !important;
}

.top-info > quest::before {
    content: '朝廷军令' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    left: 14px !important;
    top: 14px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 1px !important;
    font-family: 'STKaiti', 'KaiTi', serif !important;
    padding: 5px 10px !important;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, #8b0000 0%, #5c0000 100%) !important;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.top-info:hover > quest {
    max-height: 300px !important;
    opacity: 1 !important;
    padding-top: 14px !important;
    padding-bottom: 16px !important;
    padding-left: 90px !important;
}

.top-info:hover > quest::before { opacity: 1 !important; }

.top-info > area-map > region,
.top-info > quest > q {
    display: block !important;
    padding: 10px 14px !important;
    margin: 6px 0 !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    line-height: 1.6 !important;
    letter-spacing: 0.5px !important;
    quotes: none !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    background: rgba(255, 255, 255, 0.75) !important;
    border-radius: 4px !important;
    border-left: 3px solid transparent !important;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.04) !important;
    position: relative !important;
    transition: all 0.25s ease !important;
}

.top-info > area-map > region { border-left-color: #b8941f !important; }
.top-info > area-map > region::before { content: '❖' !important; color: #b8941f !important; margin-right: 8px !important; font-size: 11px !important; text-shadow: 0 0 8px rgba(184, 148, 31, 0.6) !important; }

.top-info > quest > q.main { border-left-color: #8b0000 !important; }
.top-info > quest > q.main::before { content: '◆' !important; color: #8b0000 !important; margin-right: 8px !important; font-size: 11px !important; text-shadow: 0 0 8px rgba(139, 0, 0, 0.6) !important; }

.top-info > quest > q.side { border-left-color: #4a4a4a !important; }
.top-info > quest > q.side::before { content: '◇' !important; color: #4a4a4a !important; margin-right: 8px !important; font-size: 11px !important; text-shadow: 0 0 8px rgba(74, 74, 74, 0.6) !important; }

.top-info > area-map > region:hover,
.top-info > quest > q:hover {
    background: rgba(250, 248, 245, 0.95) !important;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.1) !important;
}

.top-info > quest > q > s {
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 2px !important;
    margin-left: 10px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.15), rgba(26, 26, 26, 0.1)) !important;
    color: #8b0000 !important;
    border: 1px solid rgba(139, 0, 0, 0.3) !important;
    box-shadow: 0 1px 4px rgba(139, 0, 0, 0.15) !important;
}

/* =============================================
 *  `prose` 容器与内容组件
 * ============================================= */

.styled-prose-container {
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
    position: relative;
    z-index: 1;
}

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

/* =============================================
 *  折叠面板 (Details) - 恢复标准文档流
 * ============================================= */

.styled-prose-container details {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px 0;
    padding: 0 22px 18px 22px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(250, 248, 245, 0.8), rgba(245, 245, 220, 0.75));
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.05), inset 0 1px 1px rgba(139, 0, 0, 0.05), inset 0 -1px 0 rgba(26, 26, 26, 0.1), 0 0 20px rgba(139, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    line-height: 1.9;
    color: #1a1a1a;
    overflow: visible !important;
    z-index: 1;
}

.styled-prose-container details:hover {
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.1), inset 0 1px 1px rgba(139, 0, 0, 0.1), inset 0 -1px 0 rgba(26, 26, 26, 0.15), 0 0 30px rgba(139, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.5);
}

.styled-prose-container details > summary {
    background: transparent;
    padding: 16px 50px 16px 22px;
    margin: 0 -22px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    color: #8b0000;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.6);
    letter-spacing: 1.5px;
    position: relative;
    list-style: none;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-family: 'STKaiti', 'KaiTi', serif;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed;
}

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

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

.styled-prose-container details > summary:hover::before {
    border-color: #c0392b;
    box-shadow: 0 0 12px rgba(192, 57, 43, 0.8);
}

.styled-prose-container details[open] > summary {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.05), transparent);
    border-bottom-color: rgba(139, 0, 0, 0.5);
    color: #c0392b;
    padding-top: 18px;
    margin-bottom: 18px;
    animation: classUI-scroll-unfold 0.4s ease-out;
}

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

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

.panel-content {
    padding: 20px;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.9;
    background: transparent;
}

.panel-content h3 {
    color: #8b0000 !important;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    font-size: 1.25em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding-bottom: 6px;
    font-family: 'STKaiti', 'KaiTi', serif;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    letter-spacing: 1px;
}

.panel-content br { line-height: 1.5; }

.styled-prose-container resonance_list,
.styled-prose-container echo_list,
.styled-prose-container sonata_list,
.styled-prose-container equip_list,
.styled-prose-container item_list {
    display: block;
    margin: 10px 0;
    padding: 0;
    position: relative;
    overflow: visible;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
    line-height: 1.8;
}

.styled-prose-container resonance_list > span,
.styled-prose-container echo_list > span,
.styled-prose-container sonata_list > span,
.styled-prose-container equip_list > span,
.styled-prose-container item_list > span,
.styled-prose-container info {
    display: inline-block;
    color: #8b0000;
    font-weight: 700;
    font-size: 15px;
    margin-right: 6px;
    letter-spacing: 0.8px;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.4);
    font-family: 'STKaiti', 'KaiTi', serif;
}

.styled-prose-container resonance_list info { margin-left: 8px; }

.styled-prose-container T {
    position: relative;
    display: inline-block;
    margin-bottom: 4px;
    margin-right: 6px;
    cursor: help;
    color: #1a1a1a;
    font-weight: 600;
    text-decoration-line: none;
    border-bottom: 1px dashed #8b0000;
    padding: 2px 7px;
    background: rgba(139, 0, 0, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

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

.styled-prose-container T:hover {
    background: rgba(139, 0, 0, 0.15);
    color: #c0392b;
    border-bottom-style: solid;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.2);
    z-index: 100;
}

.styled-prose-container T Ti {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 180px;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.98), rgba(245, 245, 220, 0.95));
    color: #1a1a1a;
    text-align: left;
    border: 1px solid #8b0000;
    border-left: 4px solid #8b0000;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.85em;
    font-weight: 400;
    line-height: 1.7;
    font-family: 'STKaiti', 'KaiTi', serif;
    box-shadow: 0 8px 30px rgba(26, 26, 26, 0.25), 0 0 20px rgba(139, 0, 0, 0.15);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    position: absolute;
    z-index: 99999;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
}

.styled-prose-container T Ti::before {
    content: '【 官阶履历 】';
    display: block;
    font-size: 0.8em;
    color: #8b0000;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    letter-spacing: 2px;
    font-weight: 700;
    font-family: 'STKaiti', 'KaiTi', serif;
}

.styled-prose-container T:hover Ti {
    visibility: visible;
    opacity: 1;
}

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

.classUI-story {
    background: linear-gradient(145deg, rgba(250, 248, 245, 0.85), rgba(245, 245, 220, 0.8));
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 4px;
    padding: 24px 28px;
    margin: 20px 0;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 2.0;
    box-shadow: inset 0 2px 8px rgba(139, 0, 0, 0.05), 0 0 0 1px rgba(26, 26, 26, 0.15), 0 0 20px rgba(139, 0, 0, 0.05);
    position: relative;
    letter-spacing: 0.5px;
}

.classUI-story::before,
.classUI-story::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(139, 0, 0, 0.6);
    border-style: solid;
    transition: all 0.4s ease;
}

.classUI-story::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; border-top-left-radius: 3px; }
.classUI-story::after { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-bottom-right-radius: 3px; }

.classUI-story:hover::before,
.classUI-story:hover::after { border-color: #c0392b; box-shadow: 0 0 10px rgba(192, 57, 43, 0.6); }

.classUI-subsection {
    font-weight: 700;
    color: #8b0000;
    margin: 14px 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    font-size: 15px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.5);
    font-family: 'STKaiti', 'KaiTi', serif;
}

.classUI-npc-card {
    background: rgba(245, 245, 220, 0.7);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 4px;
    padding: 14px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.05), 0 0 15px rgba(139, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.classUI-npc-card:hover {
    background: rgba(240, 235, 225, 0.9);
    border-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.1), 0 0 25px rgba(139, 0, 0, 0.1);
}

.classUI-npc-name {
    font-size: 18px;
    font-weight: 700;
    color: #8b0000;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(139, 0, 0, 0.4);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.5);
    font-family: 'STKaiti', 'KaiTi', serif;
}

.classUI-actions {
    background: linear-gradient(180deg, rgba(250, 248, 245, 0.7), rgba(245, 245, 220, 0.65));
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 4px;
    padding: 16px 20px;
    margin-top: 16px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.8;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.08), 0 0 20px rgba(139, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* =============================================
 *  平台原生 UI 覆写与美化
 * ============================================= */

.markdown-body { counter-reset: option-counter; }

pre {
    position: relative !important;
    margin: 10px 0 !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 50px;
}

pre div[class*="border-b"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2;
    pointer-events: none;
}

pre div[class*="border-b"] > div:first-child { display: none !important; }

pre div[data-tooltip-id] {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    pointer-events: auto;
    z-index: 3;
}

pre div[data-tooltip-id] .style_copyIcon__GJL9e { display: none !important; }

pre div[node="[object Object]"] {
    position: relative;
    z-index: 1;
    display: block !important;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(245, 245, 220, 0.95) 0%, rgba(250, 248, 245, 0.92) 100%) !important;
    border: 1px solid rgba(139, 0, 0, 0.35) !important;
    border-left: 4px solid #8b0000 !important;
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.06), 0 0 20px rgba(139, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    color: #1a1a1a !important;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 14px 20px 14px 58px !important;
    margin: 0 !important;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%) !important;
    min-height: 50px;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    counter-increment: option-counter;
}

pre div[node="[object Object]"]::before {
    content: counter(option-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8b0000 0%, #c0392b 100%) !important;
    color: #fff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    font-size: 1em;
    font-weight: 700;
    font-family: 'STKaiti', 'KaiTi', serif !important;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease !important;
    animation: action-number-pulse 2.5s ease-in-out infinite;
}

pre div[node="[object Object]"] code {
    display: block;
    color: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

pre div[data-tooltip-id]::before {
    content: '御批';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%) scale(0.9);
    background: linear-gradient(135deg, #8b0000 0%, #5c0000 100%);
    color: #fff;
    font-size: 0.8em;
    font-weight: 800;
    font-family: 'STKaiti', 'KaiTi', serif;
    padding: 6px 12px;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%) !important;
    letter-spacing: 2px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

pre:hover div[data-tooltip-id]::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

pre:hover div[node="[object Object]"] {
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.1), 0 0 35px rgba(139, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    background: linear-gradient(145deg, rgba(240, 235, 225, 0.98) 0%, rgba(250, 248, 245, 0.96) 100%) !important;
    border-color: rgba(139, 0, 0, 0.5) !important;
}

pre:hover div[node="[object Object]"]::before {
    animation-play-state: running;
}

pre:active div[node="[object Object]"] {
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.08), 0 0 15px rgba(139, 0, 0, 0.08), inset 0 2px 6px rgba(139, 0, 0, 0.08) !important;
    background: linear-gradient(145deg, rgba(235, 230, 215, 0.95) 0%, rgba(245, 245, 220, 0.92) 100%) !important;
}

pre:active div[data-tooltip-id]::before {
    content: '已决';
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.5) !important;
}

pre div[data-tooltip-id]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.88), rgba(192, 57, 43, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 4;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

pre div[data-tooltip-id]:active::after {
    content: '印 绶 颁 行';
    opacity: 1;
}

/* =============================================
 *  底部输入区 & 分页栏 - 全量美化
 * ============================================= */

.p-\[5\.5px\].max-h-\[150px\] { 
    background: rgba(255, 255, 255, 0.95) !important; 
    border: 1px solid rgba(139, 0, 0, 0.25) !important; 
    border-radius: 4px !important; 
    box-shadow: 0 -4px 15px rgba(26, 26, 26, 0.1); 
    padding: 8px !important; 
    backdrop-filter: blur(15px) !important; 
    -webkit-backdrop-filter: blur(15px) !important; 
    width: 100% !important; 
    max-width: 100% !important; 
    margin: 0 !important; 
}

#ai-chat-input { 
    background: #faf8f5 !important; 
    border-radius: 2px !important; 
    border: 1px solid rgba(139, 0, 0, 0.3) !important; 
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif !important; 
    font-size: 15px !important; 
    line-height: 1.5 !important; 
    color: #1a1a1a !important; 
    caret-color: #8b0000 !important; 
    padding: 10px 50px 10px 12px !important; 
    height: auto !important; 
    max-height: 120px !important; 
    resize: none !important; 
    outline: none !important; 
    transition: all 0.4s 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 8px rgba(26, 26, 26, 0.05); 
}

#ai-chat-input::placeholder { color: #8eae9d !important; opacity: 0.8; }

#ai-chat-input:focus { 
    border-color: #8b0000 !important; 
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.25), inset 0 2px 8px rgba(26, 26, 26, 0.05) !important; 
    background: #FFFFFF !important; 
}

.p-\[5\.5px\].max-h-\[150px\] .flex.items-center.px-1 { 
    background: rgba(139, 0, 0, 0.1) !important; 
    color: #8b0000 !important; 
    border-radius: 2px !important; 
    border: 1px solid rgba(139, 0, 0, 0.3) !important; 
    box-shadow: none; 
}

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

#ai-send-button { 
    border-radius: 2px !important; 
    background: #faf8f5 !important; 
    border: 1px solid rgba(139, 0, 0, 0.3) !important; 
    transition: all 0.4s ease; 
    box-shadow: 0 2px 6px rgba(26, 26, 26, 0.08); 
}

#ai-send-button:hover { 
    background: #8b0000 !important; 
    border-color: #8b0000 !important; 
    box-shadow: 0 0 12px #8b0000; 
    transform: translateY(-2px); 
}

#ai-send-button svg { color: #8b0000 !important; transition: color 0.4s ease; }

#ai-send-button:hover svg { color: #faf8f5 !important; }

div[class*="absolute"][class*="bottom-0"] { 
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(250, 248, 245, 0.98) 100%); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-top: 1px solid rgba(139, 0, 0, 0.25); 
    box-shadow: 0 -4px 15px rgba(26, 26, 26, 0.1); 
    color: #1a1a1a; 
}

div[class*="absolute"][class*="bottom-0"]::before { 
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0; 
    top: -2px; 
    height: 2px; 
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.5), transparent); 
    animation: panel-light-sweep 7s ease-in-out infinite; 
    animation-delay: 1.5s; 
    opacity: 0.7; 
}

div[class*="absolute"][class*="bottom-0"]::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='cloudGrid' width='25' height='25' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 25 0 L 0 0 0 25' fill='none' stroke='%238b0000' stroke-width='0.4' opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23cloudGrid)'/%3E%3C/svg%3E"); 
    animation: ink-wash-flow 100s linear infinite; 
    opacity: 0.5; 
    pointer-events: none; 
    z-index: -1; 
}

div[class*="absolute"][class*="bottom-0"] button:not([id="ai-send-button"]) { 
    background: #faf8f5; 
    border: 1px solid rgba(139, 0, 0, 0.3); 
    border-radius: 2px; 
    color: #1a1a1a; 
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif; 
    font-weight: 600; 
    font-size: 14px; 
    text-shadow: none; 
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.1); 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden; 
    backdrop-filter: none; 
}

div[class*="absolute"][class*="bottom-0"] button:not([id="ai-send-button"])::before { 
    content: ''; 
    position: absolute; 
    top: -15%; 
    left: -170%; 
    width: 50%; 
    height: 130%; 
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.25), transparent); 
    transform: skewX(-30deg); 
    transition: left 0.8s ease-in-out; 
}

div[class*="absolute"][class*="bottom-0"] button:not([id="ai-send-button"]):hover { 
    transform: translateY(-2px); 
    color: #8b0000; 
    background: #FFFFFF; 
    border-color: #8b0000; 
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15), 0 0 8px rgba(139, 0, 0, 0.3); 
}

div[class*="absolute"][class*="bottom-0"] button:not([id="ai-send-button"]):hover::before { left: 170%; }

div[class*="absolute"][class*="bottom-0"] button:not([id="ai-send-button"]):active { 
    transform: translateY(0); 
    background: #f5f5dc; 
    border-color: #8b0000; 
    box-shadow: inset 0 0 6px rgba(139, 0, 0, 0.2), 0 2px 6px rgba(26, 26, 26, 0.1); 
    transition-duration: 0.15s; 
}

/* =============================================
 *  加载动画覆写
 * ============================================= */

.style_dot-flashing__8L91Q { display: none !important; }

div:has(> .style_dot-flashing__8L91Q.style_text__zGhNq) {
    width: 100% !important;
    height: auto !important;
    min-height: 80px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.98), rgba(245, 245, 220, 0.96)) !important;
    border: 1px solid rgba(139, 0, 0, 0.35) !important;
    border-radius: 4px !important;
    box-shadow: 0 12px 40px rgba(26, 26, 26, 0.1), inset 0 1px 0 rgba(139, 0, 0, 0.1), 0 0 35px rgba(139, 0, 0, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
}

div:has(> .style_dot-flashing__8L91Q.style_text__zGhNq)::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 60px !important;
    height: 60px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3ClinearGradient id='soulGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%238b0000'%3E%3Canimate attributeName='stop-color' values='%238b0000;%231a1a1a;%238eae9d;%238b0000' dur='3.5s' repeatCount='indefinite'/%3E%3C/stop%3E%3Cstop offset='50%25' stop-color='%231a1a1a'%3E%3Canimate attributeName='stop-color' values='%231a1a1a;%238eae9d;%238b0000;%231a1a1a' dur='3.5s' repeatCount='indefinite'/%3E%3C/stop%3E%3Cstop offset='100%25' stop-color='%238eae9d'%3E%3Canimate attributeName='stop-color' values='%238eae9d;%238b0000;%231a1a1a;%238eae9d' dur='3.5s' repeatCount='indefinite'/%3E%3C/stop%3E%3C/linearGradient%3E%3CradialGradient id='coreLight'%3E%3Cstop offset='0%25' stop-color='%238b0000' stop-opacity='0.9'/%3E%3Cstop offset='70%25' stop-color='%23faf8f5' stop-opacity='0.5'/%3E%3Cstop offset='100%25' stop-color='%23faf8f5' stop-opacity='0.25'/%3E%3C/radialGradient%3E%3Cfilter id='soulGlow'%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cg transform='translate(60,60)'%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='rotate' values='0;360' dur='5s' repeatCount='indefinite'/%3E%3Ccircle cx='0' cy='-35' r='3' fill='%238b0000' opacity='0.8'%3E%3Canimate attributeName='opacity' values='0.8;0.3;0.8' dur='2.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='25' cy='-25' r='2.5' fill='%231a1a1a' opacity='0.7'/%3E%3Ccircle cx='35' cy='0' r='3' fill='%238eae9d' opacity='0.8'%3E%3Canimate attributeName='opacity' values='0.3;0.8;0.3' dur='2.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='25' cy='25' r='2.5' fill='%238b0000' opacity='0.7'/%3E%3Ccircle cx='0' cy='35' r='3' fill='%231a1a1a' opacity='0.8'%3E%3Canimate attributeName='opacity' values='0.8;0.3;0.8' dur='2.5s' begin='0.6s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='-25' cy='25' r='2.5' fill='%238eae9d' opacity='0.7'/%3E%3Ccircle cx='-35' cy='0' r='3' fill='%238b0000' opacity='0.8'%3E%3Canimate attributeName='opacity' values='0.3;0.8;0.3' dur='2.5s' begin='0.6s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='-25' cy='-25' r='2.5' fill='%231a1a1a' opacity='0.7'/%3E%3C/g%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='rotate' values='360;0' dur='7s' repeatCount='indefinite'/%3E%3Crect x='-20' y='-20' width='40' height='40' fill='none' stroke='%238b0000' stroke-width='1' opacity='0.35'/%3E%3C/g%3E%3Ccircle cx='0' cy='0' r='12' fill='url(%23coreLight)' opacity='0.9'%3E%3Canimate attributeName='r' values='10;14;10' dur='3s' repeatCount='indefinite'/%3E%3C/circle%3E%3Cg filter='url(%23soulGlow)'%3E%3CanimateTransform attributeName='transform' type='rotate' values='0;-360' dur='9s' repeatCount='indefinite'/%3E%3Cpath d='M 0,-28 Q 16,-22 22,-12 T 28,0 Q 22,16 12,22 T 0,28 Q -16,22 -22,12 T -28,0 Q -22,-16 -12,-22 T 0,-28' fill='none' stroke='url(%23soulGrad)' stroke-width='1.5' opacity='0.6'/%3E%3C/g%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(139, 0, 0, 0.5)) !important;
}

div:has(> .style_dot-flashing__8L91Q.style_text__zGhNq)::after {
    content: '龙气衍算中...' !important;
    position: absolute !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-family: 'STKaiti', 'KaiTi', serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #8b0000 !important;
    letter-spacing: 0.3em !important;
    animation: ink-text-fade 2.5s ease-in-out infinite alternate !important;
    text-shadow: 0 0 12px rgba(139, 0, 0, 0.8) !important;
}

/* =============================================
 *  官阶品质美化模块
 * ============================================= */

* {
    --color-bai: #7F8C8D;    /* 白身 - 灰白 */
    --color-lv: #27AE60;     /* 绿袍 - 青绿 */
    --color-qing: #2980B9;   /* 青袍 - 靛青 */
    --color-zhu: #8E44AD;    /* 朱紫 - 紫色 */
    --color-mang: #C0392B;   /* 蟒袍 - 绯红 */
    --color-long: #F39C12;   /* 龙袍 - 明黄 */
}

.styled-prose-container [class*=card-body-] {
    margin: 3px 0;
    padding: 0;
    border-radius: 4px;
    background-color: rgba(250, 248, 245, 0.75);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.styled-prose-container [class*=card-body-]:hover {
    background-color: rgba(245, 245, 220, 0.92);
    border-color: #e8e4d9;
}

/* 官阶名称颜色映射 */
.styled-prose-container [class*=card-body-bai] T { color: var(--color-bai) !important; display: inline-block; }
.styled-prose-container [class*=card-body-lv] T { color: var(--color-lv) !important; display: inline-block; }
.styled-prose-container [class*=card-body-qing] T { color: var(--color-qing) !important; display: inline-block; }
.styled-prose-container [class*=card-body-zhu] T { color: var(--color-zhu) !important; display: inline-block; }
.styled-prose-container [class*=card-body-mang] T { color: var(--color-mang) !important; display: inline-block; }
.styled-prose-container [class*=card-body-long] T { color: var(--color-long) !important; display: inline-block; }

/* Tooltip<Ti>渐进式美化 */
.styled-prose-container [class*=card-body-bai] T Ti {
    background: rgba(250, 250, 250, 0.95);
    border: 1px solid #e8eef3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.styled-prose-container [class*=card-body-lv] T Ti {
    background: rgba(240, 250, 240, 0.95);
    border: 1px solid #a9dfbf;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.12), inset 0 1px 2px rgba(39, 174, 96, 0.08);
}

.styled-prose-container [class*=card-body-qing] T Ti {
    background: rgba(240, 245, 250, 0.95);
    border: 1px solid #a9cce3;
    box-shadow: 0 5px 14px rgba(41, 128, 185, 0.14), inset 0 1px 3px rgba(41, 128, 185, 0.1);
}

.styled-prose-container [class*=card-body-zhu] T Ti {
    background: rgba(248, 245, 252, 0.95);
    border: 1px solid #d7bde2;
    box-shadow: 0 5px 14px rgba(142, 68, 173, 0.14), inset 0 1px 3px rgba(142, 68, 173, 0.1);
}

.styled-prose-container [class*=card-body-mang] T Ti {
    background: linear-gradient(135deg, rgb(255, 245, 245) 0%, rgb(252, 240, 240) 100%);
    border: 2px solid #f5b7b1;
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.25), inset 0 2px 6px rgba(192, 57, 43, 0.15), 0 0 14px rgba(192, 57, 43, 0.32);
    animation: border-glow 2s ease-in-out infinite;
}

.styled-prose-container [class*=card-body-long] T Ti {
    background: linear-gradient(135deg, rgb(255, 250, 240) 0%, rgb(252, 245, 235) 100%);
    border: 1px solid #f8c471;
    box-shadow: 0 6px 18px rgba(243, 156, 18, 0.17), inset 0 1px 4px rgba(243, 156, 18, 0.12);
}

/* 品质标签颜色联动 */
.styled-prose-container [class*=card-body-bai] T Ti span:first-child { color: var(--color-bai) !important; }
.styled-prose-container [class*=card-body-lv] T Ti span:first-child { color: var(--color-lv) !important; }
.styled-prose-container [class*=card-body-qing] T Ti span:first-child { color: var(--color-qing) !important; }
.styled-prose-container [class*=card-body-zhu] T Ti span:first-child { color: var(--color-zhu) !important; }
.styled-prose-container [class*=card-body-mang] T Ti span:first-child { color: var(--color-mang) !important; }
.styled-prose-container [class*=card-body-long] T Ti span:first-child { color: var(--color-long) !important; }

/* 红色固定提示美化 */
.tip-r {
    display: block;
    color: #8b0000 !important; 
    background: rgba(139, 0, 0, 0.12); 
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 13.5px;
    text-align: center;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.1);
    animation: energy-pulse 3s infinite ease-in-out;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

.tip-r:hover {
    background: rgba(139, 0, 0, 0.18);
    border-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

/* =============================================
 *  【气泡装饰补丁】- 宋代水墨卷轴风格
 * ============================================= */

/* --- 气泡通用基础样式 --- */
.bg-gray-100\/90.relative.inline-block {
    position: relative !important;
    overflow: visible !important;
}

/* **【AI回答气泡】- 水墨书卷** */
.chat-answer-container .bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(145deg, rgba(250, 248, 245, 0.9), rgba(245, 245, 220, 0.85)) !important;
    color: #1a1a1a !important;
    border-radius: 4px !important;
    border: 1px solid rgba(139, 0, 0, 0.3) !important;
    box-shadow: inset 0 2px 8px rgba(139, 0, 0, 0.05), 0 0 0 1px rgba(26, 26, 26, 0.15), 0 0 20px rgba(139, 0, 0, 0.05) !important;
}
.chat-answer-container .bg-gray-100\/90.relative.inline-block::before,
.chat-answer-container .bg-gray-100\/90.relative.inline-block::after {
    content: none !important;
}

/* **【用户消息气泡】- 奏折印绶** */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    background: linear-gradient(145deg, #faf8f5 0%, #f5f5dc 100%) !important;
    border: 1px solid rgba(139, 0, 0, 0.4) !important;
    box-shadow: 
        0 6px 24px rgba(26, 26, 26, 0.1),
        0 0 40px rgba(139, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(139, 0, 0, 0.1) !important;
    border-radius: 4px !important;
    color: #1a1a1a !important;
}

/* 用户气泡 - 右上角“御印”装饰 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90)::before {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    width: 32px !important;
    height: 32px !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='sealGlow'%3E%3CfeGaussianBlur stdDeviation='1.2'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23sealGlow)'%3E%3Crect x='4' y='4' width='24' height='24' fill='%23faf8f5' stroke='%238b0000' stroke-width='2'/%3E%3Cpath d='M8 8 L24 8 M8 16 L24 16 M8 24 L24 24 M12 8 L12 24 M20 8 L20 24' stroke='%238b0000' stroke-width='1.5' fill='none'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 0.85 !important;
    animation: user-soul-core-pulse 4s ease-in-out infinite !important;
}

/* 用户气泡 - 左下角“水墨龙气”装饰 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90)::after {
    content: '' !important;
    position: absolute !important;
    bottom: -15px !important;
    left: -15px !important;
    width: 100px !important;
    height: 100px !important;
    pointer-events: none !important;
    z-index: 0 !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='inkAura' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%231a1a1a' stop-opacity='0.4'/%3E%3Cstop offset='100%25' stop-color='%238b0000' stop-opacity='0.1'/%3E%3C/linearGradient%3E%3Cfilter id='inkBlur'%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23inkBlur)'%3E%3Cpath d='M 10 90 C 20 70, 40 80, 50 60 S 80 70, 90 50' stroke='url(%23inkAura)' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3Cpath d='M 5 80 C 15 65, 30 75, 45 50 S 70 55, 85 40' stroke='url(%23inkAura)' stroke-width='4' fill='none' stroke-linecap='round' opacity='0.7'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 0.7 !important;
    animation: user-aura-drift 15s ease-in-out infinite !important;
}

/* **【修复】确保气泡内容层级正确** */
div.group.relative > div.relative.inline-block.bg-gray-100\/90 > * {
    position: relative !important;
    z-index: 1 !important;
}

/* =============================================
 *  【世界消息 / 邸报急递】模块美化
 * ============================================= */

.n-part {
    position: relative;
    margin: 12px 0;
    padding: 14px 16px;
    background: linear-gradient(145deg, rgba(250, 248, 245, 0.85), rgba(245, 245, 220, 0.8));
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-left: 3px solid #8b0000;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(26, 26, 26, 0.06), 0 0 20px rgba(139, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.n-part::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 0, 0, 0.4) 20%, 
        rgba(26, 26, 26, 0.6) 50%, 
        rgba(139, 0, 0, 0.4) 80%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.n-part:hover {
    border-left-color: #c0392b;
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.1), 0 0 30px rgba(139, 0, 0, 0.08);
    background: linear-gradient(145deg, rgba(245, 245, 220, 0.92), rgba(240, 235, 225, 0.88));
}

.n-part:hover::before {
    opacity: 1;
}

.n-tit {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.25);
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
}

.n-tit b {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #8b0000;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.5);
    position: relative;
    padding-left: 18px;
}

.n-tit b::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #8b0000;
    animation: glow-text 2s ease-in-out infinite;
}

.n-txt {
    margin: 8px 0;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.8;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all 0.25s ease;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
}

.n-txt:hover {
    background: rgba(255, 255, 255, 0.75);
    border-left-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.05);
}

/* 标签通用样式 */
.n-txt span[class^="t-"] {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    margin-right: 8px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    font-family: 'STKaiti', 'KaiTi', serif;
    position: relative;
    transition: all 0.3s ease;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.n-txt span[class^="t-"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.n-txt span[class^="t-"]:hover::after {
    opacity: 1;
}

/* 紫色标签 - 秘奏 */
.t-pur {
    background: linear-gradient(135deg, #8E44AD 0%, #5B2C6F 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(142, 68, 173, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.t-pur:hover { box-shadow: 0 4px 12px rgba(142, 68, 173, 0.4); transform: translateY(-1px); }

/* 青色标签 - 市井传闻 */
.t-cyan {
    background: linear-gradient(135deg, #2980B9 0%, #1A5276 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(41, 128, 185, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.t-cyan:hover { box-shadow: 0 4px 12px rgba(41, 128, 185, 0.4); transform: translateY(-1px); }

/* 红色标签 - 八百里加急 */
.t-red {
    background: linear-gradient(135deg, #C0392B 0%, #7B241C 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(192, 57, 43, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: energy-pulse 3s infinite ease-in-out;
}
.t-red:hover { box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4); transform: translateY(-1px); }

/* 橙色标签 - 悬赏/军令 */
.t-org {
    background: linear-gradient(135deg, #D35400 0%, #873600 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(211, 84, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.t-org:hover { box-shadow: 0 4px 12px rgba(211, 84, 0, 0.4); transform: translateY(-1px); }

/* 绿色标签 - 赏赐 */
.t-grn {
    background: linear-gradient(135deg, #27AE60 0%, #196F3D 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.t-grn:hover { box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4); transform: translateY(-1px); }

/* =============================================
 *  响应式设计与媒体查询
 * ============================================= */
@media (max-width: 768px) {
    .panel-content { padding: 14px; font-size: 14px; }
    .panel-content h3 { font-size: 1.15em; }

    .styled-prose-container T Ti { max-width: 240px; padding: 10px 12px; font-size: 0.8em; left: 0; }
    .styled-prose-container resonance_list info { margin-left: 0; display: block; margin-top: 4px; }
    
    .classUI-story { font-size: 16px; padding: 20px 22px; }
    .classUI-npc-card { padding: 12px; }
    .classUI-actions { font-size: 14px; padding: 14px 16px; }
    
    .top-info { margin: 14px 0 !important; border-radius: 4px !important; flex-direction: column !important; box-shadow: none !important; background: #faf8f5 !important; }
    .top-info::before { height: 2px !important; animation: none !important; background: linear-gradient(90deg, transparent, #8b0000, #1a1a1a, #4a4a4a, transparent) !important; }
    .top-info > time,
    .top-info > position,
    .top-info > env { flex: 1 1 100% !important; min-width: 100% !important; padding: 10px 12px !important; font-size: 13px !important; border-right: none !important; border-bottom: 1px solid rgba(139, 0, 0, 0.15) !important; box-shadow: none !important; }
    .top-info > env { border-bottom: none !important; }
    
    .top-info > area-map { padding: 10px 12px !important; }
    .top-info > area-map::before { margin-bottom: 8px; }

    .top-info > quest { padding: 10px 12px !important; padding-left: 100px !important; }
    .top-info:hover > quest { padding-left: 12px !important; }
    .top-info > quest::before { display: none !important; }
    
    .top-info > area-map > region,
    .top-info > quest > q { margin-left: 0 !important; font-size: 12px !important; padding: 8px 12px !important; box-shadow: none !important; }
    
    .top-info > quest > q > s { font-size: 10px !important; padding: 2px 6px !important; }

    pre { margin: 8px 0 !important; }
    pre div[node="[object Object]"] { padding: 12px 14px 12px 50px !important; font-size: 15px !important; min-height: 46px; clip-path: none !important; border-radius: 4px !important; box-shadow: none !important; background: #faf8f5 !important; }
    pre div[node="[object Object]"]::before { width: 28px; height: 28px; font-size: 0.9em; left: 12px; box-shadow: none !important; }
    pre div[data-tooltip-id]::before { display: none !important; }
    pre div[data-tooltip-id]::after { clip-path: none !important; border-radius: 4px !important; }
    
    nav[aria-label="pagination"] { padding: 8px 12px !important; }
    nav[aria-label="pagination"] button,
    nav[aria-label="pagination"] a { padding: 5px 10px !important; font-size: 12px !important; margin: 0 3px !important; }
    
    .n-part { padding: 12px 14px; margin: 10px 0; }
    .n-tit b { font-size: 14px; letter-spacing: 1px; }
    .n-txt { font-size: 13px; padding: 7px 10px; }
    .n-txt span[class^="t-"] { font-size: 11px; padding: 2px 8px; margin-right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    cot::before, .top-info::before, .sticky.w-full.top-0.flex.items-center::before, pre div[node="[object Object]"]::before { animation: none !important; }
    .styled-prose-container T:hover Ti { transition: none; }
}

/* --- 5.4. 隐藏元素 (Hidden Elements) --- */
think { display: none !important; }
.mb-2 .shrink-0 { display: none; }
[class*="bg-[#F1CBCB]"], [class*="bg-[#c9e1e9]"] { display: none; }

/* ===================================================
   High Dimension Message (HDM) Module - 高维弹幕模块
   绍宋主题适配版
   =================================================== */

/* 容器 - 古卷轴质感 */
.hdm-box {
    background: linear-gradient(145deg, rgba(250, 248, 245, 0.88), rgba(245, 245, 220, 0.85));
    border: 1px solid rgba(139, 0, 0, 0.35);
    border-left: 3px solid #8b0000;
    border-radius: 4px;
    padding: 20px 24px;
    margin: 22px 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(26, 26, 26, 0.08), 0 0 30px rgba(139, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.35s ease;
}

.hdm-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 0, 0, 0.5) 20%, 
        rgba(26, 26, 26, 0.7) 50%, 
        rgba(139, 0, 0, 0.5) 80%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hdm-box:hover {
    border-left-color: #c0392b;
    box-shadow: 0 6px 24px rgba(26, 26, 26, 0.12), 0 0 40px rgba(139, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hdm-box:hover::before {
    opacity: 1;
}

.hdm-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,5 L35,20 L50,20 L38,30 L43,45 L30,35 L17,45 L22,30 L10,20 L25,20 Z' fill='none' stroke='%238b0000' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* 标题 - 朱红呼吸效果 */
.hdm-title {
    display: block;
    font-weight: 700;
    color: #8b0000;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
    position: relative;
    z-index: 1;
    padding-left: 20px;
    animation: glow-text 2.5s ease-in-out infinite;
}

.hdm-title::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #8b0000;
    text-shadow: 0 0 12px rgba(139, 0, 0, 0.8);
}

/* 分隔线 - 水墨流动效果 */
.hdm-line {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 0, 0, 0.3) 10%,
        rgba(26, 26, 26, 0.5) 50%,
        rgba(139, 0, 0, 0.3) 90%,
        transparent 100%);
    margin: 8px 0 16px 0;
    position: relative;
    z-index: 1;
}

/* 弹幕轨道 - 水墨流动轨迹 */
.hdm-track {
    display: block;
    margin-bottom: 12px;
    padding: 6px 0;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, 
        rgba(139, 0, 0, 0.02) 0%, 
        rgba(139, 0, 0, 0.05) 50%, 
        rgba(139, 0, 0, 0.02) 100%);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.hdm-track:hover {
    background: linear-gradient(90deg, 
        rgba(139, 0, 0, 0.04) 0%, 
        rgba(139, 0, 0, 0.08) 50%, 
        rgba(139, 0, 0, 0.04) 100%);
}

.hdm-track::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, transparent, #8b0000, transparent);
    border-radius: 2px;
    opacity: 0.4;
}

/* 弹幕消息 - 水墨文字效果 */
.hdm-msg {
    display: inline-block;
    margin-right: 80px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
    text-shadow: 0 1px 3px rgba(26, 26, 26, 0.15);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.hdm-msg::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        rgba(139, 0, 0, 0.3), 
        rgba(139, 0, 0, 0.7), 
        rgba(139, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hdm-msg:hover {
    background: rgba(245, 245, 220, 0.7);
    border-left-color: #8b0000;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.15);
    transform: translateY(-1px);
}

.hdm-msg:hover::before {
    opacity: 1;
}

/* 馈赠区块 - 赏赐宝箱样式 */
.hdm-gift {
    margin-top: 16px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(250, 248, 245, 0.6), rgba(245, 245, 220, 0.55));
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hdm-gift::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.hdm-gift:hover::before {
    left: 100%;
}

.hdm-gift:hover {
    border-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.1);
}

.hdm-gift > summary {
    padding: 10px 14px;
    color: #8b0000;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.08), rgba(26, 26, 26, 0.05));
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.4);
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.hdm-gift > summary::before {
    content: '▸';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #8b0000;
    transition: transform 0.3s ease;
}

.hdm-gift > summary::-webkit-details-marker {
    display: none;
}

.hdm-gift > summary:hover {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.12), rgba(26, 26, 26, 0.08));
    color: #c0392b;
}

.hdm-gift[open] > summary {
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.15), rgba(26, 26, 26, 0.1));
}

.hdm-gift[open] > summary::before {
    content: '▾';
    transform: translateY(-50%) rotate(0deg);
}

.hdm-items {
    padding: 12px 14px;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.9;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.hdm-items::before {
    content: '✦';
    display: inline-block;
    margin-right: 8px;
    color: #8b0000;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.6);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hdm-box {
        padding: 16px 18px;
        margin: 18px 0;
        border-radius: 4px;
    }

    .hdm-title {
        font-size: 15px;
        letter-spacing: 1px;
        padding-left: 18px;
    }

    .hdm-title::before {
        font-size: 11px;
    }

    .hdm-track {
        padding: 5px 0;
        margin-bottom: 10px;
    }

    .hdm-msg {
        margin-right: 60px;
        font-size: 14px;
        padding: 3px 8px;
    }

    .hdm-gift > summary {
        padding: 9px 12px;
        font-size: 13px;
    }

    .hdm-items {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.8;
    }
}

/* 减少动画（无障碍支持） */
@media (prefers-reduced-motion: reduce) {
    .hdm-title,
    .hdm-msg::before,
    .hdm-gift::before {
        animation: none !important;
        transition: none !important;
    }
}
/* === HDM 弹幕滚动动画 === */

@keyframes hdm-scroll {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.hdm-track {
    overflow: hidden !important;
    white-space: nowrap !important;
}

.hdm-scroll-inner {
    display: inline-block;
    padding-left: 100%;
    animation: hdm-scroll linear infinite;
    will-change: transform;
}

/* 三档速度 */
.hdm-spd-a { animation-duration: 28s; }
.hdm-spd-b { animation-duration: 18s; }
.hdm-spd-c { animation-duration: 35s; }

.hdm-track:hover .hdm-scroll-inner {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .hdm-scroll-inner { animation: none !important; padding-left: 0 !important; }
    .hdm-track { overflow-x: auto !important; }
}

/* --- 功能状态栏 (Function Bar) — 绍宋版 --- */
.styled-prose-container fbar {
  display: block !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #8b0000 !important;
  letter-spacing: 1.5px !important;
  padding: 8px 14px !important;
  margin: 8px 0 0 0 !important;
  border-top: 1px dashed rgba(139,0,0,0.25) !important;
  font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif !important;
  line-height: 1.8 !important;
}