planning { display:none;}
.absolute.top-0.MuiBox-root {
    background:transparent;
}
.chat-answer-container .bg-gray-100\/90 {
    background-color: transparent !important;
max-height:680px;
}
.mb-2 .shrink-0 {
    display:none;
}
.chat-answer-container.mr-2 {
    margin-right: 0rem;
}
.group .px-4 {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
}

.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    background-color: #101216 !important; /* 深色卡片背景 */
    border: 1px solid #333333 !important; /* 深灰边框 */
    border-radius: 12px !important;
    /* 复合阴影：深色投影 + 微弱的青色氛围光 */
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.05), 0 4px 20px rgba(0,0,0,0.8) !important;
    color: #ddeeff !important;
    backdrop-filter: blur(5px) !important;
    transition: box-shadow 0.3s ease !important;
}

/* 输入框悬停/激活时的微交互 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90):hover {
    border-color: #556677 !important;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.15), 0 4px 25px rgba(0,0,0,0.9) !important;
}

/* 输入框内的文本内容 - 强制高对比度白色 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .markdown-body {
    color: #FFFFFF !important; /* 纯白文本确保可读性 */
    font-family: 'Segoe UI', Roboto, Helvetica, monospace !important;
    font-weight: 400 !important;
    text-shadow: none !important; /* 禁止文本阴影以保持清晰 */
    line-height: 1.6 !important;
}

/* 输入框底部的附加元素 (按钮、模型名、Token) - 适配深色背景 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .MuiButtonBase-root.MuiButton-root, /* 按钮 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .MuiTypography-root, /* 模型名 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .text-orange-500 { /* Token数 */
    color: #8899aa !important; /* 柔和的灰蓝文字 */
    transition: color 0.2s !important;
}

/* 底部按钮悬停高亮 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) .MuiButtonBase-root.MuiButton-root:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #33ccff !important; /* 悬停变青色 */
}

/* =========================================
   3. 输出框加载动画 (SVG SMIL 鲁棒性实现)
   风格: 旋转的青色能量环
   ========================================= */

/* 第一步：隐藏默认的三个跳动点 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

/* 第二步：设置加载动画容器 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    width: 32px !important;  /* 稍微扩大容器以容纳光环 */
    height: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

/* 第三步：注入SVG SMIL动画 */
/* 使用 data URI 嵌入 SVG，确保在无CSS动画环境下依然旋转 */
.flex.items-center.justify-center.w-6.h-5::before {
    content: '' !important;
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    opacity: 0.9 !important;
    
    /* 
       SVG说明: 
       绘制一个青色(#33ccff)的圆环，缺口设计(stroke-dasharray)，
       内部包含 <animateTransform> 实现自旋转，不依赖外部CSS Keyframes。
    */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%2333ccff' stroke-width='4' stroke-dasharray='90 40' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' attributeType='XML' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
}

/* 移动端适配微调 */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
        border-radius: 10px !important;
        padding: 8px !important;
    }
}
/* === 隐藏所有控制input === */
.sw, 
input[type="radio"][name^="g_"] {
    display: none;
}
/* === 基础样式 === */
.appUi {
    --h: 200; /* 主色相：青蓝 */
    --s: 100%;
    --l: 60%;
    --bg: #08080c;
    --card: #101216;
    --p: hsl(var(--h), var(--s), var(--l));
    --sec: #556;
    --font: 'Segoe UI', Roboto, Helvetica, monospace;
    
    font-family: var(--font);
    background: var(--bg);
    color: #dde;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    
    display: flex; 
    flex-direction: column;
    position: relative;
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
}

/* === 粉色模式（女性/NTR视角） === */
/* 逻辑不变，依然使用 .sw 类 */
.sw:checked ~ .appUi {
    --h: 330;
    --bg: #160508;
    border-color: var(--p);
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.15) inset;
}

.sw:checked ~ .appUi::after {
    content: ""; 
    pointer-events: none;
    position: absolute; 
    inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px, rgba(255, 0, 80, 0.05) 3px
    );
    z-index: 0;
    animation: scan 4s linear infinite;
}
@keyframes scan { 
    from { background-position: 0 0; } 
    to { background-position: 0 100%; } 
}

/* === 顶部 HUD === */
.head {
    flex-shrink: 0;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 12px 16px; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 5;
}
.head > div { 
    display: flex; 
    flex-direction: column; 
    gap: 2px; 
}
time { 
    color: #fff; 
    font-weight: bold; 
    font-size: 14px; 
    letter-spacing: 1px; 
}
loc { 
    font-size: 11px; 
    color: var(--p); 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}
loc::before { 
    content: ""; 
    display: inline-block; 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    background: var(--p); 
    box-shadow: 0 0 8px var(--p); 
    animation: blink 2s infinite; 
}
@keyframes blink { 
    50% { opacity: 0.3; } 
}

