/* ═══ B平台加载动画适配（自动注入）═══ */
.flex.items-center.justify-center.size-6 { opacity: 1 !important; }
.flex.items-center.justify-center.size-6 > .flex.gap-2 { display: none !important; }

/* ═══ B平台表格修正（自动注入）═══ */
.rili-markdown-renderer table { display:table!important; table-layout:auto!important; width:100%!important; border-collapse:collapse!important; }
.rili-markdown-renderer table caption { display:table-caption!important; caption-side:top!important; text-align:center!important; padding:8px!important; }
.rili-markdown-renderer thead { display:table-header-group!important; }
.rili-markdown-renderer tbody { display:table-row-group!important; }
.rili-markdown-renderer tr { display:table-row!important; }
.rili-markdown-renderer th, .rili-markdown-renderer td { display:table-cell!important; }

/* ═══ B平台按钮组保护（自动注入 — 防止按钮消失）═══
   原理：B平台消息操作按钮结构为：
   .flex.items-center.gap-1.ml-auto (hover显隐包装)
     └── .bg-muted.rounded.flex.p-0.5 (按钮组容器)
           └── button.rounded-full.size-7 (单个按钮)
   以下规则使用高specificity + !important确保按钮
   不被任何转换后/透传的CSS规则意外隐藏
   ═══════════════════════════════════════════════ */
/* 按钮组容器保护 */
.w-full.h-full.flex.group .bg-muted.rounded.flex.p-0\.5,
.is-user .bg-muted.rounded.flex.p-0\.5,
.is-assistant .bg-muted.rounded.flex.p-0\.5 {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  pointer-events: auto !important;
  clip: auto !important;
  clip-path: none !important;
}
/* 单个按钮保护 */
.w-full.h-full.flex.group .bg-muted.rounded.flex.p-0\.5 > button,
.is-user .bg-muted.rounded.flex.p-0\.5 > button,
.is-assistant .bg-muted.rounded.flex.p-0\.5 > button {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  clip: auto !important;
  clip-path: none !important;
}
/* hover显隐包装层保护 — 仅保留B平台原生的opacity过渡 */
.flex.items-center.gap-1.ml-auto.md\:opacity-0.group-hover\:opacity-100 {
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
  overflow: visible !important;
}
/* 操作行保护 */
.flex.w-full.items-center.justify-between.gap-2.px-2 {
  display: flex !important;
  visibility: visible !important;
  overflow: visible !important;
}

/* ═══ B平台顶部栏适配说明（自动注入）═══
   A: div.sticky > div.flex.justify-between
      ├── 左侧空区
      ├── #ai-model-selector (居中)
      └── 右侧工具(设置按钮等)
   B: <header.flex.justify-between>
      ├── #nav-left (侧边栏开关)
      ├── #nav-middle (可能为空)
      └── #nav-right (通知/主题/语言)
   B平台模型按钮不在header内，选择器:
   button:has(> .flex-1.truncate.text-left)
   ═══════════════════════════════════════ */
header.flex.justify-between { position: relative; overflow: visible; }

/* =================================================================
   《神印王座》 - 辉煌圣殿与光明之子主题 UI 深度美化版 v2.0
   核心色调：神圣金(光明)、象牙白(纯洁)、琥珀/黄铜(史诗古籍)
   v2.0 优化重点：折叠面板尺寸精修、内容分布网格化、信息密度优化
   ================================================================= */

/* 动画定义区 */
@keyframes holyLightBreath {
    0% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.2), inset 0 0 12px rgba(255, 215, 0, 0.05); }
    50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.45), inset 0 0 20px rgba(255, 215, 0, 0.12); }
    100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.2), inset 0 0 12px rgba(255, 215, 0, 0.05); }
}

@keyframes divineShine {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 200%; opacity: 0; }
}

@keyframes scrollUnfold {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 1. 基础面板与状态栏 (尺寸紧凑化) ==================== */
details {
    background: linear-gradient(145deg, rgba(255, 253, 245, 0.98) 0%, rgba(253, 248, 235, 0.95) 100%);
    border: 1px solid #ebdca7;
    border-radius: 6px; /* 精简倒角 */
    margin-bottom: 8px; /* 减小外边距，提升信息密度 */
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.08), inset 0 0 12px rgba(255, 215, 0, 0.04);
    color: #3e2a14;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    font-size: 14px; /* 统一基础字号控制 */
}

/* details流光纹路装饰 - 缩减厚度 */
details::before,
details::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px; /* 减薄装饰线 */
    background: linear-gradient(90deg, transparent, #e6c56a, #ffd700, #e6c56a, transparent);
    box-shadow: 0 0 6px rgba(218, 165, 32, 0.45);
    transition: all 0.4s ease;
    z-index: 2;
    pointer-events: none;
}
details::before { top: 0; }
details::after { bottom: 0; opacity: 0.5; }

