tk, if, pt, u, n, b, m, r, ts, t, st, bx, ht, ms, ca, cb, cc, qz { 
    display: block !important; 
    box-sizing: border-box !important; 
}
tk { display: none !important; position: absolute !important; }

/* 🔒 强制去除下划线污染 */
u, u *, u r, u bx {
    text-decoration: none !important;
}

/* 漫画风滚动条 (粗犷黑白) */
::-webkit-scrollbar { width: 8px !important; height: 8px !important; }
::-webkit-scrollbar-track { background: #ffffff !important; border-left: 2px solid #000 !important; }
::-webkit-scrollbar-thumb { background: #000 !important; border-radius: 0px !important; }

::selection { background: #000 !important; color: #fff !important; }

summary { list-style: none !important; outline: none !important; }
summary::-webkit-details-marker, summary::marker { display: none !important; color: transparent !important; }

/* 漫画风对话框 · 经典黑白粗边框 + 硬阴影 */
.group [class*="bg-gray-100"], 
.group [class*="bg-primary-50"],
.group .bg-gray-100\/90,
.group .bg-primary-500\/10 {
    background: #ffffff !important;
    border: 3px solid #000 !important; 
    border-radius: 4px !important;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3) !important; 
    color: #1a0f14 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    padding: 16px 20px !important;
    margin: 12px 0 !important;
}

/* =========================================================================
 * 📌 【第二部分：故事叙事区 & 环境看板 二次元漫画风】
 * =========================================================================
 */
if {
    background: #fdfdfd !important;
    border: 3px solid #000 !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    margin: 12px 0 !important;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2) !important;
    color: #1a1a1a !important;
    font-family: "Comic Sans MS", "DFKai-SB", "Microsoft YaHei", sans-serif !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    white-space: pre-wrap !important;
    font-weight: bold !important;
}
if::before {
    content: "📍 STATE / ACTION" !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #000 !important;
    margin-bottom: 6px !important;
    letter-spacing: 1px !important;
}

pt {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
    margin: 12px 0 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #1a0f14 !important;
    font-family: "Comic Sans MS", "DFKai-SB", "Microsoft YaHei", sans-serif !important;
}

/* 🔒 女性对白框 · 黑白漫画强调效果 */
p[style*="color: #e0125e"] {
    color: #000 !important;
    font-weight: 900 !important;
    font-style: normal !important;
    background: #f0f0f0 !important;
    border: 3px solid #000 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    margin: 6px 0 !important;
    max-width: 100% !important;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2) !important;
}

/* =========================================================================
 * 📌 【第三部分：流式大面板结构 · 硬核漫画分镜感】
 * =========================================================================
 */
details.sc {
    background: #ffffff !important;
    border: 3px solid #000 !important;
    border-radius: 6px !important;
    margin: 14px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}
details.sc[open] {
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15) !important;
}

details.sc:not(:has(summary)) {
    background: #fafafa !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
    padding: 12px !important;
    font-size: 13px !important;
    color: #333 !important;
    font-family: monospace !important;
}

/* 漫画风标题栏 · 黑白网点感 */
summary.ss {
    background: #e0e0e0 !important;
    padding: 12px 16px !important;
    font-family: "Comic Sans MS", "DFKai-SB", "Microsoft YaHei", sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 900 !important;
    color: #000 !important;
    border-bottom: 3px solid #000 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
summary.ss::after {
    content: "▼ 点击展开/折叠" !important;
    font-size: 11px !important;
    font-weight: bold;
    color: #000 !important;
    opacity: 0.7;
}
details.sc[open] > summary.ss::after {
    content: "▲ 点击收起" !important;
}

/* =========================================================================
 * 📌 【第四/五部分：功能状态栏 · 黑白色块与粗框】
 * =========================================================================
 */
u, n {
    display: flex !important;
    flex-direction: row !important; 
    flex-wrap: wrap !important;     
    padding: 12px !important;
    gap: 8px !important;
    background: #ffffff !important;
}

u r, n r {
    display: inline-flex !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    margin: 0 !important;
    font-family: "Comic Sans MS", "DFKai-SB", "Microsoft YaHei", sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    color: #000 !important;
    width: calc(50% - 4px) !important; 
    flex-grow: 1 !important;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.05) !important;
}

u r::before, n r::before {
    display: inline !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #000 !important;
    margin-right: 4px !important;
    white-space: nowrap !important;
}

/* 🎯 玩家状态栏映射 */
u r:nth-of-type(1)::before { content: "【姓名】" !important; }
u r:nth-of-type(2)::before { content: "【性别】" !important; }
u r:nth-of-type(3)::before { content: "【年龄】" !important; }
u r:nth-of-type(4)::before { content: "【职业】" !important; }
u r:nth-of-type(5)::before { content: "【性格】" !important; }
u r:nth-of-type(6)::before { content: "【外貌】" !important; }
u r:nth-of-type(7)::before { content: "【肉棒】" !important; }
u r:nth-of-type(8)::before { content: "【特设】" !important; }
u r:nth-of-type(9)::before { content: "【世界观】" !important; }

/* 长文本通栏拉伸 */
u r:nth-of-type(4), u r:nth-of-type(5), u r:nth-of-type(6), u r:nth-of-type(8) {
    width: 100% !important;
    background: #fafafa !important;
}

