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>2.5次元的诱惑 - 在线漫画阅读器</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-66", "mangaid": "66", "zh_title": "2.5次元的诱惑", "hant_title": "2.5次元的誘惑", "en_title": "2.5次元的诱惑 (Bilimanga #66)", "author": "桥本悠", "tags": ["校园", "日常", "恋爱", "欢乐", "校园青春", "日本漫画", "漫画", "日漫"], "zh_desc": "现实中的女人我才没兴趣!\n\r\n深爱著2次元角色.莉莉艾露的\n\r\n漫画研究社社长.奥村,今年他的社团来了一位,\n\r\n自称「我想变成莉莉艾露」的3次元女同学.天乃理理沙。\n\r\n奥村受到理理沙的请求,决定协助她拍摄角色扮演的活动,\n\r\n而此时在奥村眼前竟然出现了活生生的莉莉艾露本人!?\n\r\n\n\r\n这诱惑绝对不是2次元(虚幻)的!\n\r\n脸红心跳的角色扮演爱情喜剧开幕!!\n\n📚 作品信息:作者 桥本悠 · 评分 9.7 · 共收录 25 卷 / 219 话章节目录与高清彩页/条漫预览。", "hant_desc": "現實中的女人我才沒興趣!\n\r\n深愛著2次元角色.莉莉艾露的\n\r\n漫畫研究社社長.奧村,今年他的社團來了一位,\n\r\n自稱「我想變成莉莉艾露」的3次元女同學.天乃理理沙。\n\r\n奧村受到理理沙的請求,決定協助她拍攝角色扮演的活動,\n\r\n而此時在奧村眼前竟然出現了活生生的莉莉艾露本人!?\n\r\n\n\r\n這誘惑絕對不是2次元(虛幻)的!\n\r\n臉紅心跳的角色扮演愛情喜劇開幕!!\n\n📚 作品資訊:作者 橋本悠 · 評分 9.7 · 共收錄 25 卷 / 219 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '2.5次元的诱惑' (2.5次元的誘惑) by 桥本悠. Includes 25 volumes and 219 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-66/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-66/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-66/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-66/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-66/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-66/page_06.jpg"], "volumes": [{"title_hant": "2.5次元的誘惑 1", "title_zh": "2.5次元的诱惑 1", "cover_id": 81607, "first_chap_id": 3689, "cover_url": "https://i.motiezw.com/cover/66/81607.jpg"}, {"title_hant": "2.5次元的誘惑 2", "title_zh": "2.5次元的诱惑 2", "cover_id": 81799, "first_chap_id": 3697, "cover_url": "https://i.motiezw.com/cover/66/81799.jpg"}, {"title_hant": "2.5次元的誘惑 3", "title_zh": "2.5次元的诱惑 3", "cover_id": 81999, "first_chap_id": 3708, "cover_url": "https://i.motiezw.com/cover/66/81999.jpg"}, {"title_hant": "2.5次元的誘惑 4", "title_zh": "2.5次元的诱惑 4", "cover_id": 82175, "first_chap_id": 3718, "cover_url": "https://i.motiezw.com/cover/66/82175.jpg"}, {"title_hant": "2.5次元的誘惑 5", "title_zh": "2.5次元的诱惑 5", "cover_id": 82351, "first_chap_id": 3728, "cover_url": "https://i.motiezw.com/cover/66/82351.jpg"}, {"title_hant": "2.5次元的誘惑 6", "title_zh": "2.5次元的诱惑 6", "cover_id": 82527, "first_chap_id": 3738, "cover_url": "https://i.motiezw.com/cover/66/82527.jpg"}, {"title_hant": "2.5次元的誘惑 7", "title_zh": "2.5次元的诱惑 7", "cover_id": 82711, "first_chap_id": 3748, "cover_url": "https://i.motiezw.com/cover/66/82711.jpg"}, {"title_hant": "2.5次元的誘惑 8", "title_zh": "2.5次元的诱惑 8", "cover_id": 82903, "first_chap_id": 3758, "cover_url": "https://i.motiezw.com/cover/66/82903.jpg"}, {"title_hant": "2.5次元的誘惑 9", "title_zh": "2.5次元的诱惑 9", "cover_id": 83079, "first_chap_id": 3768, "cover_url": "https://i.motiezw.com/cover/66/83079.jpg"}, {"title_hant": "2.5次元的誘惑 10", "title_zh": "2.5次元的诱惑 10", "cover_id": 83263, "first_chap_id": 3779, "cover_url": "https://i.motiezw.com/cover/66/83263.jpg"}, {"title_hant": "2.5次元的誘惑 11", "title_zh": "2.5次元的诱惑 11", "cover_id": 83794, "first_chap_id": 3789, "cover_url": "https://i.motiezw.com/cover/66/83794.jpg"}, {"title_hant": "2.5次元的誘惑 12", "title_zh": "2.5次元的诱惑 12", "cover_id": 83970, "first_chap_id": 3800, "cover_url": "https://i.motiezw.com/cover/66/83970.jpg"}], "chapters": [{"cid": "3689", "title": "第1話 來自異次元的新生", "title_zh": "第1话 来自异次元的新生"}, {"cid": "3690", "title": "第2話 第一次的攝影會", "title_zh": "第2话 第一次的摄影会"}, {"cid": "3691", "title": "第3話 超S的姿勢", "title_zh": "第3话 超S的姿势"}, {"cid": "3692", "title": "第4話 穿制服的攝影會!", "title_zh": "第4话 穿制服的摄影会!"}, {"cid": "3693", "title": "第5話「合體」的預感", "title_zh": "第5话「合体」的预感"}, {"cid": "3694", "title": "第6話 M花莉的心Q", "title_zh": "第6话 M花莉的心Q"}, {"cid": "3695", "title": "第7話 誰才是莉莉艾露!?", "title_zh": "第7话 谁才是莉莉艾露!?"}, {"cid": "3697", "title": "第8話 第一次的角S扮演", "title_zh": "第8话 第一次的角S扮演"}, {"cid": "3698", "title": "第9話 莉莉×M莉", "title_zh": "第9话 莉莉×M莉"}, {"cid": "3699", "title": "第10話 在晚上的社團辦公室修照!?", "title_zh": "第10话 在晚上的社团办公室修照!?"}, {"cid": "3700", "title": "第11話 宛如約會的早晨", "title_zh": "第11话 宛如约会的早晨"}, {"cid": "3701", "title": "第12話 初次參加活動!", "title_zh": "第12话 初次参加活动!"}, {"cid": "3702", "title": "第13話 在更衣室出大事了!?", "title_zh": "第13话 在更衣室出大事了!?"}, {"cid": "3703", "title": "第14話 視線的落點", "title_zh": "第14话 视线的落点"}, {"cid": "3704", "title": "第15話 初次活動結束!!", "title_zh": "第15话 初次活动结束!!"}, {"cid": "3705", "title": "第16話 M花莉的挑戰!", "title_zh": "第16话 M花莉的挑战!"}, {"cid": "3706", "title": "番外篇 Coser百物語", "title_zh": "番外篇 Coser百物语"}, {"cid": "3708", "title": "第17話 2.5次元咖啡廳!?", "title_zh": "第17话 2.5次元咖啡厅!?"}, {"cid": "3709", "title": "第18話 前辈的祕密特訓!?", "title_zh": "第18话 前辈的秘密特训!?"}, {"cid": "3710", "title": "第19話 莉莉艾露,遭遇大危機!?", "title_zh": "第19话 莉莉艾露,遭遇大危机!?"}, {"cid": "3711", "title": "第20話 需要顧問老師!", "title_zh": "第20话 需要顾问老师!"}, {"cid": "3713", "title": "第22話 活動報告!", "title_zh": "第22话 活动报告!"}, {"cid": "3714", "title": "第23話 這就是兩人的答案。", "title_zh": "第23话 这就是两人的答案。"}, {"cid": "3715", "title": "第24話 妳愛著角S扮演嗎?", "title_zh": "第24话 妳爱著角S扮演吗?"}, {"cid": "3716", "title": "番外篇 想製作超火辣角S扮演集!", "title_zh": "番外篇 想制作超火辣角S扮演集!"}, {"cid": "3718", "title": "第25話 專業人士的實力", "title_zh": "第25话 专业人士的实力"}, {"cid": "3719", "title": "第26話 理理沙的問題", "title_zh": "第26话 理理沙的问题"}, {"cid": "3720", "title": "第27話 妳不是莉莉艾露", "title_zh": "第27话 妳不是莉莉艾露"}, {"cid": "3721", "title": "第28話 真由羅大人 VS 753 !!", "title_zh": "第28话 真由罗大人 VS 753 !!"}, {"cid": "3722", "title": "第29話 競爭對手", "title_zh": "第29话 竞争对手"}, {"cid": "3723", "title": "第30話 莉莉艾露復活!", "title_zh": "第30话 莉莉艾露复活!"}, {"cid": "3724", "title": "第31話 同樣的笑容", "title_zh": "第31话 同样的笑容"}, {"cid": "3725", "title": "第32話 魔法鎧甲", "title_zh": "第32话 魔法铠甲"}, {"cid": "3726", "title": "番外篇 753,花樣星期五", "title_zh": "番外篇 753,花样星期五"}, {"cid": "3728", "title": "第33話 三岔路口", "title_zh": "第33话 三岔路口"}, {"cid": "3729", "title": "第34話 螢幕的這頭", "title_zh": "第34话 萤幕的这头"}, {"cid": "3730", "title": "第35話 大人的覺悟", "title_zh": "第35话 大人的觉悟"}, {"cid": "3731", "title": "第36話 角S扮演的昨日今朝", "title_zh": "第36话 角S扮演的昨日今朝"}, {"cid": "3732", "title": "第37話 五大新星", "title_zh": "第37话 五大新星"}, {"cid": "3733", "title": "第38話 NONOA", "title_zh": "第38话 NONOA"}, {"cid": "3734", "title": "第39話 我能交到朋友嗎", "title_zh": "第39话 我能交到朋友吗"}, {"cid": "3735", "title": "第40話 乃愛是", "title_zh": "第40话 乃爱是"}, {"cid": "3736", "title": "番外篇 偶像莉莉艾露的攝影會 !!", "title_zh": "番外篇 偶像莉莉艾露的摄影会 !!"}, {"cid": "3738", "title": "第41話 自身的想法", "title_zh": "第41话 自身的想法"}, {"cid": "3739", "title": "第42話 與妳在一起", "title_zh": "第42话 与妳在一起"}, {"cid": "3740", "title": "第43話 朋友", "title_zh": "第43话 朋友"}, {"cid": "3741", "title": "第44話 成為明日的我", "title_zh": "第44话 成为明日的我"}, {"cid": "3742", "title": "第45話 騎士", "title_zh": "第45话 骑士"}, {"cid": "3743", "title": "第46話 我的作法", "title_zh": "第46话 我的作法"}, {"cid": "3744", "title": "第47話 讓亞理亞掉進坑!", "title_zh": "第47话 让亚理亚掉进坑!"}, {"cid": "3745", "title": "第48話 我想成為夥伴!", "title_zh": "第48话 我想成为伙伴!"}, {"cid": "3746", "title": "番外篇 亞理亞的研究 !?", "title_zh": "番外篇 亚理亚的研究 !?"}, {"cid": "3748", "title": "第49話 與友同樂", "title_zh": "第49话 与友同乐"}, {"cid": "3749", "title": "第50話 命運", "title_zh": "第50话 命运"}, {"cid": "3750", "title": "第51話 亞理亞", "title_zh": "第51话 亚理亚"}, {"cid": "3751", "title": "第52話 前往夏季Comiket!", "title_zh": "第52话 前往夏季Comiket!"}, {"cid": "3752", "title": "第53話 屋頂之戰", "title_zh": "第53话 屋顶之战"}, {"cid": "3753", "title": "第54話 夏季 Comiket 的魔物", "title_zh": "第54话 夏季 Comiket 的魔物"}, {"cid": "3754", "title": "第55話 斜陽之下", "title_zh": "第55话 斜阳之下"}, {"cid": "3755", "title": "第56話 和朋友一起創造的世界", "title_zh": "第56话 和朋友一起创造的世界"}]};
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>