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-129", "mangaid": "129", "zh_title": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~", "hant_title": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~", "en_title": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ (Bilimanga #129)", "author": "仓田三之路 / 日向夏 / 筿冬子", "tags": ["历史", "悬疑", "恋爱", "女性视角", "悬疑惊悚", "日本漫画", "漫画", "日漫"], "zh_desc": "遭人绑架后,被卖到某大国后宫的药屋少女.猫猫。\n\r\n她本来打算乖乖工作到雇用期结束,\n\r\n却偶然得知皇帝的子嗣接连死因不明的诡异谣言。\n\r\n在好奇心与些许的正义感以及药师知识的驱使下,\n\r\n开始调查起这个谜团的真相,没料到自己的命运却因此大大地改变…!\n\r\n将源自〝成为小说家吧〞的高人气特殊悬疑故事,\n\r\n由「书生葛木信二郎的日常 」「天穹は遥か」的 实力派漫画家.仓田三之路的完全漫画化!\n\r\n众所期望的漫画单行本登场!!\n\n📚 作品信息:作者 仓田三之路 / 日向夏 / 筿冬子 · 评分 10 · 共收录 16 卷 / 61 话章节目录与高清彩页/条漫预览。", "hant_desc": "遭人綁架後,被賣到某大國後宮的藥屋少女.貓貓。\n\r\n她本來打算乖乖工作到雇用期結束,\n\r\n卻偶然得知皇帝的子嗣接連死因不明的詭異謠言。\n\r\n在好奇心與些許的正義感以及藥師知識的驅使下,\n\r\n開始調查起這個謎團的真相,沒料到自己的命運卻因此大大地改變…!\n\r\n將源自〝成為小說家吧〞的高人氣特殊懸疑故事,\n\r\n由「書生葛木信二郎的日常 」「天穹は遥か」的 實力派漫畫家.倉田三之路的完全漫畫化!\n\r\n眾所期望的漫畫單行本登場!!\n\n📚 作品資訊:作者 倉田三之路 / 日向夏 / 篠冬子 · 評分 10 · 共收錄 16 卷 / 61 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '药屋少女的呢喃 ~猫猫的后宫解谜手帐~' (藥屋少女的呢喃 ~貓貓的後宮解謎手帳~) by 仓田三之路 / 日向夏 / 筿冬子. Includes 16 volumes and 61 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-129/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-129/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-129/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-129/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-129/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-129/page_06.jpg"], "volumes": [{"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 1", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 1", "cover_id": 196906, "first_chap_id": 9100, "cover_url": "https://i.motiezw.com/cover/129/196906.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 2", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 2", "cover_id": 197098, "first_chap_id": 9106, "cover_url": "https://i.motiezw.com/cover/129/197098.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 3", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 3", "cover_id": 209477, "first_chap_id": 9679, "cover_url": "https://i.motiezw.com/cover/129/209477.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 4", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 4", "cover_id": 209657, "first_chap_id": 9684, "cover_url": "https://i.motiezw.com/cover/129/209657.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 5", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 5", "cover_id": 209838, "first_chap_id": 9691, "cover_url": "https://i.motiezw.com/cover/129/209838.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 6", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 6", "cover_id": 210020, "first_chap_id": 9696, "cover_url": "https://i.motiezw.com/cover/129/210020.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 7", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 7", "cover_id": 210186, "first_chap_id": 9701, "cover_url": "https://i.motiezw.com/cover/129/210186.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 8", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 8", "cover_id": 210349, "first_chap_id": 9705, "cover_url": "https://i.motiezw.com/cover/129/210349.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 9", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 9", "cover_id": 210512, "first_chap_id": 9710, "cover_url": "https://i.motiezw.com/cover/129/210512.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 10", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 10", "cover_id": 210671, "first_chap_id": 9716, "cover_url": "https://i.motiezw.com/cover/129/210671.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 11", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 11", "cover_id": 210836, "first_chap_id": 9720, "cover_url": "https://i.motiezw.com/cover/129/210836.jpg"}, {"title_hant": "藥屋少女的呢喃 ~貓貓的後宮解謎手帳~ 12", "title_zh": "药屋少女的呢喃 ~猫猫的后宫解谜手帐~ 12", "cover_id": 210999, "first_chap_id": 9725, "cover_url": "https://i.motiezw.com/cover/129/210999.jpg"}], "chapters": [{"cid": "9100", "title": "第一話 貓貓與詛咒", "title_zh": "第一话 猫猫与诅咒"}, {"cid": "9101", "title": "第二話 媚藥", "title_zh": "第二话 媚药"}, {"cid": "9102", "title": "第三話 月下的芙蓉", "title_zh": "第三话 月下的芙蓉"}, {"cid": "9103", "title": "第四話 敕命", "title_zh": "第四话 敕命"}, {"cid": "9104", "title": "第五話 看護", "title_zh": "第五话 看护"}, {"cid": "9106", "title": "第六話 園遊會", "title_zh": "第六话 园游会"}, {"cid": "9107", "title": "第七話 試毒", "title_zh": "第七话 试毒"}, {"cid": "9108", "title": "第八話 回鄉", "title_zh": "第八话 回乡"}, {"cid": "9109", "title": "第九話 宮N之死", "title_zh": "第九话 宫N之死"}, {"cid": "9110", "title": "原作番外篇 花街的藥師", "title_zh": "原作番外篇 花街的药师"}, {"cid": "9679", "title": "第十話 蜂蜜", "title_zh": "第十话 蜂蜜"}, {"cid": "9680", "title": "第十一話 侍N頭的秘密", "title_zh": "第十一话 侍N头的秘密"}, {"cid": "9681", "title": "第十二話 阿多妃", "title_zh": "第十二话 阿多妃"}, {"cid": "9682", "title": "第十三話 解雇", "title_zh": "第十三话 解雇"}, {"cid": "9684", "title": "第十四話 任職外廷", "title_zh": "第十四话 任职外廷"}, {"cid": "9685", "title": "第十五話 酒毒", "title_zh": "第十五话 酒毒"}, {"cid": "9686", "title": "第十六話 煙管", "title_zh": "第十六话 烟管"}, {"cid": "9687", "title": "第十七話 後宮教室", "title_zh": "第十七话 后宫教室"}, {"cid": "9688", "title": "第十八話 魚膾", "title_zh": "第十八话 鱼脍"}, {"cid": "9691", "title": "第二十話 逛街", "title_zh": "第二十话 逛街"}, {"cid": "9692", "title": "第二十一話 羅漢", "title_zh": "第二十一话 罗汉"}, {"cid": "9693", "title": "第二十二話 是偶然、還是必然", "title_zh": "第二十二话 是偶然、还是必然"}, {"cid": "9694", "title": "附錄", "title_zh": "附录"}, {"cid": "9696", "title": "第二十三話 中祀", "title_zh": "第二十三话 中祀"}, {"cid": "9697", "title": "第二十四話 牽牛花之N", "title_zh": "第二十四话 牵牛花之N"}, {"cid": "9698", "title": "第二十五話 再訪後宮", "title_zh": "第二十五话 再访后宫"}, {"cid": "9699", "title": "第二十六話 贖身作戰", "title_zh": "第二十六话 赎身作战"}, {"cid": "9701", "title": "第二十七話 藍玫瑰", "title_zh": "第二十七话 蓝玫瑰"}, {"cid": "9702", "title": "第二十八話 染甲", "title_zh": "第二十八话 染甲"}, {"cid": "9703", "title": "第二十九話 鳳仙花與酢漿草", "title_zh": "第二十九话 凤仙花与酢浆草"}, {"cid": "9705", "title": "第三十話 餞別之舞", "title_zh": "第三十话 饯别之舞"}, {"cid": "9706", "title": "第三十一話 書", "title_zh": "第三十一话 书"}, {"cid": "9707", "title": "第三十二話 商隊", "title_zh": "第三十二话 商队"}, {"cid": "9708", "title": "第三十三話 精油", "title_zh": "第三十三话 精油"}, {"cid": "9710", "title": "第三十四話 冬人夏草[前篇]", "title_zh": "第三十四话 冬人夏草[前篇]"}, {"cid": "9711", "title": "第三十五話 冬人夏草[後篇]", "title_zh": "第三十五话 冬人夏草[后篇]"}, {"cid": "9712", "title": "第三十六話 鏡子", "title_zh": "第三十六话 镜子"}, {"cid": "9713", "title": "第三十七話 月精[前篇]", "title_zh": "第三十七话 月精[前篇]"}, {"cid": "9716", "title": "第三十九話 診療所", "title_zh": "第三十九话 诊疗所"}, {"cid": "9717", "title": "第四十話 三訪水晶宮[前篇]", "title_zh": "第四十话 三访水晶宫[前篇]"}, {"cid": "9718", "title": "第四十一話 三訪水晶宮[後篇]", "title_zh": "第四十一话 三访水晶宫[后篇]"}, {"cid": "9720", "title": "第四十二話 選定之廟[前篇]", "title_zh": "第四十二话 选定之庙[前篇]"}, {"cid": "9721", "title": "第四十三話 選定之廟[後篇]", "title_zh": "第四十三话 选定之庙[后篇]"}, {"cid": "9722", "title": "第四十四話 皇太后", "title_zh": "第四十四话 皇太后"}, {"cid": "9723", "title": "第四十五話 先帝", "title_zh": "第四十五话 先帝"}, {"cid": "9725", "title": "第四十六話 先帝的秘密", "title_zh": "第四十六话 先帝的秘密"}, {"cid": "9726", "title": "第四十七話 黃衣N子", "title_zh": "第四十七话 黄衣N子"}, {"cid": "9727", "title": "第四十八話 怪談", "title_zh": "第四十八话 怪谈"}, {"cid": "9728", "title": "第四十九話 避暑地", "title_zh": "第四十九话 避暑地"}, {"cid": "9730", "title": "第五十話 遊獵", "title_zh": "第五十话 游猎"}, {"cid": "9731", "title": "第五十一話 壬氏的秘密", "title_zh": "第五十一话 壬氏的秘密"}, {"cid": "9732", "title": "第五十二話 陷阱", "title_zh": "第五十二话 陷阱"}, {"cid": "9733", "title": "第五十三話 月之君", "title_zh": "第五十三话 月之君"}, {"cid": "9735", "title": "第五十四話 浴殿", "title_zh": "第五十四话 浴殿"}, {"cid": "9736", "title": "第五十五話 赤羽", "title_zh": "第五十五话 赤羽"}, {"cid": "9737", "title": "第五十六話 趴舞幽靈", "title_zh": "第五十六话 趴舞幽灵"}, {"cid": "9738", "title": "第五十七話 傳聞中的宦官", "title_zh": "第五十七话 传闻中的宦官"}, {"cid": "9741", "title": "第五十九話 羅門", "title_zh": "第五十九话 罗门"}, {"cid": "9742", "title": "第六十話 潛藏的惡意", "title_zh": "第六十话 潜藏的恶意"}, {"cid": "9743", "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>