/* =========================================
   废土终端：深渊与冰霜 (防白底穿透核弹版)
   ========================================= */

/* 1. 强制底层容器实心黑化 */
ai {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117 !important; /* 绝对实心的深渊黑，杜绝任何穿透 */
    color: #e6edf3 !important; 
    padding: 16px;
    border-radius: 10px;
    border: 2px solid #30363d;
}

/* 2. 🌟 核心修复：叙事正文区 (防白底白字) 🌟 */
article {
    /* 直接上实心深灰背景，绝对不用 rgba 透明度！ */
    background-color: #161b22 !important; 
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #8b949e !important;
    /* 强制重置内部所有可能导致白底的属性 */
    background-image: none !important;
}
article p {
    line-height: 1.8;
    font-size: 16px;
    /* 强制背景透明，防止 p 标签自身带白底 */
    background-color: transparent !important; 
    /* 绝对纯白字体，焊死！ */
    color: #ffffff !important; 
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px #000000 !important; /* 黑色阴影增加可读性 */
}

/* 3. 顶部状态栏：实心铁锈渐变 */
.top {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(90deg, #2d0a0a 0%, #111111 100%) !important;
    border-left: 5px solid #ff4d4d !important;
    padding: 12px;
    border-radius: 6px;
}
.top .l, .top .r { display: flex; align-items: center; gap: 8px; }
.top i { font-style: normal; font-size: 1.3em; }
.top .c span { font-size: 0.8em; color: #8b949e !important; display: block; }
.top .c b { color: #ff7b72 !important; font-size: 1.05em; font-weight: bold; } 

/* 4. 通用折叠面板与容器 (全部实心化) */
details summary {
    font-weight: bold;
    cursor: pointer;
    padding: 10px 12px;
    background-color: #21262d !important; /* 实心深灰 */
    border-radius: 5px;
    border: 1px solid #30363d !important;
    color: #d2a8ff !important; /* 亮紫色指示，极高反差 */
    user-select: none;
}
.box {
    background-color: #0d1117 !important; /* 实心深黑底色 */
    border: 1px solid #30363d !important;
    padding: 14px;
    border-radius: 0 0 5px 5px;
    margin-top: -2px;
    color: #c9d1d9 !important;
}

/* 5. 逻辑推演区 */
.thk summary { color: #8b949e !important; background-color: #161b22 !important; }
.thk .box { border-left: 3px solid #444c56 !important; color: #8b949e !important; }

/* 6. 记忆回廊：实心赛博绿 */
.mem table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.mem th, .mem td { border: 1px solid #30363d !important; padding: 8px; font-size: 0.9em; text-align: left; }
.mem th { background-color: #042617 !important; color: #3fb950 !important; font-weight: bold; }
.mem td { background-color: #0d1117 !important; color: #e6edf3 !important; }
.mem .tip { font-size: 0.85em; color: #3fb950 !important; text-align: center; margin-bottom: 8px; font-weight: bold; }

/* 7. 角色面板 Grid 布局 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid d {
    display: flex;
    flex-direction: column;
    background-color: #161b22 !important; /* 实心底 */
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 3px solid #8b949e !important;
    font-size: 0.95em;
    color: #e6edf3 !important;
}
.grid d b { color: #8b949e !important; font-size: 0.85em; margin-bottom: 4px; }
.fw { grid-column: 1 / -1; }

/* 8. 🌟 苏清寒专属面板：冰封深蓝实心版 */
.tg summary { color: #58a6ff !important; border-color: #1f6feb !important; background-color: #0d1117 !important; }
.tg .box { border-color: #1f6feb !important; }
.tg .grid d { border-left-color: #1f6feb !important; background-color: #050b14 !important; }
.tg .grid d b { color: #58a6ff !important; }
/* 私密身体监测区 */
.tg .bd {
    border: 1px solid #388bfd !important;
    background-color: #0a1424 !important; /* 实心暗蓝，绝不透明 */
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
}
.tg .bt { color: #79c0ff !important; font-weight: bold; margin-bottom: 10px; font-size: 1.1em; }

/* 9. 行动选项区 */
.act {
    background-color: #161b22 !important;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d29922 !important;
}
.act .tip { color: #e3b341 !important; font-size: 1em; font-weight: bold; margin-bottom: 12px; }
.btns { display: flex; flex-direction: column; gap: 10px; }
.btns a {
    background-color: #21262d !important; /* 实心按钮 */
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #30363d !important;
    color: #ffffff !important; 
    font-weight: bold;
    display: block;
}

/* 10. CG图片展示区 */
.cg-box { display: flex; justify-content: center; margin: 10px 0; background-color: transparent !important; }
.cg-box img { max-width: 100%; border-radius: 8px; border: 2px solid #58a6ff; }