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>BTOOOM! 惊爆游戏 - 在线漫画阅读器</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-1543", "mangaid": "1543", "zh_title": "BTOOOM! 惊爆游戏", "hant_title": "BTOOOM! 驚爆遊戲", "en_title": "BTOOOM! 惊爆游戏 (Bilimanga #1543)", "author": "井上淳哉", "tags": ["游戏", "大逃杀", "战斗", "黑暗", "恋爱", "科幻未来", "日本漫画", "漫画"], "zh_desc": "(土反)本龙太平日是个一事无成的茧居族,但只要一上网,就成了畅销线上游戏「BTOOOM!」世界中无人能敌的强者。只是,当游戏的世界血淋淋地在现实世界中上演时,就连(土反)本这样的高手也不得不感到困惑与战栗!举办这场真人实境对战游戏的幕后黑手是谁?被迫参加的参加者又各自拥有怎样的过去与命运?面对众多的谜团,(土反)本将何去何从?\n\n📚 作品信息:作者 井上淳哉 · 评分 10 · 共收录 27 卷 / 125 话章节目录与高清彩页/条漫预览。", "hant_desc": "(土反)本龍太平日是個一事無成的繭居族,但只要一上網,就成了暢銷線上遊戲「BTOOOM!」世界中無人能敵的強者。只是,當遊戲的世界血淋淋地在現實世界中上演時,就連(土反)本這樣的高手也不得不感到困惑與戰慄!舉辦這場真人實境對戰遊戲的幕後黑手是誰?被迫參加的參加者又各自擁有怎樣的過去與命運?面對眾多的謎團,(土反)本將何去何從?\n\n📚 作品資訊:作者 井上淳哉 · 評分 10 · 共收錄 27 卷 / 125 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga 'BTOOOM! 惊爆游戏' (BTOOOM! 驚爆遊戲) by 井上淳哉. Includes 27 volumes and 125 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1543/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1543/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1543/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1543/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1543/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1543/page_06.jpg"], "volumes": [{"title_hant": "BTOOOM! 驚爆遊戲 1", "title_zh": "BTOOOM! 惊爆游戏 1", "cover_id": 2791165, "first_chap_id": 127888, "cover_url": "https://i.motiezw.com/cover/1543/2791165.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 2", "title_zh": "BTOOOM! 惊爆游戏 2", "cover_id": 2791356, "first_chap_id": 127896, "cover_url": "https://i.motiezw.com/cover/1543/2791356.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 3", "title_zh": "BTOOOM! 惊爆游戏 3", "cover_id": 2791974, "first_chap_id": 127926, "cover_url": "https://i.motiezw.com/cover/1543/2791974.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 4", "title_zh": "BTOOOM! 惊爆游戏 4", "cover_id": 2792168, "first_chap_id": 127936, "cover_url": "https://i.motiezw.com/cover/1543/2792168.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 5", "title_zh": "BTOOOM! 惊爆游戏 5", "cover_id": 2792365, "first_chap_id": 127946, "cover_url": "https://i.motiezw.com/cover/1543/2792365.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 6", "title_zh": "BTOOOM! 惊爆游戏 6", "cover_id": 2792577, "first_chap_id": 127953, "cover_url": "https://i.motiezw.com/cover/1543/2792577.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 7", "title_zh": "BTOOOM! 惊爆游戏 7", "cover_id": 2792771, "first_chap_id": 127958, "cover_url": "https://i.motiezw.com/cover/1543/2792771.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 8", "title_zh": "BTOOOM! 惊爆游戏 8", "cover_id": 2792967, "first_chap_id": 127963, "cover_url": "https://i.motiezw.com/cover/1543/2792967.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 9", "title_zh": "BTOOOM! 惊爆游戏 9", "cover_id": 2793162, "first_chap_id": 127968, "cover_url": "https://i.motiezw.com/cover/1543/2793162.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 10", "title_zh": "BTOOOM! 惊爆游戏 10", "cover_id": 2793358, "first_chap_id": 127973, "cover_url": "https://i.motiezw.com/cover/1543/2793358.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 11", "title_zh": "BTOOOM! 惊爆游戏 11", "cover_id": 2801635, "first_chap_id": 128215, "cover_url": "https://i.motiezw.com/cover/1543/2801635.jpg"}, {"title_hant": "BTOOOM! 驚爆遊戲 12", "title_zh": "BTOOOM! 惊爆游戏 12", "cover_id": 2801831, "first_chap_id": 128220, "cover_url": "https://i.motiezw.com/cover/1543/2801831.jpg"}], "chapters": [{"cid": "127888", "title": "第1話 START", "title_zh": "第1话 START"}, {"cid": "127889", "title": "第2話 境界線", "title_zh": "第2话 境界线"}, {"cid": "127890", "title": "第3話 真實", "title_zh": "第3话 真实"}, {"cid": "127891", "title": "第4話 沉重現實", "title_zh": "第4话 沉重现实"}, {"cid": "127892", "title": "第5話 陷阱⋯", "title_zh": "第5话 陷阱⋯"}, {"cid": "127893", "title": "第6話 生存遊戲", "title_zh": "第6话 生存游戏"}, {"cid": "127894", "title": "附錄", "title_zh": "附录"}, {"cid": "127896", "title": "第7話 少年", "title_zh": "第7话 少年"}, {"cid": "127897", "title": "第8話 覺醒", "title_zh": "第8话 觉醒"}, {"cid": "127898", "title": "第9話 世界頂尖玩家", "title_zh": "第9话 世界顶尖玩家"}, {"cid": "127899", "title": "第10話 決起", "title_zh": "第10话 决起"}, {"cid": "127900", "title": "第11話 朦朧", "title_zh": "第11话 朦胧"}, {"cid": "127901", "title": "第12話 虛T", "title_zh": "第12话 虚T"}, {"cid": "127902", "title": "第13話 序曲", "title_zh": "第13话 序曲"}, {"cid": "127903", "title": "第14話 染血的N高中生", "title_zh": "第14话 染血的N高中生"}, {"cid": "127904", "title": "附錄", "title_zh": "附录"}, {"cid": "127926", "title": "第15話 血的YH", "title_zh": "第15话 血的YH"}, {"cid": "127927", "title": "第16話 甜M的陷阱", "title_zh": "第16话 甜M的陷阱"}, {"cid": "127928", "title": "第17話 黑暗之眼", "title_zh": "第17话 黑暗之眼"}, {"cid": "127929", "title": "第18話 強襲", "title_zh": "第18话 强袭"}, {"cid": "127930", "title": "第19話 背叛", "title_zh": "第19话 背叛"}, {"cid": "127932", "title": "第21話 海風", "title_zh": "第21话 海风"}, {"cid": "127933", "title": "第22話 一線", "title_zh": "第22话 一线"}, {"cid": "127934", "title": "附錄", "title_zh": "附录"}, {"cid": "127936", "title": "第23話 遠去的現實", "title_zh": "第23话 远去的现实"}, {"cid": "127937", "title": "第24話 違反規則", "title_zh": "第24话 违反规则"}, {"cid": "127938", "title": "第25話 狩獵者", "title_zh": "第25话 狩猎者"}, {"cid": "127939", "title": "第26話 被獵者", "title_zh": "第26话 被猎者"}, {"cid": "127940", "title": "第27話 假想新娘", "title_zh": "第27话 假想新娘"}, {"cid": "127941", "title": "第28話 巨大廢墟", "title_zh": "第28话 巨大废墟"}, {"cid": "127942", "title": "第29話 動搖", "title_zh": "第29话 动摇"}, {"cid": "127943", "title": "第30話 起死回生", "title_zh": "第30话 起死回生"}, {"cid": "127944", "title": "第31話 回不去的路", "title_zh": "第31话 回不去的路"}, {"cid": "127946", "title": "第32話 ANOTHER SIDE EPISODE HIMIKO①", "title_zh": "第32话 ANOTHER SIDE EPISODE HIMIKO①"}, {"cid": "127947", "title": "第33話 ANOTHER SIDE EPISODE HIMIKO②", "title_zh": "第33话 ANOTHER SIDE EPISODE HIMIKO②"}, {"cid": "127948", "title": "第34話 ANOTHER SIDE EPISODE HIMIKO③", "title_zh": "第34话 ANOTHER SIDE EPISODE HIMIKO③"}, {"cid": "127949", "title": "第35話 ReStart", "title_zh": "第35话 ReStart"}, {"cid": "127950", "title": "第36話 白S亡靈", "title_zh": "第36话 白S亡灵"}, {"cid": "127951", "title": "第37話 島上的鐵則", "title_zh": "第37话 岛上的铁则"}, {"cid": "127953", "title": "第38話 戰線激化", "title_zh": "第38话 战线激化"}, {"cid": "127954", "title": "第39話 最強參戰者", "title_zh": "第39话 最强参战者"}, {"cid": "127955", "title": "第40話 因緣", "title_zh": "第40话 因缘"}, {"cid": "127958", "title": "第42話 故友", "title_zh": "第42话 故友"}, {"cid": "127959", "title": "第43話 本悻", "title_zh": "第43话 本悻"}, {"cid": "127960", "title": "第44話 真理", "title_zh": "第44话 真理"}, {"cid": "127961", "title": "第45話 二個犧牲", "title_zh": "第45话 二个牺牲"}, {"cid": "127963", "title": "第46話 復活", "title_zh": "第46话 复活"}, {"cid": "127964", "title": "第47話 崩壞的前奏", "title_zh": "第47话 崩坏的前奏"}, {"cid": "127965", "title": "第48話 空氣", "title_zh": "第48话 空气"}, {"cid": "127966", "title": "第49話 訣別", "title_zh": "第49话 诀别"}, {"cid": "127968", "title": "第50話 牽絆", "title_zh": "第50话 牵绊"}, {"cid": "127969", "title": "第51話 隊伍", "title_zh": "第51话 队伍"}, {"cid": "127970", "title": "第52話 挖角", "title_zh": "第52话 挖角"}, {"cid": "127971", "title": "第53話 虐待狂", "title_zh": "第53话 虐待狂"}, {"cid": "127973", "title": "第54話 陰謀", "title_zh": "第54话 阴谋"}, {"cid": "127974", "title": "第55話 混亂", "title_zh": "第55话 混乱"}, {"cid": "127975", "title": "第56話 赤果N王", "title_zh": "第56话 赤果N王"}, {"cid": "127976", "title": "第57話 救援", "title_zh": "第57话 救援"}, {"cid": "128215", "title": "第58話 執拗", "title_zh": "第58话 执拗"}, {"cid": "128216", "title": "第59話 生命共同體", "title_zh": "第59话 生命共同体"}]};
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>