/* ====== 魔法典籍基底面板 ====== */
.m-card {
    background: linear-gradient(145deg, #100c14, #1a1525);
    border: 1px solid rgba(142, 88, 219, 0.4);
    border-radius: 12px;
    padding: 18px;
    color: #dedee0;
    font-family: 'PingFang SC', sans-serif;
    box-shadow: 0 2px 20px rgba(20, 10, 30, 0.8), inset 0 0 10px rgba(142, 88, 219, 0.1);
}

/* ====== 真理演算（隐式思维链） ====== */
.m-cot {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(142, 88, 219, 0.5);
    border-radius: 8px;
    margin-bottom: 20px;
}

.m-cot summary {
    padding: 10px 15px;
    color: #e97e4c;
    cursor: pointer;
    outline: none;
    font-size: 0.85em;
    font-weight: bold;
}

.m-cot-in {
    padding: 12px 15px;
    color: #e8d7be;
    font-size: 0.8em;
    border-top: 1px dashed rgba(142, 88, 219, 0.3);
    white-space: pre-wrap; /* 完美兼容AI吐出的原始列表符和换行 */
}

/* ====== 顶部场景状态栏 ====== */
.m-scene {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(142, 88, 219, 0.3);
    padding-bottom: 15px;
}

.m-scene-item {
    background: rgba(142, 88, 219, 0.08);
    border-left: 3px solid #8e58db;
    padding: 8px 12px;
    border-radius: 4px;
}

.m-scene-item .m-label {
    display: block;
    font-size: 0.7em;
    color: #a88b4d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.m-scene-item .m-val {
    font-size: 0.9em;
    color: #fff;
    font-weight: bold;
}

/* ====== 正文演绎区 ====== */
.m-text {
    display: block;
    margin-bottom: 30px;
}

/* 给正文加点小说式的排版感 */
.m-card p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #e6dfef;
    margin-bottom: 1.2em;
    text-indent: 2em; /* 首行缩进两字符 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ====== 底部游戏系统 ====== */
.m-sys {
    text-align: center;
    color: #8d6bde;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.m-sys .m-sys-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 状态折叠面板 */
.m-fold {
    background: rgba(20, 20, 45, 0.5);
    border: 1px solid rgba(142, 88, 219, 0.2);
    border-radius: 6px;
    transition: all 0.3s;
}

.m-fold:hover {
    border-color: rgba(142, 88, 219, 0.6);
    box-shadow: 0 0 10px rgba(142, 88, 219, 0.15);
}

.m-fold summary {
    padding: 12px 15px;
    color: #d8b4ed;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    list-style: none;
    outline: none;
}

.m-fold summary::-webkit-details-marker {
    display: none;
}

.m-fold-in {
    padding: 15px;
    border-top: 1px solid rgba(142, 88, 219, 0.2);
    color: #a395b8;
    font-size: 0.85em;
    line-height: 1.7;
    white-space: pre-wrap; /* 确保AI不含HTML标签时也能保持格式换行 */
}