/* 主体文本区域样式 */
text {
    display: block; /* 使自定义标签text表现为块级元素 */
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 状态栏折叠区域样式 */
details {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

details:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/* 状态栏标题样式 */
summary {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    color: #4a4a4a;
    padding: 15px 20px;
    cursor: pointer;
    outline: none; /* 移除点击时的虚线框 */
    list-style: none; /* 隐藏默认的三角箭头 */
    position: relative;
    user-select: none; /* 防止文本被选中 */
    transition: background-color 0.3s ease;
}

summary:hover {
    background-color: #f0f0f0;
    border-radius: 8px 8px 0 0; /* 鼠标悬停时顶部圆角 */
}

/* 自定义折叠/展开图标 */
summary::before {
    content: '▶'; /* 默认未展开时显示右箭头 */
    display: inline-block;
    width: 1em;
    margin-right: 0.5em;
    transition: transform 0.2s ease;
    color: #666;
}

details[open] summary::before {
    content: '▼'; /* 展开时显示下箭头 */
    transform: rotate(0deg); /* 确保箭头方向正确 */
}

/* 状态栏内容样式 */
details p, details ul, details li {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #555;
    padding: 5px 20px;
    margin: 0;
    line-height: 1.6;
}

details ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

details li {
    margin-bottom: 5px;
}

/* 剧情推荐发展方向的列表样式 */
details summary:contains("剧情推荐发展方向") {
    color: #007bff; /* 特殊颜色强调 */
    background-color: #e6f2ff;
}

details[open] summary:contains("剧情推荐发展方向") {
    border-bottom: 1px solid #d0e7ff;
}

/* 对话颜色规范的span标签，虽然颜色已在inline style定义，但可以增加字体粗细 */
span[style*="deepskyblue"],
span[style*="deeppink"],
span[style*="darkorange"],
span[style*="skyblue"] {
    font-weight: 600;
}

/* 确保details内容区域有内边距 */
details > *:not(summary) {
    padding: 10px 20px 15px 20px;
    border-top: 1px solid #eee;
}

details[open] > *:not(summary):first-of-type {
    border-top: none; /* 展开时第一个内容块不需要上边框 */
}