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>灵异教师神眉NEO - 在线漫画阅读器</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-1610", "mangaid": "1610", "zh_title": "灵异教师神眉NEO", "hant_title": "靈異教師神眉NEO", "en_title": "灵异教师神眉NEO (Bilimanga #1610)", "author": "冈野刚 / 真仓翔", "tags": ["校园", "神鬼", "恐怖", "战斗", "欢乐", "奇异幻想", "日本漫画", "漫画"], "zh_desc": "经过十几年……神眉班上的稻叶乡子长大了,这次她以新进教师身分,再度回到童守小学任教!想不到时过境迁,现代的小孩和过去完全不一样了,正当她因为无法融入心生放弃的念头时,那个男人回来了!时代与人心即使改变,那颗爱护学生的心依旧不变!总是用鬼手划破一切困难,保护学生不被妖魔鬼怪侵袭的神眉,这次一样用他独到的方式,解决更加棘手的学生与社会的问题!\n\n📚 作品信息:作者 冈野刚 / 真仓翔 · 评分 10 · 共收录 17 卷 / 118 话章节目录与高清彩页/条漫预览。", "hant_desc": "經過十幾年……神眉班上的稻葉鄉子長大了,這次她以新進教師身分,再度回到童守小學任教!想不到時過境遷,現代的小孩和過去完全不一樣了,正當她因為無法融入心生放棄的念頭時,那個男人回來了!時代與人心即使改變,那顆愛護學生的心依舊不變!總是用鬼手劃破一切困難,保護學生不被妖魔鬼怪侵襲的神眉,這次一樣用他獨到的方式,解決更加棘手的學生與社會的問題!\n\n📚 作品資訊:作者 岡野剛 / 真倉翔 · 評分 10 · 共收錄 17 卷 / 118 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '灵异教师神眉NEO' (靈異教師神眉NEO) by 冈野刚 / 真仓翔. Includes 17 volumes and 118 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1610/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1610/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1610/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1610/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1610/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1610/page_06.jpg"], "volumes": [{"title_hant": "靈異教師神眉NEO 1", "title_zh": "灵异教师神眉NEO 1", "cover_id": 2904057, "first_chap_id": 132770, "cover_url": "https://i.motiezw.com/cover/1610/2904057.jpg"}, {"title_hant": "靈異教師神眉NEO 2", "title_zh": "灵异教师神眉NEO 2", "cover_id": 2904248, "first_chap_id": 132777, "cover_url": "https://i.motiezw.com/cover/1610/2904248.jpg"}, {"title_hant": "靈異教師神眉NEO 3", "title_zh": "灵异教师神眉NEO 3", "cover_id": 2904439, "first_chap_id": 132786, "cover_url": "https://i.motiezw.com/cover/1610/2904439.jpg"}, {"title_hant": "靈異教師神眉NEO 4", "title_zh": "灵异教师神眉NEO 4", "cover_id": 2908347, "first_chap_id": 132952, "cover_url": "https://i.motiezw.com/cover/1610/2908347.jpg"}, {"title_hant": "靈異教師神眉NEO 5", "title_zh": "灵异教师神眉NEO 5", "cover_id": 2908530, "first_chap_id": 132960, "cover_url": "https://i.motiezw.com/cover/1610/2908530.jpg"}, {"title_hant": "靈異教師神眉NEO 6", "title_zh": "灵异教师神眉NEO 6", "cover_id": 2908713, "first_chap_id": 132968, "cover_url": "https://i.motiezw.com/cover/1610/2908713.jpg"}, {"title_hant": "靈異教師神眉NEO 7", "title_zh": "灵异教师神眉NEO 7", "cover_id": 2908902, "first_chap_id": 132977, "cover_url": "https://i.motiezw.com/cover/1610/2908902.jpg"}, {"title_hant": "靈異教師神眉NEO 8", "title_zh": "灵异教师神眉NEO 8", "cover_id": 2909080, "first_chap_id": 132984, "cover_url": "https://i.motiezw.com/cover/1610/2909080.jpg"}, {"title_hant": "靈異教師神眉NEO 9", "title_zh": "灵异教师神眉NEO 9", "cover_id": 2909267, "first_chap_id": 132993, "cover_url": "https://i.motiezw.com/cover/1610/2909267.jpg"}, {"title_hant": "靈異教師神眉NEO 10", "title_zh": "灵异教师神眉NEO 10", "cover_id": 2909450, "first_chap_id": 133002, "cover_url": "https://i.motiezw.com/cover/1610/2909450.jpg"}, {"title_hant": "靈異教師神眉NEO 11", "title_zh": "灵异教师神眉NEO 11", "cover_id": 2909844, "first_chap_id": 133009, "cover_url": "https://i.motiezw.com/cover/1610/2909844.jpg"}, {"title_hant": "靈異教師神眉NEO 12", "title_zh": "灵异教师神眉NEO 12", "cover_id": 2910026, "first_chap_id": 133017, "cover_url": "https://i.motiezw.com/cover/1610/2910026.jpg"}], "chapters": [{"cid": "132770", "title": "#1 復活的學校怪談", "title_zh": "#1 复活的学校怪谈"}, {"cid": "132771", "title": "#2 校園地下網站", "title_zh": "#2 校园地下网站"}, {"cid": "132772", "title": "#3 兒童貧困", "title_zh": "#3 儿童贫困"}, {"cid": "132773", "title": "#4 怪物家長", "title_zh": "#4 怪物家长"}, {"cid": "132774", "title": "#5 禁忌捉迷藏", "title_zh": "#5 禁忌捉迷藏"}, {"cid": "132775", "title": "#6 煩惱的學生們", "title_zh": "#6 烦恼的学生们"}, {"cid": "132777", "title": "#7 人家是小孩嘛!", "title_zh": "#7 人家是小孩嘛!"}, {"cid": "132778", "title": "#8 百合愛大失控!", "title_zh": "#8 百合爱大失控!"}, {"cid": "132779", "title": "#9 鄉子的糾結", "title_zh": "#9 乡子的纠结"}, {"cid": "132780", "title": "#10 超愛打電動", "title_zh": "#10 超爱打电动"}, {"cid": "132781", "title": "#11 鬼手的秘密NEO其之1", "title_zh": "#11 鬼手的秘密NEO其之1"}, {"cid": "132782", "title": "#12 鬼手的秘密NEO其之2", "title_zh": "#12 鬼手的秘密NEO其之2"}, {"cid": "132783", "title": "#13 鬼手的秘密NEO其之3", "title_zh": "#13 鬼手的秘密NEO其之3"}, {"cid": "132784", "title": "卷末特別附錄 神眉復活秘話", "title_zh": "卷末特别附录 神眉复活秘话"}, {"cid": "132786", "title": "#14 戰士的歸還", "title_zh": "#14 战士的归还"}, {"cid": "132787", "title": "#15 垃圾般的健鬥", "title_zh": "#15 垃圾般的健斗"}, {"cid": "132788", "title": "#16 妖怪擦膠", "title_zh": "#16 妖怪擦胶"}, {"cid": "132789", "title": "#17 雷公爺爺", "title_zh": "#17 雷公爷爷"}, {"cid": "132790", "title": "#18 糟糕啦!神眉老師!", "title_zh": "#18 糟糕啦!神眉老师!"}, {"cid": "132791", "title": "#19 「A」重現江湖 其之1", "title_zh": "#19 「A」重现江湖 其之1"}, {"cid": "132792", "title": "#20 「A」重現江湖 其之2", "title_zh": "#20 「A」重现江湖 其之2"}, {"cid": "132952", "title": "#21 神祕的轉學生", "title_zh": "#21 神秘的转学生"}, {"cid": "132953", "title": "#22 戀愛待機畫面大作戰", "title_zh": "#22 恋爱待机画面大作战"}, {"cid": "132954", "title": "#23 我遭到重大挫折", "title_zh": "#23 我遭到重大挫折"}, {"cid": "132955", "title": "#24 少N・鄉子", "title_zh": "#24 少N・乡子"}, {"cid": "132956", "title": "#25 境壞法術", "title_zh": "#25 境坏法术"}, {"cid": "132957", "title": "#26 「招待」是要用心的", "title_zh": "#26 「招待」是要用心的"}, {"cid": "132958", "title": "#27 算盤小鬼", "title_zh": "#27 算盘小鬼"}, {"cid": "132960", "title": "#28 淒楚的兩人", "title_zh": "#28 凄楚的两人"}, {"cid": "132961", "title": "#29 悲傷的別離", "title_zh": "#29 悲伤的别离"}, {"cid": "132962", "title": "#30 妖怪無可奈何", "title_zh": "#30 妖怪无可奈何"}, {"cid": "132963", "title": "#31 孩子王小誠", "title_zh": "#31 孩子王小诚"}, {"cid": "132964", "title": "#32 存在感很稀薄", "title_zh": "#32 存在感很稀薄"}, {"cid": "132965", "title": "#33 打枕頭作的夢", "title_zh": "#33 打枕头作的梦"}, {"cid": "132966", "title": "#34 丑光的祕密", "title_zh": "#34 丑光的秘密"}, {"cid": "132968", "title": "#35 屁眼", "title_zh": "#35 屁眼"}, {"cid": "132969", "title": "#36 尼彥VS鄉子畫家", "title_zh": "#36 尼彦VS乡子画家"}, {"cid": "132970", "title": "#37 伴隨著寒流", "title_zh": "#37 伴随著寒流"}, {"cid": "132971", "title": "#38 半夜的同班同學 其1", "title_zh": "#38 半夜的同班同学 其1"}, {"cid": "132972", "title": "#39 半夜的同班同學 其2", "title_zh": "#39 半夜的同班同学 其2"}, {"cid": "132973", "title": "#40 百合愛對苦米地", "title_zh": "#40 百合爱对苦米地"}, {"cid": "132974", "title": "#41 封住付喪神的畫帖", "title_zh": "#41 封住付丧神的画帖"}, {"cid": "132977", "title": "#43 要有熱Q!", "title_zh": "#43 要有热Q!"}, {"cid": "132978", "title": "#44 TATTVA的手法", "title_zh": "#44 TATTVA的手法"}, {"cid": "132979", "title": "#45 M樹姊的厲害咒語", "title_zh": "#45 M树姊的厉害咒语"}, {"cid": "132980", "title": "#46 震撼的童守町", "title_zh": "#46 震撼的童守町"}, {"cid": "132981", "title": "#47 靈能力者戰鬥!", "title_zh": "#47 灵能力者战斗!"}, {"cid": "132982", "title": "#48 卡爾拉", "title_zh": "#48 卡尔拉"}, {"cid": "132984", "title": "#49 微姆克", "title_zh": "#49 微姆克"}, {"cid": "132985", "title": "#50 倉童子", "title_zh": "#50 仓童子"}, {"cid": "132986", "title": "#51 This man", "title_zh": "#51 This man"}, {"cid": "132987", "title": "#52 被桂男欺騙感Q", "title_zh": "#52 被桂男欺骗感Q"}, {"cid": "132988", "title": "#53 那孩子是誰的孩子?", "title_zh": "#53 那孩子是谁的孩子?"}, {"cid": "132989", "title": "#54 於是就成了父親?", "title_zh": "#54 于是就成了父亲?"}, {"cid": "132990", "title": "#55 豆腐小僧的眼淚", "title_zh": "#55 豆腐小僧的眼泪"}, {"cid": "132991", "title": "番外篇 野篦坊", "title_zh": "番外篇 野篦坊"}, {"cid": "132993", "title": "#56 屏風偷窺怪", "title_zh": "#56 屏风偷窥怪"}, {"cid": "132994", "title": "#57 代罪貓", "title_zh": "#57 代罪猫"}, {"cid": "132995", "title": "#58 健斗,轉學", "title_zh": "#58 健斗,转学"}, {"cid": "132996", "title": "#59 人面樹", "title_zh": "#59 人面树"}]};
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>