/* =========================================
   奈落深渊 UI - 核心样式配置
   ========================================= */

/* 1. 绝对隐藏思维链：让AI思考，但绝不逼逼 */
think {
    display: none !important;
}

/* 2. 弹幕池 (Danmaku)：赛博深渊的低语 */
danmaku {
    display: block;
    background: rgba(15, 15, 20, 0.85);
    border-left: 4px solid #ff4757;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85em;
    line-height: 1.8;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}
danmaku d {
    margin-right: 12px;
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
/* 弹幕颜色光谱 */
.c-red { color: #ff4d4d; text-shadow: 0 0 5px rgba(255,77,77,0.4); }
.c-pink { color: #ff9ff3; text-shadow: 0 0 5px rgba(255,159,243,0.4); }
.c-blue { color: #54a0ff; }
.c-gold { color: #feca57; font-weight: bold; }
.c-white { color: #c8d6e5; }

/* 3. 顶部状态栏 (Header) & 血蓝条 (Hpbar)：游戏HUD质感 */
header, hpbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e1e2d 0%, #2a2a3d 100%);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    color: #dcdde1;
    font-family: 'Courier New', Courier, monospace, sans-serif;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    border: 1px solid #3d3d5c;
}
header loc { 
    font-weight: 900; 
    color: #9c88ff; 
    text-shadow: 0 0 8px rgba(156,136,255,0.6); 
    letter-spacing: 1px;
}
header atk { color: #ff6b6b; }
header def { color: #48dbfb; }
header luk { color: #1dd1a1; }

hpbar hp { color: #ff4757; font-weight: bold; text-shadow: 0 0 4px rgba(255,71,87,0.5); }
hpbar mp { color: #2e86de; font-weight: bold; text-shadow: 0 0 4px rgba(46,134,222,0.5); }
hpbar lv { color: #f368e0; font-weight: bold; background: rgba(243,104,224,0.15); padding: 2px 8px; border-radius: 12px;}

/* 4. 正文区域 (Text)：沉浸式阅读体验 */
text {
    display: block;
    background: rgba(22, 22, 30, 0.7);
    padding: 18px;
    border-radius: 8px;
    margin: 15px 0;
    border-top: 2px solid #5f27cd;
    color: #ced6e0;
    line-height: 1.8;
    font-size: 1.05em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
/* 靶向控制正文P标签，绝不污染全局 */
text p { 
    margin: 0 0 12px 0; 
    text-indent: 2em; /* 首行缩进，更有小说感 */
}
text p:last-child { margin-bottom: 0; }

/* 5. 折叠面板 (Details & Summary)：精致的档案夹 */
details {
    background: #181824;
    border: 1px solid #2f3542;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
summary {
    background: linear-gradient(180deg, #28283c 0%, #1e1e2d 100%);
    padding: 12px 16px;
    color: #a4b0be;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* 隐藏默认丑陋的三角形 */
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    letter-spacing: 1px;
}
summary::-webkit-details-marker { display: none; } /* 兼容性隐藏 */
summary:hover {
    background: linear-gradient(180deg, #32324a 0%, #252538 100%);
    color: #f1f2f6;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}
/* 展开后的标题样式 */
details[open] summary {
    border-bottom: 1px solid #ff4757; /* 展开时底边变红，增加警示感 */
    color: #ffffff;
}
/* 靶向控制面板内的P标签 */
details p {
    padding: 10px 16px;
    margin: 0;
    color: #747d8c;
    font-size: 0.9em;
    border-bottom: 1px solid #222233;
    line-height: 1.6;
}
details p:last-child { border-bottom: none; }
details p:hover {
    background: rgba(255,255,255,0.02); /* 鼠标划过单行微微发亮 */
    color: #a4b0be;
}
