/* --- YGGDRASIL FULL CSS RENDERER --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Noto+Sans+SC:wght@300;400;700&display=swap');

.ygg-theme {
    --ygg-bg: #0a0a0c;
    --ygg-panel: #16181d;
    --ygg-gold: #d4af37;
    --ygg-gold-dim: #7a6021;
    --ygg-text: #d1d1d1;
    --ygg-red: #9e0000;
    --ygg-blue: #0047ab;
    --ygg-border: 2px double var(--ygg-gold-dim);
    background-color: var(--ygg-bg);
    color: var(--ygg-text);
    font-family: 'Noto Sans SC', sans-serif;
    border: var(--ygg-border);
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
    position: relative;
    /* 【核心修复1】：必须允许溢出，否则悬浮窗在边缘处会被直接切断消失！ */
    overflow: visible !important; 
    line-height: 1.6;
}

/* 顶部HUD美化 */
.ygg-header {
    background: linear-gradient(180deg, #1a1c22 0%, #0a0a0c 100%);
    border-bottom: 1px solid var(--ygg-gold-dim);
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}
.ygg-tag-time, .ygg-tag-loc, .ygg-tag-dev {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--ygg-gold-dim);
    color: var(--ygg-gold);
    font-family: 'Cinzel', serif;
}
.ygg-tag-dev { color: #ff4d4d; border-color: #661a1a; }
.ygg-alert {
    width: 100%;
    font-size: 11px;
    color: #888;
    border-top: 1px dashed #333;
    padding-top: 5px;
}

/* 正文区域 */
.ygg-body {
    padding: 25px;
    text-align: justify;
    font-size: 15px;
    background: radial-gradient(circle at center, #1a1c22 0%, #0a0a0c 100%);
}

/* 状态栏核心逻辑 */
.ygg-status { padding: 10px; background: #0f1115; }
.ygg-theme details { margin-bottom: 8px; border: 1px solid #2a2d35; background: #16181d; }
.ygg-theme summary {
    padding: 10px 15px;
    color: var(--ygg-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(212,175,55,0.1) 0%, transparent 100%);
    list-style: none;
    display: flex;
    justify-content: space-between;
}
.ygg-theme summary::-webkit-details-marker { display: none; }
.ygg-theme summary::after { content: "[+]"; font-size: 12px; opacity: 0.6; }
.ygg-theme details[open] > summary::after { content: "[-]"; }

.det-content { padding: 15px; font-size: 13px; }
.ygg-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--ygg-gold-dim), transparent); margin: 12px 0; }

/* 等级与数值详情 */
.lv-detail { color: #888; font-size: 0.85em; margin-left: 5px; }
.stat-box { display: flex; align-items: center; margin: 8px 0; }
.stat-name { width: 40px; font-family: 'Cinzel', serif; font-weight: bold; color: var(--ygg-gold-dim); }
.stat-bar { 
    flex: 1; height: 16px; background: #000; border: 1px solid #333; 
    position: relative; overflow: hidden; box-shadow: inset 0 0 8px #000;
}
.stat-fill { height: 100%; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hp-fill { background: linear-gradient(90deg, #600 0%, #b00 100%); box-shadow: 0 0 10px #600; }
.mp-fill { background: linear-gradient(90deg, #003 0%, #007 100%); box-shadow: 0 0 10px #004; }
.stat-val {
    position: absolute; width: 100%; text-align: center; font-size: 10px;
    font-family: 'Cinzel', serif; color: #fff; text-shadow: 1px 1px 2px #000; line-height: 16px;
}

/* 列表美化 */
.ygg-theme ul { list-style: none; padding: 0; margin: 5px 0; }
.ygg-theme li { padding-left: 12px; border-left: 2px solid var(--ygg-gold-dim); margin-bottom: 4px; color: #aaa; }
.npc-state { color: #777; font-style: italic; }

/* 
   ================================================================
   ★ YGGDRASIL 黑金悬浮窗 (极简原生绝对定位版 - 终极防御消失) ★
   ================================================================
*/
.item-link { 
    --ygg-gold-hover: #ffd700;
    
    color: var(--ygg-gold); 
    border-bottom: 1px dashed var(--ygg-gold-dim); 
    cursor: pointer; /* 移动端用pointer更易识别 */
    position: relative; 
    display: inline-block; /* 强制产生物理尺寸锚点 */
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent; 
    outline: none;
}

.item-link:hover,
.item-link:active,
.item-link:focus {
    color: #fff;
    border-bottom-color: var(--ygg-gold-hover);
    text-shadow: 0 0 8px var(--ygg-gold-hover);
    z-index: 10; /* 激活时提升自身层级 */
}

/* 悬浮窗主体 */
.item-pop {
    visibility: hidden; 
    opacity: 0; 
    
    /* 【核心修复2】：退回最稳定的绝对定位，悬浮于词汇正上方 */
    position: absolute; 
    bottom: calc(100% + 8px); /* 位于词汇上方8像素 */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* 动画初始位置微降 */
    z-index: 999999; 
    
    width: 260px; /* 适当收窄以防在屏幕边缘被挤压 */
    pointer-events: none; 
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* 添加一个指向下方的小三角，加强UI质感 */
.item-pop::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--ygg-gold-hover) transparent transparent transparent;
}

/* 触发状态 */
.item-link:hover .item-pop,
.item-link:active .item-pop,
.item-link:focus .item-pop { 
    visibility: visible; 
    opacity: 1; 
    transform: translateX(-50%) translateY(0); /* 向上弹起归位 */
}

.pop-inner {
    display: block; 
    background: rgba(10, 10, 12, 0.98); 
    border: 2px solid var(--ygg-gold-hover);
    padding: 12px 15px; 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.95);
    border-radius: 4px; 
}

.pop-title { 
    display: block; 
    color: var(--ygg-gold-hover); 
    border-bottom: 1px solid rgba(255, 215, 0, 0.3); 
    margin-bottom: 8px; 
    padding-bottom: 6px;
    font-family: 'Cinzel', serif; 
    font-weight: bold; 
    text-align: center; 
    font-size: 15px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.pop-text { 
    display: block; 
    color: #e2e2e2; 
    font-size: 12.5px; 
    line-height: 1.5; 
    text-align: left;
    white-space: normal; /* 强制换行防止溢出 */
}

/* 针对移动端极端靠左/靠右词汇的保护，防止弹窗超出屏幕左右边界 */
@media (max-width: 480px) {
    .item-pop { width: 240px; }
}

/* 女性特征专区 */
.fem-box { border: 1px solid #4a1a2c; background: rgba(40, 10, 20, 0.4); padding: 10px; margin-top: 10px; }
.fem-title { color: #ff69b4; font-weight: bold; font-size: 12px; border-bottom: 1px solid #4a1a2c; margin-bottom: 5px; }

/* 选项按钮 */
.ygg-opts { padding: 15px; display: flex; flex-direction: column; gap: 8px; background: #0a0a0c; }
.opt-btn {
    padding: 12px 20px; background: #16181d; border: 1px solid var(--ygg-gold-dim);
    color: var(--ygg-text); font-weight: bold; font-size: 14px; cursor: pointer;
    transition: 0.3s; border-left: 5px solid var(--ygg-gold-dim);
}
.opt-btn:hover {
    background: var(--ygg-gold-dim); color: #fff; transform: translateX(5px);
    box-shadow: 0 0 15px rgba(212,175,55,0.3);
}

/* 响应式微调 */
@media (max-width: 600px) {
    .ygg-body { padding: 15px; font-size: 14px; }
}

/* === OVERLORD 纳萨力克大坟墓主题统合版 === */
/* 模拟 YGGDRASIL 系统控制台与至尊暗金配色 */

/* 1. 移除顶部默认颜色装饰条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 2. 统一聊天框美化 (魔导国系统风格) */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(165deg, #1a0b2e 0%, #050505 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 
                inset 0 0 30px rgba(76, 29, 149, 0.15) !important;
    margin-bottom: 8px !important;
}

/* 3. 聊天框内主要文本 (系统提示文字) */
.bg-gray-100\/90.relative.inline-block .markdown-body {
    color: #E5E5E5 !important;
    font-family: "Segoe UI", "Roboto", sans-serif !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* 4. 强调文本处理 (世界级道具的光辉) */
.markdown-body strong {
    color: #FCD34D !important;
    text-shadow: 0 0 8px rgba(252, 211, 77, 0.3) !important;
}

/* 5. 纳萨力克系统加载动画容器 - 修复文字显示 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) {
    justify-content: flex-start !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e) !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    margin: 8px 0 !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
    animation: nazarick-pulse 3s ease-in-out infinite !important;
    display: flex !important;
    gap: 12px !important;
}

/* 6. 加载动态文字：系统判定日志 - 修复文字显示问题 */
#ai-chat-answer .chat-answer-container .loading-text {
    font-size: 13px !important;
    font-family: "Consolas", "Monaco", monospace !important;
    color: #D4AF37 !important;
    text-shadow: 0 0 2px rgba(212, 175, 55, 0.5) !important;
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    height: 20px !important;
    line-height: 20px !important;
    position: relative !important;
    min-width: 320px !important;
}

/* 文字滚动动画容器 */
#ai-chat-answer .chat-answer-container .loading-text::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%) !important;
    animation: text-highlight 6s linear infinite !important;
}

/* 7. 基础旋转图标：魔法咏唱阵 */
#ai-chat-answer .chat-answer-container .style_dot-flashing__8L91Q {
    background: transparent !important;
    width: 20px !important;
    height: 20px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    border: 2px solid rgba(139, 92, 246, 0.3) !important;
    border-top-color: #D4AF37 !important;
    border-left-color: #8B5CF6 !important;
    border-radius: 50% !important;
    animation: spinner-rotation 0.8s linear infinite !important;
    position: relative !important;
}

/* 图标内部发光点 */
#ai-chat-answer .chat-answer-container .style_dot-flashing__8L91Q::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 4px !important;
    height: 4px !important;
    background-color: #D4AF37 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px #D4AF37 !important;
}

/* 8. 高级加载动画 (多重魔法阵咏唱) */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 外圈：金色魔法环 */
.flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid transparent !important;
    border-top-color: #D4AF37 !important;
    border-right-color: #D4AF37 !important;
    border-radius: 50% !important;
    animation: spinner-rotation 1.5s linear infinite !important;
    position: absolute !important;
}

/* 内圈：紫色魔力核心 */
.flex.items-center.justify-center.w-6.h-5::after {
    content: "" !important;
    width: 10px !important;
    height: 10px !important;
    border: 2px solid transparent !important;
    border-bottom-color: #8B5CF6 !important;
    border-left-color: #8B5CF6 !important;
    border-radius: 50% !important;
    animation: spinner-rotation-reverse 1s linear infinite !important;
}

/* 9. 底部附加元素样式 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #6B7280 !important;
    transition: all 0.3s ease !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #D4AF37 !important;
    background-color: rgba(212, 175, 55, 0.08) !important;
}

/* 模型名称与Token消耗 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #8B5CF6 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
}

/* 10. 平台按钮：至尊黑紫金配色 */
button, .menu_button {
    background: linear-gradient(135deg, #2e1065, #0f0c29) !important;
    color: #e2e8f0 !important;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.5) !important;
    border: 1px solid #d4af37 !important;
    border-bottom: 3px solid #855e05 !important;
    font-family: 'Cinzel', 'Georgia', serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border-radius: 2px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

button:hover, .menu_button:hover {
    background: linear-gradient(135deg, #4c1d95, #1a1a1a) !important;
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8) !important;
    border-color: #ffd700 !important;
    border-bottom-color: #b48a07 !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), inset 0 0 10px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-2px) !important;
}

button:active, .menu_button:active {
    transform: translateY(1px) !important;
    border-bottom-width: 1px !important;
    background: #000000 !important;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9) !important;
    border-color: #855e05 !important;
}

/* 11. 输入框：YGGDRASIL控制台风格 */
textarea, input[type="text"] {
    background-color: rgba(15, 10, 25, 0.9) !important;
    color: #e6e1d6 !important;
    border: 1px solid #5d4037 !important;
    border-left: 4px solid #d4af37 !important;
    font-family: 'Consolas', 'Courier New', monospace !important;
    border-radius: 0px !important;
    caret-color: #ffd700 !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.3s ease !important;
}

textarea:focus, input[type="text"]:focus {
    background-color: rgba(30, 20, 50, 0.95) !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

/* 占位符：休眠状态的符文 */
textarea::placeholder, input::placeholder { 
    color: rgba(212, 175, 55, 0.3) !important;
    font-style: italic !important;
    letter-spacing: 1px !important;
}

/* === 文字循环动画的JavaScript注入样式 === */
.system-log-1 .loading-text::before {
    content: '[SYSTEM] 正在连接 YGGDRASIL 服务器...' !important;
}
.system-log-2 .loading-text::before {
    content: '[CHECK] 正在判定第十位阶魔法效果...' !important;
}
.system-log-3 .loading-text::before {
    content: '[SYNC] 正在同步种族等级数据...' !important;
}
.system-log-4 .loading-text::before {
    content: '[SEARCH] 正在检索世界级道具...' !important;
}
.system-log-5 .loading-text::before {
    content: '[WARNING] 纳萨力克大坟墓展开中...' !important;
    color: #F87171 !important;
}

/* 文字动画关键帧 */
@keyframes text-fade {
    0%, 20% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

/* 文字高光效果 */
@keyframes text-highlight {
    0%, 100% { opacity: 0.1; transform: translateX(-100%); }
    50% { opacity: 0.3; }
    100% { transform: translateX(100%); }
}

/* === 动画定义区 === */
@keyframes nazarick-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.5);
        border-color: rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.3), inset 0 0 20px rgba(76, 29, 149, 0.2);
        border-color: rgba(212, 175, 55, 0.8);
    }
}

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

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

/* === 思维链(CoT) - 轻量级异世界风格 === */
.cot-container details {
    --epic-bg: #0d0b14;
    --epic-border: #4a3c6e;
    --epic-text-main: #e6d9c2;
    --epic-text-header: #d4af37;
    --epic-text-accent: #8a6de9;
    
    background-color: var(--epic-bg);
    border: 1px solid var(--epic-border);
    border-radius: 8px;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--epic-text-main);
    line-height: 1.6;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.cot-container details::before,
.cot-container details::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--epic-text-header);
    opacity: 0.3;
}

.cot-container details::before { top: 0; }
.cot-container details::after { bottom: 0; }

.cot-container summary {
    background-color: rgba(42, 35, 66, 0.9);
    color: var(--epic-text-header);
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    list-style: none;
    user-select: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: background-color 0.2s ease;
}

.cot-container summary:hover {
    background-color: rgba(58, 48, 92, 0.9);
}

.cot-container summary::before {
    content: '▶';
    color: var(--epic-text-accent);
    margin-right: 12px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s ease;
}

.cot-container details[open] summary::before {
    content: '▼';
    transform: rotate(0deg);
}

.cot-container details > div {
    padding: 18px 22px;
}

.cot-container hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--epic-text-header), transparent);
    margin: 20px 0;
}

.cot-container p {
    margin-bottom: 1.2em;
    text-align: justify;
}

.cot-container p:first-of-type::first-letter {
    font-size: 2em;
    color: var(--epic-text-header);
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 6px;
    font-weight: bold;
}

.cot-container ul, .cot-container ol {
    padding-left: 24px;
    margin: 15px 0;
}

.cot-container li {
    margin-bottom: 8px;
    position: relative;
}

.cot-container ul li::before {
    content: '•';
    color: var(--epic-text-accent);
    position: absolute;
    left: -15px;
    font-size: 1.2em;
}

.cot-container pre, .cot-container code {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: rgba(13, 11, 20, 0.8);
    border: 1px solid rgba(74, 60, 110, 0.3);
    border-radius: 4px;
    padding: 6px 10px;
    color: #b5a8e0;
    font-size: 0.9em;
}

.cot-container pre {
    padding: 12px;
    overflow-x: auto;
    margin: 15px 0;
}

.cot-container a {
    color: var(--epic-text-accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--epic-text-accent);
}

.cot-container a:hover {
    color: var(--epic-text-header);
    border-bottom: 1px solid var(--epic-text-header);
}

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

@media (max-width: 768px) {
    .cot-container details { margin: 12px 0; border-radius: 6px; }
    .cot-container summary { padding: 12px 16px; font-size: 1em; }
    .cot-container details > div { padding: 15px 18px; }
}

/* =========================================
   OVERLORD Theme - 纳萨力克评论区样式
   ========================================= */

div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(to bottom, #1a1a1d, #0f0f12) !important;
    border-top: 3px solid #d4af37 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9) !important;
}

div.text-lg.font-bold {
    color: #d4af37 !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    font-family: 'Times New Roman', serif !important;
    letter-spacing: 1px;
}

p.MuiTypography-body1.text-grey-600 {
    color: #a0a0a0 !important;
}

span.MuiRating-iconFilled svg {
    color: #ffd700 !important;
    filter: drop-shadow(0 0 3px #ffeb3b);
}
span.MuiRating-iconEmpty svg {
    color: #333333 !important;
}
span.text-orange-500 {
    color: #ff4d4d !important;
    font-weight: bold !important;
}

div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(135deg, #4a0e4e, #2e003e) !important;
    border-left: 1px solid #5a1a5e !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover {
    background: linear-gradient(135deg, #6a1b9a, #4a148c) !important;
}
div[data-state="closed"] svg[data-icon="Send03"] {
    color: #d4af37 !important;
    transform: scale(1.1);
}

button.MuiButton-containedPrimary {
    background-color: #d4af37 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border: 1px solid #b8860b !important;
}
button.MuiButton-outlinedPrimary {
    border-color: #444 !important;
    color: #888 !important;
    background-color: rgba(255,255,255,0.05) !important;
}

div.style_divider__mW0YX {
    background-color: #333 !important;
    opacity: 0.5;
}

div.p-3.overflow-y-auto {
    background-color: transparent !important;
}

div.group.ml-0 {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
}

div.text-sm.text-grey-600 span.font-bold {
    color: #cccccc !important;
    font-size: 0.95rem !important;
}

span.text-\[10px\] {
    background-color: #3d0000 !important;
    color: #ff6b6b !important;
    border: 1px solid #8a0000 !important;
    padding: 1px 4px !important;
    border-radius: 2px !important;
}

div.break-all {
    color: #dcdcdc !important;
    line-height: 1.6 !important;
}

div.text-xs.text-grey-600 {
    color: #5c5c5c !important;
}

button.text-gray-400 svg {
    color: #666 !important;
    transition: all 0.2s;
}
button.text-gray-400:hover svg {
    color: #d4af37 !important;
    transform: translateY(-2px);
}

/* =========================================
   OVERLORD Theme - 超位魔法阵 (Super-Tier Magic Circle)
   基于原生容器尺寸与SVG SMIL动画的终极重构版 (适配B平台)
   ========================================= */

/* 1. 强制隐藏系统默认的加载点 */
.flex.gap-2.w-full.h-full.items-center.justify-center span {
    display: none !important;
}

/* 2. 定制加载动画容器：扩大尺寸以容纳完整超位法阵 */
.flex.gap-2.w-full.h-full.items-center.justify-center {
    position: relative !important;
    min-width: 80px !important;
    min-height: 80px !important;
    width: 80px !important;
    height: 80px !important;
    overflow: visible !important;
}

/* 3. 超位魔法阵外圈：世界树卢恩符文与多重刻度环逆向缓慢旋转（SMIL SVG动画） */
.flex.gap-2.w-full.h-full.items-center.justify-center::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80px !important;
    height: 80px !important;
    /* 注入耀金魔法环、虚线刻度与卢恩符文的SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cfilter id='glow'%3E%3CfeGaussianBlur stdDeviation='2.5' result='b'/%3E%3CfeMerge%3E%3CfeMergeNode in='b'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23glow)'%3E%3Ccircle cx='100' cy='100' r='90' fill='none' stroke='%23d4af37' stroke-width='2' opacity='0.9'/%3E%3Ccircle cx='100' cy='100' r='82' fill='none' stroke='%23d4af37' stroke-width='1' stroke-dasharray='5 5' opacity='0.7'/%3E%3Ccircle cx='100' cy='100' r='65' fill='none' stroke='%23d4af37' stroke-width='1.5' opacity='0.8'/%3E%3Cg fill='%23e5c158' font-family='serif' font-size='18' font-weight='bold' text-anchor='middle'%3E%3Ctext x='100' y='25'%3Eᚲ%3C/text%3E%3Ctext x='153' y='47'%3Eᚹ%3C/text%3E%3Ctext x='178' y='105'%3Eᚦ%3C/text%3E%3Ctext x='153' y='163'%3Eᚨ%3C/text%3E%3Ctext x='100' y='185'%3Eᚱ%3C/text%3E%3Ctext x='47' y='163'%3Eᚷ%3C/text%3E%3Ctext x='22' y='105'%3Eᛗ%3C/text%3E%3Ctext x='47' y='47'%3Eᛟ%3C/text%3E%3C/g%3E%3C/g%3E%3CanimateTransform attributeName='transform' type='rotate' from='360 100 100' to='0 100 100' dur='8s' repeatCount='indefinite'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    z-index: 1 !important;
}

/* 4. 超位魔法阵内层：暗紫八角星阵顺时针快速旋转 + 中心魔力印记脉动（SMIL SVG动画） */
.flex.gap-2.w-full.h-full.items-center.justify-center::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80px !important;
    height: 80px !important;
    /* 注入交错双正方形（八角星）、猩红内环与中心脉动图腾的SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg%3E%3Cg stroke='%23732a78' stroke-width='2' fill='none' opacity='0.9'%3E%3Crect x='60' y='60' width='80' height='80'/%3E%3Crect x='60' y='60' width='80' height='80' transform='rotate(45 100 100)'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='45' fill='none' stroke='%23c0392b' stroke-width='2'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 100 100' to='360 100 100' dur='3s' repeatCount='indefinite'/%3E%3C/g%3E%3Cg font-family='serif' font-size='32' font-weight='900' fill='%23d4af37' text-anchor='middle'%3E%3Ctext x='100' y='110'%3E❂%3Canimate attributeName='opacity' values='0.4;1;0.4' dur='1.5s' repeatCount='indefinite'/%3E%3C/text%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='30' fill='none' stroke='%23732a78' stroke-width='1.5' opacity='0.7'%3E%3Canimate attributeName='r' values='25;35;25' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='0.8;0.2;0.8' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* 5. CSS增强动画（在SMIL基础上叠加至尊金与法袍紫的光晕脉动，作为魔力满溢的视觉增强） */
@keyframes superTierGlowPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6)) drop-shadow(0 0 8px rgba(115, 42, 120, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(212, 175, 55, 1)) drop-shadow(0 0 16px rgba(192, 57, 43, 0.6));
    }
}

.flex.gap-2.w-full.h-full.items-center.justify-center::before,
.flex.gap-2.w-full.h-full.items-center.justify-center::after {
    animation: superTierGlowPulse 2s ease-in-out infinite !important;
}

/* 6. 移动端适配 */
@media (max-width: 480px) {
    .flex.gap-2.w-full.h-full.items-center.justify-center {
        min-width: 60px !important;
        min-height: 60px !important;
        width: 60px !important;
        height: 60px !important;
    }
    .flex.gap-2.w-full.h-full.items-center.justify-center::before,
    .flex.gap-2.w-full.h-full.items-center.justify-center::after {
        width: 60px !important;
        height: 60px !important;
    }
}

/* 7. 低动效用户偏好适配：降低法阵运转频率但保留施法动效可见性 */
@media (prefers-reduced-motion: reduce) {
    .flex.gap-2.w-full.h-full.items-center.justify-center::before,
    .flex.gap-2.w-full.h-full.items-center.justify-center::after {
        animation-duration: 6s !important;
    }
}