/* =========================================================
   AI风月 - 《错过白月光》专属：深夜微雨磨砂玻璃风 CSS
   ========================================================= */

/* 1. 顶部状态栏：微雨粉光霓虹效果 */
topbar {
    display: block;
    background: rgba(255, 133, 162, 0.08);
    border: 1px solid rgba(255, 133, 162, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    color: #ff85a2;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(255, 133, 162, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 1px;
}

/* 2. 折叠面板整体：深夜重工业磨砂玻璃质感 */
details {
    background: rgba(30, 30, 38, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 8px 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 展开时的呼吸微光特效 */
details[open] {
    border-color: rgba(255, 133, 162, 0.35);
    box-shadow: 0 4px 25px rgba(255, 133, 162, 0.12);
    background: rgba(34, 28, 36, 0.75);
}

/* 3. 折叠面板标题美化 */
details summary {
    color: #ff85a2;
    font-weight: bold;
    font-size: 0.92rem;
    cursor: pointer;
    outline: none;
    padding: 6px 0;
    list-style: none; /* 隐藏默认小三角 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

/* 自定义右侧展开指示器（优雅的加减号） */
details summary::after {
    content: "＋";
    font-size: 0.75rem;
    color: rgba(255, 133, 162, 0.5);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: "－";
    color: #ff85a2;
    transform: rotate(180deg);
}

details summary:hover {
    color: #ffb3c6;
}

/* 4. 面板内部段落排版 */
details p {
    margin: 8px 0;
    color: #e2e2e8;
    font-size: 0.85rem;
    line-height: 1.6;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

/* 移除最后一行虚线 */
details p:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 5. 展开时的雨丝淡入动画 */
details[open] p {
    animation: rainDropFade 0.45s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes rainDropFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. 小说级正文阅读区（重中之重） */
text {
    display: block;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #f5f5f7;
    margin-top: 20px;
    padding: 20px;
    background: rgba(15, 15, 20, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border-left: 4px solid #ff85a2; /* 左侧粉色呼吸条 */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

/* 正文小说分段首行缩进 */
text p {
    margin-bottom: 16px;
    text-indent: 2em; /* 优雅的二字缩进 */
    text-align: justify; /* 两端对齐，排版更工整 */
}

text p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   隐藏思维链：让AI在后台思考，玩家只看结果
   ========================================================= */
think {
    display: none !important;
}

/* =========================================================
   正文文本色彩分层：独白粉/NPC蓝
   ========================================================= */

/* 1. 女主沈清璃内心独白：浪漫淡粉色 + 优雅斜体 */
text inner {
    color: #ffb3c6 !important; /* 娇嫩的淡粉色 */
    font-style: italic; /* 斜体，突出内心戏 */
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 179, 198, 0.2); /* 微弱的粉光粉尘感 */
    display: inline;
}

/* 2. 登场NPC对话：清冷淡蓝色 + 略微加粗 */
text npc {
    color: #a2d2ff !important; /* 干净的淡蓝色 */
    font-weight: 600; /* 略微加粗，突出声线 */
    text-shadow: 0 0 5px rgba(162, 210, 255, 0.2); /* 冰冷的蓝光 */
    display: inline;
}

/* 剧情存档面板美化：科技感控制台风格 */
details p:has(b) {
    color: #ffd6ff;
}

/* 针对事件状态的特殊颜色标注 */
/* “已触发”或者“开启”显示为亮色，“未触发”显示为灰暗 */
.event-status {
    font-family: monospace;
    font-size: 0.8rem;
    color: #b3b3b3;
}

/* 核心威胁面板：深红脉动风格 */
details:has(summary:contains("核心威胁")) {
    background: rgba(100, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 50, 50, 0.4) !important;
}

details:has(summary:contains("核心威胁")) summary {
    color: #ff5e5e !important; /* 警示红 */
}

/* 怀疑值数值高亮 */
p:contains("怀疑值") {
    color: #ff8585;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 调节面板样式：带点复古游戏机感 */
details:has(summary:contains("游戏节奏")) {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #4a90e2 !important;
    border-radius: 8px;
    padding: 5px;
}

summary:contains("游戏节奏") {
    color: #4a90e2 !important;
    font-weight: bold;
    cursor: pointer;
}