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>BLAME! -探索者!- - 在线漫画阅读器</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-849", "mangaid": "849", "zh_title": "BLAME! -探索者!-", "hant_title": "BLAME! -探索者!-", "en_title": "BLAME! -探索者!- (Bilimanga #849)", "author": "贰瓶勉", "tags": ["科幻", "战斗", "悬疑", "末日", "黑暗", "科幻未来", "日本漫画", "漫画"], "zh_desc": "在网络崩溃时代,作为整个系统混乱之前的安全警卫,孤身一人的雾亥手持「重粒子放射线枪」,自地下5000层上行,寻找网络末端未受污染的人类基因。 探索者雾亥出现在一片荒芜,充满危险的大地上。他是为了寻找传说中的网络终端遗传因子,在充斥著安全警卫,建设者,统治局的异世界中不停搜索,抗争。这就是传说已久的BLAME! ,这就是比Matrix更庞大,更复杂的网络世界…\n\n📚 作品信息:作者 贰瓶勉 · 评分 10 · 共收录 11 卷 / 73 话章节目录与高清彩页/条漫预览。", "hant_desc": "在網絡崩潰時代,作為整個系統混亂之前的安全警衛,孤身一人的霧亥手持「重粒子放射線槍」,自地下5000層上行,尋找網絡末端未受污染的人類基因。 探索者霧亥出現在一片荒蕪,充滿危險的大地上。他是為了尋找傳說中的網絡終端遺傳因子,在充斥著安全警衛,建設者,統治局的異世界中不停搜索,抗爭。這就是傳說已久的BLAME! ,這就是比Matrix更龐大,更複雜的網絡世界…\n\n📚 作品資訊:作者 貳瓶勉 · 評分 10 · 共收錄 11 卷 / 73 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga 'BLAME! -探索者!-' (BLAME! -探索者!-) by 贰瓶勉. Includes 11 volumes and 73 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-849/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-849/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-849/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-849/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-849/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-849/page_06.jpg"], "volumes": [{"title_hant": "BLAME! -探索者!- 1", "title_zh": "BLAME! -探索者!- 1", "cover_id": 1452935, "first_chap_id": 66185, "cover_url": "https://i.motiezw.com/cover/849/1452935.jpg"}, {"title_hant": "BLAME! -探索者!- 2", "title_zh": "BLAME! -探索者!- 2", "cover_id": 1454188, "first_chap_id": 66238, "cover_url": "https://i.motiezw.com/cover/849/1454188.jpg"}, {"title_hant": "BLAME! -探索者!- 3", "title_zh": "BLAME! -探索者!- 3", "cover_id": 1460335, "first_chap_id": 66483, "cover_url": "https://i.motiezw.com/cover/849/1460335.jpg"}, {"title_hant": "BLAME! -探索者!- 4", "title_zh": "BLAME! -探索者!- 4", "cover_id": 1460537, "first_chap_id": 66491, "cover_url": "https://i.motiezw.com/cover/849/1460537.jpg"}, {"title_hant": "BLAME! -探索者!- 5", "title_zh": "BLAME! -探索者!- 5", "cover_id": 1460747, "first_chap_id": 66498, "cover_url": "https://i.motiezw.com/cover/849/1460747.jpg"}, {"title_hant": "BLAME! -探索者!- 6", "title_zh": "BLAME! -探索者!- 6", "cover_id": 1460963, "first_chap_id": 66505, "cover_url": "https://i.motiezw.com/cover/849/1460963.jpg"}, {"title_hant": "BLAME! -探索者!- 7", "title_zh": "BLAME! -探索者!- 7", "cover_id": 1461158, "first_chap_id": 66513, "cover_url": "https://i.motiezw.com/cover/849/1461158.jpg"}, {"title_hant": "BLAME! -探索者!- 8", "title_zh": "BLAME! -探索者!- 8", "cover_id": 1461368, "first_chap_id": 66520, "cover_url": "https://i.motiezw.com/cover/849/1461368.jpg"}, {"title_hant": "BLAME! -探索者!- 9", "title_zh": "BLAME! -探索者!- 9", "cover_id": 1461584, "first_chap_id": 66528, "cover_url": "https://i.motiezw.com/cover/849/1461584.jpg"}, {"title_hant": "BLAME! -探索者!- 10", "title_zh": "BLAME! -探索者!- 10", "cover_id": 1461778, "first_chap_id": 66536, "cover_url": "https://i.motiezw.com/cover/849/1461778.jpg"}, {"title_hant": "BLAME! -探索者!- 第畫集", "title_zh": "BLAME! -探索者!- 第画集", "cover_id": 1483253, "first_chap_id": 67725, "cover_url": "https://i.motiezw.com/cover/849/1483253.jpg"}], "chapters": [{"cid": "66185", "title": "LOG.1 網路終端遺傳子", "title_zh": "LOG.1 网路终端遗传子"}, {"cid": "66186", "title": "LOG.2 大地的記憶", "title_zh": "LOG.2 大地的记忆"}, {"cid": "66187", "title": "LOG.3 技術遊牧民", "title_zh": "LOG.3 技术游牧民"}, {"cid": "66192", "title": "EX-LOG", "title_zh": "EX-LOG"}, {"cid": "66188", "title": "LOG.4 統治局", "title_zh": "LOG.4 统治局"}, {"cid": "66189", "title": "LOG.5 逃T", "title_zh": "LOG.5 逃T"}, {"cid": "66190", "title": "LOG.6 硅生命", "title_zh": "LOG.6 硅生命"}, {"cid": "66191", "title": "LOG.7 建設者", "title_zh": "LOG.7 建设者"}, {"cid": "66238", "title": "LOG.8 塊都①", "title_zh": "LOG.8 块都①"}, {"cid": "66239", "title": "LOG.8 塊都②", "title_zh": "LOG.8 块都②"}, {"cid": "66240", "title": "LOG.9 生電社①", "title_zh": "LOG.9 生电社①"}, {"cid": "66241", "title": "LOG.9 生電社②", "title_zh": "LOG.9 生电社②"}, {"cid": "66242", "title": "LOG.10 網路球", "title_zh": "LOG.10 网路球"}, {"cid": "66243", "title": "LOG.11 安全守衛", "title_zh": "LOG.11 安全守卫"}, {"cid": "66483", "title": "LOG.12 大囊王", "title_zh": "LOG.12 大囊王"}, {"cid": "66484", "title": "LOG.13 電基漁夫", "title_zh": "LOG.13 电基渔夫"}, {"cid": "66482", "title": "LOG.14 殖民者", "title_zh": "LOG.14 殖民者"}, {"cid": "66485", "title": "LOG.15 覺醒", "title_zh": "LOG.15 觉醒"}, {"cid": "66486", "title": "LOG.16 襲擊", "title_zh": "LOG.16 袭击"}, {"cid": "66487", "title": "LOG.17 言語基體", "title_zh": "LOG.17 言语基体"}, {"cid": "66488", "title": "LOG.18 殲滅", "title_zh": "LOG.18 歼灭"}, {"cid": "66491", "title": "LOG.19 預備電子界", "title_zh": "LOG.19 预备电子界"}, {"cid": "66492", "title": "LOG.20 禁壓解除", "title_zh": "LOG.20 禁压解除"}, {"cid": "66493", "title": "LOG.21 混生體", "title_zh": "LOG.21 混生体"}, {"cid": "66494", "title": "LOG.22 東亞重工", "title_zh": "LOG.22 东亚重工"}, {"cid": "66495", "title": "LOG.23 電基騎士", "title_zh": "LOG.23 电基骑士"}, {"cid": "66496", "title": "LOG.24 第8空洞", "title_zh": "LOG.24 第8空洞"}, {"cid": "66498", "title": "LOG.25 非法連結", "title_zh": "LOG.25 非法连结"}, {"cid": "66499", "title": "LOG.26 飛散空洞", "title_zh": "LOG.26 飞散空洞"}, {"cid": "66500", "title": "LOG.27 重力爐", "title_zh": "LOG.27 重力炉"}, {"cid": "66501", "title": "LOG.28 Version", "title_zh": "LOG.28 Version"}, {"cid": "66502", "title": "LOG.29 第13空洞", "title_zh": "LOG.29 第13空洞"}, {"cid": "66503", "title": "LOG.30 絕戰", "title_zh": "LOG.30 绝战"}, {"cid": "66505", "title": "LOG.31 沙納肯與希伯", "title_zh": "LOG.31 沙纳肯与希伯"}, {"cid": "66506", "title": "LOG.32 振動", "title_zh": "LOG.32 振动"}, {"cid": "66507", "title": "LOG.33 決潰", "title_zh": "LOG.33 决溃"}, {"cid": "66508", "title": "LOG.34 熔融", "title_zh": "LOG.34 熔融"}, {"cid": "66509", "title": "LOG.35 消滅", "title_zh": "LOG.35 消灭"}, {"cid": "66510", "title": "LOG.36 Beautiful Life", "title_zh": "LOG.36 Beautiful Life"}, {"cid": "66511", "title": "LOG.37 非公式超構造體", "title_zh": "LOG.37 非公式超构造体"}, {"cid": "66513", "title": "LOG.38 集積藏", "title_zh": "LOG.38 集积藏"}, {"cid": "66515", "title": "LOG.40 捕獲", "title_zh": "LOG.40 捕获"}, {"cid": "66516", "title": "LOG.41 侵人對攻電子空問", "title_zh": "LOG.41 侵人对攻电子空问"}, {"cid": "66517", "title": "LOG.42 超構造體內部龜裂", "title_zh": "LOG.42 超构造体内部龟裂"}, {"cid": "66518", "title": "LOG.43 臨時安全守衛", "title_zh": "LOG.43 临时安全守卫"}, {"cid": "66520", "title": "LOG.44 超構造體內部", "title_zh": "LOG.44 超构造体内部"}, {"cid": "66521", "title": "LOG.45 複散分子動體", "title_zh": "LOG.45 复散分子动体"}, {"cid": "66522", "title": "LOG.46 假接續認證線", "title_zh": "LOG.46 假接续认证线"}, {"cid": "66523", "title": "LOG.47 侵入", "title_zh": "LOG.47 侵入"}, {"cid": "66524", "title": "LOG.48 衝動", "title_zh": "LOG.48 冲动"}, {"cid": "66525", "title": "LOG.49 LEVEL9", "title_zh": "LOG.49 LEVEL9"}, {"cid": "66526", "title": "LOG.50 遙遠", "title_zh": "LOG.50 遥远"}, {"cid": "66528", "title": "LOG.51 並列蓄電槽群", "title_zh": "LOG.51 并列蓄电槽群"}, {"cid": "66529", "title": "LOG.52 呼叫者", "title_zh": "LOG.52 呼叫者"}, {"cid": "66530", "title": "LOG.53 遺漏", "title_zh": "LOG.53 遗漏"}, {"cid": "66531", "title": "LOG.54 捕獲者", "title_zh": "LOG.54 捕获者"}, {"cid": "66532", "title": "LOG.55 再會", "title_zh": "LOG.55 再会"}, {"cid": "66533", "title": "LOG.56 人們", "title_zh": "LOG.56 人们"}, {"cid": "66534", "title": "LOG.57 觀測者", "title_zh": "LOG.57 观测者"}, {"cid": "66536", "title": "LOG.58 無隔金屬線", "title_zh": "LOG.58 无隔金属线"}]};
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>