jianzhihuixiang/alacarte-novel-website/chapters/chapter-131.html

969 lines
40 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>凯蒂的指引 - 阿拉德:剑之回响</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-primary: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
--text-primary: #e0e0e0;
--text-secondary: #888;
--accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--border-color: rgba(255,255,255,0.1);
--btn-bg: rgba(255,255,255,0.1);
--btn-hover: rgba(255,255,255,0.2);
}
[data-theme="light"] {
--bg-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
--text-primary: #333;
--text-secondary: #666;
--border-color: rgba(0,0,0,0.1);
--btn-bg: rgba(0,0,0,0.05);
--btn-hover: rgba(0,0,0,0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Serif SC', serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.8;
min-height: 100vh;
transition: all 0.3s ease;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
padding-bottom: 120px;
}
/* 顶部导航 */
.top-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(0,0,0,0.3);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
z-index: 1000;
padding: 10px 20px;
}
.top-nav-content {
max-width: 800px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-link {
color: var(--text-primary);
text-decoration: none;
font-family: 'Noto Sans SC', sans-serif;
font-size: 14px;
padding: 8px 16px;
background: var(--btn-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
transition: all 0.3s ease;
}
.nav-link:hover {
background: var(--btn-hover);
}
.chapter-header {
text-align: center;
padding: 80px 0 40px;
border-bottom: 1px solid var(--border-color);
margin-bottom: 40px;
}
.chapter-number {
font-size: 14px;
color: var(--text-secondary);
letter-spacing: 4px;
text-transform: uppercase;
margin-bottom: 10px;
}
.chapter-title {
font-size: 32px;
font-weight: 700;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 20px;
}
.chapter-meta {
font-size: 14px;
color: var(--text-secondary);
}
.chapter-content {
font-size: 18px;
line-height: 2;
text-align: justify;
}
.chapter-content p {
margin-bottom: 1.5em;
text-indent: 2em;
}
.chapter-content p:first-of-type::first-letter {
font-size: 3em;
float: left;
line-height: 1;
margin-right: 8px;
margin-top: -5px;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 700;
}
/* 固定底部导航 */
.fixed-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(0,0,0,0.3);
backdrop-filter: blur(10px);
border-top: 1px solid var(--border-color);
z-index: 1000;
padding: 15px 20px;
}
.fixed-nav-content {
max-width: 800px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-btn {
padding: 12px 24px;
background: var(--btn-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
text-decoration: none;
transition: all 0.3s ease;
font-family: 'Noto Sans SC', sans-serif;
font-size: 14px;
cursor: pointer;
}
.nav-btn:hover {
background: var(--btn-hover);
transform: translateY(-2px);
}
.nav-btn.disabled {
opacity: 0.3;
cursor: not-allowed;
pointer-events: none;
}
/* 右侧滚动按钮 */
.scroll-buttons {
position: fixed;
right: 20px;
bottom: 90px;
display: flex;
flex-direction: column;
gap: 10px;
z-index: 1001;
}
.scroll-btn {
width: 40px;
height: 40px;
border-radius: 8px;
background: var(--btn-bg);
border: 1px solid var(--border-color);
color: var(--text-primary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
transition: all 0.3s ease;
font-family: 'Noto Sans SC', sans-serif;
}
.scroll-btn:hover {
background: var(--btn-hover);
}
/* TTS控制面板 */
.tts-panel {
position: fixed;
left: 20px;
bottom: 90px;
display: flex;
flex-direction: column;
gap: 10px;
z-index: 1002;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(10px);
border-radius: 12px;
border: 1px solid var(--border-color);
padding: 15px;
min-width: 180px;
}
.tts-title {
font-size: 12px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 5px;
}
.tts-controls {
display: flex;
gap: 8px;
margin-bottom: 10px;
}
.tts-btn {
width: 36px;
height: 36px;
border-radius: 8px;
background: var(--btn-bg);
border: 1px solid var(--border-color);
color: var(--text-primary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
transition: all 0.3s ease;
font-family: 'Noto Sans SC', sans-serif;
}
.tts-btn:hover {
background: var(--btn-hover);
}
.tts-btn.active {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-color: #667eea;
}
.tts-progress {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
}
.tts-progress-bar {
flex: 1;
height: 4px;
background: var(--btn-bg);
border-radius: 2px;
overflow: hidden;
}
.tts-progress-fill {
height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
width: 0%;
transition: width 0.1s ease;
}
.tts-time {
font-size: 12px;
color: var(--text-secondary);
font-family: 'Noto Sans SC', sans-serif;
min-width: 80px;
}
.tts-speed {
display: flex;
align-items: center;
gap: 8px;
}
.tts-speed-label {
font-size: 12px;
color: var(--text-secondary);
font-family: 'Noto Sans SC', sans-serif;
}
.tts-speed-select {
padding: 4px 8px;
background: var(--btn-bg);
border: 1px solid var(--border-color);
border-radius: 4px;
color: var(--text-primary);
font-size: 12px;
cursor: pointer;
font-family: 'Noto Sans SC', sans-serif;
}
@media (max-width: 600px) {
.tts-panel {
left: 10px;
2026-03-29 14:08:36 +08:00
right: 10px;
bottom: auto;
top: 60px;
2026-03-29 14:08:36 +08:00
min-width: auto;
padding: 12px;
width: auto;
z-index: 1003;
}
.tts-btn {
width: 32px;
height: 32px;
font-size: 12px;
}
2026-03-29 14:08:36 +08:00
.tts-title {
font-size: 11px;
}
.tts-speed-label {
font-size: 11px;
}
.tts-speed-select {
padding: 3px 6px;
font-size: 11px;
}
.tts-time {
font-size: 11px;
min-width: 60px;
}
/* 手机端隐藏滚动按钮给TTS腾空间 */
.scroll-buttons {
display: none;
}
2026-03-29 14:08:36 +08:00
}
@media (max-width: 400px) {
.tts-panel {
top: 55px;
2026-03-29 14:08:36 +08:00
padding: 10px;
}
.tts-controls {
gap: 6px;
}
.tts-btn {
width: 28px;
height: 28px;
font-size: 11px;
}
}
/* 侧边栏 - 标题固定,内容滚动 */
.sidebar {
position: fixed;
right: 20px;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.5);
backdrop-filter: blur(10px);
border-radius: 12px;
border: 1px solid var(--border-color);
width: 200px;
max-height: 70vh;
z-index: 999;
display: flex;
flex-direction: column;
}
.sidebar-title {
font-size: 14px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 2px;
padding: 15px 20px;
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
}
.sidebar-content {
overflow-y: auto;
padding: 10px 20px 20px;
flex: 1;
scrollbar-width: thin;
scrollbar-color: transparent transparent;
transition: scrollbar-color 0.3s ease;
}
.sidebar-content:hover {
scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.sidebar-content::-webkit-scrollbar {
width: 6px;
}
.sidebar-content::-webkit-scrollbar-track {
background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 3px;
transition: background 0.3s ease;
}
.sidebar-content:hover::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.3);
}
.sidebar-content:hover::-webkit-scrollbar-thumb:hover {
background: rgba(255,255,255,0.5);
}
[data-theme="light"] .sidebar-content:hover {
scrollbar-color: rgba(0,0,0,0.3) transparent;
}
[data-theme="light"] .sidebar-content:hover::-webkit-scrollbar-thumb {
background: rgba(0,0,0,0.3);
}
[data-theme="light"] .sidebar-content:hover::-webkit-scrollbar-thumb:hover {
background: rgba(0,0,0,0.5);
}
.sidebar-chapter {
display: block;
padding: 8px 0;
color: #aaa;
text-decoration: none;
font-size: 13px;
border-bottom: 1px solid rgba(255,255,255,0.05);
transition: all 0.3s ease;
line-height: 1.5;
}
.sidebar-chapter:hover {
color: #667eea;
}
.sidebar-chapter.current {
color: #667eea;
font-weight: 600;
}
@media (max-width: 1200px) {
.sidebar {
display: none;
}
}
@media (max-width: 600px) {
.chapter-title {
font-size: 24px;
}
.chapter-content {
font-size: 16px;
}
.fixed-nav-content {
gap: 10px;
}
.nav-btn {
padding: 10px 15px;
font-size: 12px;
}
.scroll-buttons {
right: 10px;
bottom: 80px;
}
.scroll-btn {
width: 36px;
height: 36px;
}
}
/* 滚动条样式 */
.sidebar::-webkit-scrollbar {
width: 4px;
}
.sidebar::-webkit-scrollbar-track {
background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.2);
border-radius: 2px;
}
</style>
</head>
<body>
<!-- 顶部导航 -->
<nav class="top-nav">
<div class="top-nav-content">
<a href="../index.html" class="nav-link">返回首页</a>
<button class="nav-link" id="themeToggle">切换主题</button>
</div>
</nav>
<div class="container">
<header class="chapter-header">
<div class="chapter-number">Chapter 131</div>
<h1 class="chapter-title">{{CHAPTER_TITLE}}</h1>
</header>
<article class="chapter-content">
<p>清晨,紫色的天空依然没有变化。</p>
<p>林克走出教堂,艾丽丝已经在外面等着了。她穿着简单的长袍,法杖握在手中,紫色的长发在微风中轻轻飘动。</p>
<p>"早安。"艾丽丝微笑道。</p>
<p>"早安。"林克走到她身边,"今天要见凯蒂?"</p>
<p>"是的。"艾丽丝点头,"她住在营地东侧,我带你去。"</p>
<p>尼梅尔也跑了过来:"我也去!我想听听凯蒂姐姐讲赫尔德的事!"</p>
<p>艾丽丝看了看林克,见他点头,便说:"好,一起走吧。"</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p>三人沿着营地的街道向东走去。</p>
<p>林克边走边观察周围的环境——残破的建筑被改造成住所,街道上行人稀少,大多是老人和伤者。偶尔有几个冒险家走过,脸上都带着警惕和疲惫。</p>
<p>"魔界营地有多少人?"林克问道。</p>
<p>"大约三百多人。"艾丽丝回答,"大多是赫尔德计划的受害者,有些被使徒力量侵蚀,有些失去了家园,还有些是被驱逐的魔界人。"</p>
<p>"三百多人..."林克皱眉,"赫尔德伤害了这么多人?"</p>
<p>"这只是冰山一角。"艾丽丝轻声说,"在整个魔界,被她伤害的人不计其数。"</p>
<p>尼梅尔在一旁补充:"凯蒂姐姐说,赫尔德的计划需要大量能量,而能量的来源就是使徒死亡时释放的力量。为了收集能量,她不惜牺牲无数生命。"</p>
<p>林克握紧拳头,眼中闪过一丝冷意。</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p>正走着,前方突然传来一阵尖叫。</p>
<p>"救命!有怪物!"</p>
<p>林克立刻拔出细雪之舞,朝声音传来的方向冲去。</p>
<p>转过一个街角,他看到一群黑色的蝙蝠正在围攻一个老人。那些蝙蝠体型硕大,眼睛泛着红光,口中露出尖锐的獠牙。</p>
<p>"魔界蝙蝠!"尼梅尔喊道,"它们会吸血!"</p>
<p>林克没有犹豫,直接冲入蝙蝠群中。</p>
<p>"流心!"</p>
<p>他的身影瞬间变得模糊,进入流心状态。紧接着,光剑划出一道冰蓝色的弧线。</p>
<p>"流心:跃!"</p>
<p>他腾空而起,剑气从空中劈下,瞬间斩落了五六只蝙蝠。剩余的蝙蝠尖叫着四散而逃。</p>
<p>"没事吧?"林克走到老人面前。</p>
<p>"没...没事..."老人颤抖着说,"谢谢你,年轻人..."</p>
<p>艾丽丝和尼梅尔也赶到了。</p>
<p>"这些蝙蝠最近越来越多了。"艾丽丝皱眉,"可能是赫尔德的爪牙在附近活动,惊扰了它们。"</p>
<p>林克收起光剑:"走吧,别让凯蒂久等。"</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p>凯蒂的住所是一栋半塌的建筑,但内部被魔法加固过,显得十分坚固。</p>
<p>门口站着两个年轻的女魔法师,看到艾丽丝,立刻行礼:"艾丽丝大人!"</p>
<p>"凯蒂在里面吗?"艾丽丝问道。</p>
<p>"在的,请进。"</p>
<p>三人走进建筑,穿过一条走廊,来到一间宽敞的房间。</p>
<p>房间里摆满了书籍和魔法道具,墙上挂着各种符文和地图。一个中年女人坐在书桌前,正在翻阅一本古老的典籍。她有着灰白色的短发,眼神锐利而智慧,身上穿着法师长袍。</p>
<p>"艾丽丝,你来了。"凯蒂抬起头,看到林克,眼中闪过一丝惊讶,"这位就是..."</p>
<p>"林克。"艾丽丝介绍道,"从阿拉德大陆来的剑士,也是...我的重要的人。"</p>
<p>凯蒂放下典籍,站起身来,仔细打量林克。</p>
<p>"果然不同凡响。"她点头,"能被艾丽丝这样评价的人,一定不简单。"</p>
<p>她伸出手:"我是凯蒂,魔界营地的魔法师。欢迎来到魔界。"</p>
<p>林克握住她的手:"幸会。"</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p>四人围坐在一张圆桌旁。</p>
<p>尼梅尔好奇地四处张望,艾丽丝安静地坐在林克身边,凯蒂则从书架上取下一张地图,铺在桌上。</p>
<p>"林克,你知道赫尔德是谁吗?"凯蒂问道。</p>
<p>"只知道她是魔界的统治者,也是使徒之一。"林克回答。</p>
<p>凯蒂点头:"这不够。你需要了解更多,才能对抗她。"</p>
<p>她指着地图上的一个位置:"这里是地轨中心,赫尔德的大本营。她在那里进行着一个叫'创新世纪'的计划。"</p>
<p>"创新世纪?"林克皱眉。</p>
<p>"是的。"凯蒂严肃地说,"赫尔德想要重造整个世界,创造一个全新的宇宙。但这需要极其庞大的能量,而能量的来源...就是使徒死亡时释放的力量。"</p>
<p>艾丽丝接过话头:"她策划了一系列事件,让冒险家杀死使徒。希洛克、罗特斯、狄瑞吉、安徒恩...每一个使徒的死亡,都为她的计划提供了能量。"</p>
<p>林克脸色一沉:"她把使徒当成燃料?"</p>
<p>"没错。"凯蒂点头,"下一个目标是卢克,海伯伦星的王。但现在..."</p>
<p>她看向林克,眼中闪过一丝欣慰:"因为你救了卢克,她的计划被打乱了。"</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p>"所以我救卢克是对的。"林克说。</p>
<p>"非常正确。"凯蒂赞许道,"卢克是光与暗的使徒,他死亡会释放巨大的能量。赫尔德本来计划让他在寂静城被杀,但你的介入改变了这一切。"</p>
<p>她叹了口气:"但也因此,赫尔德开始重视你了。在她眼中,你是一个威胁。"</p>
<p>"我不在乎。"林克冷声说,"她想杀我,随时可以来试试。"</p>
<p>凯蒂笑了笑:"有志气。但你要小心,赫尔德不是普通的敌人。她是第二使徒,拥有操纵空间的能力,被称为'魔界女王'。在魔界,她的势力根深蒂固,爪牙遍布各地。"</p>
<p>"她有什么弱点吗?"林克问道。</p>
<p>凯蒂沉思了片刻:"有。她的计划需要使徒死亡,如果你能保护剩余的使徒,她就无法完成创新世纪。"</p>
<p>"剩余的使徒还有谁?"</p>
<p>"米歇尔,第七使徒,目前在黑色大地。"凯蒂说,"还有卡西利亚斯,第九使徒,他是剑圣,可能在魔界某处。"</p>
<p>"卡西利亚斯?剑圣?"林克眼中闪过兴趣。</p>
<p>"是的。"凯蒂点头,"他是公认的最强剑士,如果你能找到他,也许能学到更多剑术。"</p>
<p>林克心中一动。剑圣卡西利亚斯,这个名字他听过。如果能见到他...</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p>"凯蒂姐姐。"尼梅尔突然开口,"赫尔德的爪牙会来找林克吗?"</p>
<p>"一定会。"凯蒂严肃地说,"昨天那些士兵只是试探,真正的追兵很快就会来。"</p>
<p>她看向林克:"你有两个选择。第一,离开魔界,回到阿拉德大陆,这样赫尔德的爪牙很难追杀你。第二,留下来,与她正面对抗。"</p>
<p>"我选第二条路。"林克毫不犹豫地说。</p>
<p>凯蒂眼中闪过一丝赞许:"我就知道你会这么说。"</p>
<p>她站起身,从书架上取下一枚水晶,递给林克:"这是通讯水晶,遇到危险可以联系我。另外..."</p>
<p>她从抽屉里取出一张令牌:"这是营地的通行证,有了它,你可以自由进出魔界营地的各个区域。"</p>
<p>林克接过两样东西:"谢谢。"</p>
<p>"不用谢。"凯蒂微笑道,"你救了卢克,已经帮了我们大忙。如果你愿意继续对抗赫尔德,我们是盟友。"</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p>离开凯蒂的住所后,三人沿着街道往回走。</p>
<p>艾丽丝一直沉默着,直到快到教堂时,她才开口:"林克..."</p>
<p>"嗯?"</p>
<p>"谢谢你...愿意陪我对抗赫尔德。"她轻声说。</p>
<p>林克握住她的手:"我说过,你是我的人,我不会让你一个人承受。"</p>
<p>艾丽丝的眼眶微微泛红,她低下头,轻声说:"我知道...但我还是很害怕。"</p>
<p>"怕什么?"</p>
<p>"怕连累你..."艾丽丝抬起头,紫色的眼睛里满是担忧,"赫尔德太强大了,如果因为我的事让你受伤..."</p>
<p>林克打断她的话,将她拥入怀中。</p>
<p>"艾丽丝。"他在她耳边轻声说,"我既然来了,就不会退缩。不管赫尔德有多强,我都会保护你。"</p>
<p>艾丽丝靠在他怀里,眼泪终于滑落。</p>
<p>"林克..."</p>
<p>尼梅尔站在一旁,看着两人相拥的身影,心中涌起一股复杂的情绪。</p>
<p>"艾丽丝姐姐真的很幸福..."她想,"有一个愿意为她冒险的人..."</p>
<p>她看向林克的侧脸,脸微微泛红。</p>
<p>"林克...真的好温柔..."</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p>傍晚,林克坐在教堂后面的小院里,看着紫色的天空。</p>
<p>艾丽丝在厨房准备晚餐,尼梅尔则去营地边缘巡逻了。</p>
<p>"魔界..."林克喃喃自语。</p>
<p>这里与阿拉德大陆完全不同。紫色的天空,扭曲的空间,弥漫的能量...一切都显得压抑而危险。</p>
<p>但他并不后悔来这里。</p>
<p>为了艾丽丝,为了对抗赫尔德,为了保护那些被伤害的人...这一切都值得。</p>
<p>他握紧细雪之舞,眼中闪过一丝坚定。</p>
<p>"赫尔德...我一定会阻止你。"</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p>就在这时,尼梅尔匆匆跑进小院。</p>
<p>"林克!艾丽丝姐姐!"</p>
<p>"怎么了?"林克站起身。</p>
<p>"营地外面有动静!"尼梅尔喘着气说,"好像是赫尔德的主力部队!"</p>
<p>林克脸色一变,拔出细雪之舞。</p>
<p>"走,去看看。"</p>
<p>艾丽丝也拿着法杖跑了出来,三人一起朝营地边缘走去。</p>
<p>远处,数十个身穿黑色铠甲的士兵正在集合,为首的是一个身材高大的男人,手持巨剑,眼中闪烁着凶光。</p>
<p>"那个男人..."尼梅尔脸色发白,"是赫尔德麾下的将军,'铁血'卡尔!"</p>
<p>林克眯起眼睛,看着那个男人。</p>
<p>"终于来了个像样的对手..."</p>
<p>他握紧光剑,冰蓝色的光芒在紫色的天空下格外耀眼。</p>
<p>战斗,即将开始。</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0;">···</p>
<p style="text-align: center; color: var(--text-secondary); text-indent: 0; margin-top: 2em;">(第一百三十一章完)</p>
</article>
</div>
<!-- 固定底部导航 -->
<nav class="fixed-nav">
<div class="fixed-nav-content">
<a href="chapter-130.html" class="nav-btn ">上一章</a>
<a href="../chapters.html" class="nav-btn">目录</a>
<a href="chapter-132.html" class="nav-btn ">下一章</a>
</div>
</nav>
<!-- 右侧滚动按钮 -->
<div class="scroll-buttons">
<button class="scroll-btn" id="scrollTop" title="回到顶部"></button>
<button class="scroll-btn" id="scrollBottom" title="回到底部"></button>
</div>
<!-- TTS语音朗读面板 -->
<div class="tts-panel" id="ttsPanel">
<div class="tts-title">语音朗读</div>
<div class="tts-controls">
<button class="tts-btn" id="ttsPlay" title="播放"></button>
<button class="tts-btn" id="ttsPause" title="暂停"></button>
<button class="tts-btn" id="ttsStop" title="停止"></button>
</div>
<div class="tts-progress">
<div class="tts-progress-bar">
<div class="tts-progress-fill" id="ttsProgressFill"></div>
</div>
<div class="tts-time" id="ttsTime">0 / 0</div>
</div>
<div class="tts-speed">
<span class="tts-speed-label">速度:</span>
<select class="tts-speed-select" id="ttsSpeed">
<option value="0.5">慢速</option>
<option value="0.75">较慢</option>
<option value="1" selected>正常</option>
<option value="1.25">较快</option>
<option value="1.5">快速</option>
<option value="2">极速</option>
</select>
</div>
</div>
<!-- 侧边栏章节导航 -->
<aside class="sidebar">
<div class="sidebar-title">章节导航</div>
<div class="sidebar-content" id="sidebarContent">
<a href="chapter-101.html" class="sidebar-chapter ">第101章不灭回廊</a>
<a href="chapter-102.html" class="sidebar-chapter ">第102章机械王座</a>
<a href="chapter-103.html" class="sidebar-chapter ">第103章番外·寂静城的早晨</a>
<a href="chapter-104.html" class="sidebar-chapter ">第104章番外·贝奇与艾泽拉</a>
<a href="chapter-105.html" class="sidebar-chapter ">第105章番外·卢克的嘱托</a>
<a href="chapter-106.html" class="sidebar-chapter ">第106章时空之门的召唤</a>
<a href="chapter-107.html" class="sidebar-chapter ">第107章格兰之火</a>
<a href="chapter-108.html" class="sidebar-chapter ">第108章瘟疫之源</a>
<a href="chapter-109.html" class="sidebar-chapter ">第109章卡勒特之初</a>
<a href="chapter-110.html" class="sidebar-chapter ">第110章无法地带</a>
<a href="chapter-111.html" class="sidebar-chapter ">第111章暗黑圣战</a>
<a href="chapter-112.html" class="sidebar-chapter ">第112章昔日悲鸣</a>
<a href="chapter-113.html" class="sidebar-chapter ">第113章凛冬</a>
<a href="chapter-114.html" class="sidebar-chapter ">第114章迷之觉悟</a>
<a href="chapter-115.html" class="sidebar-chapter ">第115章番外·艾丽丝的抉择</a>
<a href="chapter-116.html" class="sidebar-chapter ">第116章番外·后宫的日常</a>
<a href="chapter-117.html" class="sidebar-chapter ">第117章番外·与赛丽亚的约会</a>
<a href="chapter-118.html" class="sidebar-chapter ">第118章番外·与奥菲利亚的重逢</a>
<a href="chapter-119.html" class="sidebar-chapter ">第119章番外·与敏泰的雪山之行</a>
<a href="chapter-120.html" class="sidebar-chapter ">第120章番外·与莎兰的魔法时光</a>
<a href="chapter-121.html" class="sidebar-chapter ">第121章番外·与帕丽丝的格斗训练</a>
<a href="chapter-122.html" class="sidebar-chapter ">第122章番外·与莫纳亨的念动力</a>
<a href="chapter-123.html" class="sidebar-chapter ">第123章番外·与泽丁的天界巡逻</a>
<a href="chapter-124.html" class="sidebar-chapter ">第124章番外·与马琳的骑士之道</a>
<a href="chapter-125.html" class="sidebar-chapter ">第125章番外·与皇女的皇家约会</a>
<a href="chapter-126.html" class="sidebar-chapter ">第126章番外·与米娅的工坊时光</a>
<a href="chapter-127.html" class="sidebar-chapter ">第127章番外·与贝奇的人造之心</a>
<a href="chapter-128.html" class="sidebar-chapter ">第128章番外·与艾泽拉的守护誓言</a>
<a href="chapter-129.html" class="sidebar-chapter ">第129章魔界的召唤</a>
<a href="chapter-130.html" class="sidebar-chapter ">第130章魔界营地</a>
<a href="chapter-131.html" class="sidebar-chapter current">第131章凯蒂的指引</a>
<a href="chapter-132.html" class="sidebar-chapter ">第132章营地危机</a>
<a href="chapter-133.html" class="sidebar-chapter ">第133章尼梅尔的心意</a>
<a href="chapter-134.html" class="sidebar-chapter ">第134章中央公园</a>
<a href="chapter-135.html" class="sidebar-chapter ">第135章剑圣的试炼</a>
<a href="chapter-136.html" class="sidebar-chapter ">第136章地轨中心</a>
<a href="chapter-137.html" class="sidebar-chapter ">第137章魔剑士阿斯兰</a>
<a href="chapter-138.html" class="sidebar-chapter ">第138章泪目之眼</a>
<a href="chapter-139.html" class="sidebar-chapter ">第139章使徒会晤</a>
<a href="chapter-140.html" class="sidebar-chapter ">第140章复仇之剑</a>
<a href="chapter-141.html" class="sidebar-chapter ">第141章寂静城再访</a>
<a href="chapter-142.html" class="sidebar-chapter ">第142章时间之钥</a>
<a href="chapter-143.html" class="sidebar-chapter ">第143章翡翠梦魇</a>
<a href="chapter-144.html" class="sidebar-chapter ">第144章诅咒的守护者</a>
<a href="chapter-145.html" class="sidebar-chapter ">第145章精灵的誓言</a>
<a href="chapter-146.html" class="sidebar-chapter ">第146章深渊之眼</a>
<a href="chapter-147.html" class="sidebar-chapter ">第147章赫尔德的仪式</a>
<a href="chapter-148.html" class="sidebar-chapter ">第148章战后余晖</a>
<a href="chapter-149.html" class="sidebar-chapter ">第149章泰波尔斯的召唤</a>
<a href="chapter-150.html" class="sidebar-chapter ">第150章天空之城</a>
<a href="chapter-151.html" class="sidebar-chapter ">第151章风暴试炼</a>
<a href="chapter-152.html" class="sidebar-chapter ">第152章光芒与暗影</a>
<a href="chapter-153.html" class="sidebar-chapter ">第153章天空之战</a>
<a href="chapter-154.html" class="sidebar-chapter ">第154章天空之战</a>
<a href="chapter-155.html" class="sidebar-chapter ">第155章天空之战</a>
<a href="chapter-156.html" class="sidebar-chapter ">第156章格兰之森异象</a>
<a href="chapter-157.html" class="sidebar-chapter ">第157章魔界深处</a>
<a href="chapter-158.html" class="sidebar-chapter ">第158章幻象迷宫</a>
<a href="chapter-159.html" class="sidebar-chapter ">第159章无形之战</a>
<a href="chapter-160.html" class="sidebar-chapter ">第160章无形者的秘密</a>
<a href="chapter-161.html" class="sidebar-chapter ">第161章光之试炼</a>
</div>
</aside>
<script>
// 记录阅读进度
let readChapters = JSON.parse(localStorage.getItem('readChapters') || '[]');
if (!readChapters.includes(131)) {
readChapters.push({{CHAPTER_ID}});
localStorage.setItem('readChapters', JSON.stringify(readChapters));
}
// 主题切换
const themeToggle = document.getElementById('themeToggle');
const savedTheme = localStorage.getItem('theme') || 'dark';
document.documentElement.setAttribute('data-theme', savedTheme);
themeToggle.textContent = savedTheme === 'dark' ? '浅色' : '深色';
themeToggle.addEventListener('click', () => {
const currentTheme = document.documentElement.getAttribute('data-theme');
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', newTheme);
localStorage.setItem('theme', newTheme);
themeToggle.textContent = newTheme === 'dark' ? '浅色' : '深色';
});
// 滚动到顶部
document.getElementById('scrollTop').addEventListener('click', () => {
window.scrollTo({ top: 0, behavior: 'smooth' });
});
// 滚动到底部
document.getElementById('scrollBottom').addEventListener('click', () => {
window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' });
});
// 页面加载时,侧边栏自动滚动到当前章节
window.addEventListener('load', () => {
const sidebarContent = document.getElementById('sidebarContent');
const currentChapter = sidebarContent.querySelector('.current');
if (currentChapter) {
currentChapter.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
});
// ========== TTS语音朗读功能 ==========
let ttsSynth = window.speechSynthesis;
let ttsUtterance = null;
let ttsText = '';
let ttsSentences = [];
let ttsCurrentIndex = 0;
let ttsIsPlaying = false;
let ttsIsPaused = false;
let ttsSpeed = 1;
// 初始化:提取章节内容
function initTTS() {
const contentEl = document.querySelector('.chapter-content');
if (!contentEl) return;
// 获取所有段落文本清理HTML标签
ttsText = contentEl.innerText || contentEl.textContent;
// 分割成句子(中文按句号、问号、感叹号分割)
ttsSentences = ttsText.match(/[^。!?\n]+[。!?\n]+|[^。!?\n]+$/g) || [ttsText];
ttsSentences = ttsSentences.filter(s => s.trim().length > 0);
updateTTSProgress();
}
// 更新进度显示
function updateTTSProgress() {
const total = ttsSentences.length;
const current = ttsCurrentIndex;
document.getElementById('ttsTime').textContent = `${current} / ${total}`;
const percent = total > 0 ? (current / total * 100) : 0;
document.getElementById('ttsProgressFill').style.width = `${percent}%`;
}
// 播放当前句子
function playCurrentSentence() {
if (ttsCurrentIndex >= ttsSentences.length) {
stopTTS();
return;
}
const text = ttsSentences[ttsCurrentIndex].trim();
ttsUtterance = new SpeechSynthesisUtterance(text);
ttsUtterance.lang = 'zh-CN';
ttsUtterance.rate = ttsSpeed;
// 尝试选择中文语音
const voices = ttsSynth.getVoices();
const zhVoice = voices.find(v => v.lang.includes('zh') || v.lang.includes('CN'));
if (zhVoice) {
ttsUtterance.voice = zhVoice;
}
ttsUtterance.onend = () => {
if (ttsIsPlaying && !ttsIsPaused) {
ttsCurrentIndex++;
updateTTSProgress();
playCurrentSentence();
}
};
ttsUtterance.onerror = (e) => {
console.error('TTS error:', e);
if (ttsIsPlaying) {
ttsCurrentIndex++;
updateTTSProgress();
playCurrentSentence();
}
};
ttsSynth.speak(ttsUtterance);
}
// 播放
function playTTS() {
if (ttsSentences.length === 0) {
initTTS();
}
if (ttsIsPaused) {
ttsSynth.resume();
ttsIsPaused = false;
} else {
ttsIsPlaying = true;
playCurrentSentence();
}
document.getElementById('ttsPlay').classList.add('active');
document.getElementById('ttsPause').classList.remove('active');
}
// 暂停
function pauseTTS() {
if (ttsIsPlaying) {
ttsSynth.pause();
ttsIsPaused = true;
document.getElementById('ttsPlay').classList.remove('active');
document.getElementById('ttsPause').classList.add('active');
}
}
// 停止
function stopTTS() {
ttsSynth.cancel();
ttsIsPlaying = false;
ttsIsPaused = false;
ttsCurrentIndex = 0;
updateTTSProgress();
document.getElementById('ttsPlay').classList.remove('active');
document.getElementById('ttsPause').classList.remove('active');
}
// 设置速度
function setTTSSpeed(speed) {
ttsSpeed = parseFloat(speed);
// 如果正在播放,需要重新开始当前句子
if (ttsIsPlaying && !ttsIsPaused) {
ttsSynth.cancel();
playCurrentSentence();
}
}
// 绑定事件
document.getElementById('ttsPlay').addEventListener('click', playTTS);
document.getElementById('ttsPause').addEventListener('click', pauseTTS);
document.getElementById('ttsStop').addEventListener('click', stopTTS);
document.getElementById('ttsSpeed').addEventListener('change', (e) => setTTSSpeed(e.target.value));
// 加载语音列表(某些浏览器需要异步加载)
if (speechSynthesis.onvoiceschanged !== undefined) {
speechSynthesis.onvoiceschanged = initTTS;
}
// 页面加载时初始化
window.addEventListener('load', () => {
initTTS();
});
// 页面离开时停止播放
window.addEventListener('beforeunload', stopTTS);
</script>
</body>
</html>