/* === 视角切换滑块 === */
.view-t {
    position: relative; 
    cursor: pointer;
    width: 64px; 
    height: 32px;
    background: #222; 
    border-radius: 30px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
    transition: 0.3s; 
    border: 1px solid #444;
}
.view-t::after {
    content: "♂";
    position: absolute; 
    top: 2px; 
    left: 2px;
    width: 26px; 
    height: 26px;
    background: var(--p); 
    color: #000;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: bold; 
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.sw:checked ~ .appUi .view-t { 
    border-color: var(--p); 
}
.sw:checked ~ .appUi .view-t::after {
    content: "♀";
    transform: translateX(32px);
    background: #ff0055; 
    color: #fff;
}
.main {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    position: relative; 
    z-index: 1;
    line-height: 1.8;
    font-size: 14px;
    color: #dde;
}
.txt p { 
    margin-bottom: 16px; 
    text-align: justify;
    color: inherit;
}

.sw:not(:checked) ~ .appUi .txt[v="1"] { display: block; }
.sw:not(:checked) ~ .appUi .txt[v="2"] { display: none; }
.sw:checked ~ .appUi .txt[v="1"] { display: none; }
.sw:checked ~ .appUi .txt[v="2"] { 
    display: block;
    color: #ffcce0;
    text-shadow: 0 0 1px rgba(255,0,80,0.5);
}

.sw:not(:checked) ~ .appUi view1 { display: block; }
.sw:not(:checked) ~ .appUi view2 { display: none; }
.sw:checked ~ .appUi view1 { display: none; }
.sw:checked ~ .appUi view2 { display: block; }

/* === 悬浮面板层 === */
.wins {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
}

.win {
    padding: 0; 
    background: 
        linear-gradient(rgba(18, 18, 24, 0.95), rgba(18, 18, 24, 0.95)),
        linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    position: absolute; 
    inset: 0;
    backdrop-filter: blur(15px);
    opacity: 0; 
    transform: translateY(50px);
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    display: flex; 
    flex-direction: column;
    overflow-y: auto;
}

.op-1:checked ~ .appUi .w1,
.op-2:checked ~ .appUi .w2,
.op-3:checked ~ .appUi .w3,
.op-4:checked ~ .appUi .w4 {
    opacity: 1; 
    transform: translateY(0); 
    pointer-events: auto;
}

.win-h {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(18, 18, 24, 0.98);
    border-bottom: 1px solid var(--p);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    padding: 15px 20px;
    margin: 0; 
    font-size: 16px; 
    font-weight: 900; 
    color: var(--p);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.win > :not(.win-h) {
    margin-left: 20px;
    margin-right: 20px;
}

.close-x {
    width: 32px; height: 32px;
    background: #222; 
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; 
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.close-x:active { transform: scale(0.9); }
info, partner, npc_panel, rumor_list, sms_panel, vippanel, user, view1, view2 { display: block; }

info {
    display: inline;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: #000;
    background: var(--p);
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 6px;
    font-weight: bold;
    box-shadow: 0 0 5px var(--p);
    vertical-align: middle;
}

.sw:checked ~ .appUi info {
    background: #ff0055;
    box-shadow: 0 0 5px #ff0055;
    color: #fff;
}

partner, npc_panel, rumor_list, sms_panel, vippanel, user {
    margin-top: 15px; margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--p);
    padding: 12px;
    border-radius: 0 6px 6px 0;
    position: relative;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

h2 {
    margin: -20px 0 10px -15px;
    padding: 4px 10px;
    background: #333; 
    color: var(--p); 
    border: 1px solid var(--p);
    font-size: 11px; 
    transform: skewX(-15deg);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
    display: inline-block;
}

table { width: 100%; font-size: 12px; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 8px; border-bottom: 1px solid #333; text-align: left; }
th { color: var(--p); }

progress {
    -webkit-appearance: none; appearance: none;
    display: block; width: 100%; height: 14px;
    margin: 5px 0 10px 0; vertical-align: middle;
    background: #222; border: 1px solid #444; border-radius: 2px;
    overflow: visible; position: relative;
}
progress::before {
    content: attr(value) " / " attr(max);
    position: absolute; top: -18px; right: 0;
    font-size: 11px; font-family: 'Courier New', monospace;
    color: var(--p); text-shadow: 0 0 5px var(--p);
    font-weight: bold; letter-spacing: 1px;
}
progress::-webkit-progress-bar { background-color: #1a1a20; }
progress::-webkit-progress-value { 
    background: repeating-linear-gradient(45deg, var(--p), var(--p) 10px, rgba(255,255,255,0.8) 10px, rgba(255,255,255,0.8) 12px);
    box-shadow: 0 0 10px var(--p);
    transition: width 0.5s;
}
progress[type="love"]::before { color: #ff4081; text-shadow: 0 0 5px #e91e63; }
progress[type="love"]::-webkit-progress-value {
    background: linear-gradient(90deg, #e91e63, #ff4081); box-shadow: 0 0 8px #e91e63;
}
progress[type="exp"]::before { color: #ffc107; text-shadow: 0 0 5px #ff9800; }
progress[type="exp"]::-webkit-progress-value { background: linear-gradient(90deg, #ff9800, #ffc107); }

.dock {
    flex-shrink: 0; height: 70px;
    background: #08080a; border-top: 1px solid #222;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 8px; gap: 8px;
    z-index: 20; position: relative;
}

.tab {
    position: relative;
    display: flex; flex-direction: column; 
    align-items: center; justify-content: center;
    color: #667; font-size: 10px; cursor: pointer;
    border-radius: 8px; transition: 0.3s;
    background: linear-gradient(180deg, #111, #0a0a0a);
    border: 1px solid #222;
}

/* Tab选中状态 - 核心修改：使用类名 */
.op-1:checked ~ .appUi .dock .tab:nth-child(1),
.op-2:checked ~ .appUi .dock .tab:nth-child(2),
.op-3:checked ~ .appUi .dock .tab:nth-child(3),
.op-4:checked ~ .appUi .dock .tab:nth-child(4) {
    background: #15151a; 
    border-color: var(--p); 
    color: var(--p);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5) inset;
}

.tab::before {
    content: ""; display: block; 
    width: 24px; height: 24px; margin-bottom: 4px;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    opacity: 0.5; transition: 0.3s;
}
.tab:hover::before { opacity: 1; }

.op-1:checked ~ .appUi .dock .tab:nth-child(1)::before,
.op-2:checked ~ .appUi .dock .tab:nth-child(2)::before,
.op-3:checked ~ .appUi .dock .tab:nth-child(3)::before,
.op-4:checked ~ .appUi .dock .tab:nth-child(4)::before { opacity: 1; }

.tab:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300f0ff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E"); }
.tab:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300f0ff'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
.tab:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300f0ff'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 10h-4v-1h1v-4h-1v-1h3v5h1v1z'/%3E%3C/svg%3E"); }
.tab:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300f0ff'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm1 14h-2v-2h2v2zm0-4h-2V7h2v5z'/%3E%3C/svg%3E"); }

.sw:checked ~ .appUi .tab::before { filter: hue-rotate(140deg); }

/* === 选项区域（带自动编号） === */
choice {
    flex-shrink: 0;
    padding: 1px;
    background: linear-gradient(180deg, #0a0a0e 0%, #000 100%);
    border-top: 1px solid #222;
    z-index: 2; 
    max-height:600px;
}

choice ol {
    list-style: none; 
    padding: 0; 
    margin: 0;
    display: flex; 
    flex-direction: column;
    gap: 10px;
    counter-reset: choice-num; /* 初始化计数器 */
}

choice li {
    counter-increment: choice-num; /* 每个li递增 */
    width: 100%;
    background: linear-gradient(135deg, #14141a 0%, #0c0c10 100%);
    border: 1px solid #2a2a35;
    padding: 14px 20px 14px 42px; /* 左侧留空给编号 */
    font-size: 13px; 
    color: #99a;
    cursor: pointer; 
    position: relative;
    border-radius: 8px; 
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

/* 左侧编号 */
choice li::before {
    content: counter(choice-num);
    position: absolute; 
    left: 6px; 
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--p);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--p);
    opacity: 0.5;
    transition: 0.3s ease;
}

/* 右侧箭头 */
choice li::after {
    content: "›";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 300;
    color: #333;
    transition: all 0.3s ease;
}

choice li:hover {
    border-color: var(--p);
    color: #fff;
    background: linear-gradient(135deg, #1a1a24 0%, #101018 100%);
    padding-left: 50px;
    transform: translateX(4px);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.5),
        0 0 20px rgba(0, 240, 255, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

choice li:hover::before { 
    opacity: 1;
    background: var(--p);
    color: #000;
    box-shadow: 0 0 15px var(--p);
}

choice li:hover::after {
    color: var(--p);
    right: 12px;
    text-shadow: 0 0 10px var(--p);
}

choice li:active {
    transform: translateX(2px) scale(0.99);
    background: linear-gradient(135deg, #12121a 0%, #0a0a10 100%);
}

.win {
    /* 核心定位：取消全屏拉伸，改为底部锚定 */
    top: auto;          
    bottom: 0;
    /* 设定固定高度：这里设为 75% 使得顶部留白，方便点击外部区域(虽然无JS无法点击关闭，但视觉通透) */
    height: 600px;        
    /* 动画修正：初始状态完全位于下方屏幕外 */
    transform: translateY(110%); 
    /* 保持原有的透明度过渡，使滑入更自然 */
    /* 视觉优化：卡片化外观 */
    border-radius: 20px 20px 0 0; /* 仅顶部圆角 */
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* 顶部高亮边框 */
    box-shadow: 
        0 -10px 40px rgba(0, 0, 0, 0.6), /* 深度阴影 */
        0 1px 0 rgba(255, 255, 255, 0.1) inset; /* 内部边缘反光 */
}
@media (max-width: 400px) {
.win {
height: 700px; 
}
}
.win-h {
    border-radius: 20px 20px 0 0; /* 跟随面板圆角 */
    position: sticky; /* 保持吸顶 */
}