/* ==========================================
   1. 统一的折叠标签美化 (details / summary)
   ========================================== */

/* 去掉原生黑色小三角，并做成长条块样式 */
details summary {
    display: block;
    list-style: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
}

/* 针对 Webkit 内核浏览器隐藏三角 */
details summary::-webkit-details-marker {
    display: none;
}

/* 实时状态 (第1个) 和 动态记忆矩阵 (第3个) -> 浅紫色渐变标题栏 */
details:nth-of-type(1) summary,
details:nth-of-type(3) summary {
    background: linear-gradient(135deg, #f3e8f5 0%, #faedf3 100%);
    color: #aa4a76;
}

/* 主角状态 (第2个) -> 浅粉色渐变标题栏 */
details:nth-of-type(2) summary {
    background: linear-gradient(135deg, #fbebf1 0%, #fbebf1 100%);
    color: #bd4874;
}


/* ==========================================
   2. 核心修复：所有面板展开时，全部自动生成卡片外壳
   ========================================== */

/* 只要 details 标签展开了，都统一套上淡粉色/淡灰色的精致大边框 */
details[open] {
    border: 1px solid #f9e2ec;
    border-radius: 10px;
    padding: 12px;
    background-color: #ffffff;
    margin-bottom: 15px;
}

/* 展开后，标题栏与下方内容的间距微调 */
details[open] summary {
    margin-bottom: 12px;
}


/* ==========================================
   3. 统一美化所有面板内部的每行数据条目
   ========================================== */

/* 无论在哪个面板里，里面的 p、div、li 都会变成独立的小方块 */
details p, 
details div,
details li {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    list-style: none;
}

/* 确保每个面板里的最后一行数据没有底部多余间距 */
details p:last-child,
details div:last-child,
details li:last-child {
    margin-bottom: 0;
}


/* ==========================================
   4. 炫彩细节：根据顺序自动为每行生成左侧彩色竖条
   ========================================== */

/* --- 实时状态 / 主角状态 通用的前三行颜色交替 --- */
details p:nth-of-type(1), details div:nth-of-type(1), details li:nth-of-type(1) { border-left: 4px solid #ffcc00; } /* 黄色 */
details p:nth-of-type(2), details div:nth-of-type(2), details li:nth-of-type(2) { border-left: 4px solid #5c9ce6; } /* 蓝色 */
details p:nth-of-type(3), details div:nth-of-type(3), details li:nth-of-type(3) { border-left: 4px solid #f5a623; } /* 橙色 */

/* --- 针对第1个和第3个面板数据较多时的延伸颜色 --- */
details p:nth-of-type(4), details div:nth-of-type(4), details li:nth-of-type(4) { border-left: 4px solid #bd4874; } /* 粉红 */
details p:nth-of-type(5), details div:nth-of-type(5), details li:nth-of-type(5) { border-left: 4px solid #4bc0c0; } /* 青色 */
details p:nth-of-type(6), details div:nth-of-type(6), details li:nth-of-type(6) { border-left: 4px solid #9966ff; } /* 紫色 */
details p:nth-of-type(7), details div:nth-of-type(7), details li:nth-of-type(7) { border-left: 4px solid #36a2eb; } /* 浅蓝 */