/* 展开态 */
details[open] {
    border-color: #ffd700;
    animation: holyLightBreath 3s infinite ease-in-out;
    background: radial-gradient(ellipse at top center, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 235, 0.98) 100%);
    margin-bottom: 12px; /* 展开时给一点呼吸空间 */
}
details[open]::before {
    background: linear-gradient(90deg, transparent, #ff8c00, #ffea00, #ff8c00, transparent);
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.75);
    height: 2.5px;
}
details[open]::after {
    background: linear-gradient(90deg, transparent, #ff8c00, #ffd700, #ff8c00, transparent);
    height: 1.5px;
    opacity: 1;
}

/* details嵌套时的层级缩减 */
details details {
    margin: 6px 0;
    border-radius: 4px;
    font-size: 0.96em;
}

details details > summary {
    padding: 8px 12px;
    font-size: 1em;
}

/* ==================== 2. 标题栏 (紧凑铠甲质感) ==================== */
summary {
    background: linear-gradient(90deg, #fef9e7 0%, #fff7de 50%, #fef9e7 100%);
    color: #a67c00; 
    padding: 9px 14px; /* 缩减padding，原14px 18px */
    font-weight: 800;
    font-size: 1.02em; /* 原1.15em，更紧凑 */
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid rgba(218, 165, 32, 0.18);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    position: relative;
    letter-spacing: 0.5px; /* 紧凑字距 */
    line-height: 1.4;
    user-select: none;
}

summary::after {
    content: '';
    position: absolute;
    left: 8%; right: 8%; bottom: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.55), rgba(255, 215, 0, 0.75), rgba(218, 165, 32, 0.55), transparent);
    box-shadow: 0 0 5px rgba(218, 165, 32, 0.35);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] > summary::after {
    background: linear-gradient(90deg, transparent, #ff8c00, #ffd700, #ff8c00, transparent);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.75);
    height: 2px;
    left: 0; right: 0;
}

details[open] > summary {
    background: linear-gradient(90deg, #fff2c8 0%, #ffe082 50%, #fff2c8 100%);
    color: #b35900;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.55);
    box-shadow: inset 0 -1px 8px rgba(218, 165, 32, 0.12);
}

summary::-webkit-details-marker { display: none; }

/* 紧凑光明符号 */
summary::before {
    content: '☀'; 
    margin-right: 8px;
    color: #daa520;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1.05em;
    filter: drop-shadow(0 0 2px rgba(218, 165, 32, 0.5));
    flex-shrink: 0;
}

details[open] > summary::before {
    content: '✧';
    transform: rotate(180deg) scale(1.2);
    color: #ff6600;
    filter: drop-shadow(0 0 5px #ffd700);
}

/* ==================== 3. 内容区 (信息分布网格化) ==================== */
.hud-content {
    padding: 12px 14px; /* 原16px 20px，紧凑化 */
    line-height: 1.6;
    font-size: 13.5px;
    color: #4a3b2a;
    animation: scrollUnfold 0.4s ease-out;
    background: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" opacity="0.035"><path d="M30 8 L30 52 M8 30 L52 30 M18 18 L42 42 M18 42 L42 18" stroke="%23daa520" stroke-width="1"/></svg>'),
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.04) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(255, 140, 0, 0.03) 0%, transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
}

/* 段落间距精修 */
.hud-content p {
    margin: 6px 0;
    line-height: 1.65;
}

.hud-content p:first-child { margin-top: 0; }
.hud-content p:last-child { margin-bottom: 0; }

/* 列表布局优化 - 网格分布 */
.hud-content ul, .hud-content ol {
    padding-left: 22px;
    margin: 6px 0;
}

.hud-content li {
    margin: 3px 0;
    line-height: 1.6;
}

/* ==================== 4. 标签系统 (紧凑铭牌) ==================== */
name, SL, info, abli {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px; /* 缩减padding */
    margin: 1px 3px 1px 0;
    border-radius: 2px 5px 5px 2px;
    font-weight: bold;
    font-size: 0.92em; /* 略缩 */
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    vertical-align: baseline;
}

name { 
    color: #a85800; 
    text-shadow: 0 0 3px rgba(210, 105, 30, 0.1);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 255, 255, 0.5));
    border-left: 3px solid #daa520;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
}

SL { 
    color: #b30000; 
    text-shadow: 0 0 3px rgba(230, 0, 0, 0.2);
    background: linear-gradient(90deg, rgba(230, 0, 0, 0.1), rgba(255, 255, 255, 0.5));
    border-left: 3px solid #ff3333;
    border-top: 1px solid rgba(255, 51, 51, 0.2);
}

info { 
    color: #555;
    background: linear-gradient(90deg, rgba(136, 136, 136, 0.1), rgba(255, 255, 255, 0.5));
    border-left: 3px solid #888;
    border-top: 1px solid rgba(136, 136, 136, 0.2);
}

