/* ========================================= */
/* 1. 隐藏平台原生冗余装饰 (系统权限覆写) */
/* ========================================= */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* ========================================= */
/* 2. 主聊天框 - 异能系统全息面板装甲 */
/* ========================================= */
.bg-gray-100\/90.relative.inline-block {
    background: rgba(13, 17, 23, 0.95) !important; /* 极深幽网黑 */
    border: 1px solid rgba(0, 240, 255, 0.3) !important; /* 科技青异能边框 */
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 240, 255, 0.05) !important;
    backdrop-filter: blur(8px) !important;
    overflow: hidden !important;
    isolation: isolate !important; 
    transition: all 0.3s ease-out !important;
}

/* 后台神经元链接扫描线动效 */
.bg-gray-100\/90.relative.inline-block::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -100% !important;
    width: 50% !important;
    height: 200% !important;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.05), transparent) !important;
    transform: rotate(30deg) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    animation: system-scan 4s linear infinite !important;
}

@keyframes system-scan {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ========================================= */
/* 3. 正文区域 - 最高优先级的视网膜呈像可读性 */
/* ========================================= */
.markdown-body {
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    color: #F8F9FA !important; /* 强制高对比度极地白，防止黑底瞎眼 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 500 !important;
    text-shadow: none !important; /* 严禁模糊干扰阅读 */
    line-height: 1.6 !important;
}

/* ========================================= */
/* 4. 面板辅助读数元素 - 青色发光适配 */
/* ========================================= */
/* 操作按钮复写 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #00F0FF !important; 
    opacity: 0.85 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #FFFFFF !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6) !important;
}

/* 模型名称及消耗数据点 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #00F0FF !important;
    opacity: 0.7 !important;
    font-family: "Courier New", Courier, monospace !important;
}

/* ========================================= */
/* 5. 任务下达时的雷达加载动画 (SMIL内联矢量) */
/* ========================================= */
/* 摧毁默认旧式三点弹跳 */
.style-module__AtdJSq__dot-flashing.style-module__AtdJSq__text {
    display: none !important;
}

/* 建立动态雷达中心 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    overflow: visible !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 28px !important;
    height: 28px !important;
    /* 强光泽的全息网络雷达，自带SVG底层抗拦截旋转 */
    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='18' fill='none' stroke='%2300f0ff' stroke-width='1.5' stroke-dasharray='4 4' opacity='0.5'/%3E%3Ccircle cx='25' cy='25' r='8' fill='none' stroke='%2300f0ff' stroke-width='1' opacity='0.4'/%3E%3Cpath d='M25,25 L25,4 A21,21 0 0,1 46,25 Z' fill='%2300f0ff' opacity='0.7'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1.2s' repeatCount='indefinite'/%3E%3C/path%3E%3Ccircle cx='25' cy='25' r='3' fill='%23ffffff'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* ========================================= */
/* 6. 响应式限制与底层兼容 */
/* ========================================= */
@media (max-width: 480px) {
    .bg-gray-100\/90.relative.inline-block {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .bg-gray-100\/90.relative.inline-block::before {
        display: none !important;
        animation: none !important;
    }
}
sys {
  display: block;
  background-color: #0d1117;
  border: 1px solid #1f2937;
  border-radius: 10px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #c9d1d9;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  margin: 10px 0;
  /* 基础极简主题调色板定义 */
  --cyan: #00f0ff;
  --purple: #bf5afe;
  --red: #ff3366;
  --bg-dark: #090c10;
  --panel-bg: #161b22;
}

/* ================================= */
/* 1. 顶部时间与环境观测雷达 (Header) */
/* ================================= */
sys hd {
  display: flexflex;
  background: linear-gradient(90deg, rgba(0,240,255,0.1) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,240,255,0.2);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================= */
/* 2. 聊天正文框全面美化 (Article)    */
/* ================================= */
sys article {
  display: block;
  padding: 16px 20px 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #e6edf3;
  /* 运用微光径向渐变模拟系统全息投屏感 */
  background: radial-gradient(circle at top right, rgba(0,240,255,0.04), transparent 60%);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
sys article p {
  margin: 0 0 12px 0;
}
sys article p:last-child {
  margin-bottom: 0;
}

/* ================================= */
/* 3. 系统控制面板基础框架 (Dashboard)*/
/* ================================= */
sys details {
  background: var(--bg-dark);
  border-top: 1px solid #30363d;
}
sys summary {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  cursor: pointer;
  list-style: none;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  user-select: none;
}
sys summary:hover {
  background: rgba(0,240,255,0.06);
  text-shadow: 0 0 10px rgba(0,240,255,0.4);
}
sys summary::-webkit-details-marker {
  display: none;
}

/* 黑客级标签式装甲切角分区 */
sys p[t] {
  display: flex;
  flex-direction: column;
  margin: 16px 14px;
  padding: 16px 14px 10px;
  background: var(--panel-bg);
  border: 1px solid #30363d;
  border-radius: 6px;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
sys p[t]::before {
  content: attr(t);
  position: absolute;
  top: -11px;
  left: 12px;
  background: var(--cyan);
  color: #000;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 6px rgba(0,240,255,0.4);
}

/* ======= 数据展示元件 ======= */

/* 高亮名称 / ID / 阶级档头 */
sys f {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 6px;
  margin-bottom: 8px;
  text-shadow: 0 0 2px rgba(255,255,255,0.3);
}

/* 基础扫描字段 */
sys d {
  display: block;
  font-size: 13px;
  color: #a4b0be;
  margin-bottom: 6px;
  line-height: 1.5;
}
sys d::before {
  content: '▸';
  color: var(--cyan);
  margin-right: 5px;
  font-size: 11px;
  opacity: 0.8;
}

/* [高级机制] 状态/服从度指示 */
sys d[c="sta"] {
  color: #dfe6e9;
  font-weight: 500;
}
sys d[c="sta"]::before {
  content: '⚡';
}

/* [高级机制] 绑定任务跟踪 - 发光示警框 */
sys d[c="t"] {
  background: rgba(0,240,255,0.06);
  border-left: 2px solid var(--cyan);
  padding: 5px 10px;
  color: #fff;
  margin: 8px 0;
  border-radius: 0 4px 4px 0;
}
sys d[c="t"]::before { content: '🎯'; }

/* [高级机制] 脑波实时监听 - 幻紫心灵感应频段 */
sys d[c="m"] {
  font-style: italic;
  color: #d6a2ff;
  border-left: 2px solid var(--purple);
  padding: 5px 10px;
  background: linear-gradient(90deg, rgba(191,90,254,0.06) 0%, transparent 100%);
  margin-bottom: 4px;
}
sys d[c="m"]::before { content: '🧠'; }

/* ================================= */
/* 4. [🔞核心机制] 深度生物体征隐秘扫描区 */
/* ================================= */
sys x {
  display: block;
  /* 警告网纹背景与深红遮罩交叉 */
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 51, 102, 0.04),
    rgba(255, 51, 102, 0.04) 10px,
    transparent 10px,
    transparent 20px
  ), rgba(15, 6, 8, 0.85);
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-left: 3px solid var(--red);
  padding: 12px;
  margin: 10px 0;
  border-radius: 4px;
  font-size: 13px;
  color: #ffb3c1;
  line-height: 1.6;
  /* 保留所有肉体扫描细节换行格式，不会缩成一团 */
  white-space: pre-wrap; 
  animation: scan-alert 4s ease-in-out infinite alternate;
}
/* 解锁抬头警告标题 */
sys x b {
  display: block;
  color: var(--red);
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(255,51,102,0.4);
  padding-bottom: 4px;
  letter-spacing: 0.5px;
}
/* 微弱的危险呼吸灯动效指示越权扫描 */
@keyframes scan-alert {
  0% { box-shadow: inset 0 0 0 rgba(255, 51, 102, 0); }
  100% { box-shadow: inset 0 0 15px rgba(255, 51, 102, 0.08); }
}