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-6", "mangaid": "6", "zh_title": "香格里拉・开拓异境 ~粪作猎手挑战神作~", "hant_title": "香格里拉・開拓異境 ~糞作獵手挑戰神作~", "en_title": "香格里拉・开拓异境 ~粪作猎手挑战神作~ (Bilimanga #6)", "author": "不二凉介 / 硬梨菜", "tags": ["奇幻", "冒险", "异世界", "热血", "战斗", "游戏", "奇幻冒险", "日本漫画"], "zh_desc": "最强、无与伦比的粪作玩家来了!\n\r\n但为什么要头戴鸟面赤裸上身?\n\r\n对兴趣认真有错吗?\n\r\n玩什么都能够「乐在其中」才是最强的!\n\r\n阳务乐郎是一个超爱玩「粪作」的粪作玩家,玩家名称名为桑乐,拥有超一流的电玩技术!某天一个小小的契机让他开始挑战大众公认的神作电玩。没但想到电玩世界和现实生活却都因此开始以他为中心产生变化…\n\n📚 作品信息:作者 不二凉介 / 硬梨菜 · 评分 10 · 共收录 26 卷 / 262 话章节目录与高清彩页/条漫预览。", "hant_desc": "最強、無與倫比的糞作玩家來了!\n\r\n但為什麼要頭戴鳥面赤裸上身?\n\r\n對興趣認真有錯嗎?\n\r\n玩什麼都能夠「樂在其中」才是最強的!\n\r\n陽務樂郎是一個超愛玩「糞作」的糞作玩家,玩家名稱名為桑樂,擁有超一流的電玩技術!某天一個小小的契機讓他開始挑戰大眾公認的神作電玩。沒但想到電玩世界和現實生活卻都因此開始以他為中心產生變化…\n\n📚 作品資訊:作者 不二涼介 / 硬梨菜 · 評分 10 · 共收錄 26 卷 / 262 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '香格里拉・开拓异境 ~粪作猎手挑战神作~' (香格里拉・開拓異境 ~糞作獵手挑戰神作~) by 不二凉介 / 硬梨菜. Includes 26 volumes and 262 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-6/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-6/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-6/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-6/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-6/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-6/page_06.jpg"], "volumes": [{"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 1", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 1", "cover_id": 291245, "first_chap_id": 11, "cover_url": "https://i.motiezw.com/cover/6/291245.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 2", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 2", "cover_id": 291442, "first_chap_id": 702, "cover_url": "https://i.motiezw.com/cover/6/291442.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 3", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 3", "cover_id": 291635, "first_chap_id": 713, "cover_url": "https://i.motiezw.com/cover/6/291635.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 4", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 4", "cover_id": 291828, "first_chap_id": 724, "cover_url": "https://i.motiezw.com/cover/6/291828.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 5", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 5", "cover_id": 292020, "first_chap_id": 13975, "cover_url": "https://i.motiezw.com/cover/6/292020.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 6", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 6", "cover_id": 292198, "first_chap_id": 13986, "cover_url": "https://i.motiezw.com/cover/6/292198.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 7", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 7", "cover_id": 292381, "first_chap_id": 13997, "cover_url": "https://i.motiezw.com/cover/6/292381.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 8", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 8", "cover_id": 292556, "first_chap_id": 14008, "cover_url": "https://i.motiezw.com/cover/6/292556.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 9", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 9", "cover_id": 292738, "first_chap_id": 14019, "cover_url": "https://i.motiezw.com/cover/6/292738.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 10", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 10", "cover_id": 292920, "first_chap_id": 14030, "cover_url": "https://i.motiezw.com/cover/6/292920.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 11", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 11", "cover_id": 293105, "first_chap_id": 14041, "cover_url": "https://i.motiezw.com/cover/6/293105.jpg"}, {"title_hant": "香格里拉・開拓異境 ~糞作獵手挑戰神作~ 12", "title_zh": "香格里拉・开拓异境 ~粪作猎手挑战神作~ 12", "cover_id": 293287, "first_chap_id": 14052, "cover_url": "https://i.motiezw.com/cover/6/293287.jpg"}], "chapters": [{"cid": "11", "title": "第1话 你是为了什么而玩游戏? ①", "title_zh": "第1话 你是为了什么而玩游戏? ①"}, {"cid": "12", "title": "第1话 你是为了什么而玩游戏? ②", "title_zh": "第1话 你是为了什么而玩游戏? ②"}, {"cid": "13", "title": "第2话 特異之人", "title_zh": "第2话 特异之人"}, {"cid": "15", "title": "第3话 黑狼夜袭", "title_zh": "第3话 黑狼夜袭"}, {"cid": "16", "title": "第4话 连锁的独特", "title_zh": "第4话 连锁的独特"}, {"cid": "17", "title": "第5話 以糞作洗滌變挑別的價值觀", "title_zh": "第5话 以粪作洗涤变挑别的价值观"}, {"cid": "14", "title": "特別加笔小说 人外魔境", "title_zh": "特别加笔小说 人外魔境"}, {"cid": "702", "title": "第6话 兩隻的強行軍", "title_zh": "第6话 两只的强行军"}, {"cid": "703", "title": "第7話 鳥面with兔子vs.鮫土龍", "title_zh": "第7话 鸟面with兔子vs.鲛土龙"}, {"cid": "704", "title": "第8話 人飛兔跳", "title_zh": "第8话 人飞兔跳"}, {"cid": "705", "title": "第9話 於是你就這樣被騙動的槍林所包圍", "title_zh": "第9话 于是你就这样被骗动的枪林所包围"}, {"cid": "706", "title": "第10話 筆記用具的騎士王", "title_zh": "第10话 笔记用具的骑士王"}, {"cid": "707", "title": "第11話 向內側發威的飄風眼", "title_zh": "第11话 向内侧发威的飘风眼"}, {"cid": "708", "title": "第12話 狀況起動", "title_zh": "第12话 状况起动"}, {"cid": "709", "title": "第13話 狀況結果", "title_zh": "第13话 状况结果"}, {"cid": "710", "title": "第14話 神話時代的殘渣、執念虛妄的敗者", "title_zh": "第14话 神话时代的残渣、执念虚妄的败者"}, {"cid": "711", "title": "第15話 300limit狂想曲、追求勝算之人", "title_zh": "第15话 300limit狂想曲、追求胜算之人"}, {"cid": "13972", "title": "特別加筆小說 敗北者不畏懼明天", "title_zh": "特别加笔小说 败北者不畏惧明天"}, {"cid": "713", "title": "第16話 300limit狂想曲、帶著勝算逃走之人", "title_zh": "第16话 300limit狂想曲、带著胜算逃走之人"}, {"cid": "714", "title": "第17話 壁畫裡的那個飛簷走壁", "title_zh": "第17话 壁画里的那个飞簷走壁"}, {"cid": "715", "title": "第18話 華M的樹海", "title_zh": "第18话 华M的树海"}, {"cid": "717", "title": "第20話 鳥面人vs.五角蜘蛛", "title_zh": "第20话 鸟面人vs.五角蜘蛛"}, {"cid": "718", "title": "第21話 走!去盜墓吧!!", "title_zh": "第21话 走!去盗墓吧!!"}, {"cid": "719", "title": "第22話 真正的光輝", "title_zh": "第22话 真正的光辉"}, {"cid": "720", "title": "第23話 超越主人能耐的鋼鐵", "title_zh": "第23话 超越主人能耐的钢铁"}, {"cid": "721", "title": "第24話 徹・拳・S・碎", "title_zh": "第24话 彻・拳・S・碎"}, {"cid": "722", "title": "第25話 後悔總存在於過去", "title_zh": "第25话 后悔总存在于过去"}, {"cid": "13973", "title": "特別加筆小說 設置外觀,追加鯉魚", "title_zh": "特别加笔小说 设置外观,追加鲤鱼"}, {"cid": "724", "title": "第26話 只有依戀留在那裡", "title_zh": "第26话 只有依恋留在那里"}, {"cid": "725", "title": "第27話 適材適所的世界觀", "title_zh": "第27话 适材适所的世界观"}, {"cid": "726", "title": "第28話 挑戰未知的武力", "title_zh": "第28话 挑战未知的武力"}, {"cid": "727", "title": "第29話 捏碎", "title_zh": "第29话 捏碎"}, {"cid": "728", "title": "第30話 宣告終結渡向彼岸", "title_zh": "第30话 宣告终结渡向彼岸"}, {"cid": "729", "title": "第31話 懷著對剎那的思念 其一", "title_zh": "第31话 怀著对刹那的思念 其一"}, {"cid": "730", "title": "第32話 懷著對剎那的思念 其二", "title_zh": "第32话 怀著对刹那的思念 其二"}, {"cid": "731", "title": "第33話 懷著對剎那的思念 其三", "title_zh": "第33话 怀著对刹那的思念 其三"}, {"cid": "732", "title": "第34話 懷著對剎那的思念 其四", "title_zh": "第34话 怀著对刹那的思念 其四"}, {"cid": "733", "title": "第35話 懷著對剎那的思念 其五", "title_zh": "第35话 怀著对刹那的思念 其五"}, {"cid": "13974", "title": "特別加筆小說 糞作獲手起得很早", "title_zh": "特别加笔小说 粪作获手起得很早"}, {"cid": "13975", "title": "第36話 懷著對剎那的思念 其六", "title_zh": "第36话 怀著对刹那的思念 其六"}, {"cid": "13976", "title": "第37話 懷著對剎那的思念 其七", "title_zh": "第37话 怀著对刹那的思念 其七"}, {"cid": "13977", "title": "第38話 懷著對剎那的思念 其八", "title_zh": "第38话 怀著对刹那的思念 其八"}, {"cid": "13978", "title": "第39話 懷著對剎那的思念 其九", "title_zh": "第39话 怀著对刹那的思念 其九"}, {"cid": "13980", "title": "第41話 懷著對剎那的思念 其十一", "title_zh": "第41话 怀著对刹那的思念 其十一"}, {"cid": "13981", "title": "第42話 懷著對剎那的思念 其十二", "title_zh": "第42话 怀著对刹那的思念 其十二"}, {"cid": "13982", "title": "第43話 懷著對剎那的思念 其十三", "title_zh": "第43话 怀著对刹那的思念 其十三"}, {"cid": "13983", "title": "第44話 世界線推進,英雄露面", "title_zh": "第44话 世界线推进,英雄露面"}, {"cid": "13984", "title": "第45話 界限與傷害溢出", "title_zh": "第45话 界限与伤害溢出"}, {"cid": "13986", "title": "第46話 各自的現在與未來", "title_zh": "第46话 各自的现在与未来"}, {"cid": "13987", "title": "第47話 韋扎衛門的遺產", "title_zh": "第47话 韦扎卫门的遗产"}, {"cid": "13988", "title": "第48話 潘希爾貢老師的PK洗道具教學", "title_zh": "第48话 潘希尔贡老师的PK洗道具教学"}, {"cid": "13989", "title": "第49話 跑腿,培養和攻略", "title_zh": "第49话 跑腿,培养和攻略"}, {"cid": "13990", "title": "第50話 變身·潮人", "title_zh": "第50话 变身·潮人"}, {"cid": "13991", "title": "第51話 行走的空氣淨化器", "title_zh": "第51话 行走的空气净化器"}, {"cid": "13992", "title": "第52話 鳥with兔's vs.合唱骷髏", "title_zh": "第52话 鸟with兔's vs.合唱骷髅"}, {"cid": "13993", "title": "第53話 嗚呼魔法職業,嗚呼脆皮裝甲", "title_zh": "第53话 呜呼魔法职业,呜呼脆皮装甲"}, {"cid": "13994", "title": "第54話 稀有道具比生命還沈重", "title_zh": "第54话 稀有道具比生命还沈重"}, {"cid": "13995", "title": "第55話 道具重要的不是功能而是外形", "title_zh": "第55话 道具重要的不是功能而是外形"}, {"cid": "13997", "title": "第56話 贏了比賽輸了人品", "title_zh": "第56话 赢了比赛输了人品"}, {"cid": "13998", "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>