/* 动态羁绊追踪面板 */
u bx {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    border: 2px dashed #000 !important;
    border-radius: 4px !important;
    background: #fefefe !important;
    padding: 12px 14px !important;
    margin-top: 4px !important;
    font-size: 12.5px !important;
    font-weight: bold !important;
    color: #000 !important;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.02) !important;
}
u bx::before {
    content: "【动态羁绊追踪面板】" !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #000 !important;
    margin-bottom: 4px !important;
}

/* 互动角色子面板 */
.cn {
    position: relative !important; 
    border: 2px solid #000 !important;
    border-radius: 6px !important;
    padding: 10px !important;
    margin: 4px 0 !important;
    background: #fdfdfd !important;
    width: 100% !important;
}
.cn[open] {
    background: #ffffff !important;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05) !important;
}
.ct {
    font-weight: 900 !important;
    color: #000 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: block !important;
}
.cn[open] > .ct {
    margin-bottom: 12px !important;
    border-bottom: 2px dashed #000 !important;
    padding-bottom: 6px !important;
}

/* 互动角色元数据 */
.cn r:nth-of-type(1)::before { content: "【姓名】" !important; }
.cn r:nth-of-type(2)::before { content: "【年龄】" !important; }
.cn r:nth-of-type(3)::before { content: "【好感度】" !important; }
.cn r:nth-of-type(4)::before { content: "【性别】" !important; }
.cn r:nth-of-type(5)::before { content: "【衣着】" !important; }

.cn r:nth-of-type(5) {
    width: 100% !important;
    background: #f5f5f5 !important;
    border: 2px solid #000 !important;
}

/* =========================================================================
 * 📌 【第六部分：属性标签与叙事切片 · 漫画网点纸效果】
 * =========================================================================
 */
ts { 
    display: flex !important; 
    flex-direction: row !important;
    flex-wrap: wrap !important; 
    gap: 6px !important; 
    margin: 8px 0 !important; 
    width: 100% !important;
    clear: both !important;
}
t {
    background: #f0f0f0 !important;
    border: 2px solid #000 !important;
    color: #000 !important;
    border-radius: 2px !important;
    padding: 3px 10px !important;
    font-size: 11.5px !important;
    font-weight: bold !important;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05) !important;
}

.cn bx, .cn pt, .cn st {
    width: 100% !important;
    clear: both !important;
    border: none !important;
    border-left: 6px solid #000 !important; 
    border-radius: 0 4px 4px 0 !important;
    padding: 8px 14px !important;
    margin: 10px 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    background: #fcfcfc !important;
    font-weight: bold !important;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.02) !important;
}

.cn bx::before, .cn st::before { display: block !important; font-size: 11px !important; font-weight: 900 !important; margin-bottom: 4px !important; }

.cn bx[type="vis"]::before { content: "【身体】" !important; color: #000 !important; }
.cn st[type="m"]::before { content: "【嘴唇】" !important; color: #000 !important; }
.cn st[type="c"]::before { content: "【胸部】" !important; color: #000 !important; }
.cn st[type="s"]::before { content: "【小穴】" !important; color: #000 !important; }

/* 内心独白 · 深色背景白字漫画风 */
.cn bx[type="sl"] { 
    border-left: 6px solid #000 !important; 
    background: #222 !important; 
    color: #fff !important; 
}
.cn bx[type="sl"]::before { content: "【💬内心独白】" !important; color: #fff !important; }

/* 好感度徽章 */
ht {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #000 !important;
    border: 2px solid #000 !important;
    color: #fff !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2) !important;
    z-index: 5 !important; 
}

/* =========================================================================
 * 📌 【第七部分：记忆存储板块 · 黑白分镜】
 * =========================================================================
 */
ca {
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    background: #fdfdfd !important;
    padding: 8px 12px !important;
    margin: 2px 0 !important;
}
cb {
    font-weight: 900 !important;
    color: #000 !important;
    font-size: 13px !important;
    border-bottom: 2px dashed #000 !important;
    padding-bottom: 4px !important;
    margin-bottom: 6px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 0 !important;
}
cc { font-size: 12.5px !important; color: #000 !important; line-height: 1.4 !important; padding: 0 !important; font-weight: bold !important; }
qz { color: #000 !important; font-weight: 900 !important; font-size: 12px !important; }

/* =========================================================================
 * 📌 【第八部分：全局 UI 覆写 · 黑白漫画加载动画】
 * =========================================================================
 */
.flex.items-center.justify-center.w-6.h-5 {
    width: auto !important; height: auto !important; padding: 6px 18px !important; 
    background: #ffffff !important; border: 3px solid #000 !important; border-radius: 30px !important; 
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2) !important; display: inline-flex !important; 
    align-items: center !important; justify-content: center !important; margin: 10px auto !important; 
    animation: m-pulse 0.8s infinite alternate !important;
}
.flex.items-center.justify-center.w-6.h-5 > div, [class*="style_dot-flashing"] { display: none !important; }
.flex.items-center.justify-center.w-6.h-5::after {
    content: "在加载了捏" !important; 
    font-size: 12px !important; font-weight: 900 !important; color: #000 !important; white-space: nowrap !important;
}

#ai-chat-input {
    background-color: #ffffff !important; border: 3px solid #000 !important; border-radius: 30px !important; 
    color: #000 !important; box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.05) !important;
}
#ai-chat-input:focus-within { box-shadow: 3px 3px 0px #000, inset 2px 2px 0px rgba(0, 0, 0, 0.05) !important; }
#ai-chat-bottom-input { background: transparent !important; backdrop-filter: none !important; }

@keyframes m-pulse { 0% { transform: scale(0.98); } 100% { transform: scale(1.02); } }
