/* 第一步：从云端强制注入“思源宋体”的基因，确保任何设备都能生效 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&display=swap');

/* 基础容器：渊狱暗黑基调 & 全局文字美化 */
ai {
    display: block;
    /* 加入 !important，用最强硬的姿态压倒系统的默认字体 */
    font-family: "Noto Serif SC", "STZhongsong", "SimSun", serif !important;
    font-size: 14px;
    color: #d4d4d8;
    background: #0a0a0c;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #1a1a20;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9), 0 4px 15px rgba(0,0,0,0.5);
    line-height: 1.6;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}

/* 正文区域：确保正文乖乖继承古典字体 */
ai article {
    display: block;
    margin-bottom: 16px;
    color: #e8e8e8;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    letter-spacing: 0.8px;
    /* 强制继承父级的古典字体，不许私自换衣服 */
    font-family: inherit !important; 
}

/* 顶部环境栏：灵异监控干扰效果 (保持无衬线字体，形成对比) */
ai hd {
    display: block;
    background: linear-gradient(90deg, #2a0505 0%, #110505 100%);
    color: #ff5252;
    padding: 8px 12px;
    border-left: 4px solid #cc0000;
    border-radius: 4px;
    /* 监控栏强制使用现代无衬线字体 */
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important; 
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(255,0,0,0.6);
    background-image: repeating-linear-gradient(transparent, transparent 2px, rgba(0,0,0,0.4) 2px, rgba(0,0,0,0.4) 4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* --- 下面的代码保持你原来的不变即可 --- */
/* 折叠面板等其他CSS代码接在这里... */
/* 基础容器：渊狱暗黑基调 & 全局文字美化 */
ai {
    display: block;
    /* 引入衬线字体栈，增加灵异卷宗的古典质感 */
    font-family: "Noto Serif SC", "STZhongsong", "SimSun", "PingFang SC", "Microsoft YaHei", serif;
    font-size: 14px;
    color: #d4d4d8;
    background: #0a0a0c;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #1a1a20;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9), 0 4px 15px rgba(0,0,0,0.5);
    line-height: 1.6;
    box-sizing: border-box;
    /* 字体渲染优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.5px;
    /* 全局极暗阴影，增强文字雕刻感 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}

/* 顶部环境栏：灵异监控干扰效果 */
ai hd {
    display: block;
    background: linear-gradient(90deg, #2a0505 0%, #110505 100%);
    color: #ff5252;
    padding: 8px 12px;
    border-left: 4px solid #cc0000;
    border-radius: 4px;
    font-family: "PingFang SC", sans-serif; /* 监控栏保留现代无衬线字体 */
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(255,0,0,0.6);
    background-image: repeating-linear-gradient(transparent, transparent 2px, rgba(0,0,0,0.4) 2px, rgba(0,0,0,0.4) 4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* 正文区域：极致的阅读排版 */
ai article {
    display: block;
    margin-bottom: 16px;
    color: #e8e8e8;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify; /* 两端对齐，档案感更强 */
    letter-spacing: 0.8px;
}

/* 折叠面板：冰冷的档案袋质感 */
ai details {
    background: #101014;
    border: 1px solid #1f1f24;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 折叠标题：交互反馈与红光闪烁 */
ai summary {
    background: linear-gradient(180deg, #18181e 0%, #101014 100%);
    padding: 10px 12px;
    font-weight: bold;
    color: #c0c0c0;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, text-shadow 0.3s;
    user-select: none;
    letter-spacing: 1px;
}
ai summary::-webkit-details-marker {
    display: none;
}
ai summary:hover {
    color: #f0f0f0;
    background: #1c1c22;
}
ai details[open] summary {
    border-bottom: 1px solid #2a0505;
    color: #ff5252;
    text-shadow: 0 0 10px rgba(255,82,82,0.5);
}

/* 模块小标题：斑驳的分割线与拉伸字间距 */
ai t {
    display: block;
    margin: 14px 12px 8px;
    color: #7a7a85;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px dashed #333;
    padding-bottom: 4px;
}

/* 动态网格布局：手机端自适应密排，拒绝溢出 */
ai g {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
    padding: 0 12px 10px;
}

/* 短信息块：数据卡片 */
ai d {
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.03);
    color: #c4c4c4;
}

/* 标签文字美化 */
ai b {
    color: #888890;
    font-size: 11px;
    margin-bottom: 2px;
    font-weight: 600;
    font-family: "PingFang SC", sans-serif;
    letter-spacing: 0.5px;
}

/* 长文本区块：血迹斑斑的记录条 */
ai q {
    display: block;
    margin: 0 12px 8px;
    padding: 8px 10px;
    background: rgba(30, 5, 5, 0.4);
    border-left: 3px solid #8b0000;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #cccccc;
    line-height: 1.6;
}
ai q b {
    color: #d8d8d8;
    margin-right: 6px;
    font-size: 13px;
}

/* 行动推荐列表 */
ai ol {
    margin: 0 12px 12px;
    padding-left: 24px;
    color: #a0a0a0;
}
ai li {
    margin-bottom: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
ai li::marker {
    color: #8b0000;
    font-weight: bold;
}
ai li:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
    transform: translateX(2px);
}

/* 特殊状态高亮：致命与异变 */
ai .r {
    color: #ff4444 !important;
    font-weight: bold !important;
    text-shadow: 0 0 6px rgba(255,0,0,0.7);
    animation: bloodPulse 2.5s infinite;
}
ai .w {
    color: #d4af37 !important; /* 诡异的暗金/黄 */
    text-shadow: 0 0 5px rgba(212,175,55,0.4);
}

/* 灵异心跳动画 */
@keyframes bloodPulse {
    0% { opacity: 1; text-shadow: 0 0 6px rgba(255,0,0,0.7); }
    50% { opacity: 0.7; text-shadow: 0 0 2px rgba(255,0,0,0.3); }
    100% { opacity: 1; text-shadow: 0 0 6px rgba(255,0,0,0.7); }
}