/* 主容器样式 */
status-top, text, voice-echoes, details-panel, options-section {
    display: block; /* 确保自定义标签能够正常显示 */
    margin-bottom: 1em; /* 各模块之间留点呼吸空间 */
    background-color: var(--card-bg-color, #ffffff); /* 默认背景色，可根据平台主题变量调整 */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 顶部时间信息 */
time-info {
    display: block;
    background: linear-gradient(135deg, #7FB3D5 0%, #A9CCE3 100%); /* 渐变背景，清爽又高级 */
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.95em;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
time-info p {
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
}
time-info p:not(:last-child) {
    margin-bottom: 5px;
}
time-info p::before { /* 添加小图标点缀 */
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}
time-info p:nth-child(1)::before { content: '📅'; } /* 日期 */
time-info p:nth-child(2)::before { content: '🗺️'; } /* 坐标 */
time-info p:nth-child(3)::before { content: '💬'; } /* 周围 */
time-info p:nth-child(4)::before { content: '💞'; } /* 气氛 */

/* 小说正文 */
text {
    line-height: 1.8;
    font-size: 1.05em;
    color: var(--text-color, #333);
    padding: 20px;
    background-color: var(--main-content-bg, #fdfdfd);
    border-left: 5px solid #FFD700; /* 金色边框，彰显史诗感 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 心声 (Voice Echoes) */
voice-echoes {
    background: rgba(255, 248, 220, 0.7); /* 淡黄色背景，温馨感 */
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #FFC107; /* 强调边框 */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
voice-echoes .st {
    font-size: 1.1em;
    color: #8B4513; /* 深棕色，稳重 */
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}
voice-echoes .vi {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}
voice-echoes .vi b {
    color: #4CAF50; /* 绿色名字，生机勃勃 */
    font-weight: bold;
}
voice-echoes .vi.narrator {
    color: #E67E22; /* 旁白颜色，突出 */
    font-style: italic;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #FFC107;
}

/* 面板区（玩家、NPC、记忆等） */
details-panel details {
    background-color: var(--panel-bg-color, #f8f8f8);
    border: 1px solid var(--panel-border-color, #eee);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
details-panel details:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #7FB3D5;
}
details-panel summary {
    font-weight: bold;
    padding: 12px 15px;
    cursor: pointer;
    outline: none;
    user-select: none;
    color: var(--summary-color, #333);
    background-color: var(--summary-bg-color, #eef);
    border-radius: 8px;
    position: relative;
    list-style: none; /* 移除默认箭头 */
    transition: background-color 0.3s ease;
}
details-panel summary::-webkit-details-marker {
    display: none; /* 隐藏Chrome/Safari的默认箭头 */
}
details-panel summary::before {
    content: '▶'; /* 自定义展开/收起图标 */
    display: inline-block;
    margin-right: 0.8em;
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
    color: #7FB3D5;
}
details-panel details[open] summary::before {
    transform: rotate(90deg);
}
details-panel details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--summary-open-bg-color, #e0e0f0);
}
details-panel .code-block {
    font-family: 'Cascadia Code', 'Fira Code', monospace; /* 程序员的浪漫 */
    background-color: var(--code-bg-color, #2d2d2d);
    color: var(--code-text-color, #f8f8f2);
    padding: 15px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow-x: auto; /* 防止内容溢出 */
    white-space: pre-wrap; /* 保留格式并自动换行 */
    word-break: break-all; /* 单词过长时强制换行 */
    font-size: 0.9em;
    line-height: 1.6;
    border-top: 1px solid #444;
}

/* 选项区 */
options-section {
    background-color: var(--options-bg-color, #e8f5e9); /* 浅绿色背景，清新 */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #a5d6a7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
options-section p {
    margin: 0.5em 0;
    color: var(--options-text-color, #388e3c); /* 深绿色文字 */
    font-weight: 500;
    font-size: 1.0em;
    transition: color 0.2s ease;
}
options-section p:first-child {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 1em;
    color: #2e7d32;
}
options-section p:hover {
    color: #1b5e20; /* 鼠标悬停时颜色变深 */
}