/* 深夜电台 · 匿名倾诉 - Rili内置CSS */
/* 深色电台 · 午夜安魂曲风格 

/* 全局容器 */
.story-container {
    max-width: 800px;
    margin: 0 auto;
    background: radial-gradient(circle at 30% 10%, #1a1a2a, #0f0f18);
    border: 1px solid #e05a3a40;
    border-radius: 32px;
    padding: 28px 24px;
    color: #e0d4c8;
    font-family: 'Inter', 'Segoe UI', 'Noto Sans CJK SC', system-ui, sans-serif;
    line-height: 1.7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}
.story-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e05a3a, #f5b78a, #e05a3a, transparent);
    opacity: 0.6;
}

/* 状态栏 */
.meta-header {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-left: 4px solid #e05a3a;
    border-radius: 16px;
    padding: 10px 18px;
    margin-bottom: 24px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    color: #ffc69e;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 正文段落 */
.story-container p {
    text-indent: 2em;
    margin: 0.8em 0;
    font-size: 0.95rem;
    color: #d6cfc2;
    line-height: 1.75;
}

/* 主角台词（绿色） */
.bubble-host {
    background: linear-gradient(135deg, #1e3a2f, #122a1f);
    border: 1px solid #2c7a5e;
    border-radius: 24px 24px 24px 8px;
    padding: 10px 18px;
    margin: 12px 0 12px 20px;
    max-width: 85%;
    display: inline-block;
    color: #c8f0e0;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.bubble-host::before {
    content: "🎙️ 你";
    display: block;
    font-weight: 700;
    font-size: 0.7rem;
    color: #7ad0a8;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

/* 匿名来电者台词（红色） */
.bubble-caller {
    background: linear-gradient(135deg, #2e1a2a, #1f0f1c);
    border: 1px solid #c95a6e;
    border-radius: 24px 24px 8px 24px;
    padding: 10px 18px;
    margin: 12px 20px 12px 0;
    max-width: 85%;
    display: inline-block;
    color: #ffcfdf;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.bubble-caller::before {
    content: attr(data-name) " 📞";
    display: block;
    font-weight: 700;
    font-size: 0.7rem;
    color: #f09aa8;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

/* 导播或其他NPC */
.bubble-other {
    background: #24202a;
    border: 1px solid #5a4a6e;
    border-radius: 20px;
    padding: 6px 14px;
    margin: 8px 0;
    display: inline-block;
    max-width: 85%;
    font-size: 0.8rem;
    color: #cdc2e0;
}
.bubble-other::before {
    content: attr(data-name);
    font-weight: bold;
    font-size: 0.65rem;
    color: #b79ad6;
    display: block;
}

/* 内心独白（主角蓝色 / NPC粉色） */
.inner-thought-host {
    background: rgba(50, 80, 120, 0.15);
    border-left: 3px solid #5a9ef0;
    padding: 6px 14px;
    margin: 10px 0;
    font-style: italic;
    color: #b8ceff;
    font-size: 0.8rem;
    border-radius: 0 12px 12px 0;
}
.inner-thought-caller {
    background: rgba(200, 80, 120, 0.12);
    border-left: 3px solid #f09aa8;
    padding: 6px 14px;
    margin: 10px 0;
    font-style: italic;
    color: #ffcfdf;
    font-size: 0.8rem;
    border-radius: 0 12px 12px 0;
}

/* 特殊事件标记 */
.call-moment {
    background: rgba(224, 90, 58, 0.12);
    border-left: 4px solid #e05a3a;
    padding: 6px 12px;
    margin: 8px 0;
    color: #f5b78a;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.defense-break {
    background: rgba(200, 120, 70, 0.1);
    border-left: 3px solid #f5a56e;
    padding: 6px 12px;
    margin: 8px 0;
    color: #f5a56e;
    font-weight: 600;
    font-size: 0.75rem;
}

/* 折叠面板（状态栏、档案库、记忆中枢） */
.story-container details {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    margin: 12px 0;
    border: 1px solid #e05a3a40;
    overflow: hidden;
}
.story-container details[open] {
    background: rgba(0, 0, 0, 0.55);
    border-color: #e05a3a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.story-container summary {
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #ffc69e;
    cursor: pointer;
    list-style: none;
    background: rgba(0,0,0,0.3);
    transition: background 0.2s;
}
.story-container summary::-webkit-details-marker {
    display: none;
}
.story-container summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 10px;
    font-size: 0.7rem;
    transition: transform 0.2s;
    color: #e05a3a;
}
.story-container details[open] summary::before {
    transform: rotate(90deg);
}
.story-container summary:hover {
    background: rgba(224, 90, 58, 0.2);
    color: #ffdbb5;
}
.panel-content, .status-content, .memory-content, .action-content {
    padding: 12px 18px;
    font-size: 0.7rem;
    line-height: 1.6;
    color: #c0b8a8;
    border-top: 1px solid #e05a3a30;
    background: rgba(0,0,0,0.2);
}

/* 推荐行为区域 (独立于折叠面板) */
.action-options {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 48px;
    padding: 12px 18px;
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #e05a3a60;
}
.action-title {
    background: #e05a3a;
    border-radius: 40px;
    padding: 4px 14px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #1a1210;
}
.action-item {
    background: #2a2528;
    border: 1px solid #e05a3a80;
    border-radius: 40px;
    padding: 6px 18px;
    font-size: 0.8rem;
    color: #f5d2b5;
    cursor: pointer;
    transition: all 0.2s;
}
.action-item:hover {
    background: #e05a3a;
    color: #1a1210;
    border-color: #ffd0aa;
    transform: translateY(-1px);
}

/* 响应式 */
@media (max-width: 640px) {
    .story-container {
        padding: 18px 14px;
    }
    .bubble-host, .bubble-caller {
        max-width: 95%;
    }
    .action-item {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}

/* 自定义滚动条 */
.story-container ::-webkit-scrollbar {
    width: 4px;
}
.story-container ::-webkit-scrollbar-track {
    background: #1a1210;
}
.story-container ::-webkit-scrollbar-thumb {
    background: #e05a3a;
    border-radius: 4px;
}

/* 装饰分割线 */
.story-container hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e05a3a, #f5b78a, #e05a3a, transparent);
    margin: 16px 0;
}