abli { 
    color: #1a4da6; 
    text-shadow: 0 0 3px rgba(65, 105, 225, 0.2);
    background: linear-gradient(90deg, rgba(65, 105, 225, 0.12), rgba(255, 255, 255, 0.5));
    border-left: 3px solid #4169e1;
    border-top: 1px solid rgba(65, 105, 225, 0.2);
}

name::after, SL::after, info::after, abli::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
    transform: skewX(-20deg);
    animation: divineShine 4s infinite linear;
    pointer-events: none;
}

/* 子块 - 紧凑卷轴摘录 */
.sub-block {
    background: linear-gradient(90deg, rgba(218, 165, 32, 0.08) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-left: 3px solid #ffd700;
    padding: 8px 12px; /* 缩减 */
    margin: 7px 0;
    border-radius: 0 6px 6px 0;
    border-top: 1px solid rgba(218, 165, 32, 0.1);
    border-bottom: 1px solid rgba(218, 165, 32, 0.1);
    font-size: 0.96em;
}

.sub-block > *:first-child { margin-top: 0; }
.sub-block > *:last-child { margin-bottom: 0; }

/* ==================== 5. 行动选项 (紧凑徽章按钮 - 可复制交互优化版) ==================== */
.ygg-opts {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 原12px */
    margin-top: 12px;
}

.opt-btn {
    background: linear-gradient(180deg, #ffffff 0%, #fcf9f0 100%);
    border: 1px solid #d4c18c;
    color: #634b2f;
    padding: 10px 14px; /* 原14px 18px */
    border-radius: 6px;
    cursor: copy; /* 将 pointer 修改为 copy，提供复制行为的视觉暗示 */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    font-weight: bold;
    font-size: 13.5px;
    box-shadow: 0 2px 5px rgba(139, 69, 19, 0.07), inset 0 1px 0 rgba(255,255,255,0.8);
    text-align: left;
    display: flex;
    align-items: center;
    line-height: 1.45;

    /* 交互核心：PC/移动端一键全选，支持直接复制 */
    -webkit-user-select: all;
    user-select: all;
}

.opt-btn::before {
    content: '✦';
    color: #daa520;
    margin-right: 8px;
    font-size: 1.05em;
    opacity: 0.65;
    transition: all 0.3s;
    flex-shrink: 0;
}

.opt-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    transition: left 0.6s ease;
}

.opt-btn:hover {
    border-color: #ffd700;
    color: #a85800;
    box-shadow: 0 5px 12px rgba(218, 165, 32, 0.22), inset 0 1px 0 rgba(255,255,255,1);
    background: linear-gradient(180deg, #fffef7 0%, #fff2cc 100%);
    transform: translateY(-1px);
}

.opt-btn:hover::before {
    color: #ff8c00;
    opacity: 1;
    transform: rotate(90deg) scale(1.2);
    text-shadow: 0 0 5px #ffd700;
}

.opt-btn:hover::after { left: 150%; }

/* === 交互增强补丁区 === */

/* 1. 按下/轻触时的内阴影与物理下沉反馈，增强操作真实感 */
.opt-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(139, 69, 19, 0.1), inset 0 2px 4px rgba(218, 165, 32, 0.15);
    background: linear-gradient(180deg, #fcf9f0 0%, #f5eedc 100%);
}

/* 2. 匹配当前金色主题的文本全选高亮色，确保选中状态下文字依然清晰 */
.opt-btn::selection {
    background: rgba(218, 165, 32, 0.3);
    color: #634b2f;
}

/* =================================================================
   全局 UI 覆写：永恒与创造之神印王座
   ================================================================= */

/* --- 顶部栏净化 --- */
header.flex.justify-between.w-full.top-0 [class*="bg-[#F1CBCB]"], 
header.flex.justify-between.w-full.top-0 [class*="bg-[#c9e1e9]"] {
    display: none !important;
}

header.flex.justify-between {
    background: linear-gradient(90deg, rgba(255, 252, 245, 0.95), rgba(255, 245, 225, 0.95)) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 2px solid #e6c56a !important; 
    box-shadow: 0 4px 25px rgba(218, 165, 32, 0.15), 0 1px 0 rgba(255,255,255,0.8) inset !important;
}

/* --- 聊天气泡 --- */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted {
    background: linear-gradient(135deg, #ffffff 0%, #fdfaee 60%, #fcf3db 100%) !important;
    border: 1px solid #eaddbc !important;
    border-left: 4px solid #ffd700 !important;
    border-radius: 4px 16px 16px 16px !important; 
    box-shadow: 
        4px 4px 12px rgba(218, 165, 32, 0.08), 
        inset 0 0 18px rgba(255, 255, 255, 0.9) !important;
    color: #3e2723 !important; 
    padding: 12px 14px !important; /* 紧凑气泡内边距 */
}

.is-user > .border.border-muted,
.is-assistant > .border.border-muted .rili-markdown-renderer {
    color: #4a3b2a !important; 
    font-family: "Microsoft YaHei", sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
}

.is-user > .border.border-muted,
.is-assistant > .border.border-muted .rili-markdown-renderer strong {
    color: #b87300 !important; 
    text-shadow: 0px 0px 4px rgba(255, 215, 0, 0.4) !important;
    font-weight: 800 !important;
    border-bottom: 1px dashed #daa520; 
}

/* 代码块 - 古籍羊皮纸 */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted pre {
    background: linear-gradient(145deg, #f8f1e3 0%, #f0e4cc 100%) !important;
    border: 1px solid #dcb26b !important; 
    border-left: 4px solid #c49a45 !important;
    color: #5c4125 !important;
    box-shadow: inset 0 2px 8px rgba(139, 69, 19, 0.05) !important;
    padding: 10px 12px !important;
    border-radius: 4px !important;
}

.is-user > .border.border-muted,
.is-assistant > .border.border-muted code {
    background-color: rgba(218, 165, 32, 0.15) !important;
    color: #a85800 !important;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.92em;
}

/* --- 按钮 --- */
button, .menu_button.MuiButton-root,
#nav-right button {
    background: linear-gradient(135deg, #fffefaf0, #fcf5d5) !important; 
    color: #7a5223 !important; 
    border: 1px solid #dfc79b !important;
    border-bottom: 2px solid #c49a45 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 5px rgba(139, 69, 19, 0.08) !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover,
#nav-right button:hover {
    background: linear-gradient(135deg, #ffffff, #ffe066) !important; 
    color: #9e4b00 !important; 
    border-color: #ffd700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
    transform: translateY(-1px) !important;
}

.MuiPaginationItem-root.Mui-selected {
    background: linear-gradient(135deg, #ffd700, #daa520) !important; 
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.6) !important;
    border: 1px solid #c49a45 !important;
}

/* --- 输入框 --- */
textarea, input[type="text"] {
    background-color: rgba(255, 252, 245, 0.98) !important; 
    color: #3e2723 !important; 
    border: 1px solid #dccbaf !important;
    border-left: 4px solid #4b0082 !important;
    border-radius: 6px !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
}
textarea, input[type="text"]:focus {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), inset 0 2px 5px rgba(0,0,0,0.01) !important;
    border-color: #ffd700 !important; 
    border-left-color: #ffd700 !important;
    background-color: #fff !important;
}
textarea, input[type="text"]::placeholder {
    color: rgba(139, 69, 19, 0.4) !important;
    font-style: italic;
}

/* --- 评论区 --- */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: linear-gradient(to top, #fbf7ec, #ffffff) !important; 
    border-top: 2px solid #ebdca7 !important;
    box-shadow: 0 -4px 15px rgba(218, 165, 32, 0.05) !important;
}

div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.cursor-pointer.group.flex.items-center.justify-center {
    background: linear-gradient(135deg, #e6c56a, #c49a45) !important; 
    box-shadow: 0 3px 8px rgba(184, 134, 11, 0.3) !important;
    border: 1px solid #b8860b !important;
}
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] div.cursor-pointer.group:hover {
    background: linear-gradient(135deg, #ffd700, #daa520) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
}

/* --- 系统日志 --- */
.system-log-1 .loading-text::before { content: '«神圣同盟» 正在凝聚先天内灵力...' !important; color: #daa520 !important; font-weight: bold;}
.system-log-2 .loading-text::before { content: '«神圣同盟» 猎魔团任务法阵开启中...' !important; color: #daa520 !important; font-weight: bold;}


/* ==================== 6. 悬浮窗 ==================== */
.pop-info {
    position: relative;
    display: inline-block;
    color: #c48c16; 
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(218, 165, 32, 0.05) 100%);
    border: 1px solid rgba(218, 165, 32, 0.4);
    border-bottom: 2px solid rgba(218, 165, 32, 0.6);
    padding: 1px 7px;
    border-radius: 4px;
    cursor: help;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.pop-info:hover, .pop-info:focus {
    color: #a85800;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(218, 165, 32, 0.15) 100%);
    border-color: #ffd700;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.6);
}

.pop-info::after {
    content: "【 等阶/品质：" attr(data-rarity) " 】\A ✧ ═════════════════ ✧ \A" attr(data-desc);
    position: fixed;
    left: 50%;
    top: anchor(top);
    transform: translate(-50%, 8px) scale(0.9);
    
    width: max-content;
    min-width: 280px;
    max-width: min(460px, 90vw); 
    
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 10%),
        linear-gradient(135deg, #fffdf5 0%, #f6edd4 50%, #eaddbc 100%);
    color: #4a331a; 
    
    padding: 18px 22px; 
    
    border: 2px solid #b8860b;
    outline: 1px solid #ffea00;
    outline-offset: -4px;
    border-radius: 2px; 
    
    font-size: 14.5px; 
    line-height: 1.75;
    white-space: pre-wrap;
    word-wrap: break-word;
    
    z-index: 2147483647 !important; 
    
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4), 
        0 0 30px rgba(218, 165, 32, 0.6), 
        inset 0 0 40px rgba(255, 215, 0, 0.15);
                
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    pointer-events: none;
    text-align: left;
    font-weight: normal;
    text-shadow: none;
}

.pop-info::before {
    content: '⚜';
    position: fixed;
    left: 50%;
    top: anchor(top);
    transform: translate(-50%, -32px) scale(0.5); 
    color: #ffd700;
    font-size: 30px;
    text-shadow: 0 0 15px #ff8c00, 0 0 30px #ffd700;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    z-index: 2147483647 !important;
    pointer-events: none;
}

.pop-info:hover::after, .pop-info:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 8px) scale(1);
}

.pop-info:hover::before, .pop-info:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -32px) scale(1);
}

/* 稀有度色彩映射 */
.pop-info[data-rarity*="普通"]::after { border-color: #9e9e9e; outline-color: #e0e0e0; box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 0 20px rgba(158,158,158,0.1); }
.pop-info[data-rarity*="魔法"]::after { border-color: #388e3c; outline-color: #81c784; box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(76,175,80,0.3); }
.pop-info[data-rarity*="稀有"]::after { border-color: #1976d2; outline-color: #64b5f6; box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(33,150,243,0.3); }
.pop-info[data-rarity*="辉煌"]::after, .pop-info[data-rarity*="史诗"]::after { border-color: #7b1fa2; outline-color: #ce93d8; box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(156,39,176,0.5); }
.pop-info[data-rarity*="传奇"]::after { border-color: #e65100; outline-color: #ffb74d; box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(255,152,0,0.5); }
.pop-info[data-rarity*="神话"]::after, .pop-info[data-rarity*="神印"]::after { 
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #ffd700, #ff8c00, #ff1493, #00bfff, #ffd700) 1;
    outline: none;
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%),
        linear-gradient(135deg, #fff7db 0%, #ffecb3 50%, #ffe082 100%);
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5), 
        0 0 40px rgba(255, 215, 0, 0.8), 
        0 0 80px rgba(255, 140, 0, 0.4),
        inset 0 0 50px rgba(255, 215, 0, 0.5);
    color: #4a1f00;
    font-weight: bold;
}

/* ==================== 7. 表格 (紧凑同盟战报) ==================== */
table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0;
    margin: 12px 0;
    font-size: 13.5px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(139, 69, 19, 0.1), 0 0 0 1px #ebdca7;
    background: rgba(255, 252, 242, 0.95); 
}

th, td {
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    border-right: 1px solid rgba(218, 165, 32, 0.15);
    padding: 8px 12px;
    text-align: left;
    color: #5c4125;
    line-height: 1.55;
}

th:last-child, td:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }

th {
    background: linear-gradient(180deg, #ffeaa7 0%, #fbd578 100%);
    color: #8c5b00;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    border-bottom: 2px solid #daa520;
    padding: 9px 12px;
}

tr:hover td {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05), rgba(255, 255, 255, 0.5)); 
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    details { 
        margin-bottom: 6px; 
        font-size: 13px;
    }
    summary {
        padding: 8px 12px;
        font-size: 0.98em;
    }
    .hud-content { 
        font-size: 13px; 
        padding: 10px 12px; 
        line-height: 1.55;
    }
    .sub-block {
        padding: 7px 10px;
        margin: 6px 0;
    }
    .opt-btn {
        padding: 9px 12px;
        font-size: 13px;
    }
    .ygg-opts { gap: 6px; }
    
    name, SL, info, abli {
        padding: 1px 6px;
        font-size: 0.9em;
    }
    
    table {
        font-size: 12.5px;
        margin: 10px 0;
    }
    th, td {
        padding: 6px 9px;
    }
    
    .pop-info::after {
        font-size: 13.5px;
        padding: 14px 16px;
        min-width: 250px;
        width: 88vw;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    summary { padding: 7px 10px; font-size: 0.95em; }
    .hud-content { padding: 9px 10px; font-size: 12.5px; }
    th, td { padding: 5px 7px; font-size: 12px; }
}

/* ==================== 正文区域专属美化 (神印王座风格) ==================== */

/* 正文主容器背景与排版 */
.narrative-area {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf5 50%, #fff8e7 100%);
    border: 1px solid #e6d5a1;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px 0;
    line-height: 1.8;
    color: #3a3327;
    font-size: 15px;
    box-shadow: inset 0 0 30px rgba(218, 165, 32, 0.03), 0 4px 10px rgba(0, 0, 0, 0.05);
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

/* 技能释放特效：璀璨金光 (光明系) */
.skill-cast {
    color: #e68a00;
    font-weight: 900;
    font-size: 1.1em;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 0 15px rgba(255, 140, 0, 0.4);
    letter-spacing: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    padding: 2px 10px;
    border-radius: 4px;
}

/* 技能释放特效：幽暗紫黑 (黑暗/魔族系) */
.skill-dark {
    color: #800080;
    font-weight: 900;
    font-size: 1.1em;
    text-shadow: 0 0 8px rgba(128, 0, 128, 0.8), 0 0 15px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    background: linear-gradient(90deg, transparent, rgba(128,0,128,0.15), transparent);
    padding: 2px 10px;
    border-radius: 4px;
}

/* 神圣对话/光明阵营 (如龙皓晨) */
.holy-dialogue {
    border-left: 4px solid #ffd700;
    background: linear-gradient(to right, rgba(255,215,0,0.12), rgba(255,255,255,0));
    padding: 10px 15px;
    margin: 12px 0;
    font-family: 'KaiTi', '楷体', serif;
    font-size: 1.05em;
    color: #b8860b;
    font-weight: bold;
    border-radius: 0 6px 6px 0;
    box-shadow: -2px 0 5px rgba(255, 215, 0, 0.2);
}

/* 魔族对话/敌对阵营 (狂妄、压迫感) */
.demon-dialogue {
    border-right: 4px solid #8b0000;
    background: linear-gradient(to left, rgba(139,0,0,0.08), rgba(255,255,255,0));
    padding: 10px 15px;
    margin: 12px 0;
    font-family: 'SimHei', '黑体', sans-serif;
    color: #8b0000;
    font-weight: bold;
    text-align: right;
    border-radius: 6px 0 0 6px;
    box-shadow: 2px 0 5px rgba(139, 0, 0, 0.2);
}

/* 刺客对话/清冷阵营 (如圣采儿) */
.assassin-dialogue {
    border-left: 3px solid #6a5acd;
    background: linear-gradient(to right, rgba(106,90,205,0.08), rgba(255,255,255,0));
    padding: 8px 15px;
    margin: 12px 0;
    font-style: italic;
    color: #483d8b;
    border-radius: 0 6px 6px 0;
    letter-spacing: 1px;
}

/* 系统提示/世界公告 (灵力突破、重要节点) */
.system-notice {
    text-align: center;
    font-weight: bold;
    color: #d2691e;
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.2) 0%, transparent 70%);
    padding: 10px;
    margin: 15px 0;
    border-top: 1px solid rgba(218, 165, 32, 0.3);
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
    letter-spacing: 2px;
}

/* 任务面板/公告栏：神圣契约卷轴风格 */
.quest-board {
    background: #fffdf5;
    border: 2px solid #daa520;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(218,165,32,0.15);
    color: #4a4030;
    position: relative;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(218,165,32,0.05) 20px, rgba(218,165,32,0.05) 21px);
}

.quest-board::before {
    content: '📜 神圣契约 / 联盟指令';
    display: block;
    font-weight: 900;
    color: #b8860b;
    margin-bottom: 12px;
    border-bottom: 2px double #daa520;
    padding-bottom: 8px;
    text-align: center;
    font-size: 1.15em;
    letter-spacing: 2px;
}

/* =========================================
   新增：物品/灵炉获取特效 (核心美化)
   ========================================= */
.throne-ui-wrapper .item-acquired {
  text-align: center;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(90deg, transparent 0%, rgba(218, 165, 32, 0.6) 50%, transparent 100%);
  border-top: 2px solid #daa520;
  border-bottom: 2px solid #daa520;
  padding: 15px;
  margin: 25px 0;
  text-shadow: 0 0 10px #ffd700, 0 0 20px #ff8c00;
  animation: itemGlow 2.5s infinite alternate ease-in-out;
}

.throne-ui-wrapper .item-acquired {
  display: block;
  font-size: 0.8em;
  color: #ffd700;
  font-weight: normal;
  margin-top: 5px;
  text-shadow: none;
  opacity: 0.8;
}

/* ========================================================================= */
/* --- ★★★ 神印王座风格・圣光共鸣加载框 (旋转太阳徽记终极版) ★★★ --- */
/* ========================================================================= */

/* 1. 隐藏默认加载点 */
.flex.items-center.justify-center.size-6 > .flex.gap-2 { display: none !important; }

/* 2. 容器重构：自适应高度 + 强制盒模型 (神圣羊皮纸与精金质感) */
.flex.items-center.justify-center.size-6 {
    /* 布局重置 */
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 130px !important; /* 增加最小高度容纳旋转太阳徽记 */
    margin: 8px 0 !important;
    padding: 0 !important;
    
    /* 神印王座风格外观：象牙白与辉煌金渐变 + 顶部SVG系统警告文字 */
    background: 
        /* 顶部系统警告文字（SVG文本，无法用伪元素时的替代方案） */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='22' viewBox='0 0 400 22'><rect width='400' height='22' fill='%23daa52026'/><text x='8' y='15' font-family='Courier New,monospace' font-size='10' font-weight='bold' fill='%23b8860b' letter-spacing='1.2'>✧ HOLY_LIGHT::RESONANCE_SYNC //</text></svg>") top left / 100% 22px no-repeat,
        /* 圣光晕染氛围 */
        radial-gradient(ellipse 80px 50px at 50% 70px, rgba(255, 215, 0, 0.18) 0%, rgba(255, 215, 0, 0.04) 50%, transparent 75%),
        /* 主底色 */
        linear-gradient(180deg, #fffcf5 0%, #fff7de 100%);
    background-repeat: no-repeat;
    
    border: 1px solid #ebdca7;
    border-left: 3px solid #ffd700; /* 左侧辉煌圣光条 */
    border-radius: 4px;
    
    /* 关键：防止溢出 */
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.08), 0 2px 8px rgba(218, 165, 32, 0.15);
    
    /* 容器自身呼吸动画 */
    animation: holy-border-pulse 2.5s infinite ease-in-out;
    
    /* 确保容器不会被外部样式影响 */
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

/* ========== ★ 核心：::before 改造为持续旋转的神圣太阳徽记 ★ ========== */
.flex.items-center.justify-center.size-6::before {
    content: "";
    position: absolute !important;
    top: 32px;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    
    /* 太阳徽记：内置SVG，八芒星光芒 + 内核 + 外环 */
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'>\
<defs>\
<radialGradient id='core' cx='50%25' cy='50%25' r='50%25'>\
<stop offset='0%25' stop-color='%23fffacd' stop-opacity='1'/>\
<stop offset='40%25' stop-color='%23ffd700' stop-opacity='1'/>\
<stop offset='100%25' stop-color='%23daa520' stop-opacity='0.9'/>\
</radialGradient>\
<linearGradient id='ray' x1='50%25' y1='0%25' x2='50%25' y2='100%25'>\
<stop offset='0%25' stop-color='%23ffd700' stop-opacity='0'/>\
<stop offset='50%25' stop-color='%23ffea00' stop-opacity='1'/>\
<stop offset='100%25' stop-color='%23ff8c00' stop-opacity='0.9'/>\
</linearGradient>\
</defs>\
<g transform='translate(50 50)'>\
<polygon points='0,-42 4,-18 -4,-18' fill='url(%23ray)'/>\
<polygon points='0,42 4,18 -4,18' fill='url(%23ray)'/>\
<polygon points='-42,0 -18,-4 -18,4' fill='url(%23ray)'/>\
<polygon points='42,0 18,-4 18,4' fill='url(%23ray)'/>\
<polygon points='-29.7,-29.7 -12.7,-15.5 -15.5,-12.7' fill='url(%23ray)' opacity='0.85'/>\
<polygon points='29.7,29.7 12.7,15.5 15.5,12.7' fill='url(%23ray)' opacity='0.85'/>\
<polygon points='-29.7,29.7 -15.5,12.7 -12.7,15.5' fill='url(%23ray)' opacity='0.85'/>\
<polygon points='29.7,-29.7 15.5,-12.7 12.7,-15.5' fill='url(%23ray)' opacity='0.85'/>\
<circle r='14' fill='url(%23core)' stroke='%23b8860b' stroke-width='1'/>\
<circle r='8' fill='%23fffacd' opacity='0.7'/>\
<circle r='4' fill='%23ffffff'/>\
</g>\
</svg>") center / contain no-repeat;
    
    /* 高光晕滤镜 */
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 12px rgba(255, 140, 0, 0.4));
    
    /* 关键：旋转动画 + 脉动呼吸 */
    animation: 
        holy-sun-spin 6s linear infinite,
        holy-sun-glow 2s ease-in-out infinite alternate;
    
    z-index: 2;
    pointer-events: none;
    transform-origin: center center;
}

/* 3. 太阳徽记旋转动画 */
@keyframes holy-sun-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 4. 太阳徽记光晕脉动 (与旋转叠加) */
@keyframes holy-sun-glow {
    0% { 
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 8px rgba(255, 140, 0, 0.3));
    }
    100% { 
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 1)) drop-shadow(0 0 20px rgba(255, 140, 0, 0.7)) drop-shadow(0 0 30px rgba(255, 234, 0, 0.4));
    }
}

