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-446", "mangaid": "446", "zh_title": "平凡职业造就世界最强", "hant_title": "平凡職業造就世界最強", "en_title": "平凡职业造就世界最强 (Bilimanga #446)", "author": "RoGa / 白米良 / TakayaKi", "tags": ["奇幻", "冒险", "异世界", "龙傲天", "魔法", "战斗", "后宫", "奇幻冒险"], "zh_desc": "以「人生应该在爱好中度过」为座右铭的南云始,在某一天突然和同学们一起被召唤至异世界。在那里,其他同学都拥有远远超越异世界居民的能力,而始的能力却是非常平凡的「炼成师」…… 他在掉下深渊后,如何利用自己的「平凡能力」才能脱出迷宫?! \n\r\n大受欢迎的「最强」异世界幻想故事,在此揭幕!\n\n📚 作品信息:作者 RoGa / 白米良 / TakayaKi · 评分 9.1 · 共收录 15 卷 / 86 话章节目录与高清彩页/条漫预览。", "hant_desc": "以「人生應該在愛好中度過」為座右銘的南雲始,在某一天突然和同學們一起被召喚至異世界。在那裡,其他同學都擁有遠遠超越異世界居民的能力,而始的能力卻是非常平凡的「煉成師」…… 他在掉下深淵後,如何利用自己的「平凡能力」才能脫出迷宮?! \n\r\n大受歡迎的「最強」異世界幻想故事,在此揭幕!\n\n📚 作品資訊:作者 RoGa / 白米良 / TakayaKi · 評分 9.1 · 共收錄 15 卷 / 86 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '平凡职业造就世界最强' (平凡職業造就世界最強) by RoGa / 白米良 / TakayaKi. Includes 15 volumes and 86 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-446/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-446/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-446/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-446/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-446/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-446/page_06.jpg"], "volumes": [{"title_hant": "平凡職業造就世界最強 1", "title_zh": "平凡职业造就世界最强 1", "cover_id": 766649, "first_chap_id": 35706, "cover_url": "https://i.motiezw.com/cover/446/766649.jpg"}, {"title_hant": "平凡職業造就世界最強 2", "title_zh": "平凡职业造就世界最强 2", "cover_id": 766802, "first_chap_id": 35715, "cover_url": "https://i.motiezw.com/cover/446/766802.jpg"}, {"title_hant": "平凡職業造就世界最強 3", "title_zh": "平凡职业造就世界最强 3", "cover_id": 766952, "first_chap_id": 35724, "cover_url": "https://i.motiezw.com/cover/446/766952.jpg"}, {"title_hant": "平凡職業造就世界最強 4", "title_zh": "平凡职业造就世界最强 4", "cover_id": 767108, "first_chap_id": 35731, "cover_url": "https://i.motiezw.com/cover/446/767108.jpg"}, {"title_hant": "平凡職業造就世界最強 5", "title_zh": "平凡职业造就世界最强 5", "cover_id": 767257, "first_chap_id": 35738, "cover_url": "https://i.motiezw.com/cover/446/767257.jpg"}, {"title_hant": "平凡職業造就世界最強 6", "title_zh": "平凡职业造就世界最强 6", "cover_id": 767402, "first_chap_id": 35745, "cover_url": "https://i.motiezw.com/cover/446/767402.jpg"}, {"title_hant": "平凡職業造就世界最強 7", "title_zh": "平凡职业造就世界最强 7", "cover_id": 767549, "first_chap_id": 35752, "cover_url": "https://i.motiezw.com/cover/446/767549.jpg"}, {"title_hant": "平凡職業造就世界最強 8", "title_zh": "平凡职业造就世界最强 8", "cover_id": 767696, "first_chap_id": 35759, "cover_url": "https://i.motiezw.com/cover/446/767696.jpg"}, {"title_hant": "平凡職業造就世界最強 9", "title_zh": "平凡职业造就世界最强 9", "cover_id": 767835, "first_chap_id": 35765, "cover_url": "https://i.motiezw.com/cover/446/767835.jpg"}, {"title_hant": "平凡職業造就世界最強 10", "title_zh": "平凡职业造就世界最强 10", "cover_id": 767978, "first_chap_id": 35771, "cover_url": "https://i.motiezw.com/cover/446/767978.jpg"}, {"title_hant": "平凡職業造就世界最強 11", "title_zh": "平凡职业造就世界最强 11", "cover_id": 768120, "first_chap_id": 35777, "cover_url": "https://i.motiezw.com/cover/446/768120.jpg"}, {"title_hant": "平凡職業造就世界最強 12", "title_zh": "平凡职业造就世界最强 12", "cover_id": 768745, "first_chap_id": 35783, "cover_url": "https://i.motiezw.com/cover/446/768745.jpg"}], "chapters": [{"cid": "35706", "title": "第00話 一切的開始", "title_zh": "第00话 一切的开始"}, {"cid": "35707", "title": "第01話 異世界召喚", "title_zh": "第01话 异世界召唤"}, {"cid": "35708", "title": "第02話 天職", "title_zh": "第02话 天职"}, {"cid": "35709", "title": "第03話 奧爾庫司大迷宮", "title_zh": "第03话 奥尔库司大迷宫"}, {"cid": "35710", "title": "第04話 地獄最底層", "title_zh": "第04话 地狱最底层"}, {"cid": "35711", "title": "第05話 絕望", "title_zh": "第05话 绝望"}, {"cid": "35712", "title": "第06話 新的力量", "title_zh": "第06话 新的力量"}, {"cid": "35713", "title": "第07話 邂逅", "title_zh": "第07话 邂逅"}, {"cid": "35800", "title": "番外1 那場邂逅,便是命運", "title_zh": "番外1 那场邂逅,便是命运"}, {"cid": "35715", "title": "第08話 月", "title_zh": "第08话 月"}, {"cid": "35716", "title": "第09話 蒼天", "title_zh": "第09话 苍天"}, {"cid": "35717", "title": "第10話 月的食物", "title_zh": "第10话 月的食物"}, {"cid": "35718", "title": "第11話 花田", "title_zh": "第11话 花田"}, {"cid": "35719", "title": "第12話 第一百層", "title_zh": "第12话 第一百层"}, {"cid": "35720", "title": "第13話 喪失", "title_zh": "第13话 丧失"}, {"cid": "35721", "title": "第14話 了斷", "title_zh": "第14话 了断"}, {"cid": "35722", "title": "第14.5話 奧斯卡·奧爾庫司", "title_zh": "第14.5话 奥斯卡·奥尔库司"}, {"cid": "35801", "title": "番外2 就快要出去了吧?!", "title_zh": "番外2 就快要出去了吧?!"}, {"cid": "35724", "title": "第15話 希婭·郝利亞", "title_zh": "第15话 希娅·郝利亚"}, {"cid": "35725", "title": "第16話 郝利亞一族", "title_zh": "第16话 郝利亚一族"}, {"cid": "35726", "title": "第17話 亞人國菲爾伯根", "title_zh": "第17话 亚人国菲尔伯根"}, {"cid": "35728", "title": "第19話 啓程", "title_zh": "第19话 启程"}, {"cid": "35729", "title": "第20話 萊森大迷宮", "title_zh": "第20话 莱森大迷宫"}, {"cid": "35802", "title": "番外3 你不要會錯意了?!我們還不是朋友哦?!", "title_zh": "番外3 你不要会错意了?!我们还不是朋友哦?!"}, {"cid": "35731", "title": "第21話 心跳加速大迷宮?!", "title_zh": "第21话 心跳加速大迷宫?!"}, {"cid": "35732", "title": "第22話 密雷迪·萊森", "title_zh": "第22话 密雷迪·莱森"}, {"cid": "35733", "title": "第23話 決戰", "title_zh": "第23话 决战"}, {"cid": "35734", "title": "第24話 關鍵時刻", "title_zh": "第24话 关键时刻"}, {"cid": "35735", "title": "第25話 迷宮的所在", "title_zh": "第25话 迷宫的所在"}, {"cid": "35736", "title": "第26話 再旅館", "title_zh": "第26话 再旅馆"}, {"cid": "35803", "title": "番外4 我、我交到……朋友啦", "title_zh": "番外4 我、我交到……朋友啦"}, {"cid": "35738", "title": "第27話 襲擊", "title_zh": "第27话 袭击"}, {"cid": "35739", "title": "第28話 委託", "title_zh": "第28话 委托"}, {"cid": "35740", "title": "第29話 再會", "title_zh": "第29话 再会"}, {"cid": "35741", "title": "第30話 遭遇", "title_zh": "第30话 遭遇"}, {"cid": "35742", "title": "第31話 激戰", "title_zh": "第31话 激战"}, {"cid": "35743", "title": "第32話 迪奧·庫拉魯斯", "title_zh": "第32话 迪奥·库拉鲁斯"}, {"cid": "35745", "title": "第33話 新裝備", "title_zh": "第33话 新装备"}, {"cid": "35746", "title": "第34話 N神之劍", "title_zh": "第34话 N神之剑"}, {"cid": "35747", "title": "第35話 未來視", "title_zh": "第35话 未来视"}, {"cid": "35748", "title": "第36話 魔人族", "title_zh": "第36话 魔人族"}, {"cid": "35749", "title": "第37話 葛藤", "title_zh": "第37话 葛藤"}, {"cid": "35752", "title": "第39話 歸途", "title_zh": "第39话 归途"}, {"cid": "35753", "title": "第40話 約會", "title_zh": "第40话 约会"}, {"cid": "35754", "title": "第41話 妙", "title_zh": "第41话 妙"}, {"cid": "35755", "title": "第42話 爸爸", "title_zh": "第42话 爸爸"}, {"cid": "35756", "title": "第43話 我們的戰爭", "title_zh": "第43话 我们的战争"}, {"cid": "35757", "title": "第44話 爛劇本", "title_zh": "第44话 烂剧本"}, {"cid": "35759", "title": "第45話 南雲始", "title_zh": "第45话 南云始"}, {"cid": "35760", "title": "第46話 那位大人", "title_zh": "第46话 那位大人"}, {"cid": "35761", "title": "第47話 白崎香織", "title_zh": "第47话 白崎香织"}, {"cid": "35762", "title": "第48話 渴望之物", "title_zh": "第48话 渴望之物"}, {"cid": "35763", "title": "第49話 安卡丁公國", "title_zh": "第49话 安卡丁公国"}, {"cid": "35765", "title": "第50話 奧雅西斯之底", "title_zh": "第50话 奥雅西斯之底"}, {"cid": "35766", "title": "第51話 古盧恩大火山", "title_zh": "第51话 古卢恩大火山"}, {"cid": "35767", "title": "第52話 好好看著吧", "title_zh": "第52话 好好看著吧"}, {"cid": "35768", "title": "第53話 守護者", "title_zh": "第53话 守护者"}, {"cid": "35769", "title": "第54話 通關條件", "title_zh": "第54话 通关条件"}, {"cid": "35771", "title": "第55話 弗里德·巴格亞", "title_zh": "第55话 弗里德·巴格亚"}, {"cid": "35772", "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>