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-105", "mangaid": "105", "zh_title": "新世纪福音战士", "hant_title": "新世紀福音戰士", "en_title": "新世纪福音战士 (Bilimanga #105)", "author": "贞本义行 / GAINAX / khara", "tags": ["科幻", "机战", "热血", "冒险", "异能", "群像", "科幻未来", "日本漫画"], "zh_desc": "西元2000年发生了一场被称为第二次冲击的前所未有的大浩劫,\n\r\n南极落下一颗大质量的陨石,造成海平面上升、天灾四起、经济崩坏、民族纷争、内战……\n\r\n地球上的人口由五十余亿锐减为二十余亿﹔\n\r\n西元2015年在全球复兴之际,人类渐渐从毁灭中站起来但新的危机又来了!\n\r\n来路不明的「使徒」,一种巨大的战斗兵器群大举来袭,\n\r\n为了对抗他们,人类开发了「泛用人形决战兵器EVANGELION」。\n\r\n西元2015年,初号机开发完成,\n\r\n在此也选出3位少男少女做为「EVANGELION」的驾驶员,\n\r\n人类未来的希望就落在这三个人的身上,故事也就从此刻开始……\n\n📚 作品信息:作者 贞本义行 / GAINAX / khara · 评分 10 · 共收录 15 卷 / 106 话章节目录与高清彩页/条漫预览。", "hant_desc": "西元2000年發生了一場被稱為第二次衝擊的前所未有的大浩劫,\n\r\n南極落下一顆大質量的隕石,造成海平面上升、天災四起、經濟崩壞、民族紛爭、內戰……\n\r\n地球上的人口由五十餘億銳減為二十餘億﹔\n\r\n西元2015年在全球復興之際,人類漸漸從毀滅中站起來但新的危機又來了!\n\r\n來路不明的「使徒」,一種巨大的戰鬥兵器群大舉來襲,\n\r\n為了對抗他們,人類開發了「汎用人形決戰兵器EVANGELION」。\n\r\n西元2015年,初號機開發完成,\n\r\n在此也選出3位少男少女做為「EVANGELION」的駕駛員,\n\r\n人類未來的希望就落在這三個人的身上,故事也就從此刻開始……\n\n📚 作品資訊:作者 貞本義行 / GAINAX / khara · 評分 10 · 共收錄 15 卷 / 106 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '新世纪福音战士' (新世紀福音戰士) by 贞本义行 / GAINAX / khara. Includes 15 volumes and 106 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-105/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-105/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-105/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-105/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-105/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-105/page_06.jpg"], "volumes": [{"title_hant": "新世紀福音戰士 1", "title_zh": "新世纪福音战士 1", "cover_id": 142299, "first_chap_id": 6430, "cover_url": "https://i.motiezw.com/cover/105/142299.jpg"}, {"title_hant": "新世紀福音戰士 2", "title_zh": "新世纪福音战士 2", "cover_id": 142472, "first_chap_id": 6437, "cover_url": "https://i.motiezw.com/cover/105/142472.jpg"}, {"title_hant": "新世紀福音戰士 3", "title_zh": "新世纪福音战士 3", "cover_id": 142651, "first_chap_id": 6446, "cover_url": "https://i.motiezw.com/cover/105/142651.jpg"}, {"title_hant": "新世紀福音戰士 4", "title_zh": "新世纪福音战士 4", "cover_id": 142822, "first_chap_id": 6455, "cover_url": "https://i.motiezw.com/cover/105/142822.jpg"}, {"title_hant": "新世紀福音戰士 5", "title_zh": "新世纪福音战士 5", "cover_id": 143003, "first_chap_id": 6463, "cover_url": "https://i.motiezw.com/cover/105/143003.jpg"}, {"title_hant": "新世紀福音戰士 6", "title_zh": "新世纪福音战士 6", "cover_id": 143190, "first_chap_id": 6471, "cover_url": "https://i.motiezw.com/cover/105/143190.jpg"}, {"title_hant": "新世紀福音戰士 7", "title_zh": "新世纪福音战士 7", "cover_id": 143374, "first_chap_id": 6479, "cover_url": "https://i.motiezw.com/cover/105/143374.jpg"}, {"title_hant": "新世紀福音戰士 8", "title_zh": "新世纪福音战士 8", "cover_id": 143561, "first_chap_id": 6488, "cover_url": "https://i.motiezw.com/cover/105/143561.jpg"}, {"title_hant": "新世紀福音戰士 9", "title_zh": "新世纪福音战士 9", "cover_id": 143741, "first_chap_id": 6497, "cover_url": "https://i.motiezw.com/cover/105/143741.jpg"}, {"title_hant": "新世紀福音戰士 10", "title_zh": "新世纪福音战士 10", "cover_id": 143918, "first_chap_id": 6505, "cover_url": "https://i.motiezw.com/cover/105/143918.jpg"}, {"title_hant": "新世紀福音戰士 11", "title_zh": "新世纪福音战士 11", "cover_id": 144095, "first_chap_id": 6513, "cover_url": "https://i.motiezw.com/cover/105/144095.jpg"}, {"title_hant": "新世紀福音戰士 12", "title_zh": "新世纪福音战士 12", "cover_id": 144267, "first_chap_id": 6520, "cover_url": "https://i.motiezw.com/cover/105/144267.jpg"}], "chapters": [{"cid": "6430", "title": "STAGE.1 使徒、來襲", "title_zh": "STAGE.1 使徒、来袭"}, {"cid": "6431", "title": "STAGE.2 再會⋯", "title_zh": "STAGE.2 再会⋯"}, {"cid": "6432", "title": "STAGE.3 初號機、出擊", "title_zh": "STAGE.3 初号机、出击"}, {"cid": "6433", "title": "STAGE.4 沉默⋯", "title_zh": "STAGE.4 沉默⋯"}, {"cid": "6434", "title": "STAGE.5 光的深淵中所見之物", "title_zh": "STAGE.5 光的深渊中所见之物"}, {"cid": "6435", "title": "STAGE.6 我哭了", "title_zh": "STAGE.6 我哭了"}, {"cid": "6443", "title": "後記", "title_zh": "后记"}, {"cid": "6437", "title": "STAGE.7 閉鎖的心靈", "title_zh": "STAGE.7 闭锁的心灵"}, {"cid": "6438", "title": "STAGE.8 真嗣不高興了", "title_zh": "STAGE.8 真嗣不高兴了"}, {"cid": "6439", "title": "STAGE.9 狂熱的災難", "title_zh": "STAGE.9 狂热的灾难"}, {"cid": "6440", "title": "STAGE.10 短刀與少年", "title_zh": "STAGE.10 短刀与少年"}, {"cid": "6441", "title": "STAGE.11 徬徨的第三適任者", "title_zh": "STAGE.11 徬徨的第三适任者"}, {"cid": "6442", "title": "STAGE.12 溫柔的輪廓", "title_zh": "STAGE.12 温柔的轮廓"}, {"cid": "6444", "title": "後記", "title_zh": "后记"}, {"cid": "6446", "title": "STAGE.13 白S傷痕", "title_zh": "STAGE.13 白S伤痕"}, {"cid": "6447", "title": "STAGE.14 歪斜的房間", "title_zh": "STAGE.14 歪斜的房间"}, {"cid": "6448", "title": "STAGE.15 紅S眼眸相信的是…", "title_zh": "STAGE.15 红S眼眸相信的是…"}, {"cid": "6449", "title": "STAGE.16 被丟棄的記憶", "title_zh": "STAGE.16 被丢弃的记忆"}, {"cid": "6450", "title": "STAGE.17 決戰前夜", "title_zh": "STAGE.17 决战前夜"}, {"cid": "6451", "title": "STAGE.18 血戰!", "title_zh": "STAGE.18 血战!"}, {"cid": "6452", "title": "STAGE.19 黑暗中之月", "title_zh": "STAGE.19 黑暗中之月"}, {"cid": "6455", "title": "STAGE.20 明日香、來日", "title_zh": "STAGE.20 明日香、来日"}, {"cid": "6456", "title": "STAGE.21 受召喚而來的人", "title_zh": "STAGE.21 受召唤而来的人"}, {"cid": "6457", "title": "STAGE.22 明日香攻擊", "title_zh": "STAGE.22 明日香攻击"}, {"cid": "6458", "title": "STAGE.23 TRY AGAIN", "title_zh": "STAGE.23 TRY AGAIN"}, {"cid": "6459", "title": "STAGE.24 不協和音", "title_zh": "STAGE.24 不协和音"}, {"cid": "6460", "title": "STAGE.25 Shall we dance?", "title_zh": "STAGE.25 Shall we dance?"}, {"cid": "6461", "title": "STAGE.26 瞬間、心靈合一", "title_zh": "STAGE.26 瞬间、心灵合一"}, {"cid": "6463", "title": "STAGE.27 PARTY", "title_zh": "STAGE.27 PARTY"}, {"cid": "6464", "title": "STAGE.28 碰觸到傷痕的話⋯", "title_zh": "STAGE.28 碰触到伤痕的话⋯"}, {"cid": "6465", "title": "STAGE.29 墓碑", "title_zh": "STAGE.29 墓碑"}, {"cid": "6466", "title": "STAGE.30 承受重力攻擊!Catch the G-shock!", "title_zh": "STAGE.30 承受重力攻击!Catch the G-shock!"}, {"cid": "6467", "title": "STAGE.31 NERV、停電", "title_zh": "STAGE.31 NERV、停电"}, {"cid": "6468", "title": "STAGE.32 真實的深淵", "title_zh": "STAGE.32 真实的深渊"}, {"cid": "6469", "title": "STAGE.33 水族館", "title_zh": "STAGE.33 水族馆"}, {"cid": "6471", "title": "STAGE.34 第四適任者", "title_zh": "STAGE.34 第四适任者"}, {"cid": "6472", "title": "STAGE.35 光和影", "title_zh": "STAGE.35 光和影"}, {"cid": "6473", "title": "STAGE.36 告白", "title_zh": "STAGE.36 告白"}, {"cid": "6474", "title": "STAGE.37 禮物", "title_zh": "STAGE.37 礼物"}, {"cid": "6475", "title": "STAGE.38 迎擊", "title_zh": "STAGE.38 迎击"}, {"cid": "6476", "title": "STAGE.39 替代系統", "title_zh": "STAGE.39 替代系统"}, {"cid": "6477", "title": "STAGE.40 用黑S暈染黃昏", "title_zh": "STAGE.40 用黑S晕染黄昏"}, {"cid": "6479", "title": "STAGE.41 拳頭", "title_zh": "STAGE.41 拳头"}, {"cid": "6480", "title": "STAGE.42 灰S天空", "title_zh": "STAGE.42 灰S天空"}, {"cid": "6481", "title": "STAGE.43 詢問", "title_zh": "STAGE.43 询问"}, {"cid": "6482", "title": "STAGE.44 贖罪", "title_zh": "STAGE.44 赎罪"}, {"cid": "6483", "title": "STAGE.45 男人的戰鬥", "title_zh": "STAGE.45 男人的战斗"}, {"cid": "6484", "title": "STAGE.46 覺醒•前篇", "title_zh": "STAGE.46 觉醒•前篇"}, {"cid": "6485", "title": "STAGE.47 覺醒•後篇", "title_zh": "STAGE.47 觉醒•后篇"}, {"cid": "6486", "title": "STAGE.48 消滅", "title_zh": "STAGE.48 消灭"}, {"cid": "6488", "title": "STAGE.49 …Kiss.", "title_zh": "STAGE.49 …Kiss."}, {"cid": "6489", "title": "STAGE.50 到我心裏…", "title_zh": "STAGE.50 到我心里…"}, {"cid": "6490", "title": "STAGE.51 MOTHER", "title_zh": "STAGE.51 MOTHER"}, {"cid": "6491", "title": "STAGE.52 回想", "title_zh": "STAGE.52 回想"}, {"cid": "6492", "title": "STAGE.53 光之巨人", "title_zh": "STAGE.53 光之巨人"}, {"cid": "6493", "title": "STAGE.54 NERV誕生", "title_zh": "STAGE.54 NERV诞生"}, {"cid": "6494", "title": "STAGE.55 留言", "title_zh": "STAGE.55 留言"}, {"cid": "6495", "title": "STAGE.56 嫉妒", "title_zh": "STAGE.56 嫉妒"}, {"cid": "6497", "title": "STAGE.57 第五適任者", "title_zh": "STAGE.57 第五适任者"}, {"cid": "6498", "title": "STAGE.58 拒絕", "title_zh": "STAGE.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>