/* 5. 核心：动态台词区 */
.flex.items-center.justify-center.size-6::after {
    content: ""; 
    display: block;
    width: 100%;
    /* 关键：上边距留出 100px 给系统提示栏(22px) + 太阳徽记(60px) + 间距(18px) */
    padding: 100px 12px 12px 12px;
    
    /* 字体与排版 */
    font-family: 'Georgia', 'Songti SC', serif !important;
    font-size: 13.5px;
    line-height: 1.6;
    color: #5c4125; /* 古籍深棕色 */
    text-align: left !important;
    font-style: italic;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    
    /* ★★★ 关键修复：强制换行 ★★★ */
    white-space: normal !important; 
    word-wrap: break-word !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
    
    /* 防止被外部样式覆盖 */
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    
    position: relative;
    z-index: 3;
    
    /* 双重动画：台词轮播 + 文字呼吸 */
    animation: 
        shenyin-quote-cycle 32s infinite step-end,
        holy-text-breath 3s ease-in-out infinite;
}

/* 6. 添加轻微的文字闪烁效果，增强神圣祈祷感 */
@keyframes holy-text-breath {
    0%, 100% { 
        opacity: 1; 
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 215, 0, 0.1); 
    }
    50% { 
        opacity: 0.88; 
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 215, 0, 0.4); 
    }
}

