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-989", "mangaid": "989", "zh_title": "天野惠浑身是破绽!", "hant_title": "天野惠渾身是破綻!", "en_title": "天野惠浑身是破绽! (Bilimanga #989)", "author": "猫口", "tags": ["校园", "日常", "恋爱", "青梅竹马", "萌系", "校园青春", "日本漫画", "漫画"], "zh_desc": "热衷剑道的体育系丰腴型女生・小惠,和目标东大的瘦长型男生・阿学,从小青梅竹马的二人虽然国中时疏远了,可是由于都上同一间高中,距离又开始缩短了。\n\r\n只有身体长大内心还是小孩的小惠,完全没意识到自己丰满的身材,还是像小时候一样粗线条,总是不断走光,破绽百出,阿学也被小惠的身材弄得无法专心念书。\n\r\n完全相反的二人开始互相吸引…?\n\n📚 作品信息:作者 猫口 · 评分 10 · 共收录 28 卷 / 268 话章节目录与高清彩页/条漫预览。", "hant_desc": "熱衷劍道的體育系豐腴型女生・小惠,和目標東大的瘦長型男生・阿學,從小青梅竹馬的二人雖然國中時疏遠了,可是由於都上同一間高中,距離又開始縮短了。\n\r\n只有身體長大內心還是小孩的小惠,完全沒意識到自己豐滿的身材,還是像小時候一樣粗線條,總是不斷走光,破綻百出,阿學也被小惠的身材弄得無法專心念書。\n\r\n完全相反的二人開始互相吸引…?\n\n📚 作品資訊:作者 猫口 · 評分 10 · 共收錄 28 卷 / 268 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '天野惠浑身是破绽!' (天野惠渾身是破綻!) by 猫口. Includes 28 volumes and 268 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-989/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-989/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-989/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-989/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-989/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-989/page_06.jpg"], "volumes": [{"title_hant": "天野惠渾身是破綻! 1", "title_zh": "天野惠浑身是破绽! 1", "cover_id": 1736234, "first_chap_id": 80218, "cover_url": "https://i.motiezw.com/cover/989/1736234.jpg"}, {"title_hant": "天野惠渾身是破綻! 2", "title_zh": "天野惠浑身是破绽! 2", "cover_id": 1736420, "first_chap_id": 80228, "cover_url": "https://i.motiezw.com/cover/989/1736420.jpg"}, {"title_hant": "天野惠渾身是破綻! 3", "title_zh": "天野惠浑身是破绽! 3", "cover_id": 1736606, "first_chap_id": 80239, "cover_url": "https://i.motiezw.com/cover/989/1736606.jpg"}, {"title_hant": "天野惠渾身是破綻! 4", "title_zh": "天野惠浑身是破绽! 4", "cover_id": 1736790, "first_chap_id": 80250, "cover_url": "https://i.motiezw.com/cover/989/1736790.jpg"}, {"title_hant": "天野惠渾身是破綻! 5", "title_zh": "天野惠浑身是破绽! 5", "cover_id": 1737300, "first_chap_id": 80270, "cover_url": "https://i.motiezw.com/cover/989/1737300.jpg"}, {"title_hant": "天野惠渾身是破綻! 6", "title_zh": "天野惠浑身是破绽! 6", "cover_id": 1737321, "first_chap_id": 80272, "cover_url": "https://i.motiezw.com/cover/989/1737321.jpg"}, {"title_hant": "天野惠渾身是破綻! 7", "title_zh": "天野惠浑身是破绽! 7", "cover_id": 1737507, "first_chap_id": 80283, "cover_url": "https://i.motiezw.com/cover/989/1737507.jpg"}, {"title_hant": "天野惠渾身是破綻! 8", "title_zh": "天野惠浑身是破绽! 8", "cover_id": 1737709, "first_chap_id": 80294, "cover_url": "https://i.motiezw.com/cover/989/1737709.jpg"}, {"title_hant": "天野惠渾身是破綻! 9", "title_zh": "天野惠浑身是破绽! 9", "cover_id": 1737900, "first_chap_id": 80305, "cover_url": "https://i.motiezw.com/cover/989/1737900.jpg"}, {"title_hant": "天野惠渾身是破綻! 10", "title_zh": "天野惠浑身是破绽! 10", "cover_id": 1738088, "first_chap_id": 80317, "cover_url": "https://i.motiezw.com/cover/989/1738088.jpg"}, {"title_hant": "天野惠渾身是破綻! 11", "title_zh": "天野惠浑身是破绽! 11", "cover_id": 1738274, "first_chap_id": 80327, "cover_url": "https://i.motiezw.com/cover/989/1738274.jpg"}, {"title_hant": "天野惠渾身是破綻! 12", "title_zh": "天野惠浑身是破绽! 12", "cover_id": 1738466, "first_chap_id": 80338, "cover_url": "https://i.motiezw.com/cover/989/1738466.jpg"}], "chapters": [{"cid": "80218", "title": "第1話 都被看光光啦!!", "title_zh": "第1话 都被看光光啦!!"}, {"cid": "80219", "title": "第2話 嗯⋯⋯", "title_zh": "第2话 嗯⋯⋯"}, {"cid": "80220", "title": "第3話 把匈擦乾!", "title_zh": "第3话 把匈擦干!"}, {"cid": "80221", "title": "第4話 正好⋯⋯", "title_zh": "第4话 正好⋯⋯"}, {"cid": "80222", "title": "第5話 讓您久等了!", "title_zh": "第5话 让您久等了!"}, {"cid": "80223", "title": "第6話 阿學救我!", "title_zh": "第6话 阿学救我!"}, {"cid": "80224", "title": "第7話 好軟⋯⋯", "title_zh": "第7话 好软⋯⋯"}, {"cid": "80225", "title": "第8話 謝謝!", "title_zh": "第8话 谢谢!"}, {"cid": "80226", "title": "第9話 幫你拿吧。", "title_zh": "第9话 帮你拿吧。"}, {"cid": "80228", "title": "第10話 M川同學?", "title_zh": "第10话 M川同学?"}, {"cid": "80229", "title": "第11話 開心嗎?", "title_zh": "第11话 开心吗?"}, {"cid": "80230", "title": "第12話 而且啊", "title_zh": "第12话 而且啊"}, {"cid": "80231", "title": "第13話 真了不起", "title_zh": "第13话 真了不起"}, {"cid": "80232", "title": "第14話 阿學教練!", "title_zh": "第14话 阿学教练!"}, {"cid": "80233", "title": "第15話 好羨慕啊-前篇", "title_zh": "第15话 好羡慕啊-前篇"}, {"cid": "80234", "title": "第16話 好羨慕啊-後篇", "title_zh": "第16话 好羡慕啊-后篇"}, {"cid": "80235", "title": "第17話 不要氣餒⋯⋯", "title_zh": "第17话 不要气馁⋯⋯"}, {"cid": "80236", "title": "第18話 過來啊!", "title_zh": "第18话 过来啊!"}, {"cid": "80237", "title": "第19話 沒事吧⋯⋯?", "title_zh": "第19话 没事吧⋯⋯?"}, {"cid": "80239", "title": "第20話 沒什麼!", "title_zh": "第20话 没什么!"}, {"cid": "80240", "title": "第21話 最開心", "title_zh": "第21话 最开心"}, {"cid": "80242", "title": "第23話 啊——夠了——!!", "title_zh": "第23话 啊——够了——!!"}, {"cid": "80243", "title": "第24話 嗯⋯⋯", "title_zh": "第24话 嗯⋯⋯"}, {"cid": "80244", "title": "第25話 我全都看穿了!", "title_zh": "第25话 我全都看穿了!"}, {"cid": "80245", "title": "第26話 他還好嗎——", "title_zh": "第26话 他还好吗——"}, {"cid": "80246", "title": "第27話 看到了嗎?", "title_zh": "第27话 看到了吗?"}, {"cid": "80247", "title": "第28話 留作夏天的回憶", "title_zh": "第28话 留作夏天的回忆"}, {"cid": "80248", "title": "第29話 所以,天野⋯⋯", "title_zh": "第29话 所以,天野⋯⋯"}, {"cid": "80250", "title": "第30話 你在嫉妒嗎?", "title_zh": "第30话 你在嫉妒吗?"}, {"cid": "80251", "title": "第31話 算是一時興起吧?", "title_zh": "第31话 算是一时兴起吧?"}, {"cid": "80252", "title": "第32話 我看你就是⋯⋯", "title_zh": "第32话 我看你就是⋯⋯"}, {"cid": "80253", "title": "第33話 太好了⋯⋯", "title_zh": "第33话 太好了⋯⋯"}, {"cid": "80254", "title": "第34話 好!", "title_zh": "第34话 好!"}, {"cid": "80255", "title": "第35話 危險⋯⋯", "title_zh": "第35话 危险⋯⋯"}, {"cid": "80256", "title": "第36話 糟糕⋯⋯!!", "title_zh": "第36话 糟糕⋯⋯!!"}, {"cid": "80257", "title": "第37話 合身嗎?", "title_zh": "第37话 合身吗?"}, {"cid": "80258", "title": "第38話 好強啊", "title_zh": "第38话 好强啊"}, {"cid": "80259", "title": "第39話 秘密暴露⋯⋯", "title_zh": "第39话 秘密暴露⋯⋯"}, {"cid": "80270", "title": "第40話 危險!!", "title_zh": "第40话 危险!!"}, {"cid": "80261", "title": "第41話 你在害羞嗎?!", "title_zh": "第41话 你在害羞吗?!"}, {"cid": "80262", "title": "第42話 不在嗎?", "title_zh": "第42话 不在吗?"}, {"cid": "80263", "title": "第43話 嘟嘟噥噥⋯⋯", "title_zh": "第43话 嘟嘟哝哝⋯⋯"}, {"cid": "80264", "title": "第44話 房間⋯⋯?! 前篇", "title_zh": "第44话 房间⋯⋯?! 前篇"}, {"cid": "80266", "title": "第46話 討厭!!", "title_zh": "第46话 讨厌!!"}, {"cid": "80267", "title": "第47話 邪念⋯⋯", "title_zh": "第47话 邪念⋯⋯"}, {"cid": "80268", "title": "第48話 好厲害!!", "title_zh": "第48话 好厉害!!"}, {"cid": "80269", "title": "第49話 怎麼了?", "title_zh": "第49话 怎么了?"}, {"cid": "80272", "title": "第50話 過獎了", "title_zh": "第50话 过奖了"}, {"cid": "80273", "title": "第51話 太好了", "title_zh": "第51话 太好了"}, {"cid": "80274", "title": "第52話 哼哼", "title_zh": "第52话 哼哼"}, {"cid": "80275", "title": "第53話 嘿嘿嘿", "title_zh": "第53话 嘿嘿嘿"}, {"cid": "80276", "title": "第54話 厲害!!", "title_zh": "第54话 厉害!!"}, {"cid": "80277", "title": "第55話 就是這個嗎?", "title_zh": "第55话 就是这个吗?"}, {"cid": "80278", "title": "第56話 還是一樣啊", "title_zh": "第56话 还是一样啊"}, {"cid": "80279", "title": "第57話 邪念僅此而已⋯⋯", "title_zh": "第57话 邪念仅此而已⋯⋯"}, {"cid": "80280", "title": "第58話 一舉拿下", "title_zh": "第58话 一举拿下"}, {"cid": "80281", "title": "第59話 不要礙事!!", "title_zh": "第59话 不要碍事!!"}, {"cid": "80283", "title": "第60話 只可以在家裡⋯⋯", "title_zh": "第60话 只可以在家里⋯⋯"}, {"cid": "80284", "title": "第61話 捲起來了!!", "title_zh": "第61话 卷起来了!!"}, {"cid": "80285", "title": "第62話 他會很高興吧?!", "title_zh": "第62话 他会很高兴吧?!"}]};
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>