   故事阅读页面样式
   ===================================== */

/* 小说文本防复制 - 仅对单篇故事阅读页生效 */
.single-story .entry-content,
.single-story .story-content-wrapper {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 故事阅读页面专用样式 - 暗色主题版本 */
.single-story .entry-content,
.story-content {
    --story-font-size: 20px;
    max-width: 1100px !important;
    margin: 0 auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(35, 35, 35, 0.98) 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* 添加优雅的背景装饰 */
.single-story .entry-content::before,
.story-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(186, 85, 127, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 故事标题样式 */
.single-story .entry-title,
.story-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #e8c547 0%, #ba557f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    position: relative;
}

.single-story .entry-title::after,
.story-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #e8c547 50%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(232, 197, 71, 0.5);
}

/* 背景派系信息样式 */
.single-story .entry-content p:first-of-type[style*="text-align: center"],
.story-faction-info {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(186, 85, 127, 0.08) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 0 0 35px 0;
    font-style: italic;
    color: #d4d4d4;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    box-shadow: 
        0 5px 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.single-story .entry-content p:first-of-type[style*="text-align: center"]::before,
.story-faction-info::before {
    content: '✦';
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(35, 35, 35, 0.98) 100%);
    color: #e8c547;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    text-shadow: 0 0 10px rgba(232, 197, 71, 0.5);
}

/* "Story:" 标签样式 */
.single-story .entry-content p:contains("Story:"),
.story-label {
    font-size: 18px;
    font-weight: 600;
    color: #ba557f;
    margin: 35px 0 25px 0;
    padding-left: 15px;
    border-left: 4px solid #ba557f;
    background: linear-gradient(90deg, rgba(186, 85, 127, 0.15) 0%, transparent 100%);
    border-radius: 0 10px 10px 0;
    padding: 12px 0 12px 15px;
    text-shadow: 0 0 15px rgba(186, 85, 127, 0.4);
}

/* 段落样式优化 */
.single-story .entry-content p,
.story-content p {
    font-size: var(--story-font-size, 20px);
    line-height: 1.8;
    color: #e8e8e8;
    margin-bottom: 20px;
    text-align: justify;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-indent: 0;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 对话样式 */
.single-story .entry-content p:contains('"'),
.story-dialogue {
    font-style: italic;
    color: #f0f0f0;
    padding-left: 20px;
    border-left: 3px solid rgba(212, 175, 55, 0.6);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
    margin: 15px 0;
    padding: 12px 15px 12px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 强调文本样式 */
.single-story .entry-content p em,
.single-story .entry-content p i,
.story-emphasis {
    color: #e8c547;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(232, 197, 71, 0.3);
}

/* 首字母大写效果 */
.single-story .entry-content p:nth-of-type(3)::first-letter,
.story-first-letter {
    font-size: 3.5em;
    font-weight: 700;
    color: #e8c547;
    float: left;
    line-height: 0.8;
    margin: 8px 8px 0 0;
    text-shadow: 
        0 0 20px rgba(232, 197, 71, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 分隔线样式 */
.story-divider {
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e8c547 50%, transparent 100%);
    margin: 40px auto;
    border: none;
    position: relative;
    box-shadow: 0 0 10px rgba(232, 197, 71, 0.3);
}

.story-divider::after {
    content: '❋';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40, 40, 40, 0.95);
    color: #e8c547;
    padding: 0 10px;
    font-size: 16px;
    text-shadow: 0 0 15px rgba(232, 197, 71, 0.5);
}

/* 阅读进度指示器 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #e8c547 0%, #ba557f 100%);
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(232, 197, 71, 0.5);
    display: none !important;
}

/* 链接样式 */
.single-story .entry-content a,
.story-content a {
    color: #e8c547;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 197, 71, 0.3);
    transition: all 0.3s ease;
}

.single-story .entry-content a:hover,
.story-content a:hover {
    color: #f0d060;
    border-bottom-color: #f0d060;
    text-shadow: 0 0 10px rgba(240, 208, 96, 0.4);
}

/* 选中文本的样式 */
.single-story .entry-content ::selection,
.story-content ::selection {
    background: rgba(232, 197, 71, 0.3);
    color: #ffffff;
}

/* 夜间阅读模式增强 */
.single-story body {
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 100%);
}

/* ===================================== 
   阅读工具栏 - 赛博风格
   桌面：固定在阅读容器右侧边距；移动端：固定在右上角
   ===================================== */
#sultry-reading-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#sultry-reading-toolbar .sultry-toolbar-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 204, 0.5);
    background: linear-gradient(180deg, rgba(10, 15, 25, 0.98) 0%, rgba(5, 8, 15, 0.99) 100%);
    color: #00ffcc;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(0, 255, 204, 0.2),
        inset 0 0 20px rgba(0, 255, 204, 0.03),
        0 0 0 1px rgba(0, 255, 204, 0.1);
}

#sultry-reading-toolbar .sultry-toolbar-btn:hover {
    border-color: #00ffcc;
    color: #00ffcc;
    box-shadow: 
        0 0 25px rgba(0, 255, 204, 0.5),
        0 0 50px rgba(0, 255, 204, 0.2),
        inset 0 0 25px rgba(0, 255, 204, 0.08);
    transform: translateY(-2px);
}

#sultry-reading-toolbar .sultry-immersive-btn svg,
#sultry-reading-toolbar .sultry-back-top-btn {
    filter: drop-shadow(0 0 6px rgba(0, 255, 204, 0.6));
}

#sultry-reading-toolbar .sultry-immersive-btn svg {
    width: 28px;
    height: 28px;
}

#sultry-reading-toolbar .sultry-font-btn {
    font-family: var(--global-body-font-family, inherit);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #00ffcc;
}

#sultry-reading-toolbar .sultry-font-btn:hover {
    color: #00ffcc;
}

#sultry-reading-toolbar .sultry-back-top-btn {
    font-size: 22px !important;
    line-height: 1;
}

@media (max-width: 768px) {
    #sultry-reading-toolbar .sultry-toolbar-btn {
        width: 44px;
        height: 44px;
    }
    #sultry-reading-toolbar .sultry-immersive-btn svg {
        width: 22px;
        height: 22px;
    }
    #sultry-reading-toolbar .sultry-font-btn {
        font-size: 15px;
    }
    #sultry-reading-toolbar .sultry-back-top-btn {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    .single-story .entry-content,
    .story-content { margin: 20px; padding: 30px 20px; border-radius: 15px; }
    .single-story .entry-title,
    .story-title { font-size: 2em; margin-bottom: 25px; }
    .single-story .entry-content p,
    .story-content p { font-size: var(--story-font-size, 17px) !important; line-height: 1.7; }
    .single-story .entry-content p:nth-of-type(3)::first-letter,
    .story-first-letter { font-size: 2.5em; margin: 4px 6px 0 0; }
}
@media (max-width: 480px) {
    .single-story .entry-content,
    .story-content { margin: 15px; padding: 25px 15px; }
    .single-story .entry-title,
    .story-title { font-size: 1.8em; }
    .single-story .entry-content p,
    .story-content p { font-size: var(--story-font-size, 16px) !important; text-align: left; }
}
