HTML5 在线漫画阅读器 (index.html)
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=3,user-scalable=yes">
<title>勇者斗恶龙列传 罗德的纹章 - 在线漫画阅读器</title>
<style>
*{box-sizing:border-box;margin:0;padding:0}
body{background:#0d0f17;color:#f1f5f9;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;min-height:100vh;display:flex;flex-direction:column}
header{position:sticky;top:0;z-index:50;background:rgba(13,15,23,0.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,0.09);padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px}
.badge{background:linear-gradient(135deg,#ec4899,#8b5cf6);color:#fff;font-size:11px;font-weight:700;padding:3px 8px;border-radius:99px}
.title{font-size:16px;font-weight:700;color:#fff}
.controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
button{background:rgba(255,255,255,0.08);color:#e2e8f0;border:1px solid rgba(255,255,255,0.14);padding:6px 12px;border-radius:8px;font-size:12px;cursor:pointer;transition:.18s}
button:hover,button.active{background:#ec4899;color:#fff;border-color:#ec4899}
.hero{max-width:920px;margin:16px auto;padding:18px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:14px;display:flex;gap:18px;align-items:flex-start}
.hero img{width:120px;height:160px;object-fit:cover;border-radius:10px;flex-shrink:0;box-shadow:0 8px 24px rgba(0,0,0,0.45)}
.hero-meta h1{font-size:20px;margin-bottom:6px}
.hero-meta .sub{font-size:13px;color:#94a3b8;margin-bottom:8px}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.tag{background:rgba(236,72,153,0.16);color:#f472b6;padding:2px 8px;border-radius:6px;font-size:11px}
.desc{font-size:13px;line-height:1.6;color:#cbd5e1}
.reader-wrap{max-width:860px;width:100%;margin:0 auto 40px;padding:0 8px;flex:1}
.scroll-mode .page-card{margin-bottom:10px;background:#161925;border-radius:8px;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,0.4)}
.scroll-mode .page-card img{width:100%;height:auto;display:block}
.page-footer{text-align:center;font-size:11px;color:#64748b;padding:4px 0}
.flip-controls{display:none;justify-content:center;align-items:center;gap:14px;margin:14px 0}
.flip-mode .flip-controls{display:flex}
.drawer{display:none;max-width:920px;margin:0 auto 20px;padding:16px;background:rgba(255,255,255,0.04);border-radius:12px;border:1px solid rgba(255,255,255,0.1)}
.drawer.open{display:block}
.chap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;margin-top:10px}
.chap-item{padding:8px 10px;background:rgba(255,255,255,0.06);border-radius:8px;font-size:12px;color:#e2e8f0;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chap-item:hover{background:rgba(236,72,153,0.28)}
@media(max-width:600px){.hero{flex-direction:column;align-items:center;text-align:center}.tags{justify-content:center}}
</style>
</head>
<body>
<header>
<div class="brand">
<span class="badge">BILIMANGA · 统一媒体库</span>
<span class="title" id="hdrTitle"></span>
</div>
<div class="controls">
<button id="btnScroll" class="active" onclick="setMode('scroll')">条漫下拉模式</button>
<button id="btnFlip" onclick="setMode('flip')">单页翻页模式</button>
<button onclick="toggleCatalog()">章节目录 (<span id="chapCount">0</span>)</button>
<button onclick="cycleLang()" id="btnLang">繁/簡/EN</button>
</div>
</header>
<section class="hero">
<img id="heroCover" src="" alt="cover">
<div class="hero-meta">
<h1 id="heroTitle"></h1>
<div class="sub" id="heroSub"></div>
<div class="tags" id="heroTags"></div>
<p class="desc" id="heroDesc"></p>
</div>
</section>
<section class="drawer" id="catDrawer">
<h3 style="font-size:14px;margin-bottom:6px">全卷章节目录 (点击切换预览章节)</h3>
<div class="chap-grid" id="chapGrid"></div>
</section>
<div class="reader-wrap scroll-mode" id="readerWrap">
<div class="flip-controls">
<button onclick="stepPage(-1)">◀ 上一页</button>
<span id="pageIndicator" style="font-size:13px;color:#cbd5e1">1 / 1</span>
<button onclick="stepPage(1)">下一页 ▶</button>
</div>
<div id="pagesContainer"></div>
</div>
<script>
const COMIC = {"slug": "bilimanga-1534", "mangaid": "1534", "zh_title": "勇者斗恶龙列传 罗德的纹章", "hant_title": "勇者鬥惡龍列傳 羅德的紋章", "en_title": "勇者斗恶龙列传 罗德的纹章 (Bilimanga #1534)", "author": "藤原カムイ / 川又千秋 / 堀井雄二", "tags": ["奇幻", "冒险", "魔法", "战斗", "热血", "奇幻冒险", "日本漫画", "漫画"], "zh_desc": "多年前,继承罗德血统的勇者打倒了魔王巴拉魔斯,建立北方的罗蓝王国与南方的卡门王国。然而在多年之后,卡门王国的王子「艾鲁斯」即将出生时,国王却遭异魔神的手下「龙王」所害。龙王意图让艾鲁斯王子成为「魔人王」,所幸王子在波尔各军团长之女萝娜芙蕾雅与神官塔尔金的保护下,顺利逃出了城里。十年后,王子长大了,经过种种的修行与锻炼,开始踏上消灭异魔神的旅程。\n\n📚 作品信息:作者 藤原カムイ / 川又千秋 / 堀井雄二 · 评分 10 · 共收录 15 卷 / 93 话章节目录与高清彩页/条漫预览。", "hant_desc": "多年前,繼承羅德血統的勇者打倒了魔王巴拉魔斯,建立北方的羅藍王國與南方的卡門王國。然而在多年之後,卡門王國的王子「艾魯斯」即將出生時,國王卻遭異魔神的手下「龍王」所害。龍王意圖讓艾魯斯王子成為「魔人王」,所幸王子在波爾各軍團長之女蘿娜芙蕾雅與神官塔爾金的保護下,順利逃出了城裡。十年後,王子長大了,經過種種的修行與鍛鍊,開始踏上消滅異魔神的旅程。\n\n📚 作品資訊:作者 藤原カムイ / 川又千秋 / 堀井雄二 · 評分 10 · 共收錄 15 卷 / 93 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '勇者斗恶龙列传 罗德的纹章' (勇者鬥惡龍列傳 羅德的紋章) by 藤原カムイ / 川又千秋 / 堀井雄二. Includes 15 volumes and 93 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1534/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1534/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1534/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1534/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1534/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1534/page_06.jpg"], "volumes": [{"title_hant": "勇者鬥惡龍列傳 羅德的紋章 1", "title_zh": "勇者斗恶龙列传 罗德的纹章 1", "cover_id": 2797490, "first_chap_id": 128103, "cover_url": "https://i.motiezw.com/cover/1534/2797490.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 2", "title_zh": "勇者斗恶龙列传 罗德的纹章 2", "cover_id": 2797868, "first_chap_id": 128110, "cover_url": "https://i.motiezw.com/cover/1534/2797868.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 3", "title_zh": "勇者斗恶龙列传 罗德的纹章 3", "cover_id": 2798153, "first_chap_id": 128117, "cover_url": "https://i.motiezw.com/cover/1534/2798153.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 4", "title_zh": "勇者斗恶龙列传 罗德的纹章 4", "cover_id": 2798442, "first_chap_id": 128123, "cover_url": "https://i.motiezw.com/cover/1534/2798442.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 5", "title_zh": "勇者斗恶龙列传 罗德的纹章 5", "cover_id": 2798725, "first_chap_id": 128130, "cover_url": "https://i.motiezw.com/cover/1534/2798725.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 6", "title_zh": "勇者斗恶龙列传 罗德的纹章 6", "cover_id": 2798985, "first_chap_id": 128136, "cover_url": "https://i.motiezw.com/cover/1534/2798985.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 7", "title_zh": "勇者斗恶龙列传 罗德的纹章 7", "cover_id": 2799220, "first_chap_id": 128142, "cover_url": "https://i.motiezw.com/cover/1534/2799220.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 8", "title_zh": "勇者斗恶龙列传 罗德的纹章 8", "cover_id": 2799523, "first_chap_id": 128149, "cover_url": "https://i.motiezw.com/cover/1534/2799523.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 9", "title_zh": "勇者斗恶龙列传 罗德的纹章 9", "cover_id": 2799768, "first_chap_id": 128155, "cover_url": "https://i.motiezw.com/cover/1534/2799768.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 10", "title_zh": "勇者斗恶龙列传 罗德的纹章 10", "cover_id": 2800009, "first_chap_id": 128162, "cover_url": "https://i.motiezw.com/cover/1534/2800009.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 11", "title_zh": "勇者斗恶龙列传 罗德的纹章 11", "cover_id": 2800286, "first_chap_id": 128170, "cover_url": "https://i.motiezw.com/cover/1534/2800286.jpg"}, {"title_hant": "勇者鬥惡龍列傳 羅德的紋章 12", "title_zh": "勇者斗恶龙列传 罗德的纹章 12", "cover_id": 2800555, "first_chap_id": 128178, "cover_url": "https://i.motiezw.com/cover/1534/2800555.jpg"}], "chapters": [{"cid": "128103", "title": "LEVEL 01:王子艾魯斯誕生", "title_zh": "LEVEL 01:王子艾鲁斯诞生"}, {"cid": "128104", "title": "LEVEL 02:友Q的勝利", "title_zh": "LEVEL 02:友Q的胜利"}, {"cid": "128105", "title": "LEVEL 03:賢者卡達爾", "title_zh": "LEVEL 03:贤者卡达尔"}, {"cid": "128106", "title": "LEVEL 04:真實之森", "title_zh": "LEVEL 04:真实之森"}, {"cid": "128107", "title": "LEVEL 05:傳說勇者亞雷爾", "title_zh": "LEVEL 05:传说勇者亚雷尔"}, {"cid": "128108", "title": "LEVEL 06:魔人王加冕!", "title_zh": "LEVEL 06:魔人王加冕!"}, {"cid": "128110", "title": "LEVEL 07:魔劍涅克羅斯", "title_zh": "LEVEL 07:魔剑涅克罗斯"}, {"cid": "128111", "title": "LEVEL 08:激鬥!阿薩拉姆", "title_zh": "LEVEL 08:激斗!阿萨拉姆"}, {"cid": "128112", "title": "LEVEL 09:雙王", "title_zh": "LEVEL 09:双王"}, {"cid": "128113", "title": "LEVEL 10:基拉的秘密", "title_zh": "LEVEL 10:基拉的秘密"}, {"cid": "128114", "title": "LEVEL 11:各自啟程", "title_zh": "LEVEL 11:各自启程"}, {"cid": "128115", "title": "LEVEL 12:正午的流星", "title_zh": "LEVEL 12:正午的流星"}, {"cid": "128117", "title": "LEVEL 13:魔王甦醒", "title_zh": "LEVEL 13:魔王苏醒"}, {"cid": "128118", "title": "LEVEL 14:決戰!巴拉魔斯殭屍", "title_zh": "LEVEL 14:决战!巴拉魔斯僵尸"}, {"cid": "128119", "title": "LEVEL 15:傳說的遊人登場!", "title_zh": "LEVEL 15:传说的游人登场!"}, {"cid": "128120", "title": "LEVEL 16:帆船蘿娜芙蕾雅號", "title_zh": "LEVEL 16:帆船萝娜芙蕾雅号"}, {"cid": "128121", "title": "LEVEL 17:海王里拜亞森", "title_zh": "LEVEL 17:海王里拜亚森"}, {"cid": "128123", "title": "LEVEL 18:海神霸者", "title_zh": "LEVEL 18:海神霸者"}, {"cid": "128124", "title": "LEVEL 19:甲殼魔獸達佛拉", "title_zh": "LEVEL 19:甲壳魔兽达佛拉"}, {"cid": "128125", "title": "LEVEL 20:愛與勇氣的奇蹟", "title_zh": "LEVEL 20:爱与勇气的奇迹"}, {"cid": "128127", "title": "LEVEL 22:波倫覺醒之卷", "title_zh": "LEVEL 22:波伦觉醒之卷"}, {"cid": "128128", "title": "LEVEL 23:賢王波倫誕生", "title_zh": "LEVEL 23:贤王波伦诞生"}, {"cid": "128130", "title": "LEVEL 24:獸王狐弄出擊", "title_zh": "LEVEL 24:兽王狐弄出击"}, {"cid": "128131", "title": "LEVEL 25:激戰!亞里亞罕平原", "title_zh": "LEVEL 25:激战!亚里亚罕平原"}, {"cid": "128132", "title": "LEVEL 26:劍王基拉登場", "title_zh": "LEVEL 26:剑王基拉登场"}, {"cid": "128133", "title": "LEVEL 27:恐怖!獸兵團四大天王", "title_zh": "LEVEL 27:恐怖!兽兵团四大天王"}, {"cid": "128134", "title": "LEVEL 28:總攻擊開始!", "title_zh": "LEVEL 28:总攻击开始!"}, {"cid": "128136", "title": "LEVEL 29:悲傷的戰場", "title_zh": "LEVEL 29:悲伤的战场"}, {"cid": "128137", "title": "LEVEL 30:超魔力炸裂!", "title_zh": "LEVEL 30:超魔力炸裂!"}, {"cid": "128138", "title": "LEVEL 31:傳說中的誓言再次復甦", "title_zh": "LEVEL 31:传说中的誓言再次复苏"}, {"cid": "128139", "title": "LEVEL 32:獸王的末日", "title_zh": "LEVEL 32:兽王的末日"}, {"cid": "128140", "title": "LEVEL 33:拉達托姆城淪陷", "title_zh": "LEVEL 33:拉达托姆城沦陷"}, {"cid": "128142", "title": "LEVEL 34:賈剛來襲!", "title_zh": "LEVEL 34:贾刚来袭!"}, {"cid": "128143", "title": "LEVEL 35:落敗", "title_zh": "LEVEL 35:落败"}, {"cid": "128144", "title": "LEVEL 36:羈絆", "title_zh": "LEVEL 36:羁绊"}, {"cid": "128145", "title": "LEVEL 37:黑暗水晶球", "title_zh": "LEVEL 37:黑暗水晶球"}, {"cid": "128146", "title": "LEVEL 38:勇者再臨", "title_zh": "LEVEL 38:勇者再临"}, {"cid": "128147", "title": "LEVEL 39:新的旅程", "title_zh": "LEVEL 39:新的旅程"}, {"cid": "128149", "title": "LEVEL 40:第三個羅德", "title_zh": "LEVEL 40:第三个罗德"}, {"cid": "128150", "title": "LEVEL 41:魔神復活", "title_zh": "LEVEL 41:魔神复活"}, {"cid": "128152", "title": "LEVEL 43:怪獸大決戰!", "title_zh": "LEVEL 43:怪兽大决战!"}, {"cid": "128153", "title": "LEVEL 44:神聖之龍", "title_zh": "LEVEL 44:神圣之龙"}, {"cid": "128155", "title": "LEVEL 45:再次邂逅", "title_zh": "LEVEL 45:再次邂逅"}, {"cid": "128156", "title": "LEVEL 46:魔之刻印", "title_zh": "LEVEL 46:魔之刻印"}, {"cid": "128157", "title": "LEVEL 47:紅S閃光", "title_zh": "LEVEL 47:红S闪光"}, {"cid": "128158", "title": "LEVEL 48:當紋章合而為一時", "title_zh": "LEVEL 48:当纹章合而为一时"}, {"cid": "128159", "title": "LEVEL 49:各有所思", "title_zh": "LEVEL 49:各有所思"}, {"cid": "128160", "title": "附錄", "title_zh": "附录"}, {"cid": "128162", "title": "LEVEL 50:「黑暗水晶球」啟動", "title_zh": "LEVEL 50:「黑暗水晶球」启动"}, {"cid": "128163", "title": "LEVEL 51:神殿的神聖雙胞胎", "title_zh": "LEVEL 51:神殿的神圣双胞胎"}, {"cid": "128164", "title": "LEVEL 52:暴風雪中的死鬥", "title_zh": "LEVEL 52:暴风雪中的死斗"}, {"cid": "128165", "title": "LEVEL 53:小小的守護者們", "title_zh": "LEVEL 53:小小的守护者们"}, {"cid": "128166", "title": "LEVEL 54:魔州湖之謎", "title_zh": "LEVEL 54:魔州湖之谜"}, {"cid": "128167", "title": "LEVEL 55:艾魯斯之劍 誕生", "title_zh": "LEVEL 55:艾鲁斯之剑 诞生"}, {"cid": "128168", "title": "附錄", "title_zh": "附录"}, {"cid": "128170", "title": "LEVEL 56:冥王的真面目", "title_zh": "LEVEL 56:冥王的真面目"}, {"cid": "128171", "title": "LEVEL 57:冥王詭譎的死期", "title_zh": "LEVEL 57:冥王诡谲的死期"}, {"cid": "128172", "title": "LEVEL 58:超神話", "title_zh": "LEVEL 58:超神话"}, {"cid": "128173", "title": "LEVEL 59:突破歐里比亞海峽!", "title_zh": "LEVEL 59:突破欧里比亚海峡!"}, {"cid": "128174", "title": "LEVEL 60:空襲!羅藍城", "title_zh": "LEVEL 60:空袭!罗蓝城"}]};
let lang = 'zh';
let mode = 'scroll';
let curPage = 0;
function renderMeta() {
const t = lang === 'zh' ? COMIC.zh_title : (lang === 'hant' ? COMIC.hant_title : COMIC.en_title);
const d = lang === 'zh' ? COMIC.zh_desc : (lang === 'hant' ? COMIC.hant_desc : COMIC.en_desc);
document.getElementById('hdrTitle').textContent = t;
document.getElementById('heroTitle').textContent = t;
document.getElementById('heroSub').textContent = `${COMIC.author} · 共 ${COMIC.volumes.length} 卷 / ${COMIC.chapters.length} 话`;
document.getElementById('heroDesc').textContent = d;
document.getElementById('heroCover').src = COMIC.pages[0] || '';
document.getElementById('chapCount').textContent = COMIC.chapters.length;
const tg = document.getElementById('heroTags');
tg.innerHTML = '';
(COMIC.tags || []).forEach(x => {
const s = document.createElement('span');
s.className = 'tag';
s.textContent = x;
tg.appendChild(s);
});
}
function renderCatalog() {
const g = document.getElementById('chapGrid');
g.innerHTML = '';
(COMIC.chapters || []).forEach((c, idx) => {
const d = document.createElement('div');
d.className = 'chap-item';
d.textContent = c.title_zh || c.title;
d.onclick = () => {
curPage = idx % COMIC.pages.length;
if (mode === 'flip') renderPages();
else document.querySelectorAll('.page-card')[curPage]?.scrollIntoView({behavior:'smooth'});
document.getElementById('catDrawer').classList.remove('open');
};
g.appendChild(d);
});
}
function renderPages() {
const wrap = document.getElementById('readerWrap');
wrap.className = 'reader-wrap ' + (mode === 'scroll' ? 'scroll-mode' : 'flip-mode');
const box = document.getElementById('pagesContainer');
box.innerHTML = '';
const list = mode === 'scroll' ? COMIC.pages : [COMIC.pages[curPage]];
list.forEach((url, i) => {
const idx = mode === 'scroll' ? i : curPage;
const card = document.createElement('div');
card.className = 'page-card';
card.innerHTML = `<img src="${url}" loading="lazy" alt="Page ${idx+1}"><div class="page-footer">第 ${idx+1} / ${COMIC.pages.length} 页 · ${COMIC.zh_title}</div>`;
if (mode === 'flip') card.onclick = () => stepPage(1);
box.appendChild(card);
});
document.getElementById('pageIndicator').textContent = `${curPage + 1} / ${COMIC.pages.length}`;
}
function setMode(m) {
mode = m;
document.getElementById('btnScroll').classList.toggle('active', m === 'scroll');
document.getElementById('btnFlip').classList.toggle('active', m === 'flip');
renderPages();
}
function stepPage(delta) {
curPage = (curPage + delta + COMIC.pages.length) % COMIC.pages.length;
renderPages();
}
function toggleCatalog() {
document.getElementById('catDrawer').classList.toggle('open');
}
function cycleLang() {
lang = lang === 'zh' ? 'hant' : (lang === 'hant' ? 'en' : 'zh');
renderMeta();
}
renderMeta();
renderCatalog();
renderPages();
</script>
</body>
</html>