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-1608", "mangaid": "1608", "zh_title": "灵异教师神眉 爱藏版", "hant_title": "靈異教師神眉 愛藏版", "en_title": "灵异教师神眉 爱藏版 (Bilimanga #1608)", "author": "冈野刚 / 真仓翔", "tags": ["校园", "神鬼", "恐怖", "战斗", "欢乐", "奇异幻想", "日本漫画", "漫画"], "zh_desc": "这世上有著肉眼看不见的黑暗一族存在,并会时不时呲牙裂嘴地袭击你们……但是有一位保护你们不受它们侵扰的正义使者存在。\n\r\n童守小学5年3班的导师鵺野鸣介,拥有能让一切回归虚无的「鬼手」,被小孩子暱称为「神眉」的他,是全日本唯一能与恶灵、妖怪战斗的灵能力教师。为了保护他的宝贝学生们,平时少根筋的他,能够发挥出超乎想像的战斗力!\n\r\n接近30年前开始连载的「灵异教师神眉」是所有人的儿时回忆,这次以爱藏版之姿重出江湖,值得所有想重温回忆的读者收藏!\n\n📚 作品信息:作者 冈野刚 / 真仓翔 · 评分 10 · 共收录 20 卷 / 278 话章节目录与高清彩页/条漫预览。", "hant_desc": "這世上有著肉眼看不見的黑暗一族存在,並會時不時呲牙裂嘴地襲擊你們……但是有一位保護你們不受它們侵擾的正義使者存在。\n\r\n童守小學5年3班的導師鵺野鳴介,擁有能讓一切回歸虛無的「鬼手」,被小孩子暱稱為「神眉」的他,是全日本唯一能與惡靈、妖怪戰鬥的靈能力教師。為了保護他的寶貝學生們,平時少根筋的他,能夠發揮出超乎想像的戰鬥力!\n\r\n接近30年前開始連載的「靈異教師神眉」是所有人的兒時回憶,這次以愛藏版之姿重出江湖,值得所有想重溫回憶的讀者收藏!\n\n📚 作品資訊:作者 岡野剛 / 真倉翔 · 評分 10 · 共收錄 20 卷 / 278 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '灵异教师神眉 爱藏版' (靈異教師神眉 愛藏版) by 冈野刚 / 真仓翔. Includes 20 volumes and 278 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1608/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1608/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1608/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1608/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1608/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1608/page_06.jpg"], "volumes": [{"title_hant": "靈異教師神眉 愛藏版 1", "title_zh": "灵异教师神眉 爱藏版 1", "cover_id": 2897241, "first_chap_id": 132433, "cover_url": "https://i.motiezw.com/cover/1608/2897241.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 2", "title_zh": "灵异教师神眉 爱藏版 2", "cover_id": 2897546, "first_chap_id": 132448, "cover_url": "https://i.motiezw.com/cover/1608/2897546.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 3", "title_zh": "灵异教师神眉 爱藏版 3", "cover_id": 2897847, "first_chap_id": 132463, "cover_url": "https://i.motiezw.com/cover/1608/2897847.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 4", "title_zh": "灵异教师神眉 爱藏版 4", "cover_id": 2898149, "first_chap_id": 132479, "cover_url": "https://i.motiezw.com/cover/1608/2898149.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 5", "title_zh": "灵异教师神眉 爱藏版 5", "cover_id": 2898452, "first_chap_id": 132495, "cover_url": "https://i.motiezw.com/cover/1608/2898452.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 6", "title_zh": "灵异教师神眉 爱藏版 6", "cover_id": 2898756, "first_chap_id": 132511, "cover_url": "https://i.motiezw.com/cover/1608/2898756.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 7", "title_zh": "灵异教师神眉 爱藏版 7", "cover_id": 2899061, "first_chap_id": 132526, "cover_url": "https://i.motiezw.com/cover/1608/2899061.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 8", "title_zh": "灵异教师神眉 爱藏版 8", "cover_id": 2899366, "first_chap_id": 132542, "cover_url": "https://i.motiezw.com/cover/1608/2899366.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 9", "title_zh": "灵异教师神眉 爱藏版 9", "cover_id": 2899670, "first_chap_id": 132557, "cover_url": "https://i.motiezw.com/cover/1608/2899670.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 10", "title_zh": "灵异教师神眉 爱藏版 10", "cover_id": 2899976, "first_chap_id": 132573, "cover_url": "https://i.motiezw.com/cover/1608/2899976.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 11", "title_zh": "灵异教师神眉 爱藏版 11", "cover_id": 2900957, "first_chap_id": 132615, "cover_url": "https://i.motiezw.com/cover/1608/2900957.jpg"}, {"title_hant": "靈異教師神眉 愛藏版 12", "title_zh": "灵异教师神眉 爱藏版 12", "cover_id": 2901263, "first_chap_id": 132631, "cover_url": "https://i.motiezw.com/cover/1608/2901263.jpg"}], "chapters": [{"cid": "132433", "title": "#1 九十九足之蟲之卷", "title_zh": "#1 九十九足之虫之卷"}, {"cid": "132434", "title": "#2 賽河原之地藏虐之卷", "title_zh": "#2 赛河原之地藏虐之卷"}, {"cid": "132435", "title": "#3 妖怪影愚痴⋯之卷", "title_zh": "#3 妖怪影愚痴⋯之卷"}, {"cid": "132436", "title": "#4 守護靈交換!之卷(前篇)", "title_zh": "#4 守护灵交换!之卷(前篇)"}, {"cid": "132437", "title": "#5 守護靈交換!之卷(後篇)", "title_zh": "#5 守护灵交换!之卷(后篇)"}, {"cid": "132438", "title": "#6 河童與單槓之卷", "title_zh": "#6 河童与单杠之卷"}, {"cid": "132439", "title": "#7 斬首刀的詛咒之卷(前篇)", "title_zh": "#7 斩首刀的诅咒之卷(前篇)"}, {"cid": "132440", "title": "#8 斬首刀的詛咒之卷(後篇)", "title_zh": "#8 斩首刀的诅咒之卷(后篇)"}, {"cid": "132441", "title": "#9 到處散步的幽靈之卷", "title_zh": "#9 到处散步的幽灵之卷"}, {"cid": "132442", "title": "#10 飛輪喋血!之卷", "title_zh": "#10 飞轮喋血!之卷"}, {"cid": "132443", "title": "#11 妖狐・跳梁跋扈之卷(前篇)", "title_zh": "#11 妖狐・跳梁跋扈之卷(前篇)"}, {"cid": "132444", "title": "#12 妖狐・跳梁跋扈之卷(後篇)", "title_zh": "#12 妖狐・跳梁跋扈之卷(后篇)"}, {"cid": "132445", "title": "特別短篇 靈異教師神眉", "title_zh": "特别短篇 灵异教师神眉"}, {"cid": "132446", "title": "完作後記的隨筆⋯", "title_zh": "完作后记的随笔⋯"}, {"cid": "132448", "title": "#13 鬼手VS火輪尾之術之卷", "title_zh": "#13 鬼手VS火轮尾之术之卷"}, {"cid": "132449", "title": "#14 靈獸・靈霧魚之卷(前篇)", "title_zh": "#14 灵兽・灵雾鱼之卷(前篇)"}, {"cid": "132450", "title": "#15 靈獸・靈霧魚之卷(後篇)", "title_zh": "#15 灵兽・灵雾鱼之卷(后篇)"}, {"cid": "132451", "title": "#16 午夜的好學生之卷", "title_zh": "#16 午夜的好学生之卷"}, {"cid": "132452", "title": "#17 爪行妖怪之卷", "title_zh": "#17 爪行妖怪之卷"}, {"cid": "132453", "title": "#18 「天使先生」之卷", "title_zh": "#18 「天使先生」之卷"}, {"cid": "132454", "title": "#19 魔之13階之卷", "title_zh": "#19 魔之13阶之卷"}, {"cid": "132455", "title": "#20 帶來幸運的少N之卷", "title_zh": "#20 带来幸运的少N之卷"}, {"cid": "132457", "title": "#22 每夜之蛇之卷", "title_zh": "#22 每夜之蛇之卷"}, {"cid": "132458", "title": "#23 分身(另一個自己)之卷", "title_zh": "#23 分身(另一个自己)之卷"}, {"cid": "132459", "title": "#24 「A」來了!之卷", "title_zh": "#24 「A」来了!之卷"}, {"cid": "132460", "title": "#25 訪問靈來了之卷", "title_zh": "#25 访问灵来了之卷"}, {"cid": "132461", "title": "特別短篇 靈異教師神眉", "title_zh": "特别短篇 灵异教师神眉"}, {"cid": "132463", "title": "#26 一百萬張不幸的信之卷", "title_zh": "#26 一百万张不幸的信之卷"}, {"cid": "132464", "title": "#27 外星人出現在童守町!之卷", "title_zh": "#27 外星人出现在童守町!之卷"}, {"cid": "132465", "title": "#28 斬人三鎌鼬!之卷", "title_zh": "#28 斩人三镰鼬!之卷"}, {"cid": "132466", "title": "#29 水底的黑暗之臉之卷", "title_zh": "#29 水底的黑暗之脸之卷"}, {"cid": "132467", "title": "#30 殘雪一來錯季節的雪N之卷", "title_zh": "#30 残雪一来错季节的雪N之卷"}, {"cid": "132468", "title": "#31 恐怖的裂嘴N之卷", "title_zh": "#31 恐怖的裂嘴N之卷"}, {"cid": "132469", "title": "#32 長頸妖之卷", "title_zh": "#32 长颈妖之卷"}, {"cid": "132470", "title": "#33 第五人是誰?之卷", "title_zh": "#33 第五人是谁?之卷"}, {"cid": "132471", "title": "#34 吃人的蒙娜麗莎之謎!之卷", "title_zh": "#34 吃人的蒙娜丽莎之谜!之卷"}, {"cid": "132472", "title": "#35 人面犬之卷", "title_zh": "#35 人面犬之卷"}, {"cid": "132473", "title": "#36 臨死體驗之卷", "title_zh": "#36 临死体验之卷"}, {"cid": "132474", "title": "#37 丑時參拜之卷", "title_zh": "#37 丑时参拜之卷"}, {"cid": "132475", "title": "#38 神眉VS大月老師之卷", "title_zh": "#38 神眉VS大月老师之卷"}, {"cid": "132476", "title": "#39 20年前的忘記帶的東西之卷", "title_zh": "#39 20年前的忘记带的东西之卷"}, {"cid": "132477", "title": "完作後記的隨筆", "title_zh": "完作后记的随笔"}, {"cid": "132479", "title": "#40 比翼鳥之卷", "title_zh": "#40 比翼鸟之卷"}, {"cid": "132480", "title": "#41 對照鏡的七大不可思議之卷", "title_zh": "#41 对照镜的七大不可思议之卷"}, {"cid": "132482", "title": "#43 狸貓大變身!之卷", "title_zh": "#43 狸猫大变身!之卷"}, {"cid": "132483", "title": "#44 午夜響起的鋼琴之卷", "title_zh": "#44 午夜响起的钢琴之卷"}, {"cid": "132484", "title": "#45 前世記憶之卷", "title_zh": "#45 前世记忆之卷"}, {"cid": "132485", "title": "#46 奔跑!二宮金次郎之卷", "title_zh": "#46 奔跑!二宫金次郎之卷"}, {"cid": "132486", "title": "#47 怪談・爬樹幽靈之卷", "title_zh": "#47 怪谈・爬树幽灵之卷"}, {"cid": "132487", "title": "#48 妖怪大集合!之卷", "title_zh": "#48 妖怪大集合!之卷"}, {"cid": "132488", "title": "#49 盛夏中的雪N之卷", "title_zh": "#49 盛夏中的雪N之卷"}, {"cid": "132489", "title": "#50 紅背心之卷", "title_zh": "#50 红背心之卷"}, {"cid": "132490", "title": "#51 食夢獏之卷", "title_zh": "#51 食梦獏之卷"}, {"cid": "132491", "title": "#52 M樹的迷信大作戰!之卷", "title_zh": "#52 M树的迷信大作战!之卷"}, {"cid": "132492", "title": "#53 育兒幽靈之卷", "title_zh": "#53 育儿幽灵之卷"}, {"cid": "132493", "title": "特別短篇 9月的鎮魂曲之卷", "title_zh": "特别短篇 9月的镇魂曲之卷"}, {"cid": "132495", "title": "#54 人面瘡之卷", "title_zh": "#54 人面疮之卷"}, {"cid": "132496", "title": "#55 誘拐妖之卷", "title_zh": "#55 诱拐妖之卷"}, {"cid": "132497", "title": "#56 神眉十雪N,最強的組合!之卷", "title_zh": "#56 神眉十雪N,最强的组合!之卷"}, {"cid": "132498", "title": "#57 守護靈座談會之卷", "title_zh": "#57 守护灵座谈会之卷"}]};
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>