/* 针对自定义正文标签的样式 */
text {
    display: block;
    line-height: 1.8;
    font-size: 16px;
    color: #e0e0e0;
    padding: 15px;
    background: linear-gradient(180deg, rgba(30,30,35,0.8) 0%, rgba(20,20,25,0.8) 100%);
    border-left: 4px solid #FF1493; /* 侧边装饰条，呼应女性角色色调 */
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: justify;
}

/* 状态栏与剧情分支的折叠容器美化 */
details {
    background: rgba(40, 40, 45, 0.9);
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.15);
    border: 1px solid rgba(255, 20, 147, 0.5);
}

/* 折叠标题样式 */
summary {
    padding: 12px 15px;
    font-weight: bold;
    color: #FFB6C1;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    background: rgba(255, 20, 147, 0.05);
    outline: none;
}

/* 自定义折叠箭头（SVG图标） */
summary::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF1493'%3E%3Cpath d='M10 17l5-5-5-5v10z'/%3E%3C/svg%3E");
    background-size: contain;
    transition: transform 0.3s ease;
}

details[open] summary::before {
    transform: rotate(90deg);
}

/* 状态栏内部文字排版 */
details p {
    padding: 8px 20px;
    margin: 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #ccc;
}

/* 角色颜色视觉增强 */
span {
    font-weight: 500;
    transition: text-shadow 0.3s ease;
}

/* 给特定颜色的文字加一点微弱的发光效果，增加质感 */
span[style*="#FF1493"] { text-shadow: 0 0 5px rgba(255, 20, 147, 0.3); } /* 深粉 */
span[style*="#00008B"] { text-shadow: 0 0 5px rgba(0, 0, 139, 0.3); } /* 深蓝 */

/* 移动端适配：确保折叠框不会太窄 */
@media (max-width: 768px) {
    text { font-size: 15px; padding: 12px; }
    summary { font-size: 14px; }
}