Back to discovery
孔雀王 ─退魔圣传─
Comic · 简体中文

孔雀王 ─退魔圣传─

妖魔作乱,世界一片混沌,只有孔雀王能力抗妖魔! 📚 作品信息:作者 荻野真 · 评分 10 · 共收录 11 卷 / 91 话章节目录与高清彩页/条漫预览。 📖 在线漫画阅读器:https://media.huangguodrama.ai/motion/comics/bilimanga-1440/index.html

Comic

Continue With Interactive Roleplay & Novel Adaptation

Keep exploring the world of 孔雀王 ─退魔圣传─: chat with AI characters in interactive roleplay, read full web novel adaptations, or binge multi-episode vertical dramas across the Huangguo network.

Watch and read details

Available now
10 available images
Reading language
简体中文

Content record updated .

Availability describes the media currently listed here. A preview is not a complete series; more episodes or a release schedule are not promised.

Read & Watch 孔雀王 ─退魔圣传─ Online — FAQ

Explore 孔雀王 ─退魔圣传─ online in your browser on Reelshorts. 10 available images.

Where can I read or watch 孔雀王 ─退魔圣传─ online?
You can explore 孔雀王 ─退魔圣传─ directly in your browser on Reelshorts (https://reelshorts.app/title/1015529). Current availability: 10 available images.
What other collections are available on Reelshorts?
Browse Readable Novels, Short Dramas to Watch Online, Alpha King & Fated Mate Wolf Pack Dramas, Revenge Heiress & Betrayed Wife Comeback, Secret Billionaire Baby & Hidden Identity, Best Free DramaBox & ShortMax Alternatives, Top Chinese Short Dramas with English Subtitles, and Visual Stories in the Huangguo catalog.
简体中文

漫画简介与全卷章节目录

【孔雀王 ─退魔圣传─(孔雀王 ─退魔聖傳─)· 漫画导览与全卷目录】

作者:荻野真

评分:10

标签:神鬼 / 魔法 / 黑暗 / 猎奇 / 东方 / 奇异幻想 / 日本漫画 / 漫画

在线漫画阅读器:https://media.huangguodrama.ai/motion/comics/bilimanga-1440/index.html

■ 剧情简介:

妖魔作乱,世界一片混沌,只有孔雀王能力抗妖魔!

📚 作品信息:作者 荻野真 · 评分 10 · 共收录 11 卷 / 91 话章节目录与高清彩页/条漫预览。

■ 收录分卷(共 11 卷):

• 孔雀王 ─退魔圣传─ 1

• 孔雀王 ─退魔圣传─ 2

• 孔雀王 ─退魔圣传─ 3

• 孔雀王 ─退魔圣传─ 4

• 孔雀王 ─退魔圣传─ 5

• 孔雀王 ─退魔圣传─ 6

• 孔雀王 ─退魔圣传─ 7

• 孔雀王 ─退魔圣传─ 8

• 孔雀王 ─退魔圣传─ 9

• 孔雀王 ─退魔圣传─ 10

• 孔雀王 ─退魔圣传─ 11

■ 章节目录(前 80 话 / 共 91 话):

• 行之一 山子

• 行之二 甘露水

• 行之三 伊吕波歌

• 行之四 妖花乱舞

• 行之五 卡巴拉之环

• 行之六 魔法阵

• 行之七 魔王降临

• 行之八 幽玄之子

• 行之九 鬼神的宝刀

• 行之十 鬼一法眼刀

• 行之十一 武藏坊弁庆

• 行之十二 邪道

• 行之十三 弁庆奇传

• 行之十四 魔鬼跳梁

• 行之十五 鞍马鸣动

• 行之十六 五条之战

• 行之十七 千手观音降临

• 行之十八 救赎弁庆

• 行之十九 福瘤观音

• 行之二十 单人房怪事

• 行之二十一 魔界监狱

• 行之二十三 玷污的祭品

• 行之二十四 恶灵复活

• 行之二十五 前往ARK

• 行之二十六 孔雀变身

• 行之二十七 孔雀复活

• 行之二十八 黑皮衣贵妇人

• 行之二十九 晚会狂宴

• 行之三十 地下水道

• 行之三十一 决裂

• 行之三十二 默示录

• 行之三十三 前往日出之国

• 行之三十四 急袭!!

• 行之三十五 善神・恶神

• 行之三十六 嫉妒

• 行之三十七 抢夺

• 行之三十八 背叛

• 行之三十九 阴谋

• 行之四十 潜入

• 行之四十一 复活

• 行之四十二 魔神复活

• 行之四十三 战士①

• 行之四十三 战士②

• 行之四十五 黑S怨灵

• 行之四十六 被灵所杀

• 行之四十七 魔灵的住所

• 行之四十八 灵战

• 行之四十九 第三只眼

• 行之五十 人犬

• 行之五十一 鬼战

• 行之五十二 处置者

• 行之五十三 暴走

• 行之五十四 魔形变化!

• 行之五十五 消灭超魔

• 行之五十六 魔域异变!

• 行之五十七 目魂

• 行之五十八 天津神

• 行之五十九 思兼神

• 行之六十 神的真面目

• 行之六十一 神话的阴谋

• 行之六十二 鬼王

• 行之六十三 异变!

• 行之六十四 抓鬼

• 行之六十五 里高野异变

• 行之六十七 格斗神!

• 行之六十八 天的岩洞(前篇)

• 行之六十九 天的岩洞(后篇)

• 行之七十 逃离

• 行之七十一 黑暗里高野

• 行之七十二 叛逆的御山

• 行之七十三 三种神器

• 行之七十四 天宇受卖

• 行之七十五 岩洞开启

• 行之七十六 魔镜

• 行之七十七 神座

• 行之七十八 出羽・奥月山

• 行之七十九 人犬的野心

• 行之八十 荒吐之宝

• 行之八十一 暗尾谷

• 行之八十二 双子神

首章高清条漫/翻页画页预览

# 孔雀王 ─退魔圣传─ · 首章高清画页连载预览

> 在线完整下拉/翻页阅读器:https://media.huangguodrama.ai/motion/comics/bilimanga-1440/index.html

![孔雀王 ─退魔圣传─ - 第 1 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_01.jpg)

![孔雀王 ─退魔圣传─ - 第 2 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_02.jpg)

![孔雀王 ─退魔圣传─ - 第 3 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_03.jpg)

![孔雀王 ─退魔圣传─ - 第 4 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_04.jpg)

![孔雀王 ─退魔圣传─ - 第 5 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_05.jpg)

![孔雀王 ─退魔圣传─ - 第 6 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_06.jpg)

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-1440", "mangaid": "1440", "zh_title": "孔雀王 ─退魔圣传─", "hant_title": "孔雀王 ─退魔聖傳─", "en_title": "孔雀王 ─退魔圣传─ (Bilimanga #1440)", "author": "荻野真", "tags": ["神鬼", "魔法", "黑暗", "猎奇", "东方", "奇异幻想", "日本漫画", "漫画"], "zh_desc": "妖魔作乱,世界一片混沌,只有孔雀王能力抗妖魔!\n\n📚 作品信息:作者 荻野真 · 评分 10 · 共收录 11 卷 / 91 话章节目录与高清彩页/条漫预览。", "hant_desc": "妖魔作亂,世界一片混沌,只有孔雀王能力抗妖魔!\n\n📚 作品資訊:作者 荻野真 · 評分 10 · 共收錄 11 卷 / 91 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '孔雀王 ─退魔圣传─' (孔雀王 ─退魔聖傳─) by 荻野真. Includes 11 volumes and 91 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1440/page_06.jpg"], "volumes": [{"title_hant": "孔雀王 ─退魔聖傳─ 1", "title_zh": "孔雀王 ─退魔圣传─ 1", "cover_id": 2607352, "first_chap_id": 120003, "cover_url": "https://i.motiezw.com/cover/1440/2607352.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 2", "title_zh": "孔雀王 ─退魔圣传─ 2", "cover_id": 2607580, "first_chap_id": 120011, "cover_url": "https://i.motiezw.com/cover/1440/2607580.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 3", "title_zh": "孔雀王 ─退魔圣传─ 3", "cover_id": 2607811, "first_chap_id": 120023, "cover_url": "https://i.motiezw.com/cover/1440/2607811.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 4", "title_zh": "孔雀王 ─退魔圣传─ 4", "cover_id": 2608051, "first_chap_id": 120033, "cover_url": "https://i.motiezw.com/cover/1440/2608051.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 5", "title_zh": "孔雀王 ─退魔圣传─ 5", "cover_id": 2608250, "first_chap_id": 120044, "cover_url": "https://i.motiezw.com/cover/1440/2608250.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 6", "title_zh": "孔雀王 ─退魔圣传─ 6", "cover_id": 2608491, "first_chap_id": 120053, "cover_url": "https://i.motiezw.com/cover/1440/2608491.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 7", "title_zh": "孔雀王 ─退魔圣传─ 7", "cover_id": 2608690, "first_chap_id": 120061, "cover_url": "https://i.motiezw.com/cover/1440/2608690.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 8", "title_zh": "孔雀王 ─退魔圣传─ 8", "cover_id": 2608889, "first_chap_id": 120071, "cover_url": "https://i.motiezw.com/cover/1440/2608889.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 9", "title_zh": "孔雀王 ─退魔圣传─ 9", "cover_id": 2609106, "first_chap_id": 120083, "cover_url": "https://i.motiezw.com/cover/1440/2609106.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 10", "title_zh": "孔雀王 ─退魔圣传─ 10", "cover_id": 2609309, "first_chap_id": 120093, "cover_url": "https://i.motiezw.com/cover/1440/2609309.jpg"}, {"title_hant": "孔雀王 ─退魔聖傳─ 11", "title_zh": "孔雀王 ─退魔圣传─ 11", "cover_id": 2609513, "first_chap_id": 120102, "cover_url": "https://i.motiezw.com/cover/1440/2609513.jpg"}], "chapters": [{"cid": "120003", "title": "行之一 山子", "title_zh": "行之一 山子"}, {"cid": "120004", "title": "行之二 甘露水", "title_zh": "行之二 甘露水"}, {"cid": "120005", "title": "行之三 伊呂波歌", "title_zh": "行之三 伊吕波歌"}, {"cid": "120006", "title": "行之四 妖花亂舞", "title_zh": "行之四 妖花乱舞"}, {"cid": "120007", "title": "行之五 卡巴拉之環", "title_zh": "行之五 卡巴拉之环"}, {"cid": "120008", "title": "行之六 魔法陣", "title_zh": "行之六 魔法阵"}, {"cid": "120009", "title": "行之七 魔王降臨", "title_zh": "行之七 魔王降临"}, {"cid": "120011", "title": "行之八 幽玄之子", "title_zh": "行之八 幽玄之子"}, {"cid": "120012", "title": "行之九 鬼神的寶刀", "title_zh": "行之九 鬼神的宝刀"}, {"cid": "120013", "title": "行之十 鬼一法眼刀", "title_zh": "行之十 鬼一法眼刀"}, {"cid": "120014", "title": "行之十一 武藏坊弁慶", "title_zh": "行之十一 武藏坊弁庆"}, {"cid": "120015", "title": "行之十二 邪道", "title_zh": "行之十二 邪道"}, {"cid": "120016", "title": "行之十三 弁慶奇傳", "title_zh": "行之十三 弁庆奇传"}, {"cid": "120017", "title": "行之十四 魔鬼跳梁", "title_zh": "行之十四 魔鬼跳梁"}, {"cid": "120018", "title": "行之十五 鞍馬鳴動", "title_zh": "行之十五 鞍马鸣动"}, {"cid": "120019", "title": "行之十六 五條之戰", "title_zh": "行之十六 五条之战"}, {"cid": "120020", "title": "行之十七 千手觀音降臨", "title_zh": "行之十七 千手观音降临"}, {"cid": "120021", "title": "行之十八 救贖弁慶", "title_zh": "行之十八 救赎弁庆"}, {"cid": "120023", "title": "行之十九 福瘤觀音", "title_zh": "行之十九 福瘤观音"}, {"cid": "120024", "title": "行之二十 單人房怪事", "title_zh": "行之二十 单人房怪事"}, {"cid": "120025", "title": "行之二十一 魔界監獄", "title_zh": "行之二十一 魔界监狱"}, {"cid": "120027", "title": "行之二十三 玷污的祭品", "title_zh": "行之二十三 玷污的祭品"}, {"cid": "120028", "title": "行之二十四 惡靈復活", "title_zh": "行之二十四 恶灵复活"}, {"cid": "120029", "title": "行之二十五 前往ARK", "title_zh": "行之二十五 前往ARK"}, {"cid": "120030", "title": "行之二十六 孔雀變身", "title_zh": "行之二十六 孔雀变身"}, {"cid": "120031", "title": "行之二十七 孔雀復活", "title_zh": "行之二十七 孔雀复活"}, {"cid": "120033", "title": "行之二十八 黑皮衣貴婦人", "title_zh": "行之二十八 黑皮衣贵妇人"}, {"cid": "120034", "title": "行之二十九 晚會狂宴", "title_zh": "行之二十九 晚会狂宴"}, {"cid": "120035", "title": "行之三十 地下水道", "title_zh": "行之三十 地下水道"}, {"cid": "120036", "title": "行之三十一 決裂", "title_zh": "行之三十一 决裂"}, {"cid": "120037", "title": "行之三十二 默示錄", "title_zh": "行之三十二 默示录"}, {"cid": "120038", "title": "行之三十三 前往日出之國", "title_zh": "行之三十三 前往日出之国"}, {"cid": "120039", "title": "行之三十四 急襲!!", "title_zh": "行之三十四 急袭!!"}, {"cid": "120040", "title": "行之三十五 善神・惡神", "title_zh": "行之三十五 善神・恶神"}, {"cid": "120041", "title": "行之三十六 嫉妒", "title_zh": "行之三十六 嫉妒"}, {"cid": "120042", "title": "行之三十七 搶奪", "title_zh": "行之三十七 抢夺"}, {"cid": "120044", "title": "行之三十八 背叛", "title_zh": "行之三十八 背叛"}, {"cid": "120045", "title": "行之三十九 陰謀", "title_zh": "行之三十九 阴谋"}, {"cid": "120046", "title": "行之四十 潛入", "title_zh": "行之四十 潜入"}, {"cid": "120047", "title": "行之四十一 復活", "title_zh": "行之四十一 复活"}, {"cid": "120048", "title": "行之四十二 魔神復活", "title_zh": "行之四十二 魔神复活"}, {"cid": "120049", "title": "行之四十三 戰士①", "title_zh": "行之四十三 战士①"}, {"cid": "120050", "title": "行之四十三 戰士②", "title_zh": "行之四十三 战士②"}, {"cid": "120053", "title": "行之四十五 黑S怨靈", "title_zh": "行之四十五 黑S怨灵"}, {"cid": "120054", "title": "行之四十六 被靈所殺", "title_zh": "行之四十六 被灵所杀"}, {"cid": "120055", "title": "行之四十七 魔靈的住所", "title_zh": "行之四十七 魔灵的住所"}, {"cid": "120056", "title": "行之四十八 靈戰", "title_zh": "行之四十八 灵战"}, {"cid": "120057", "title": "行之四十九 第三隻眼", "title_zh": "行之四十九 第三只眼"}, {"cid": "120058", "title": "行之五十 人犬", "title_zh": "行之五十 人犬"}, {"cid": "120059", "title": "行之五十一 鬼戰", "title_zh": "行之五十一 鬼战"}, {"cid": "120061", "title": "行之五十二 處置者", "title_zh": "行之五十二 处置者"}, {"cid": "120062", "title": "行之五十三 暴走", "title_zh": "行之五十三 暴走"}, {"cid": "120063", "title": "行之五十四 魔形變化!", "title_zh": "行之五十四 魔形变化!"}, {"cid": "120064", "title": "行之五十五 消滅超魔", "title_zh": "行之五十五 消灭超魔"}, {"cid": "120065", "title": "行之五十六 魔域異變!", "title_zh": "行之五十六 魔域异变!"}, {"cid": "120066", "title": "行之五十七 目魂", "title_zh": "行之五十七 目魂"}, {"cid": "120067", "title": "行之五十八 天津神", "title_zh": "行之五十八 天津神"}, {"cid": "120068", "title": "行之五十九 思兼神", "title_zh": "行之五十九 思兼神"}, {"cid": "120069", "title": "行之六十 神的真面目", "title_zh": "行之六十 神的真面目"}, {"cid": "120071", "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>