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>工作细胞 BLACK - 在线漫画阅读器</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-1120", "mangaid": "1120", "zh_title": "工作细胞 BLACK", "hant_title": "工作細胞 BLACK", "en_title": "工作细胞 BLACK (Bilimanga #1120)", "author": "初嘉屋一生 / 原田重光 / 清水茜", "tags": ["人外", "战斗", "热血", "职场", "欢乐", "异能", "奇异幻想", "日本漫画"], "zh_desc": "吸烟、勃起障碍、宿醉、淋病、秃头……这位身体的主人过著相当不健康的生活,在他体内工作的细胞们,没有一天可以放假,可说是非常「黑暗(BLACK)」的工作环境!新人红血球少年刚开始工作后,就经历了坏胆固醇、一氧化碳血红素等事件的震撼教育。正当他受到肺炎链球菌袭击时,一位白血球大姊姊在千钧一发之际出面解救了他……!\n\n📚 作品信息:作者 初嘉屋一生 / 原田重光 / 清水茜 · 评分 10 · 共收录 8 卷 / 51 话章节目录与高清彩页/条漫预览。", "hant_desc": "吸菸、勃起障礙、宿醉、淋病、禿頭……這位身體的主人過著相當不健康的生活,在他體內工作的細胞們,沒有一天可以放假,可說是非常「黑暗(BLACK)」的工作環境!新人紅血球少年剛開始工作後,就經歷了壞膽固醇、一氧化碳血紅素等事件的震撼教育。正當他受到肺炎鏈球菌襲擊時,一位白血球大姊姊在千鈞一髮之際出面解救了他……!\n\n📚 作品資訊:作者 初嘉屋一生 / 原田重光 / 清水茜 · 評分 10 · 共收錄 8 卷 / 51 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '工作细胞 BLACK' (工作細胞 BLACK) by 初嘉屋一生 / 原田重光 / 清水茜. Includes 8 volumes and 51 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1120/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1120/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1120/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1120/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1120/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1120/page_06.jpg"], "volumes": [{"title_hant": "工作細胞 BLACK 1", "title_zh": "工作细胞 BLACK 1", "cover_id": 2012755, "first_chap_id": 93987, "cover_url": "https://i.motiezw.com/cover/1120/2012755.jpg"}, {"title_hant": "工作細胞 BLACK 2", "title_zh": "工作细胞 BLACK 2", "cover_id": 2012916, "first_chap_id": 93993, "cover_url": "https://i.motiezw.com/cover/1120/2012916.jpg"}, {"title_hant": "工作細胞 BLACK 3", "title_zh": "工作细胞 BLACK 3", "cover_id": 2013088, "first_chap_id": 94000, "cover_url": "https://i.motiezw.com/cover/1120/2013088.jpg"}, {"title_hant": "工作細胞 BLACK 4", "title_zh": "工作细胞 BLACK 4", "cover_id": 2013249, "first_chap_id": 94008, "cover_url": "https://i.motiezw.com/cover/1120/2013249.jpg"}, {"title_hant": "工作細胞 BLACK 5", "title_zh": "工作细胞 BLACK 5", "cover_id": 2013406, "first_chap_id": 94017, "cover_url": "https://i.motiezw.com/cover/1120/2013406.jpg"}, {"title_hant": "工作細胞 BLACK 6", "title_zh": "工作细胞 BLACK 6", "cover_id": 2013568, "first_chap_id": 94026, "cover_url": "https://i.motiezw.com/cover/1120/2013568.jpg"}, {"title_hant": "工作細胞 BLACK 7", "title_zh": "工作细胞 BLACK 7", "cover_id": 2013729, "first_chap_id": 94033, "cover_url": "https://i.motiezw.com/cover/1120/2013729.jpg"}, {"title_hant": "工作細胞 BLACK 8", "title_zh": "工作细胞 BLACK 8", "cover_id": 2013890, "first_chap_id": 94039, "cover_url": "https://i.motiezw.com/cover/1120/2013890.jpg"}], "chapters": [{"cid": "93987", "title": "第1話 吸菸、細菌、滅亡的開始。", "title_zh": "第1话 吸烟、细菌、灭亡的开始。"}, {"cid": "93988", "title": "第2話 肝、酒精、榮譽。", "title_zh": "第2话 肝、酒精、荣誉。"}, {"cid": "93989", "title": "第3話 勃起、射精、空。", "title_zh": "第3话 勃起、射精、空。"}, {"cid": "93990", "title": "第4話 淋菌、來襲。", "title_zh": "第4话 淋菌、来袭。"}, {"cid": "93991", "title": "第5話 過勞、錯亂、掉髮。", "title_zh": "第5话 过劳、错乱、掉发。"}, {"cid": "93993", "title": "第6話 異變、香港腳、工作的意義。", "title_zh": "第6话 异变、香港脚、工作的意义。"}, {"cid": "93994", "title": "第7話 胃遺瘍、友Q、失落。", "title_zh": "第7话 胃遗疡、友Q、失落。"}, {"cid": "93995", "title": "第8話 自暴自棄、痛風、造反。", "title_zh": "第8话 自暴自弃、痛风、造反。"}, {"cid": "93996", "title": "第9話 回歸、心臟、終結。", "title_zh": "第9话 回归、心脏、终结。"}, {"cid": "93997", "title": "第10話 心肌梗塞、急救、髮化。", "title_zh": "第10话 心肌梗塞、急救、发化。"}, {"cid": "93998", "title": "初嘉屋一生加筆繪製附錄插圖集", "title_zh": "初嘉屋一生加笔绘制附录插图集"}, {"cid": "94000", "title": "第11話 和平、息禸、天變地異。", "title_zh": "第11话 和平、息禸、天变地异。"}, {"cid": "94001", "title": "第12話 能量飲料、鼻血、工作份額。", "title_zh": "第12话 能量饮料、鼻血、工作份额。"}, {"cid": "94002", "title": "第13話 腎臟、尿路結石、血尿。", "title_zh": "第13话 肾脏、尿路结石、血尿。"}, {"cid": "94003", "title": "第14話 尿路感染、沉默、眼淚。", "title_zh": "第14话 尿路感染、沉默、眼泪。"}, {"cid": "94004", "title": "第15話 皮脂、老人臭、最後的工作。", "title_zh": "第15话 皮脂、老人臭、最后的工作。"}, {"cid": "94005", "title": "第16話 小腿肚、職權搔擾、惡夢再現。", "title_zh": "第16话 小腿肚、职权搔扰、恶梦再现。"}, {"cid": "94006", "title": "第17話 肺血栓、機轉、再會。", "title_zh": "第17话 肺血栓、机转、再会。"}, {"cid": "94008", "title": "第18話 胰臟、胰島素、崩壞。", "title_zh": "第18话 胰脏、胰岛素、崩坏。"}, {"cid": "94009", "title": "弟19話 疲憊、糖化、藉口。", "title_zh": "弟19话 疲惫、糖化、借口。"}, {"cid": "94011", "title": "第21話 回歸、責任、蔣瘡。", "title_zh": "第21话 回归、责任、蒋疮。"}, {"cid": "94012", "title": "第22話 痔漏、責任、功績。", "title_zh": "第22话 痔漏、责任、功绩。"}, {"cid": "94013", "title": "第23話 新帶狀疱疹、使命、夥伴。", "title_zh": "第23话 新带状疱疹、使命、伙伴。"}, {"cid": "94014", "title": "第24話 糖分、血管、破局。", "title_zh": "第24话 糖分、血管、破局。"}, {"cid": "94015", "title": "「月刊少年SIRIUS」出差版前篇 首次工作、口內炎、確信。", "title_zh": "「月刊少年SIRIUS」出差版前篇 首次工作、口内炎、确信。"}, {"cid": "94017", "title": "第25話 起火、壞疽、認真工作者。", "title_zh": "第25话 起火、坏疽、认真工作者。"}, {"cid": "94018", "title": "第26話 燒毀、切斷、慈雨。", "title_zh": "第26话 烧毁、切断、慈雨。"}, {"cid": "94019", "title": "第27話 無呼吸、感傷.現實。", "title_zh": "第27话 无呼吸、感伤.现实。"}, {"cid": "94020", "title": "第28話 胰臟、欺瞞、起火。", "title_zh": "第28话 胰脏、欺瞒、起火。"}, {"cid": "94021", "title": "第29話 執行、絕食、失職。", "title_zh": "第29话 执行、绝食、失职。"}, {"cid": "94022", "title": "第30話 牙周病、根據地、誤算。", "title_zh": "第30话 牙周病、根据地、误算。"}, {"cid": "94023", "title": "第31語 安眠藥、酒精、鎮魂曲。", "title_zh": "第31语 安眠药、酒精、镇魂曲。"}, {"cid": "94024", "title": "z「月刊少年SIRIUS」出差版後篇 細菌、漱口、邂逅。", "title_zh": "z「月刊少年SIRIUS」出差版后篇 细菌、漱口、邂逅。"}, {"cid": "94026", "title": "第32話 洗胃、眼淚、眼淚。", "title_zh": "第32话 洗胃、眼泪、眼泪。"}, {"cid": "94027", "title": "第33話 腦、活力、萎缩。", "title_zh": "第33话 脑、活力、萎缩。"}, {"cid": "94028", "title": "第34話 憂鬱症、覺悟、萬事皆休。", "title_zh": "第34话 忧郁症、觉悟、万事皆休。"}, {"cid": "94029", "title": "第35話 藥物、戒菸、恐怖。", "title_zh": "第35话 药物、戒烟、恐怖。"}, {"cid": "94030", "title": "第36話 迷惘、藥效、使命。", "title_zh": "第36话 迷惘、药效、使命。"}, {"cid": "94031", "title": "附錄", "title_zh": "附录"}, {"cid": "94033", "title": "第37話 無敗、否定、凶變。", "title_zh": "第37话 无败、否定、凶变。"}, {"cid": "94034", "title": "第38話 必講殘酷、一敗、挺身。", "title_zh": "第38话 必讲残酷、一败、挺身。"}, {"cid": "94036", "title": "第40話 轉移、放射線、抗癌劑。", "title_zh": "第40话 转移、放射线、抗癌剂。"}, {"cid": "94037", "title": "第41話 免疫療法、存在、託付的事物。", "title_zh": "第41话 免疫疗法、存在、托付的事物。"}, {"cid": "94039", "title": "第42話 復興、未來、無Q的宣告。", "title_zh": "第42话 复兴、未来、无Q的宣告。"}, {"cid": "94040", "title": "第43話 止溢、信賴、前輩。", "title_zh": "第43话 止溢、信赖、前辈。"}, {"cid": "94041", "title": "第44話 英雄、教育、出擊。", "title_zh": "第44话 英雄、教育、出击。"}, {"cid": "94042", "title": "第45話 暴徒、活力、益菌。", "title_zh": "第45话 暴徒、活力、益菌。"}, {"cid": "94043", "title": "第46話 分化、時代、互相支持。", "title_zh": "第46话 分化、时代、互相支持。"}, {"cid": "94044", "title": "第47話 恢復、和平、我回來了。", "title_zh": "第47话 恢复、和平、我回来了。"}, {"cid": "94045", "title": "最終話腦轉移、意志、工作。", "title_zh": "最终话脑转移、意志、工作。"}, {"cid": "94046", "title": "賀圖集", "title_zh": "贺图集"}]};
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>