iaer {
    /* 定义核心RGB颜色变量以便控制透明度，适配所有移动端内核 */
    --cyan-rgb: 0, 240, 255;
    --yellow-rgb: 252, 238, 10;
    --magenta-rgb: 230, 50, 255;
    --red-rgb: 255, 0, 60;
    --bg-panel: rgba(10, 12, 17, 0.9);
    
    display: block;
    margin-top: 5px;
    font-family: "Courier New", Consolas, monospace;
}

/* 强制隐藏系统运转代码，保障沉浸感 */
iaer think, iaer player-profile {
    display: none !important;
}

/* --- 战术推演：悬浮行动面板 --- */
iaer fieldset {
    border: none;
    border-top: 1px solid rgba(var(--cyan-rgb), 0.3);
    border-bottom: 1px solid rgba(var(--cyan-rgb), 0.3);
    border-left: 3px solid rgb(var(--cyan-rgb));
    background: linear-gradient(90deg, rgba(var(--cyan-rgb), 0.1) 0%, rgba(0,0,0,0) 80%), var(--bg-panel);
    margin: 25px 0 15px 0;
    padding: 15px 10px;
    border-radius: 2px 8px 8px 2px;
}

iaer legend {
    background: rgb(var(--cyan-rgb));
    color: #000;
    font-weight: 900;
    font-size: 14px;
    padding: 2px 12px;
    transform: skewX(-12deg);
    margin-left: 10px;
    box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.6);
    letter-spacing: 1px;
}

iaer fieldset d {
    display: block;
    margin: 8px 0;
    padding: 6px 12px;
    color: #c9d1d9;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

iaer fieldset d:hover {
    color: #fff;
    border-left: 2px solid rgb(var(--cyan-rgb));
    background: rgba(var(--cyan-rgb), 0.15);
    transform: translateX(5px);
}

/* --- 三大 UI 区块隔离与独立上色 --- */
iaer details {
    margin: 15px 0; /* 明显的区块分隔 */
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

iaer details::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--theme);
    box-shadow: 0 0 10px var(--theme);
    z-index: 2;
}

/* 动态分配色彩编码 */
iaer details:nth-of-type(1) { 
    --theme: rgb(var(--yellow-rgb)); 
    --theme-dim: rgba(var(--yellow-rgb), 0.15); 
}
iaer details:nth-of-type(2) { 
    --theme: rgb(var(--cyan-rgb)); 
    --theme-dim: rgba(var(--cyan-rgb), 0.15); 
}
iaer details:nth-of-type(3) { 
    --theme: rgb(var(--magenta-rgb)); 
    --theme-dim: rgba(var(--magenta-rgb), 0.15); 
}

iaer summary {
    padding: 12px 10px 12px 20px;
    color: var(--theme);
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(90deg, var(--theme-dim) 0%, transparent 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
iaer summary::-webkit-details-marker { display: none; }

/* 终端内联数据排版 (适配手机) */
iaer p {
    margin: 8px 10px 8px 18px;
    font-size: 13px;
    line-height: 1.8;
}

iaer l {
    display: inline-block;
    background: var(--theme);
    color: #000;
    font-weight: 900;
    padding: 0 5px;
    border-radius: 2px;
    font-size: 12px;
    margin: 0 4px 0 0;
    text-transform: uppercase;
}

iaer r {
    display: inline-block;
    color: #fff;
    font-weight: bold;
    margin-right: 8px;
    text-shadow: 0 0 5px var(--theme-dim);
}

/* 神经元矩阵特化 */
iaer t {
    display: block;
    margin: 12px 10px 4px 18px;
    color: var(--theme);
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
}

iaer details d {
    display: block;
    margin: 4px 10px 4px 18px;
    font-size: 13px;
    color: #9ca3af;
    position: relative;
    padding-left: 12px;
}

iaer details d::before {
    content: '▶';
    position: absolute;
    left: 0; top: 1px;
    font-size: 10px;
    color: var(--theme);
    opacity: 0.6;
}

/* 智能警告系统 (超视距闪烁条) */
iaer w {
    display: block;
    margin: 15px 10px 15px 18px;
    padding: 10px;
    border: 1px solid rgb(var(--red-rgb));
    color: rgb(var(--red-rgb));
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    background: repeating-linear-gradient(
        -45deg, 
        rgba(var(--red-rgb), 0.1), 
        rgba(var(--red-rgb), 0.1) 10px, 
        transparent 10px, 
        transparent 20px
    );
    animation: iaer-alert 1.5s infinite;
}

iaer w:empty { 
    display: none !important; 
    animation: none; 
}

@keyframes iaer-alert {
    0%, 100% { box-shadow: inset 0 0 0 transparent; opacity: 0.85; }
    50% { box-shadow: inset 0 0 20px rgba(var(--red-rgb), 0.4); opacity: 1; text-shadow: 0 0 8px rgb(var(--red-rgb)); }
}

/* --- 测试/调试模式：暴露 BioCode 底层代码 --- */
iaer biocode {
    display: block !important;
    margin: 15px 0;
    padding: 10px 12px;
    background: #000;
    border: 1px dashed rgb(var(--cyan-rgb));
    border-radius: 4px;
    color: rgb(var(--cyan-rgb));
    font-size: 12px;
    font-family: "Courier New", Consolas, monospace;
    text-shadow: 0 0 5px rgba(var(--cyan-rgb), 0.5);
    opacity: 0.85;
    word-break: break-all;
    position: relative;
    overflow: hidden;
}

/* 伪元素：添加警示性质的调试前缀标题 */
iaer biocode::before {
    content: '[SYSTEM BIO-CODE DEBUG FEED]';
    display: block;
    color: rgb(var(--red-rgb));
    font-weight: 900;
    font-size: 11px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(var(--red-rgb), 0.3);
    padding-bottom: 4px;
    text-shadow: none;
}