/* =========================================
   🌟 全局暖黄色背景外框 (新增强制包裹层)
   ========================================= */
div.warm-bg-wrapper {
    background: #fffdf5; /* 极淡的暖黄护眼底色，像羊皮纸一样温润 */
    border: 2px solid #fce8b2; /* 暖金/暖黄边框 */
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(245, 222, 179, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.8);
    margin: 10px 0;
}

/* 暖黄背景下的正文排版优化 */
div.warm-bg-wrapper p {
    color: #5c4b41; /* 柔和的深木褐色文字，在暖黄底上极度护眼且高级 */
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
    text-shadow: none; /* 正文不需要阴影，保持清爽 */
}

/* =========================================
   🌍 顶部环境侦测雷达 (HUD) 美化包
   ========================================= */
div.env-hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 20, 30, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    font-weight: bold;
    backdrop-filter: blur(4px);
}
div.env-hud .hud-item { margin: 2px 6px; display: inline-block; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
div.env-hud .hud-item:nth-child(1) { color: #fbd38d; }
div.env-hud .hud-item:nth-child(2) { color: #90cdf4; }
div.env-hud .hud-item:nth-child(3) { color: #68d391; }
div.env-hud .hud-item:nth-child(4) { color: #fc8181; }
div.env-hud:hover { background: rgba(15, 20, 30, 0.8); box-shadow: 0 4px 20px rgba(144, 205, 244, 0.15); }

/* =========================================
   🌸 猛男粉色系·大一统面板美化 (状态/交互/记忆)
   ========================================= */
details.father-panel, 
details.npc-panel, 
details.memory-panel {
    background: linear-gradient(145deg, #ffb6c1, #ffc0cb); /* 统一的绝美淡粉色渐变 */
    border: 1px solid #ff99aa;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 0 12px rgba(255, 182, 193, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 统一的 Hover 光晕特效 */
details.father-panel:hover, 
details.npc-panel:hover, 
details.memory-panel:hover {
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
    transform: translateY(-2px);
}

/* 终极指令：强制面板内所有文字变白并增加防瞎眼阴影 */
details.father-panel *, 
details.npc-panel *, 
details.memory-panel * {
    color: #ffffff !important;
    line-height: 1.6 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* 统一的标题栏美化 */
details.father-panel summary, 
details.npc-panel summary, 
details.memory-panel summary {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
details.father-panel summary::-webkit-details-marker,
details.npc-panel summary::-webkit-details-marker,
details.memory-panel summary::-webkit-details-marker {
    display: none;
}

/* 状态与交互面板的数据内容区底色 (黑玻璃垫底，拉开层次) */
details.father-panel .panel-content,
details.npc-panel .panel-content {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
}

/* 状态与交互面板的垂直排版虚线 */
.panel-content .info-block {
    margin-bottom: 16px; 
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}
.panel-content .info-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 标题高亮 (换成柔和的亮粉白) */
.panel-content .block-title {
    color: #ffe4e1 !important;
    font-weight: bold;
    font-size: 15px;
    display: inline-block;
    margin-bottom: 4px;
    text-shadow: 0 0 5px rgba(255, 182, 193, 0.6) !important;
}

/* 记忆回廊特殊排版保留 (白框网格) */
details.memory-panel p { padding: 0 16px; font-weight: bold; font-size: 14px; margin-top: 16px !important; margin-bottom: 12px !important; }
details.memory-panel hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #ffffff, transparent); margin: 16px 0; }
details.memory-panel table { width: calc(100% - 32px); margin: 8px 16px 20px 16px; border-collapse: collapse; font-size: 13px; background: rgba(0, 0, 0, 0.15); border: 1px solid #ffffff !important; }
details.memory-panel th { background: rgba(255, 105, 180, 0.4); padding: 10px 8px; text-align: left; border: 1px solid #ffffff !important; white-space: nowrap; }
details.memory-panel td { padding: 10px 8px; border: 1px solid #ffffff !important; vertical-align: middle; }
details.memory-panel tr:hover td { background: rgba(255, 255, 255, 0.2); }

/* =========================================
   🔮 命运分歧点 (粉色系重制版)
   ========================================= */
div.story-branches {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb); /* 统一粉色渐变 */
    border: 1px solid #ff99aa;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.5);
}
div.story-branches .branch-header {
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 8px;
}
div.story-branches .branch-item {
    background: rgba(0, 0, 0, 0.15);
    border-left: 3px solid #ff69b4; /* 热烈的亮粉色指示条 */
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
div.story-branches .branch-item:last-child {
    border-left: 3px solid #ffb6c1; /* 浅粉色跳过条 */
    margin-bottom: 0;
}
div.story-branches .branch-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
}
div.story-branches .branch-tag {
    color: #ffe4e1;
    font-weight: bold;
    margin-right: 4px;
}