details {
    margin-top: 16px;
    border: 1px solid #e4d5ce;
    border-radius: 16px;
    background: #fcf8f6;
    overflow: hidden;
}
details summary {
    padding: 14px 20px;
    cursor: pointer;
    color: #b55566;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
}
details summary::-webkit-details-marker {
    display: none;
}
details summary::before {
    content: "▶";
    display: inline-block;
    transition: transform 0.2s;
    font-size: 0.8rem;
    color: #b55566;
}
details[open] summary::before {
    transform: rotate(90deg);
}
details pre {
    margin: 0;
    padding: 12px 20px 16px;
    border-top: 1px solid #e4d5ce;
    color: #5e4a44;
    background: #ffffff;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-radius: 0 0 16px 16px;
    line-height: 1.5;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ===== 第二部分：折叠内容排版增强 ===== */
details p,
details ul,
details ol,
details blockquote {
    padding: 0 20px 12px 20px;
    color: #5e4a44;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 0.92rem;
    line-height: 1.8;
    margin: 0;
}
details p:first-of-type {
    padding-top: 12px;
}
details ul, details ol {
    padding-left: 40px;
    margin-bottom: 12px;
}
/* 鼠标划过代码块时微妙的交互反馈（纯CSS） */
details pre:hover {
    background: #fdfaf8;
    transition: background 0.2s ease;
}

/* 管理员调试面板 - 静态视觉占位 */
.debug-panel-wrapper {
    display: none; /* 隐藏开关 */
    margin-top: 16px;
    border: 1px solid #e4d5ce;
    border-radius: 16px;
    background: #fcf8f6;
}
.debug-panel-header {
    padding: 12px 20px;
    color: #b55566;
    font-weight: 600;
    border-bottom: 1px solid #e4d5ce;
    background: #f6f0ec;
}
.debug-panel-body {
    padding: 16px 20px;
    color: #5e4a44;
    line-height: 1.6;
    font-size: 0.9rem;
    background: #ffffff;
}
.debug-panel-wrapper.active {
    display: block; /* 如果激活则显示 */
}