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-954", "mangaid": "954", "zh_title": "伊藤润二爱藏版", "hant_title": "伊藤潤二愛藏版", "en_title": "伊藤润二爱藏版 (Bilimanga #954)", "author": "伊藤润二", "tags": ["悬疑", "惊悚", "猎奇", "神鬼", "人外", "脑洞", "悬疑惊悚", "日本漫画"], "zh_desc": "迷惑男人,让他们陷入狂乱爱恋中的女子,她名为富江。不管被杀死几次,历经无数次死亡,依旧一再复活的美丽富江。富江啊!整个世界在妳面前都得俯首称臣吧──\n\n📚 作品信息:作者 伊藤润二 · 评分 10 · 共收录 11 卷 / 118 话章节目录与高清彩页/条漫预览。", "hant_desc": "迷惑男人,讓他們陷入狂亂愛戀中的女子,她名為富江。不管被殺死幾次,歷經無數次死亡,依舊一再復活的美麗富江。富江啊!整個世界在妳面前都得俯首稱臣吧──\n\n📚 作品資訊:作者 伊藤潤二 · 評分 10 · 共收錄 11 卷 / 118 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '伊藤润二爱藏版' (伊藤潤二愛藏版) by 伊藤润二. Includes 11 volumes and 118 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-954/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-954/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-954/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-954/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-954/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-954/page_06.jpg"], "volumes": [{"title_hant": "伊藤潤二愛藏版 1 富江 (上)", "title_zh": "伊藤润二爱藏版 1 富江 (上)", "cover_id": 1661575, "first_chap_id": 76912, "cover_url": "https://i.motiezw.com/cover/954/1661575.jpg"}, {"title_hant": "伊藤潤二愛藏版 2 富江 (下)", "title_zh": "伊藤润二爱藏版 2 富江 (下)", "cover_id": 1661950, "first_chap_id": 76923, "cover_url": "https://i.motiezw.com/cover/954/1661950.jpg"}, {"title_hant": "伊藤潤二愛藏版 3 雙一恣意的詛咒", "title_zh": "伊藤润二爱藏版 3 双一恣意的诅咒", "cover_id": 1662325, "first_chap_id": 76936, "cover_url": "https://i.motiezw.com/cover/954/1662325.jpg"}, {"title_hant": "伊藤潤二愛藏版 4 至死不渝的愛", "title_zh": "伊藤润二爱藏版 4 至死不渝的爱", "cover_id": 1662675, "first_chap_id": 76945, "cover_url": "https://i.motiezw.com/cover/954/1662675.jpg"}, {"title_hant": "伊藤潤二愛藏版 5 逃兵之家", "title_zh": "伊藤润二爱藏版 5 逃兵之家", "cover_id": 1663082, "first_chap_id": 76956, "cover_url": "https://i.motiezw.com/cover/954/1663082.jpg"}, {"title_hant": "伊藤潤二愛藏版 6 鬼巷", "title_zh": "伊藤润二爱藏版 6 鬼巷", "cover_id": 1663471, "first_chap_id": 76969, "cover_url": "https://i.motiezw.com/cover/954/1663471.jpg"}, {"title_hant": "伊藤潤二愛藏版 7 無頭雕刻", "title_zh": "伊藤润二爱藏版 7 无头雕刻", "cover_id": 1663846, "first_chap_id": 76981, "cover_url": "https://i.motiezw.com/cover/954/1663846.jpg"}, {"title_hant": "伊藤潤二愛藏版 8 呻吟的排水管", "title_zh": "伊藤润二爱藏版 8 呻吟的排水管", "cover_id": 1664237, "first_chap_id": 76994, "cover_url": "https://i.motiezw.com/cover/954/1664237.jpg"}, {"title_hant": "伊藤潤二愛藏版 9 墓碑鎮", "title_zh": "伊藤润二爱藏版 9 墓碑镇", "cover_id": 1664629, "first_chap_id": 77003, "cover_url": "https://i.motiezw.com/cover/954/1664629.jpg"}, {"title_hant": "伊藤潤二愛藏版 10 科學怪人", "title_zh": "伊藤润二爱藏版 10 科学怪人", "cover_id": 1665038, "first_chap_id": 77015, "cover_url": "https://i.motiezw.com/cover/954/1665038.jpg"}, {"title_hant": "伊藤潤二愛藏版 11 潰談", "title_zh": "伊藤润二爱藏版 11 溃谈", "cover_id": 1665441, "first_chap_id": 77030, "cover_url": "https://i.motiezw.com/cover/954/1665441.jpg"}], "chapters": [{"cid": "76912", "title": "富江", "title_zh": "富江"}, {"cid": "76913", "title": "富江 PART2 森田病院篇", "title_zh": "富江 PART2 森田病院篇"}, {"cid": "76914", "title": "地下室", "title_zh": "地下室"}, {"cid": "76915", "title": "照片", "title_zh": "照片"}, {"cid": "76916", "title": "接溫", "title_zh": "接温"}, {"cid": "76917", "title": "鬼屋", "title_zh": "鬼屋"}, {"cid": "76918", "title": "復仇", "title_zh": "复仇"}, {"cid": "76919", "title": "瀑布潭", "title_zh": "瀑布潭"}, {"cid": "76920", "title": "畫家", "title_zh": "画家"}, {"cid": "76921", "title": "後記", "title_zh": "后记"}, {"cid": "76923", "title": "暗殺", "title_zh": "暗杀"}, {"cid": "76924", "title": "毛髮", "title_zh": "毛发"}, {"cid": "76925", "title": "養N", "title_zh": "养N"}, {"cid": "76926", "title": "小指", "title_zh": "小指"}, {"cid": "76927", "title": "少年", "title_zh": "少年"}, {"cid": "76928", "title": "酒酸", "title_zh": "酒酸"}, {"cid": "76929", "title": "褓母", "title_zh": "褓母"}, {"cid": "76930", "title": "某個集團", "title_zh": "某个集团"}, {"cid": "76931", "title": "砍人狂", "title_zh": "砍人狂"}, {"cid": "76932", "title": "頂尖模特兒", "title_zh": "顶尖模特儿"}, {"cid": "76933", "title": "老醜", "title_zh": "老丑"}, {"cid": "76936", "title": "快樂的寒假", "title_zh": "快乐的寒假"}, {"cid": "76937", "title": "雙一的快樂日記", "title_zh": "双一的快乐日记"}, {"cid": "76938", "title": "雙一的家庭訪問", "title_zh": "双一的家庭访问"}, {"cid": "76939", "title": "布製教師", "title_zh": "布制教师"}, {"cid": "76940", "title": "雙一的生日", "title_zh": "双一的生日"}, {"cid": "97651", "title": "雙一恣意的詛咒", "title_zh": "双一恣意的诅咒"}, {"cid": "76941", "title": "四道牆的房間", "title_zh": "四道墙的房间"}, {"cid": "76942", "title": "棺桶", "title_zh": "棺桶"}, {"cid": "76943", "title": "流言", "title_zh": "流言"}, {"cid": "76945", "title": "至死不渝的愛 1話 十字路口的M少年", "title_zh": "至死不渝的爱 1话 十字路口的M少年"}, {"cid": "76946", "title": "至死不渝的愛 2話 煩惱的N人", "title_zh": "至死不渝的爱 2话 烦恼的N人"}, {"cid": "76947", "title": "至死不渝的愛 3話 黒影", "title_zh": "至死不渝的爱 3话 黒影"}, {"cid": "76948", "title": "至死不渝的愛 4話 慘叫之夜", "title_zh": "至死不渝的爱 4话 惨叫之夜"}, {"cid": "76949", "title": "至死不渝的愛 軼聞 白衣M少年", "title_zh": "至死不渝的爱 轶闻 白衣M少年"}, {"cid": "76950", "title": "怪異六兄妹 1話 二姐的Q人", "title_zh": "怪异六兄妹 1话 二姐的Q人"}, {"cid": "76951", "title": "怪異六兄妹 2話 降靈會", "title_zh": "怪异六兄妹 2话 降灵会"}, {"cid": "76952", "title": "幻痛豪宅", "title_zh": "幻痛豪宅"}, {"cid": "76953", "title": "肋骨N", "title_zh": "肋骨N"}, {"cid": "76954", "title": "真實大便的回憶", "title_zh": "真实大便的回忆"}, {"cid": "76956", "title": "生物別墅", "title_zh": "生物别墅"}, {"cid": "76957", "title": "竊臉賊", "title_zh": "窃脸贼"}, {"cid": "76958", "title": "睡魔的房間", "title_zh": "睡魔的房间"}, {"cid": "76960", "title": "閣樓的長髮", "title_zh": "阁楼的长发"}, {"cid": "76961", "title": "劇本式戀Q", "title_zh": "剧本式恋Q"}, {"cid": "76962", "title": "還魂師之劍", "title_zh": "还魂师之剑"}, {"cid": "76963", "title": "父親的心", "title_zh": "父亲的心"}, {"cid": "76964", "title": "無盡的迷路", "title_zh": "无尽的迷路"}, {"cid": "76965", "title": "魔音村", "title_zh": "魔音村"}, {"cid": "76966", "title": "壞小孩", "title_zh": "坏小孩"}, {"cid": "76967", "title": "逃兵之家", "title_zh": "逃兵之家"}, {"cid": "76969", "title": "鬼巷", "title_zh": "鬼巷"}, {"cid": "76970", "title": "時裝模特兒", "title_zh": "时装模特儿"}, {"cid": "76971", "title": "墜落", "title_zh": "坠落"}, {"cid": "76972", "title": "團體病房", "title_zh": "团体病房"}, {"cid": "76973", "title": "旅館", "title_zh": "旅馆"}, {"cid": "76974", "title": "答應", "title_zh": "答应"}, {"cid": "76975", "title": "煙草會", "title_zh": "烟草会"}, {"cid": "76976", "title": "黴", "title_zh": "霉"}, {"cid": "76977", "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>