/* 隐藏逻辑计算区 */
logic {
    display: none !important;
}

/* 状态栏折叠框基础样式 */
.markdown-body details {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(224, 239, 245, 0.8) !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    padding: 2px 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(160, 195, 210, 0.1) !important;
}

.markdown-body details[open] {
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 4px 15px rgba(160, 195, 210, 0.2) !important;
}

/* 标题栏（Summary）美化 */
.markdown-body summary {
    font-weight: bold !important;
    color: #556b78 !important;
    padding: 8px 4px !important;
    cursor: pointer !important;
    list-style: none !important; /* 隐藏原生箭头 */
    display: flex !important;
    align-items: center !important;
}

/* 自定义箭头指示器 */
.markdown-body summary::before {
    content: '✦' !important;
    margin-right: 8px !important;
    color: #8da4b1 !important;
    transition: transform 0.3s !important;
}

.markdown-body details[open] summary::before {
    transform: rotate(45deg) !important;
    color: #fdf5d3 !important;
    text-shadow: 0 0 5px rgba(0,0,0,0.1) !important;
}

/* 内部表格（记忆与情报）美化 */
.markdown-body table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 10px 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(224, 239, 245, 0.5) !important;
}

.markdown-body th {
    background-color: rgba(201, 225, 233, 0.5) !important;
    color: #4a5c68 !important;
    padding: 8px !important;
    font-size: 0.9em !important;
}

.markdown-body td {
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-top: 1px solid rgba(224, 239, 245, 0.3) !important;
    padding: 8px !important;
    font-size: 0.85em !important;
    color: #6a8290 !important;
}

/* 针对心声剧场的特殊处理 (voice代码块) */
.markdown-body pre code.language-voice {
    color: #9d8189 !important;
    font-style: italic !important;
    display: block !important;
    padding: 10px !important;
    line-height: 1.6 !important;
    background: linear-gradient(90deg, rgba(241, 203, 203, 0.2) 0%, transparent 100%) !important;
}

/* 针对剧情分支的特殊处理 (python代码块) */
.markdown-body pre code.language-python {
    color: #556b78 !important;
    border-left: 3px solid #fdf5d3 !important;
    padding-left: 15px !important;
}
/* 战况盒子布局 */
.stat-box {
    margin: 5px 0;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
}

.char-name {
    font-size: 0.85em;
    font-weight: bold;
    color: #556b78;
    margin-bottom: 4px;
}

/* 进度条通用容器 */
.bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75em;
    color: #6a8290;
    margin-bottom: 3px;
}

.bar-bg {
    flex-grow: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* 血量条 - 红色 */
.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    box-shadow: 0 0 5px rgba(255, 126, 95, 0.5);
    transition: width 0.5s ease;
}

/* 魔力条 - 蓝色 */
.mp-fill {
    height: 100%;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    box-shadow: 0 0 5px rgba(37, 117, 252, 0.5);
    transition: width 0.5s ease;
}

/* 欲望条 - 粉色 */
.lust-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    box-shadow: 0 0 8px rgba(255, 154, 158, 0.6);
    transition: width 0.5s ease;
    position: relative;
}

/* 给欲望条加个动效，懂的都懂 */
.lust-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: lust-wave 2s infinite;
}

@keyframes lust-wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}