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>JOJO的奇妙冒险 PART8 JOJO Lion - 在线漫画阅读器</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-1192", "mangaid": "1192", "zh_title": "JOJO的奇妙冒险 PART8 JOJO Lion", "hant_title": "JOJO的奇妙冒險 PART8 JOJO Lion", "en_title": "JOJO的奇妙冒险 PART8 JOJO Lion (Bilimanga #1192)", "author": "荒木飞吕彦", "tags": ["奇幻", "冒险", "战斗", "异能", "奇幻冒险", "日本漫画", "漫画", "日漫"], "zh_desc": "3月11日大地震的当天深夜,日本S市杜王町突然无预警地出现一道长达10公里的隆起--这个隆起日后被人称为「壁之眼」。有一天,平凡的高中女生广濑康穗在壁之眼与恋人岬的附近,发现了一名全身唯美的奇特少年。为了找出他的真实身分,康穗带著他展开调查,却意外发现少年具有奇特的能力,同时不可思议的现象开始发生在他们四周……!\n\n📚 作品信息:作者 荒木飞吕彦 · 评分 10 · 共收录 27 卷 / 105 话章节目录与高清彩页/条漫预览。", "hant_desc": "3月11日大地震的當天深夜,日本S市杜王町突然無預警地出現一道長達10公里的隆起--這個隆起日後被人稱為「壁之眼」。有一天,平凡的高中女生廣瀨康穗在壁之眼與戀人岬的附近,發現了一名全身唯美的奇特少年。為了找出他的真實身分,康穗帶著他展開調查,卻意外發現少年具有奇特的能力,同時不可思議的現象開始發生在他們四周……!\n\n📚 作品資訊:作者 荒木飛呂彥 · 評分 10 · 共收錄 27 卷 / 105 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga 'JOJO的奇妙冒险 PART8 JOJO Lion' (JOJO的奇妙冒險 PART8 JOJO Lion) by 荒木飞吕彦. Includes 27 volumes and 105 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1192/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1192/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1192/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1192/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1192/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1192/page_06.jpg"], "volumes": [{"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 1", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 1", "cover_id": 2171300, "first_chap_id": 100817, "cover_url": "https://i.motiezw.com/cover/1192/2171300.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 2", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 2", "cover_id": 2171507, "first_chap_id": 100823, "cover_url": "https://i.motiezw.com/cover/1192/2171507.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 3", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 3", "cover_id": 2171679, "first_chap_id": 100828, "cover_url": "https://i.motiezw.com/cover/1192/2171679.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 4", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 4", "cover_id": 2171836, "first_chap_id": 100833, "cover_url": "https://i.motiezw.com/cover/1192/2171836.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 5", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 5", "cover_id": 2172021, "first_chap_id": 100839, "cover_url": "https://i.motiezw.com/cover/1192/2172021.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 6", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 6", "cover_id": 2172181, "first_chap_id": 100844, "cover_url": "https://i.motiezw.com/cover/1192/2172181.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 7", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 7", "cover_id": 2172353, "first_chap_id": 100849, "cover_url": "https://i.motiezw.com/cover/1192/2172353.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 8", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 8", "cover_id": 2172507, "first_chap_id": 100854, "cover_url": "https://i.motiezw.com/cover/1192/2172507.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 9", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 9", "cover_id": 2172688, "first_chap_id": 100859, "cover_url": "https://i.motiezw.com/cover/1192/2172688.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 10", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 10", "cover_id": 2172850, "first_chap_id": 100864, "cover_url": "https://i.motiezw.com/cover/1192/2172850.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 11", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 11", "cover_id": 2177670, "first_chap_id": 101024, "cover_url": "https://i.motiezw.com/cover/1192/2177670.jpg"}, {"title_hant": "JOJO的奇妙冒險 PART8 JOJO Lion 12", "title_zh": "JOJO的奇妙冒险 PART8 JOJO Lion 12", "cover_id": 2198901, "first_chap_id": 101915, "cover_url": "https://i.motiezw.com/cover/1192/2198901.jpg"}], "chapters": [{"cid": "100817", "title": "#001 歡迎來到杜王町", "title_zh": "#001 欢迎来到杜王町"}, {"cid": "100818", "title": "#002 SOFT&WET 其之①", "title_zh": "#002 SOFT&WET 其之①"}, {"cid": "100819", "title": "#003 SOFT&WET 其之②", "title_zh": "#003 SOFT&WET 其之②"}, {"cid": "100820", "title": "#004 SOFT&WET 其之③", "title_zh": "#004 SOFT&WET 其之③"}, {"cid": "100821", "title": "#005 SOFT&WET 其之④", "title_zh": "#005 SOFT&WET 其之④"}, {"cid": "100823", "title": "#006 SOFT&WET 其之⑤", "title_zh": "#006 SOFT&WET 其之⑤"}, {"cid": "100824", "title": "#007 定助 前往東方家", "title_zh": "#007 定助 前往东方家"}, {"cid": "100825", "title": "#008 加州大床 其之①", "title_zh": "#008 加州大床 其之①"}, {"cid": "100826", "title": "#009 加州大床 其之②", "title_zh": "#009 加州大床 其之②"}, {"cid": "100828", "title": "#010 加州大床 其之③", "title_zh": "#010 加州大床 其之③"}, {"cid": "100829", "title": "#011 家譜", "title_zh": "#011 家谱"}, {"cid": "100830", "title": "#012『佩斯利公園』與『天生完M』其之①", "title_zh": "#012『佩斯利公园』与『天生完M』其之①"}, {"cid": "100831", "title": "#013『佩斯利公園』與『天生完M』其之②", "title_zh": "#013『佩斯利公园』与『天生完M』其之②"}, {"cid": "100833", "title": "#014『佩斯利公園』與『天生完M』其之③", "title_zh": "#014『佩斯利公园』与『天生完M』其之③"}, {"cid": "100834", "title": "#015『佩斯利公園』與『天生完M』其之④", "title_zh": "#015『佩斯利公园』与『天生完M』其之④"}, {"cid": "100835", "title": "#016『佩斯利公園』與『天生完M』其之⑤", "title_zh": "#016『佩斯利公园』与『天生完M』其之⑤"}, {"cid": "100836", "title": "#017 檸檬與橘子", "title_zh": "#017 柠檬与橘子"}, {"cid": "100837", "title": "#018『勒索之路』其之①", "title_zh": "#018『勒索之路』其之①"}, {"cid": "100839", "title": "#019『勒索之路』其之②", "title_zh": "#019『勒索之路』其之②"}, {"cid": "100841", "title": "#021『勒索之路』其之④", "title_zh": "#021『勒索之路』其之④"}, {"cid": "100842", "title": "#022 杜王町『1901年』", "title_zh": "#022 杜王町『1901年』"}, {"cid": "100844", "title": "#023 PAPBR MOON假象 其之①", "title_zh": "#023 PAPBR MOON假象 其之①"}, {"cid": "100845", "title": "#024 PAPBR MOON假象 其之②", "title_zh": "#024 PAPBR MOON假象 其之②"}, {"cid": "100846", "title": "#025 PAPER MOON假象 其之③", "title_zh": "#025 PAPER MOON假象 其之③"}, {"cid": "100847", "title": "#026 東方劍的目的,以及建築師", "title_zh": "#026 东方剑的目的,以及建筑师"}, {"cid": "100849", "title": "#027 東方憲助、東方劍與八木山夜露 其之①", "title_zh": "#027 东方宪助、东方剑与八木山夜露 其之①"}, {"cid": "100850", "title": "#028 東方憲助、東方劍與八木山夜露 其之②", "title_zh": "#028 东方宪助、东方剑与八木山夜露 其之②"}, {"cid": "100851", "title": "#029 東方憲助、東方劍與八木山夜露 其之③", "title_zh": "#029 东方宪助、东方剑与八木山夜露 其之③"}, {"cid": "100852", "title": "#030 虛名之王", "title_zh": "#030 虚名之王"}, {"cid": "100854", "title": "#031「我是岩石(I AM A ROCK)」其之①", "title_zh": "#031「我是岩石(I AM A ROCK)」其之①"}, {"cid": "100855", "title": "#032「我是岩石(I AM A ROCK)」其之②", "title_zh": "#032「我是岩石(I AM A ROCK)」其之②"}, {"cid": "100856", "title": "#033 定助!前往東方冰果室", "title_zh": "#033 定助!前往东方冰果室"}, {"cid": "100857", "title": "#034 每天都是暑假 其之①", "title_zh": "#034 每天都是暑假 其之①"}, {"cid": "100859", "title": "#035 每天都是暑假 其之②", "title_zh": "#035 每天都是暑假 其之②"}, {"cid": "100860", "title": "#036 每天都是暑假 其之③", "title_zh": "#036 每天都是暑假 其之③"}, {"cid": "100861", "title": "#037 每天都是暑假 其之④", "title_zh": "#037 每天都是暑假 其之④"}, {"cid": "100862", "title": "#038 東方常敏是替身使者", "title_zh": "#038 东方常敏是替身使者"}, {"cid": "100864", "title": "#039 嘟比•哇 其之①", "title_zh": "#039 嘟比•哇 其之①"}, {"cid": "100866", "title": "#041 嘟比•哇 其之③", "title_zh": "#041 嘟比•哇 其之③"}, {"cid": "100867", "title": "#042 嘟比•哇 其之④", "title_zh": "#042 嘟比•哇 其之④"}, {"cid": "101024", "title": "#043 華麗摯愛 其之①", "title_zh": "#043 华丽挚爱 其之①"}, {"cid": "101025", "title": "#044 華麗摯愛 其之②", "title_zh": "#044 华丽挚爱 其之②"}, {"cid": "101026", "title": "#045 華麗摯愛 其之③", "title_zh": "#045 华丽挚爱 其之③"}, {"cid": "101027", "title": "#046 華麗摯愛 其之④", "title_zh": "#046 华丽挚爱 其之④"}, {"cid": "101915", "title": "#047 小鳩帶男朋友回家了 其之①", "title_zh": "#047 小鸠带男朋友回家了 其之①"}, {"cid": "101916", "title": "#048 小鳩帶男朋友回家了 其之②", "title_zh": "#048 小鸠带男朋友回家了 其之②"}, {"cid": "101917", "title": "#049 小鳩帶男朋友回家了 其之③", "title_zh": "#049 小鸠带男朋友回家了 其之③"}, {"cid": "101918", "title": "#050 維他命C與皇后殺手 其之①", "title_zh": "#050 维他命C与皇后杀手 其之①"}, {"cid": "101920", "title": "#051 維他命C與皇后殺手 其之②", "title_zh": "#051 维他命C与皇后杀手 其之②"}, {"cid": "101921", "title": "#052 維他命C與皇后殺手 其之③", "title_zh": "#052 维他命C与皇后杀手 其之③"}, {"cid": "101922", "title": "#053 維他命C與皇后殺手 其之④", "title_zh": "#053 维他命C与皇后杀手 其之④"}, {"cid": "101923", "title": "#054 步行之心", "title_zh": "#054 步行之心"}, {"cid": "101925", "title": "#055 步行之心·破碎之心", "title_zh": "#055 步行之心·破碎之心"}, {"cid": "101926", "title": "#056 奇蹟之人 其之①", "title_zh": "#056 奇迹之人 其之①"}, {"cid": "101927", "title": "#057 奇蹟之人 其之②", "title_zh": "#057 奇迹之人 其之②"}, {"cid": "101928", "title": "#058 東方家的黎明", "title_zh": "#058 东方家的黎明"}, {"cid": "101930", "title": "#059 多洛米蒂的藍S珊瑚礁 其之①", "title_zh": "#059 多洛米蒂的蓝S珊瑚礁 其之①"}, {"cid": "101932", "title": "#061 多洛米蒂的藍S珊瑚礁 其之③", "title_zh": "#061 多洛米蒂的蓝S珊瑚礁 其之③"}, {"cid": "101933", "title": "#062 多洛米蒂的藍S珊瑚礁 其之④", "title_zh": "#062 多洛米蒂的蓝S珊瑚礁 其之④"}, {"cid": "101935", "title": "#063 多洛米蒂的藍S珊瑚礁 其之⑤", "title_zh": "#063 多洛米蒂的蓝S珊瑚礁 其之⑤"}]};
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>