/* 7. 台词内容轮播动画 (神印王座经典金句回溯) */
@keyframes shenyin-quote-cycle {
    0%   { content: "「我为你，就算得罪全人类又如何？你是我的妻子，谁若伤你，我便毁灭一切。」 ——龙皓晨"; }
    12.5% { content: "「就算全世界都抛弃你，我也会站在你身边，背叛全世界。皓晨，我只要你。」 ——圣采儿"; }
    25%  { content: "「骑士的荣耀不容亵渎。为了人类的延续，即使燃尽最后一丝光明，我也在所不惜！」 ——神圣骑士准则"; }
    37.5% { content: "「轮回之剑，斩断一切虚妄；死神眷属，唯独对你绽放温柔与眷恋。」 ——采儿"; }
    50%  { content: "「我不管你是魔族还是人类，我只知道，你是我拼尽性命也要守护的人。」 ——龙皓晨"; }
    62.5% { content: "「既然黑暗不可避免，那我就化身千万光明，成为刺破绝望的第一缕晨曦！」 ——光明之子"; }
    75%  { content: "「永恒与创造之神印王座，见证我的誓言。所爱隔山海，山海皆可平。」"; }
    87.5% { content: "「只要我还活着，就不会让你受到一丝伤害。这是骑士的承诺，也是丈夫的誓言。」 ——龙皓晨"; }
}

