/* ==========================================================================
   THEME: System Eros (Lust Labyrinth) - v3.0 Uncensored
   STYLE: Dark Boudoir / Neon Flesh / Glitch / Sensual Data Table
   ========================================================================== */

/* 1. 全局重置 - 幽暗私密的底层氛围 */
body {
    font-family: 'Consolas', 'Courier New', monospace !important;
    background: #030001 !important; /* 极深的暗红色调，模拟封闭的调教空间 */
    color: #ffd1dc !important; /* 柔和的肉粉色字体 */
    line-height: 1.5;
    padding: 15px;
}

/* 2. 统一面板样式 - 欲望视窗 */
.sys-hud {
    background: rgba(15, 5, 10, 0.95) !important;
    border: 1px solid #ff1493 !important; /* 艳粉色边框 */
    border-radius: 4px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 0 12px rgba(255, 20, 147, 0.2), inset 0 0 8px rgba(255, 0, 85, 0.1) !important;
    overflow: visible !important;
    transition: box-shadow 0.3s ease !important;
}

.sys-hud[open] {
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4), inset 0 0 15px rgba(255, 0, 85, 0.2) !important;
    animation: lust-pulse 4s infinite alternate !important; /* 开启时模拟肉体呼吸的律动 */
}

@keyframes lust-pulse {
    0% { box-shadow: 0 0 15px rgba(255, 20, 147, 0.3); }
    100% { box-shadow: 0 0 25px rgba(255, 20, 147, 0.6), inset 0 0 10px rgba(255, 0, 85, 0.3); }
}

