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-7", "mangaid": "7", "zh_title": "七龙珠 (全彩文传版)", "hant_title": "七龍珠 (全彩文傳版)", "en_title": "七龙珠 (全彩文传版) (Bilimanga #7)", "author": "鸟山明", "tags": ["奇幻", "冒险", "热血", "战斗", "欢乐", "奇幻冒险", "日本漫画", "漫画"], "zh_desc": "传说中,地球四处散落著7颗龙珠。如果谁将他们收集起来就可以实现自己的愿望,人们为了得到它而不断的你争我夺……每年都会有一场以龙珠为奖品的《天下第一武道大会》…… \n\r\n在地球的一个角落,生活著孙悟空这个茁壮的孩子,他的身份其实是赛亚人 卡卡罗特。因为婴儿时的变身能力不够而被派往地球,其实是为了毁灭地球生物而变成殖民地,但他生来和平,丝毫不知知己的身世……这种战斗力超强的种族「赛亚人」与宇宙中另一些种族「那美克星人」等等间发生了无数惊险有趣又富有教育意义的故事…… \n\r\n这就是日本著名漫画家「鸟山明」创造的《七龙珠》世界。\n\n📚 作品信息:作者 鸟山明 · 评分 9.9 · 共收录 42 卷 / 499 话章节目录与高清彩页/条漫预览。", "hant_desc": "傳說中,地球四處散落著7顆龍珠。如果誰將他們收集起來就可以實現自己的願望,人們為了得到它而不斷的你爭我奪……每年都會有一場以龍珠為獎品的《天下第一武道大會》…… \n\r\n在地球的一個角落,生活著孫悟空這個茁壯的孩子,他的身份其實是賽亞人 卡卡羅特。因為嬰兒時的變身能力不夠而被派往地球,其實是為了毀滅地球生物而變成殖民地,但他生來和平,絲毫不知知己的身世……這種戰鬥力超強的種族「賽亞人」與宇宙中另一些種族「那美剋星人」等等間發生了無數驚險有趣又富有教育意義的故事…… \n\r\n這就是日本著名漫畫家「鳥山明」創造的《七龍珠》世界。\n\n📚 作品資訊:作者 鳥山明 · 評分 9.9 · 共收錄 42 卷 / 499 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '七龙珠 (全彩文传版)' (七龍珠 (全彩文傳版)) by 鸟山明. Includes 42 volumes and 499 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-7/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-7/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-7/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-7/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-7/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-7/page_06.jpg"], "volumes": [{"title_hant": "七龍珠 (全彩文傳版) 1 孫悟空修行篇①", "title_zh": "七龙珠 (全彩文传版) 1 孙悟空修行篇①", "cover_id": 4420, "first_chap_id": 266, "cover_url": "https://i.motiezw.com/cover/7/4420.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 2 孫悟空修行篇②", "title_zh": "七龙珠 (全彩文传版) 2 孙悟空修行篇②", "cover_id": 4631, "first_chap_id": 280, "cover_url": "https://i.motiezw.com/cover/7/4631.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 3 孫悟空修行篇③", "title_zh": "七龙珠 (全彩文传版) 3 孙悟空修行篇③", "cover_id": 23104, "first_chap_id": 1242, "cover_url": "https://i.motiezw.com/cover/7/23104.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 4 孫悟空修行篇④", "title_zh": "七龙珠 (全彩文传版) 4 孙悟空修行篇④", "cover_id": 42161, "first_chap_id": 2042, "cover_url": "https://i.motiezw.com/cover/7/42161.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 5 紅領巾軍篇①", "title_zh": "七龙珠 (全彩文传版) 5 红领巾军篇①", "cover_id": 94440, "first_chap_id": 4351, "cover_url": "https://i.motiezw.com/cover/7/94440.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 6 紅領巾軍篇②", "title_zh": "七龙珠 (全彩文传版) 6 红领巾军篇②", "cover_id": 94623, "first_chap_id": 4364, "cover_url": "https://i.motiezw.com/cover/7/94623.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 7 紅領巾軍篇③", "title_zh": "七龙珠 (全彩文传版) 7 红领巾军篇③", "cover_id": 180825, "first_chap_id": 8266, "cover_url": "https://i.motiezw.com/cover/7/180825.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 8 紅領巾軍篇④", "title_zh": "七龙珠 (全彩文传版) 8 红领巾军篇④", "cover_id": 180991, "first_chap_id": 8278, "cover_url": "https://i.motiezw.com/cover/7/180991.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 9 紅領巾軍篇⑤", "title_zh": "七龙珠 (全彩文传版) 9 红领巾军篇⑤", "cover_id": 181157, "first_chap_id": 8290, "cover_url": "https://i.motiezw.com/cover/7/181157.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 10 笛子大魔王篇①", "title_zh": "七龙珠 (全彩文传版) 10 笛子大魔王篇①", "cover_id": 181339, "first_chap_id": 8303, "cover_url": "https://i.motiezw.com/cover/7/181339.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 11 笛子大魔王篇②", "title_zh": "七龙珠 (全彩文传版) 11 笛子大魔王篇②", "cover_id": 181503, "first_chap_id": 8314, "cover_url": "https://i.motiezw.com/cover/7/181503.jpg"}, {"title_hant": "七龍珠 (全彩文傳版) 12 笛子大魔王篇③", "title_zh": "七龙珠 (全彩文传版) 12 笛子大魔王篇③", "cover_id": 181669, "first_chap_id": 8327, "cover_url": "https://i.motiezw.com/cover/7/181669.jpg"}], "chapters": [{"cid": "266", "title": "第一篇 莊子與孫悟空", "title_zh": "第一篇 庄子与孙悟空"}, {"cid": "267", "title": "第二篇 龍珠不見了!!", "title_zh": "第二篇 龙珠不见了!!"}, {"cid": "268", "title": "第三篇 悟空義救海龜", "title_zh": "第三篇 悟空义救海龟"}, {"cid": "269", "title": "第四篇 龜仙人的筋斗雲", "title_zh": "第四篇 龟仙人的筋斗云"}, {"cid": "270", "title": "第五篇 烏龍來了!", "title_zh": "第五篇 乌龙来了!"}, {"cid": "271", "title": "第六篇 烏龍大戰孫悟空", "title_zh": "第六篇 乌龙大战孙悟空"}, {"cid": "272", "title": "第七篇 阿樂與烏兒", "title_zh": "第七篇 阿乐与乌儿"}, {"cid": "273", "title": "第八篇 阿樂好可怕!!", "title_zh": "第八篇 阿乐好可怕!!"}, {"cid": "274", "title": "第九篇 龍珠危險了!!", "title_zh": "第九篇 龙珠危险了!!"}, {"cid": "275", "title": "第十篇 阿樂的詭計", "title_zh": "第十篇 阿乐的诡计"}, {"cid": "276", "title": "第十一篇 火燄山的牛魔王", "title_zh": "第十一篇 火燄山的牛魔王"}, {"cid": "277", "title": "第十二篇 造訪龜仙人", "title_zh": "第十二篇 造访龟仙人"}, {"cid": "278", "title": "第十三篇 龜仙人的芭蕉扇", "title_zh": "第十三篇 龟仙人的芭蕉扇"}, {"cid": "280", "title": "第十四篇 龜仙人的龜波氣功!!", "title_zh": "第十四篇 龟仙人的龟波气功!!"}, {"cid": "281", "title": "第十五篇 發現七星龍珠", "title_zh": "第十五篇 发现七星龙珠"}, {"cid": "282", "title": "第十六篇 兔子耳朵", "title_zh": "第十六篇 兔子耳朵"}, {"cid": "283", "title": "第十七篇 首領的絕技", "title_zh": "第十七篇 首领的绝技"}, {"cid": "284", "title": "第十八篇 龍珠被奪!!", "title_zh": "第十八篇 龙珠被夺!!"}, {"cid": "285", "title": "第十九篇 神龍終於出現!", "title_zh": "第十九篇 神龙终于出现!"}, {"cid": "286", "title": "第二十篇 向神龍許願!!", "title_zh": "第二十篇 向神龙许愿!!"}, {"cid": "287", "title": "第二十一篇 月圓", "title_zh": "第二十一篇 月圆"}, {"cid": "288", "title": "第二十二篇 悟空大變身", "title_zh": "第二十二篇 悟空大变身"}, {"cid": "290", "title": "第二十四篇 龜仙人的修煉", "title_zh": "第二十四篇 龟仙人的修炼"}, {"cid": "291", "title": "第二十五篇 勁敵?駕到!!", "title_zh": "第二十五篇 劲敌?驾到!!"}, {"cid": "292", "title": "第二十六篇 奇妙的N孩", "title_zh": "第二十六篇 奇妙的N孩"}, {"cid": "1242", "title": "第二十七篇 蘭蒂的噴嚏", "title_zh": "第二十七篇 兰蒂的喷嚏"}, {"cid": "1243", "title": "第二十八篇 修行開始!!", "title_zh": "第二十八篇 修行开始!!"}, {"cid": "1244", "title": "第二十九篇 找尋有龜印的石頭", "title_zh": "第二十九篇 找寻有龟印的石头"}, {"cid": "1245", "title": "第三十篇 派牛乃", "title_zh": "第三十篇 派牛乃"}, {"cid": "1246", "title": "第三十一篇 龜仙派的嚴格修行", "title_zh": "第三十一篇 龟仙派的严格修行"}, {"cid": "1247", "title": "第三十二篇 天下第一 武術大會開始!!", "title_zh": "第三十二篇 天下第一 武术大会开始!!"}, {"cid": "1248", "title": "第三十三篇 修行的威力!!", "title_zh": "第三十三篇 修行的威力!!"}, {"cid": "1249", "title": "第三十四篇 天下無敵!", "title_zh": "第三十四篇 天下无敌!"}, {"cid": "1250", "title": "第三十五篇 決定對手!!", "title_zh": "第三十五篇 决定对手!!"}, {"cid": "1251", "title": "第三十六篇 第一回合", "title_zh": "第三十六篇 第一回合"}, {"cid": "1252", "title": "第三十七篇 第二回合", "title_zh": "第三十七篇 第二回合"}, {"cid": "1253", "title": "第三十八篇 第三回合", "title_zh": "第三十八篇 第三回合"}, {"cid": "1254", "title": "第三十九篇 第四回合", "title_zh": "第三十九篇 第四回合"}, {"cid": "1255", "title": "第四十篇 悟空的尾巴", "title_zh": "第四十篇 悟空的尾巴"}, {"cid": "2042", "title": "第四十一篇 無限對程龍", "title_zh": "第四十一篇 无限对程龙"}, {"cid": "2043", "title": "第四十二篇 大攻防戰!", "title_zh": "第四十二篇 大攻防战!"}, {"cid": "2044", "title": "第四十三篇 程龍身分之謎", "title_zh": "第四十三篇 程龙身分之谜"}, {"cid": "2045", "title": "第四十四篇 悟空對南無", "title_zh": "第四十四篇 悟空对南无"}, {"cid": "2046", "title": "第四十五篇 空中大戦!", "title_zh": "第四十五篇 空中大戦!"}, {"cid": "2048", "title": "第四十七篇 龜波氣功", "title_zh": "第四十七篇 龟波气功"}, {"cid": "2049", "title": "第四十八篇 瞎模仿人的悟空", "title_zh": "第四十八篇 瞎模仿人的悟空"}, {"cid": "2050", "title": "第四十九篇 武天老師的反擊", "title_zh": "第四十九篇 武天老师的反击"}, {"cid": "2051", "title": "第五十篇 悟空最大的危機!!", "title_zh": "第五十篇 悟空最大的危机!!"}, {"cid": "2052", "title": "第五十一篇 天下第一武術大會大動亂!!", "title_zh": "第五十一篇 天下第一武术大会大动乱!!"}, {"cid": "2053", "title": "第五十二篇 高潮逼近!!", "title_zh": "第五十二篇 高潮逼近!!"}, {"cid": "2054", "title": "第五十三篇 高潮", "title_zh": "第五十三篇 高潮"}, {"cid": "2055", "title": "第五十四篇 再踏征途!!", "title_zh": "第五十四篇 再踏征途!!"}, {"cid": "4351", "title": "第五十五篇 紅領巾軍", "title_zh": "第五十五篇 红领巾军"}, {"cid": "4352", "title": "第五十六篇 龍珠爭奪戰", "title_zh": "第五十六篇 龙珠争夺战"}, {"cid": "4353", "title": "第五十七篇 突擊筋禸塔!!", "title_zh": "第五十七篇 突击筋禸塔!!"}, {"cid": "4354", "title": "第五十八篇 筋禸塔的恐怖", "title_zh": "第五十八篇 筋禸塔的恐怖"}, {"cid": "4355", "title": "第五十九篇 三樓的惡魔!!", "title_zh": "第五十九篇 三楼的恶魔!!"}, {"cid": "4356", "title": "第六十篇 紫忍者!!", "title_zh": "第六十篇 紫忍者!!"}, {"cid": "4357", "title": "第六十一篇 悟空對紫上士!!", "title_zh": "第六十一篇 悟空对紫上士!!"}, {"cid": "4358", "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>