/* 8. 边框呼吸动画 (神圣金光脉冲) */
@keyframes holy-border-pulse {
    0% { 
        border-bottom: 2px solid rgba(218, 165, 32, 0.3); 
        box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.08), 0 2px 8px rgba(218, 165, 32, 0.15);
    }
    50% { 
        border-bottom: 2px solid rgba(255, 215, 0, 1); 
        box-shadow: 
            inset 0 0 25px rgba(255, 215, 0, 0.18), 
            0 4px 18px rgba(255, 215, 0, 0.45),
            inset 0 40px 50px -25px rgba(255, 215, 0, 0.25);
    }
    100% { 
        border-bottom: 2px solid rgba(218, 165, 32, 0.3); 
        box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.08), 0 2px 8px rgba(218, 165, 32, 0.15);
    }
}

/* 9. 移动端字体微调 */
@media (max-width: 768px) {
    .flex.items-center.justify-center.size-6 {
        min-height: 120px !important;
        margin: 6px 0 !important;
    }
    
    .flex.items-center.justify-center.size-6::before {
        top: 30px;
        width: 52px;
        height: 52px;
        margin-left: -26px;
    }
    
    .flex.items-center.justify-center.size-6::after {
        font-size: 12.5px;
        line-height: 1.5;
        padding: 92px 10px 10px 10px;
    }
}

/* 10. 超小屏幕设备适配 */
@media (max-width: 480px) {
    .flex.items-center.justify-center.size-6 {
        min-height: 110px !important;
    }
    .flex.items-center.justify-center.size-6::before {
        top: 28px;
        width: 46px;
        height: 46px;
        margin-left: -23px;
    }
    .flex.items-center.justify-center.size-6::after {
        font-size: 11.5px;
        line-height: 1.4;
        padding: 82px 10px 10px 10px;
    }
}

/* 11. 高对比度模式适配 */
@media (prefers-contrast: high) {
    .flex.items-center.justify-center.size-6::after {
        color: #000000 !important;
        text-shadow: none !important;
    }
}

/* 12. 减少动画偏好用户的关怀模式 */
@media (prefers-reduced-motion: reduce) {
    .flex.items-center.justify-center.size-6::before {
        animation: holy-sun-spin 30s linear infinite, holy-sun-glow 4s ease-in-out infinite alternate;
    }
}