/* 3. 标题栏 - 敏感带触控反馈 */
summary {
    background: linear-gradient(90deg, rgba(255,20,147,0.2) 0%, transparent 100%) !important;
    color: #ff1493 !important;
    padding: 8px 12px !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    cursor: pointer !important;
    list-style: none !important;
    border-bottom: 1px solid rgba(255,20,147,0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s !important;
}
summary:hover {
    background: linear-gradient(90deg, rgba(255,20,147,0.4) 0%, rgba(255,0,85,0.1) 100%) !important;
    color: #fff !important;
    text-shadow: 0 0 8px #ff1493, 0 0 15px #ff0055 !important;
    padding-left: 15px !important; /* 悬停时的插入感 */
}
summary::-webkit-details-marker { display: none !important; }

/* 4. 内容容器 - 汁液与体温的质感 */
.sys-content {
    padding: 10px !important;
    color: #ffe6f0 !important;
    font-size: 0.95em !important;
    background: radial-gradient(circle at top right, rgba(255,20,147,0.05) 0%, transparent 60%) !important;
}

/* 5. 模块化组件 */
/* 信息网格 - 身体数据矩阵 */
.info-grid {
    display: grid !important;
    grid-template-columns: auto 1fr auto 1fr !important;
    gap: 5px 15px !important;
    margin-bottom: 8px !important;
    align-items: center !important;
}
.label { color: #ff1493 !important; font-weight: bold !important; text-shadow: 0 0 3px rgba(255,20,147,0.5) !important; }

/* D的私信 -> 邪神/主人的淫靡密语 */
.d-msg-box {
    background: rgba(30, 0, 15, 0.6) !important;
    border-left: 3px solid #ff0055 !important;
    border-right: 1px solid rgba(255,0,85,0.2) !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    box-shadow: inset 5px 0 10px rgba(255,0,85,0.1) !important;
}
.d-icon { display: block !important; margin-bottom: 5px !important; color: #ff0055 !important; text-shadow: 0 0 5px #ff0055 !important; }
.d-quote {
    margin: 0 !important;
    font-style: italic !important;
    color: #ffb3d9 !important;
    font-family: serif !important;
    letter-spacing: 0.5px !important;
}

/* 思维链 CoT 样式 -> 潜意识/发情逻辑推演 */
.cot-log {
    font-size: 0.85em !important;
    color: #c9a0b0 !important;
    background: #0a0205 !important;
    border: 1px solid #3d1425 !important;
    padding: 10px !important;
    border-left: 3px solid #ff66b2 !important; /* 区别于系统红的淫靡粉 */
}
.cot-log div { margin-bottom: 4px !important; }
.cot-log strong { color: #ff66b2 !important; text-shadow: 0 0 4px rgba(255,102,178,0.4) !important; }

/* 经验条 -> 绝顶/快感累积进度条 */
.exp-bar-box {
    position: relative !important;
    height: 18px !important;
    background: #1a050f !important;
    border: 1px solid #4d1a2f !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8) !important;
}
.exp-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #ff1493, #ff0055, #ff66b2) !important; /* 模拟体液与潮红的渐变 */
    background-size: 200% 100% !important;
    animation: flow-lust 2s linear infinite !important;
    width: 0%; /* 动态控制 */
    box-shadow: 0 0 10px rgba(255,0,85,0.5) !important;
}
@keyframes flow-lust { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.exp-text {
    position: absolute !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: #fff !important;
    text-shadow: 1px 1px 2px #000, 0 0 5px #ff0055 !important;
    z-index: 2 !important;
}

/* 威胁度颜色 -> 沉沦/发情度状态指示 */
.risk-low { color: #ff99cc !important; font-weight: bold !important; text-shadow: 0 0 5px rgba(255,153,204,0.5) !important; } /* 微热 */
.risk-mid { color: #ff1493 !important; font-weight: bold !important; text-shadow: 0 0 5px rgba(255,20,147,0.6) !important; } /* 动情 */
.risk-high { color: #ff0000 !important; font-weight: bold !important; text-shadow: 0 0 10px rgba(255,0,0,0.9) !important; animation: climax-blink 1.5s infinite !important; } /* 濒临绝顶 */
@keyframes climax-blink { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.02); } 100% { opacity: 1; transform: scale(1); } }

/* 技能树悬浮交互 (Tooltip) -> 敏感带/淫纹解析 */
.skill-section { margin-bottom: 10px !important; }
.skill-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 5px !important;
}
.tooltip {
    position: relative !important;
    display: inline-block !important;
    background: rgba(255, 20, 147, 0.08) !important;
    border: 1px solid #661a33 !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    cursor: crosshair !important; /* 瞄准猎物/敏感带的指针 */
    transition: all 0.2s !important;
}
.tooltip:hover {
    border-color: #ff1493 !important;
    background: rgba(255, 20, 147, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(255,20,147,0.4) !important;
    z-index: 100 !important;
}
.tooltip .tooltiptext {
    visibility: hidden !important;
    width: 250px !important;
    background-color: rgba(15, 0, 5, 0.95) !important;
    color: #ffb3d9 !important;
    text-align: left !important;
    border: 1px solid #ff1493 !important;
    padding: 10px !important;
    border-radius: 4px !important;
    position: absolute !important;
    z-index: 999 !important;
    bottom: 125% !important;
    left: 50% !important;
    margin-left: -125px !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
    box-shadow: 0 0 20px rgba(255,20,147,0.5), inset 0 0 10px rgba(0,0,0,0.8) !important;
    font-size: 0.9em !important;
    pointer-events: none !important;
    line-height: 1.5 !important;
    backdrop-filter: blur(3px) !important;
}
.tooltip:hover .tooltiptext { visibility: visible !important; opacity: 1 !important; }

/* 女性NPC模块 -> 雌性素体/调教目标捕获模块 */
.scan-female-mod {
    background: rgba(255, 0, 85, 0.08) !important;
    border: 1px dashed #ff1493 !important;
    padding: 10px !important;
    margin: 8px 0 !important;
    box-shadow: inset 0 0 15px rgba(255,20,147,0.1) !important;
}

/* 记忆表格 (Memory Table) -> 肉体开发记录/高潮档案 */
.mem-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #4d1a2f !important;
    margin-bottom: 15px !important;
    font-size: 0.9em !important;
}
.mem-table th {
    background: rgba(255, 20, 147, 0.25) !important;
    color: #fff !important;
    text-shadow: 0 0 5px #ff1493 !important;
    border-bottom: 1px solid #ff1493 !important;
    padding: 8px !important;
    text-align: left !important;
    letter-spacing: 1px !important;
}
.mem-table td {
    border-bottom: 1px solid #33101e !important;
    padding: 8px !important;
    vertical-align: top !important;
    background: rgba(10,0,5,0.4) !important;
    color: #ffcce0 !important;
}
.mem-table tr:hover td { background: rgba(255,20,147,0.1) !important; }
.mem-table tr:last-child td { border-bottom: none !important; }

/* 剧情分支列表 -> 调教路线/体位选择分支 */
.act-header {
    color: #ff66b2 !important;
    font-weight: bold !important;
    border-bottom: 1px dashed #ff66b2 !important;
    padding-bottom: 4px !important;
    margin-bottom: 8px !important;
    text-shadow: 0 0 4px rgba(255,102,178,0.5) !important;
}
.act-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.act-list li {
    margin-bottom: 6px !important;
    padding: 8px !important;
    background: rgba(255, 20, 147, 0.05) !important;
    border-left: 3px solid #661a33 !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
}
.act-list li:hover {
    background: rgba(255, 20, 147, 0.15) !important;
    border-left-color: #ff1493 !important;
    padding-left: 12px !important; /* 模拟侵入感 */
    box-shadow: 2px 0 10px rgba(255,20,147,0.2) inset !important;
}

/* 分隔与列表通用 */
hr { border: 0 !important; border-top: 1px dashed #802040 !important; margin: 10px 0 !important; }
.sys-list { margin: 5px 0 !important; padding-left: 20px !important; list-style: circle !important; color: #ffb3d9 !important; }
.sys-list li { margin-bottom: 4px !important; }
.status-critical { color: #ff0000 !important; text-shadow: 0 0 8px #ff0000, 0 0 2px #fff !important; font-weight: bold !important; } /* 理智崩坏 */
.status-warning { color: #ff66b2 !important; text-shadow: 0 0 4px #ff66b2 !important; } /* 媚药生效警告 */

/* 蜘蛛子 System W 风格 - 底部按钮样式重绘 (乳胶/紧身衣质感) */
div[class*="absolute"][class*="bottom-0"] button:not([id="ai-send-button"]) {
    background: linear-gradient(180deg, rgba(40, 10, 20, 0.95), rgba(15, 0, 5, 0.98));
    border: 1px solid rgba(255, 20, 147, 0.5);
    border-radius: 4px;
    color: #ffcce0;
    font-family: 'Consolas', monospace;
    box-shadow: 0 0 8px rgba(255, 20, 147, 0.15), inset 0 1px 1px rgba(255,255,255,0.1); /* 模拟高光 */
    backdrop-filter: blur(4px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停 (Hover) 状态 - 模拟体温升高与敏感触碰 */
div[class*="absolute"][class*="bottom-0"] button:not([id="ai-send-button"]):hover {
    transform: translateY(-2px);
    background: rgba(255, 20, 147, 0.25);
    border-color: #ff1493;
    color: #ffffff;
    text-shadow: 0 0 6px #ff1493;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.6), inset 0 0 8px rgba(255, 20, 147, 0.3);
}

/* 点击 (Active) 状态 - 模拟按压肉体/彻底服从 */
div[class*="absolute"][class*="bottom-0"] button:not([id="ai-send-button"]):active {
    transform: scale(0.95);
    background: rgba(255, 0, 85, 0.4);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}

/* ==========================================================================
   欲望之网加载动画 - 蛛后正在编织情网
   ========================================================================== */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) {
    justify-content: flex-start !important;
    width: auto !important;
    min-height: 70px !important;
    background: linear-gradient(135deg, #1f0a12, #14050a) !important;
    border: 1px solid #802040 !important;
    border-radius: 12px !important;
    padding: 16px 20px 16px 90px !important;
    margin: 8px 0 !important;
    position: relative !important;
    overflow: hidden !important;
    animation: gentle-lust-breathe 3s ease-in-out infinite !important;
    
    /* 淫丝/束缚网背景纹理 */
    background-image: 
        linear-gradient(135deg, #1f0a12, #14050a),
        radial-gradient(circle at 10% 20%, rgba(255, 20, 147, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 20, 147, 0.15) 0%, transparent 20%) !important;
    background-blend-mode: normal, screen, screen !important;
}

/* 图像容器 - 束缚边框与肉感阴影 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::before {
    content: '' !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background-image: url('https://pic1.imgdb.cn/item/69360fb33cf558499f261cca.jpg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    z-index: 2 !important;
    opacity: 1 !important;
    animation: spider-lust-bounce 3s ease-in-out infinite !important;
    border-radius: 10px !important;
    box-shadow: 
        0 4px 15px rgba(255, 20, 147, 0.4),
        inset 0 0 0 1px rgba(255, 105, 180, 0.8) !important;
    border: 2px solid #ff69b4 !important;
    background-clip: padding-box !important;
}

/* 蛛网束缚装饰 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::before::after {
    content: '' !important;
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    right: -3px !important;
    bottom: -3px !important;
    border: 1px dashed rgba(255, 20, 147, 0.5) !important;
    border-radius: 12px !important;
    pointer-events: none !important;
    animation: web-bind-spin 8s linear infinite !important;
}

/* 思考文字 - 修改为风月向的系统提示 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after {
    content: '蛛后正在编织情网...' !important; /* 风月转换核心文本 */
    font-size: 13px !important;
    color: #ffb3d9 !important;
    font-weight: 600 !important;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif !important;
    display: inline-block !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 80px !important;
    padding: 5px 12px 5px 10px !important;
    background: rgba(25, 5, 12, 0.95) !important;
    border-radius: 12px !important;
    box-shadow: 
        0 2px 10px rgba(255, 20, 147, 0.2),
        0 0 0 1px rgba(255, 20, 147, 0.3) !important;
    animation: spider-lust-text 3.5s ease-in-out infinite !important;
    border: 1px solid #b32d59 !important;
    max-width: 160px !important;
    text-align: center !important;
    line-height: 1.4 !important;
    z-index: 3 !important;
    white-space: nowrap !important;
    backdrop-filter: blur(5px) !important;
    
    /* 淫丝交织纹理背景 */
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(255, 20, 147, 0.1) 48%, rgba(255, 20, 147, 0.1) 52%, transparent 52%) !important;
    background-size: 8px 8px !important;
}

/* 调整气泡尖角到左侧，匹配暗黑情色主题 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after::before {
    content: '' !important;
    position: absolute !important;
    left: -8px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-right: 8px solid rgba(25, 5, 12, 0.95) !important;
    border-left: none !important;
    filter: drop-shadow(-1px 0 2px rgba(255, 20, 147, 0.4)) !important;
}

#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after::after {
    content: '' !important;
    position: absolute !important;
    left: -9px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-right: 8px solid #b32d59 !important;
    border-left: none !important;
    z-index: -1 !important;
}

/* 静态图片动画效果 - 模拟心跳与兴奋颤抖 */
@keyframes spider-lust-bounce {
    0%, 100% {
        transform: translateY(-50%) scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4), inset 0 0 0 1px rgba(255, 105, 180, 0.8) !important;
    }
    25% {
        transform: translateY(-50%) scale(1.04) rotate(1.5deg);
        box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6), inset 0 0 0 1px rgba(255, 105, 180, 1) !important;
    }
    50% {
        transform: translateY(-50%) scale(0.98) rotate(-1deg);
        box-shadow: 0 3px 12px rgba(255, 20, 147, 0.3), inset 0 0 0 1px rgba(255, 105, 180, 0.7) !important;
    }
    75% {
        transform: translateY(-50%) scale(1.03) rotate(0.5deg);
        box-shadow: 0 5px 18px rgba(255, 20, 147, 0.5), inset 0 0 0 1px rgba(255, 105, 180, 0.9) !important;
    }
}

/* 文字动画效果 - 欲望编织中 */
@keyframes spider-lust-text {
    0%, 20% { content: '蛛后正在编织情网...' !important; opacity: 0.95; transform: translateY(-50%) translateX(0); background-position: 0 0 !important; }
    25%, 45% { content: '蛛后正在编织情网..' !important; opacity: 0.85; transform: translateY(-50%) translateX(1px); background-position: 4px 4px !important; }
    50%, 70% { content: '蛛后正在编织情网.' !important; opacity: 0.75; transform: translateY(-50%) translateX(0); background-position: 8px 8px !important; }
    75%, 85% { content: '蛛后正在编织情网' !important; opacity: 0.65; transform: translateY(-50%) translateX(1px); background-position: 12px 12px !important; }
    90%, 95% { content: '蛛后正在编织情网' !important; opacity: 0.95; transform: translateY(-50%) translateX(0); background-position: 16px 16px !important; }
    100% { content: '蛛后正在编织情网...' !important; opacity: 0.95; transform: translateY(-50%) translateX(0); background-position: 0 0 !important; }
}

/* 束缚网旋转动画 */
@keyframes web-bind-spin {
    0% { transform: rotate(0deg); border-color: rgba(255, 20, 147, 0.3) !important; }
    25% { border-color: rgba(255, 20, 147, 0.6) !important; }
    50% { transform: rotate(180deg); border-color: rgba(255, 20, 147, 0.3) !important; }
    75% { border-color: rgba(255, 20, 147, 0.6) !important; }
    100% { transform: rotate(360deg); border-color: rgba(255, 20, 147, 0.3) !important; }
}

/* 隐藏原来的点点点动画 */
#ai-chat-answer .chat-answer-container .style_dot-flashing__8L91Q { display: none !important; }

/* 容器呼吸律动 */
@keyframes gentle-lust-breathe {
    0%, 100% { transform: translateY(0); box-shadow: 0 2px 10px rgba(255, 20, 147, 0.1), 0 0 0 1px rgba(255, 20, 147, 0.1) !important; }
    50% { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 20, 147, 0.25), 0 0 0 1px rgba(255, 20, 147, 0.2) !important; }
}

/* 添加情欲光晕效果 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::before {
    animation: spider-lust-bounce 3s ease-in-out infinite,
               spider-lust-glow 2.5s ease-in-out infinite !important;
}

@keyframes spider-lust-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4), inset 0 0 0 1px rgba(255, 105, 180, 0.8), 0 0 0 0 rgba(255, 20, 147, 0.2) !important; }
    50% { box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5), inset 0 0 0 1px rgba(255, 105, 180, 0.8), 0 0 0 8px rgba(255, 20, 147, 0.1) !important; }
}

/* 暗色模式适配 (默认已是暗黑风，仅微调) */
@media (prefers-color-scheme: dark) {
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) {
        background: linear-gradient(135deg, #120308, #1a050d) !important;
        border: 1px solid #4d1026 !important;
    }
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::before { border: 2px solid #802040 !important; }
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after {
        background: rgba(15, 2, 6, 0.95) !important;
        color: #ff99cc !important;
        border: 1px solid #661a33 !important;
    }
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after::before { border-right-color: rgba(15, 2, 6, 0.95) !important; }
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after::after { border-right-color: #661a33 !important; }
}

/* 屏幕适配保持原逻辑 */
@media (max-width: 480px) {
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) { padding: 12px 16px 12px 70px !important; min-height: 60px !important; }
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::before { width: 42px !important; height: 42px !important; left: 12px !important; }
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after { font-size: 12px !important; padding: 4px 10px 4px 8px !important; max-width: 140px !important; left: 62px !important; }
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after::before { left: -7px !important; border-top: 5px solid transparent !important; border-bottom: 5px solid transparent !important; border-right: 7px solid rgba(25, 5, 12, 0.95) !important; }
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after::after { left: -8px !important; border-top: 5px solid transparent !important; border-bottom: 5px solid transparent !important; border-right: 7px solid #b32d59 !important; }
}
@media (max-width: 360px) {
    #ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after { font-size: 11px !important; max-width: 120px !important; left: 58px !important; }
}

#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) { position: relative !important; }
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::before { position: absolute !important; }
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after { position: absolute !important; }

/* ==========================================================================
   好感度卡片 -> 服从度/淫乱度档案卡
   ========================================================================== */
.affinity-card {
  background: rgba(30, 10, 20, 0.8);
  border-left: 3px solid #ff1493;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,20,147,0.1);
}

.npc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.npc-name { font-size: 1.1em; color: #ff99cc; text-shadow: 0 0 5px rgba(255,153,204,0.5); font-weight: bold; }
.npc-tag { font-size: 0.85em; color: #ffb3d9; background: rgba(255,20,147,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,20,147,0.4); }

/* 服从度进度条 */
.affinity-bar-container { margin: 10px 0; }
.affinity-label { display: flex; justify-content: space-between; font-size: 0.9em; margin-bottom: 5px; }
.aff-value { color: #ff1493; font-weight: bold; text-shadow: 0 0 3px #ff1493; }
.aff-status { color: #ff66b2; font-style: italic; }

.affinity-bar-bg {
  position: relative; width: 100%; height: 20px;
  background: rgba(10,0,5,0.8);
  border-radius: 10px; overflow: hidden;
  border: 1px solid #4d1a2f;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.9);
}
.affinity-bar-fill {
  height: 100%; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #b30047, #ff1493);
  box-shadow: 0 0 10px rgba(255,20,147,0.6);
}
.affinity-percent {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 0.8em; font-weight: bold; color: white; text-shadow: 0 0 4px black, 0 0 2px #ff1493;
}

/* 肉体描述与统计 */
.affinity-desc { margin: 10px 0; font-size: 0.9em; color: #ffcce0; font-style: italic; border-left: 2px solid #ff1493; padding-left: 8px; }
.affinity-stats { display: flex; gap: 15px; margin: 10px 0; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 5px; font-size: 0.85em; color: #ff99cc; }
.stat-icon { font-size: 1.2em; filter: drop-shadow(0 0 2px #ff1493); }

/* 调教事件记录 */
.affinity-events { margin: 10px 0; }
.event-list { list-style: none; padding: 0; font-size: 0.85em; }
.event-list li { padding: 5px 0; border-bottom: 1px dashed rgba(255,20,147,0.3); color: #ffe6f0; }
.event-time { color: #ff66b2; font-weight: bold; margin-right: 5px; }
.event-delta { float: right; font-weight: bold; color: #ff1493; text-shadow: 0 0 3px rgba(255,20,147,0.5); } /* 增加服从度 */

/* 特殊性癖标记 */
.affinity-flags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.flag-badge { font-size: 0.75em; padding: 3px 8px; border-radius: 10px; background: rgba(255,20,147,0.1); }
.flag-unlock { border: 1px solid #ff1493; color: #ff99cc; box-shadow: 0 0 5px rgba(255,20,147,0.3); } /* 敏感带解锁 */
.flag-special { border: 1px solid #ff0055; color: #ffb3d9; background: rgba(255,0,85,0.2); } /* 淫纹/特殊刻印 */

/* 关系等级图例 -> 堕落阶段图例 */
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.legend-item { font-size: 0.85em; padding: 4px; background: rgba(15,0,5,0.6); border: 1px solid #33101e; border-radius: 4px; text-align: center; }
.aff-hostile { color: #b3b3b3; } /* 抵抗 */
.aff-cold { color: #ffccff; } /* 羞怯 */
.aff-neutral { color: #ff99cc; } /* 动摇 */
.aff-friendly { color: #ff66b2; } /* 发情 */
.aff-trust { color: #ff1493; text-shadow: 0 0 3px rgba(255,20,147,0.5); } /* 沉沦 */
.aff-close { color: #ff0055; font-weight: bold; } /* 雌堕 */
.aff-bond { color: #cc0000; font-weight: bold; text-shadow: 0 0 5px red; } /* 完全支配/理智崩坏 */

/* 网络提示 -> 精神链接/催眠暗示提示 */
.network-hint {
  background: rgba(255, 20, 147, 0.1);
  border-left: 3px solid #ff1493;
  padding: 10px; margin: 10px 0; font-size: 0.9em; border-radius: 4px;
  color: #ff99cc; box-shadow: inset 0 0 10px rgba(255,20,147,0.05);
}

/* ==========================================================================
   系统启动：并列意识OS ver.3.0 -> 潜意识/性本能处理中枢
   ========================================================================== */
.sys-hud {
    font-family: "Sarasa Term SC", "Consolas", "Heiti SC", monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #ffcce0;
    background: #0a0205; 
    border: 1px solid #4d1a2f;
    border-left: 4px solid #ff1493; /* 淫欲系统强调色 */
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255,20,147,0.1);
    overflow: hidden;
}

/* 扫描线背景效果 -> 肉体解析扫描线 */
.sys-content {
    background: linear-gradient(rgba(20, 5, 10, 0) 50%, rgba(255, 20, 147, 0.05) 50%), linear-gradient(90deg, rgba(255, 20, 147, 0.08), rgba(255, 0, 85, 0.03), rgba(200, 0, 100, 0.08));
    background-size: 100% 2px, 3px 100%;
    padding: 10px;
    border-top: 1px solid #33101e;
}

/* 标题栏 */
.sys-hud summary {
    background-color: #1a050f;
    color: #ff66b2;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}
.sys-hud summary:hover { background-color: #330a1f; color: #ff1493; }
.sys-hud summary::-webkit-details-marker { display: none; }
.sys-hud summary::after { content: " ▼"; float: right; font-size: 10px; color: #ff1493; transition: transform 0.3s; }
.sys-hud[open] summary::after { transform: rotate(180deg); color: #ff0055; }

/* 🧠 脑内剧场容器 -> 本能交战/理智溶解区 */
.mind-chat-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(15, 0, 5, 0.6) !important; 
    border: 1px solid #4d1a2f !important;
    padding: 10px !important;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.9), inset 0 0 5px rgba(255,20,147,0.2);
}

/* 💬 意识发言气泡 */
.mind-msg {
    display: flex;
    align-items: baseline;
    padding: 6px 10px;
    background: rgba(255, 20, 147, 0.04);
    border-radius: 2px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}

/* 交互特效：鼠标悬停高亮 -> 刺激反馈 */
.mind-msg:hover {
    background: rgba(255, 20, 147, 0.1);
    transform: translateX(4px);
    box-shadow: -3px 0 8px rgba(255, 20, 147, 0.3);
}

/* 针对不同部长的动态边框色 -> 身体机能拟人化 */
.mind-msg:nth-of-type(1):hover { border-left-color: #ff99cc; } /* 感官情报 (粉白) */
.mind-msg:nth-of-type(2):hover { border-left-color: #ff1493; } /* 性本能/身体发情 (艳粉) */
.mind-msg:nth-of-type(3):hover { border-left-color: #cc00ff; } /* 催眠/内啡肽分泌 (魅惑紫) */
.mind-msg:nth-of-type(4) { border-top: 1px dashed #661a33 !important; margin-top: 8px !important; } /* 主格理智界线 (即将崩溃) */
.mind-msg:nth-of-type(4):hover { border-left-color: #ff0000; } /* 理智防线 (警报红) */

/* 议题与结论 -> 调教指令与身体反应 */
.mind-header i {
    color: #ff66b2 !important; /* 诱惑的议题 */
    font-style: normal;
    text-shadow: 0 0 5px rgba(255, 102, 178, 0.4);
}
.mind-conclusion {
    color: #ff0055 !important; /* 绝对服从的结论 */
    font-family: monospace;
    letter-spacing: 0.5px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255,0,85,0.6);
}

/* =================================================================
   Kumo Desu Theme: System Eros (Lust Labyrinth Edition)
   Designed for: Erotic RPG System Aesthetics & High Contrast Flesh Tones
   ================================================================= */

/* --- 0. 基础清理 --- */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] { display: none !important; }

/* --- 1. 顶部栏与模型选择器 (欲望系统管理者) --- */
/* 顶部栏容器 - 模拟幽暗调教室的单向玻璃 */
.sticky.w-full.top-0.flex.items-center {
    background: rgba(10, 2, 5, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 2px solid #ff1493 !important; 
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4) !important;
}

/* 模型名称 - 模仿肉体解析/体征鉴定结果 */
#ai-model-selector .truncate.text-\[13px\] {
    color: #ff1493 !important; 
    text-shadow: 0 0 8px rgba(255, 20, 147, 0.8), 0 0 2px #fff;
    font-weight: bold !important;
    font-family: "Consolas", "Courier New", monospace !important; 
    letter-spacing: 1px !important;
}
#ai-model-selector .truncate.text-\[13px\]::before { content: "【肉体解析: "; color: #ff99cc; opacity: 0.8; }
#ai-model-selector .truncate.text-\[13px\]::after { content: "】"; color: #ff99cc; opacity: 0.8; }

/* --- 2. 聊天气泡美化 (调教/发情记录) --- */
/* 用户与AI通用的气泡基底 - 充满肉感的深色系 */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(145deg, #1f050f 0%, #0a0003 100%) !important;
    border: 1px solid rgba(255, 20, 147, 0.5) !important; 
    border-left: 3px solid #ff1493 !important; 
    border-radius: 6px !important; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(255,20,147,0.05) !important;
    color: #ffe6f0 !important;
}

/* 气泡内文本 */
.bg-gray-100\/90.relative.inline-block .markdown-body {
    color: #ffcce0 !important;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif !important;
    line-height: 1.7 !important;
}

/* 强调文本 (敏感带刺激/快感警告) */
.markdown-body strong {
    color: #ff0055 !important; 
    text-shadow: 0 0 6px rgba(255, 0, 85, 0.7) !important;
    font-weight: 800 !important;
}

/* 代码块/引用 (系统催眠日志) */
.markdown-body code {
    background: #1a0008 !important;
    color: #ff66b2 !important; /* 荧光粉代码 */
    border: 1px dashed #802040 !important;
    border-radius: 3px !important;
    box-shadow: inset 0 0 5px rgba(255,20,147,0.2) !important;
}

/* --- 3. 底部输入栏 (欲望指令输入端) --- */
/* 输入框容器背景 */
#ai-chat-bottom-input {
    background: linear-gradient(to top, #0a0003, transparent) !important;
}

/* 主输入框 */
#ai-chat-input {
    background-color: rgba(20, 5, 10, 0.95) !important;
    color: #ffb3d9 !important;
    border: 1px solid #661a33 !important;
    border-left: 4px solid #ff66b2 !important; /* 淫丝粉 */
    border-radius: 4px !important;
    font-family: "Consolas", sans-serif !important;
    transition: all 0.3s ease !important;
}

#ai-chat-input:focus {
    background-color: #0d0004 !important;
    border-color: #ff1493 !important;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.4), inset 0 0 8px rgba(0,0,0,0.9) !important;
    border-left-color: #ff0055 !important;
}

#ai-chat-input::placeholder { color: rgba(255, 102, 178, 0.4) !important; }

/* --- 4. 按钮组美化 (快感点数/调教技能) --- */
/* 功能按钮 */
#ai-mod-button2 button.MuiButton-root,
.menu_button {
    background: #1a050f !important;
    color: #ff1493 !important;
    border: 1px solid #ff1493 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.8) !important;
    font-family: "Consolas", monospace !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* 按钮悬停效果 - 模拟施加刺激 */
#ai-mod-button2 button.MuiButton-root:hover,
.menu_button:hover {
    background: rgba(255, 20, 147, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.6), inset 0 0 5px rgba(255,20,147,0.4) !important;
    transform: translateY(-1px) !important;
    text-shadow: 0 0 5px #ff1493 !important;
}

/* --- 5. 评论区 (窥阴/偷窥者日志) --- */
/* 保持清晰，但转为暗潮涌动的粉灰调，模仿地下俱乐部的记录板 */

/* 评论区主容器 */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: #1f1418 !important;
    border-top: 3px solid #802040 !important;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.6) !important;
}

/* 评论区标题 */
div.text-lg.font-bold {
    color: #ffb3d9 !important;
    border-left: 4px solid #ff1493;
    padding-left: 8px;
    text-shadow: 0 0 3px rgba(255,20,147,0.3);
}

/* 评论输入框容器 */
div.flex.flex-col.border-gray-200 {
    border: 1px solid #4d1a2f !important;
    background-color: #1a0a10 !important;
    border-radius: 4px !important;
}

/* 发送评论按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
    background: #33101e !important; /* 暗红色皮衣风 */
    border-radius: 4px !important;
    color: #ffb3d9 !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover {
    background: #ff1493 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(255,20,147,0.5) !important;
}

/* 评论列表项 */
div.group.ml-0 {
    background-color: #26131a !important;
    border: 1px solid #4d1a2f !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
}

/* 用户名 - 强调高级会员/调教师 */
div.text-sm.text-grey-600 span.font-bold {
    color: #ff1493 !important; 
    text-shadow: 0 0 2px rgba(255,20,147,0.4) !important;
}
div.text-sm.text-grey-600 { color: #c9a0b0 !important; }

/* 链接/引用颜色 */
a { color: #ff66b2 !important; text-decoration: none !important; }
a:hover { text-decoration: underline !important; color: #ff1493 !important; text-shadow: 0 0 5px rgba(255,20,147,0.5) !important; }

/* 7.3 平台按钮：适配 9-nine- 风格但融入情色基调 */
button, .menu_button {
    background: linear-gradient(180deg, #2b111a, #1a050f) !important;
    color: #ffcce0 !important;
    border: 1px solid #661a33 !important;
    border-bottom: 3px solid #330a1f !important; /* 3D按压感 */
    font-family: 'Segoe UI', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.8);
    transition: all 0.2s ease;
}

button:hover, .menu_button:hover {
    background: linear-gradient(180deg, #3d1425, #2b111a) !important;
    color: #ff66b2 !important;
    border-color: #ff1493 !important;
    box-shadow: 0 0 12px rgba(255, 20, 147, 0.4) !important;
}

/* 模型名称与Token消耗 -> 精力/体液消耗监控 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #ff66b2 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    text-shadow: 0 0 3px rgba(255,102,178,0.4) !important;
}