Back to discovery
亂馬½ 典藏版
Comic · 繁體中文

亂馬½ 典藏版

遠赴中國修行的亂馬,不小心掉進咒泉鄉的娘溺泉裡,從此身體產生了不可告人的轉變。 討厭男生的天道茜,成天都得打發一堆愛慕者的追求,偏偏父親居然自作主張弄了一個未婚夫住進家裡,搞得全家雞犬不寧,重點是這傢伙到底是「他」還是「她」? 📚 作品資訊:作者 高橋留美子 · 評分 10 · 共收錄 20 卷 / 432 話章節目錄與高清彩頁/條漫預覽。 📖 線上漫畫閱讀器:

Comic

More series to watch

Explore other available series below. The reading and AI chat links lead to separate experiences; they are not additional episodes of 亂馬½ 典藏版.

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.

About 亂馬½ 典藏版

10 available images.

《亂馬½ 典藏版》目前收錄了哪些內容?
目前目錄收錄狀態:劇情簡介。實際可播放劇集、預告影片或正文章節均以本頁顯示列表為準。
線上觀看或閱讀《亂馬½ 典藏版》需要下載 App 嗎?
無需下載安裝 App,已收錄的影片劇集與閱讀章節可直接在手機或電腦瀏覽器開啟。
《亂馬½ 典藏版》是否已收錄完整全集?
作品頁僅顯示目前已上線的內容,部分作品僅收錄預告片或劇情簡介,請以頁面分集與章節列表為準。
简体中文

漫画简介与全卷章节目录

【乱马½ 典藏版(亂馬½ 典藏版)· 漫画导览与全卷目录】

作者:高桥留美子

评分:10

标签:奇幻 / 性转 / 校园 / 恋爱 / 欢乐 / 战斗 / 异能 / 校园青春

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

■ 剧情简介:

远赴中国修行的乱马,不小心掉进咒泉乡的娘溺泉里,从此身体产生了不可告人的转变。

讨厌男生的天道茜,成天都得打发一堆爱慕者的追求,偏偏父亲居然自作主张弄了一个未婚夫住进家里,搞得全家鸡犬不宁,重点是这家伙到底是「他」还是「她」?

📚 作品信息:作者 高桥留美子 · 评分 10 · 共收录 20 卷 / 432 话章节目录与高清彩页/条漫预览。

■ 收录分卷(共 20 卷):

• 乱马½ 典藏版 1

• 乱马½ 典藏版 2

• 乱马½ 典藏版 3

• 乱马½ 典藏版 4

• 乱马½ 典藏版 5

• 乱马½ 典藏版 6

• 乱马½ 典藏版 7

• 乱马½ 典藏版 8

• 乱马½ 典藏版 9

• 乱马½ 典藏版 10

• 乱马½ 典藏版 11

• 乱马½ 典藏版 12

• 乱马½ 典藏版 13

• 乱马½ 典藏版 14

• 乱马½ 典藏版 15

• 乱马½ 典藏版 16

• 乱马½ 典藏版 17

• 乱马½ 典藏版 18

• 乱马½ 典藏版 19

• 乱马½ 典藏版 20

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

• 彩页

• PART.1 乱马来了

• PART.2 乱马的秘密

• PART.3 男人真讨厌

• PART.4 绝不准许

• PART.5 树上的水壶N孩

• PART.6 心和身体

• PART.7 马上就会明白

• PART.8 有喜欢的人了

• PART.9 笑起来就很可爱

• PART.10 追逐乱马的男人

• PART.11 对决

• PART.12 对决・续篇

• PART.13 就算没有受伤

• PART.14 真是不可爱

• PART.15 良牙变身

• PART.16 理当憎恨

• 第乱马格斗家烈传(一) 早乙N乱马

• 附录

• 彩页

• PART.17 黑玫瑰小太刀

• PART.18 黑玫瑰之恋

• PART.20 我要让你输

• PART.21 热斗韵律体操

• PART.22 我愿意放弃

• PART.23 心爱的夏洛德

• PART.24 溜冰场之温

• PART.25 困惑的双唇

• PART.26 香温之战

• PART.27 绝不放手

• PART.28 背水之阵

• PART.29 良牙发威

• PART.30 爱的水柱

• PART.31 死亡之温

• PART.32 我爱你

• PART.33 小茜vs.珊璞

• 第乱马格斗家烈传(二) 响良牙

• 附录

• 彩页

• PART.34 必杀洗发汝

• PART.35 No.119药水

• PART.36 别了

• PART.37 寻找弱点

• PART.38 找到弱点

• PART.39 招待前往猫地狱

• PART.41 谁都可以吗?

• PART.42 珊璞重返日本

• PART.43 沐丝来袭

• PART.44 格斗表演会

• PART.45 破解猫舌穴

• PART.46 秘药不死鸟丸

• PART.47 夜市之战

• PART.48 西瓜大战

• PART.49 招赘大海战

• PART.50 海猫冲锋

• PART.51 想不想和我合作?

• PART.52 修行DE晚餐

• PART.53 爆碎点穴

• PART.54 不死之身的男人

• 附录

• 彩页

• PART.55 爆碎胜负

• PART.56 格斗茶道

• PART.57 茶月小姐

• PART.58 结成良缘

• PART.59 格斗外送费

• PART.60 目标终点

• PART.61 请吃拉面

• PART.63『邪恶』复活

• PART.64 不是普通人

• PART.65 澡堂之战

• PART.66 Moonlight Bomber

• PART.67 八宝斋发怒

• PART.68 N嫌香的神效

• PART.69 老爸大反攻

• PART.70 速泡男溺泉

• PART.71 禁止帮忙

• PART.72 恐怖招牌男

• PART.73 One more kiss

• PART.74 罗密欧大混战

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

# 乱马½ 典藏版 · 首章高清画页连载预览

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

![乱马½ 典藏版 - 第 1 页](https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_01.jpg)

![乱马½ 典藏版 - 第 2 页](https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_02.jpg)

![乱马½ 典藏版 - 第 3 页](https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_03.jpg)

![乱马½ 典藏版 - 第 4 页](https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_04.jpg)

![乱马½ 典藏版 - 第 5 页](https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_05.jpg)

![乱马½ 典藏版 - 第 6 页](https://media.huangguodrama.ai/motion/comics/bilimanga-740/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-740", "mangaid": "740", "zh_title": "乱马½ 典藏版", "hant_title": "亂馬½ 典藏版", "en_title": "乱马½ 典藏版 (Bilimanga #740)", "author": "高桥留美子", "tags": ["奇幻", "性转", "校园", "恋爱", "欢乐", "战斗", "异能", "校园青春"], "zh_desc": "远赴中国修行的乱马,不小心掉进咒泉乡的娘溺泉里,从此身体产生了不可告人的转变。\n\r\n讨厌男生的天道茜,成天都得打发一堆爱慕者的追求,偏偏父亲居然自作主张弄了一个未婚夫住进家里,搞得全家鸡犬不宁,重点是这家伙到底是「他」还是「她」?\n\n📚 作品信息:作者 高桥留美子 · 评分 10 · 共收录 20 卷 / 432 话章节目录与高清彩页/条漫预览。", "hant_desc": "遠赴中國修行的亂馬,不小心掉進咒泉鄉的娘溺泉裡,從此身體產生了不可告人的轉變。\n\r\n討厭男生的天道茜,成天都得打發一堆愛慕者的追求,偏偏父親居然自作主張弄了一個未婚夫住進家裡,搞得全家雞犬不寧,重點是這傢伙到底是「他」還是「她」?\n\n📚 作品資訊:作者 高橋留美子 · 評分 10 · 共收錄 20 卷 / 432 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '乱马½ 典藏版' (亂馬½ 典藏版) by 高桥留美子. Includes 20 volumes and 432 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-740/page_06.jpg"], "volumes": [{"title_hant": "亂馬½ 典藏版 1", "title_zh": "乱马½ 典藏版 1", "cover_id": 1263986, "first_chap_id": 57462, "cover_url": "https://i.motiezw.com/cover/740/1263986.jpg"}, {"title_hant": "亂馬½ 典藏版 2", "title_zh": "乱马½ 典藏版 2", "cover_id": 1264518, "first_chap_id": 57492, "cover_url": "https://i.motiezw.com/cover/740/1264518.jpg"}, {"title_hant": "亂馬½ 典藏版 3", "title_zh": "乱马½ 典藏版 3", "cover_id": 1483439, "first_chap_id": 67733, "cover_url": "https://i.motiezw.com/cover/740/1483439.jpg"}, {"title_hant": "亂馬½ 典藏版 4", "title_zh": "乱马½ 典藏版 4", "cover_id": 1483795, "first_chap_id": 67757, "cover_url": "https://i.motiezw.com/cover/740/1483795.jpg"}, {"title_hant": "亂馬½ 典藏版 5", "title_zh": "乱马½ 典藏版 5", "cover_id": 1484150, "first_chap_id": 67781, "cover_url": "https://i.motiezw.com/cover/740/1484150.jpg"}, {"title_hant": "亂馬½ 典藏版 6", "title_zh": "乱马½ 典藏版 6", "cover_id": 1484506, "first_chap_id": 67805, "cover_url": "https://i.motiezw.com/cover/740/1484506.jpg"}, {"title_hant": "亂馬½ 典藏版 7", "title_zh": "乱马½ 典藏版 7", "cover_id": 1484862, "first_chap_id": 67829, "cover_url": "https://i.motiezw.com/cover/740/1484862.jpg"}, {"title_hant": "亂馬½ 典藏版 8", "title_zh": "乱马½ 典藏版 8", "cover_id": 1485218, "first_chap_id": 67853, "cover_url": "https://i.motiezw.com/cover/740/1485218.jpg"}, {"title_hant": "亂馬½ 典藏版 9", "title_zh": "乱马½ 典藏版 9", "cover_id": 1485576, "first_chap_id": 67877, "cover_url": "https://i.motiezw.com/cover/740/1485576.jpg"}, {"title_hant": "亂馬½ 典藏版 10", "title_zh": "乱马½ 典藏版 10", "cover_id": 1485932, "first_chap_id": 67901, "cover_url": "https://i.motiezw.com/cover/740/1485932.jpg"}, {"title_hant": "亂馬½ 典藏版 11", "title_zh": "乱马½ 典藏版 11", "cover_id": 1486288, "first_chap_id": 67925, "cover_url": "https://i.motiezw.com/cover/740/1486288.jpg"}, {"title_hant": "亂馬½ 典藏版 12", "title_zh": "乱马½ 典藏版 12", "cover_id": 1486644, "first_chap_id": 67949, "cover_url": "https://i.motiezw.com/cover/740/1486644.jpg"}], "chapters": [{"cid": "57462", "title": "彩頁", "title_zh": "彩页"}, {"cid": "57463", "title": "PART.1 亂馬來了", "title_zh": "PART.1 乱马来了"}, {"cid": "57464", "title": "PART.2 亂馬的秘密", "title_zh": "PART.2 乱马的秘密"}, {"cid": "57465", "title": "PART.3 男人真討厭", "title_zh": "PART.3 男人真讨厌"}, {"cid": "57466", "title": "PART.4 絕不准許", "title_zh": "PART.4 绝不准许"}, {"cid": "57467", "title": "PART.5 樹上的水壺N孩", "title_zh": "PART.5 树上的水壶N孩"}, {"cid": "57468", "title": "PART.6 心和身體", "title_zh": "PART.6 心和身体"}, {"cid": "57469", "title": "PART.7 馬上就會明白", "title_zh": "PART.7 马上就会明白"}, {"cid": "57470", "title": "PART.8 有喜歡的人了", "title_zh": "PART.8 有喜欢的人了"}, {"cid": "57471", "title": "PART.9 笑起來就很可愛", "title_zh": "PART.9 笑起来就很可爱"}, {"cid": "57472", "title": "PART.10 追逐亂馬的男人", "title_zh": "PART.10 追逐乱马的男人"}, {"cid": "57473", "title": "PART.11 對決", "title_zh": "PART.11 对决"}, {"cid": "57474", "title": "PART.12 對決・續篇", "title_zh": "PART.12 对决・续篇"}, {"cid": "57475", "title": "PART.13 就算沒有受傷", "title_zh": "PART.13 就算没有受伤"}, {"cid": "57476", "title": "PART.14 真是不可愛", "title_zh": "PART.14 真是不可爱"}, {"cid": "57477", "title": "PART.15 良牙變身", "title_zh": "PART.15 良牙变身"}, {"cid": "57478", "title": "PART.16 理當憎恨", "title_zh": "PART.16 理当憎恨"}, {"cid": "57479", "title": "第亂馬格鬥家烈傳(一) 早乙N亂馬", "title_zh": "第乱马格斗家烈传(一) 早乙N乱马"}, {"cid": "57480", "title": "附錄", "title_zh": "附录"}, {"cid": "57492", "title": "彩頁", "title_zh": "彩页"}, {"cid": "57493", "title": "PART.17 黑玫瑰小太刀", "title_zh": "PART.17 黑玫瑰小太刀"}, {"cid": "57494", "title": "PART.18 黑玫瑰之戀", "title_zh": "PART.18 黑玫瑰之恋"}, {"cid": "57496", "title": "PART.20 我要讓你輸", "title_zh": "PART.20 我要让你输"}, {"cid": "57497", "title": "PART.21 熱鬥韻律體操", "title_zh": "PART.21 热斗韵律体操"}, {"cid": "57498", "title": "PART.22 我願意放棄", "title_zh": "PART.22 我愿意放弃"}, {"cid": "57499", "title": "PART.23 心愛的夏洛德", "title_zh": "PART.23 心爱的夏洛德"}, {"cid": "57500", "title": "PART.24 溜冰場之溫", "title_zh": "PART.24 溜冰场之温"}, {"cid": "57501", "title": "PART.25 困惑的雙唇", "title_zh": "PART.25 困惑的双唇"}, {"cid": "57502", "title": "PART.26 香溫之戰", "title_zh": "PART.26 香温之战"}, {"cid": "57503", "title": "PART.27 絕不放手", "title_zh": "PART.27 绝不放手"}, {"cid": "57504", "title": "PART.28 背水之陣", "title_zh": "PART.28 背水之阵"}, {"cid": "57505", "title": "PART.29 良牙發威", "title_zh": "PART.29 良牙发威"}, {"cid": "57506", "title": "PART.30 愛的水柱", "title_zh": "PART.30 爱的水柱"}, {"cid": "57507", "title": "PART.31 死亡之溫", "title_zh": "PART.31 死亡之温"}, {"cid": "57508", "title": "PART.32 我愛你", "title_zh": "PART.32 我爱你"}, {"cid": "57509", "title": "PART.33 小茜vs.珊璞", "title_zh": "PART.33 小茜vs.珊璞"}, {"cid": "57510", "title": "第亂馬格鬥家烈傳(二) 響良牙", "title_zh": "第乱马格斗家烈传(二) 响良牙"}, {"cid": "57511", "title": "附錄", "title_zh": "附录"}, {"cid": "67733", "title": "彩頁", "title_zh": "彩页"}, {"cid": "67734", "title": "PART.34 必殺洗髮汝", "title_zh": "PART.34 必杀洗发汝"}, {"cid": "67735", "title": "PART.35 No.119藥水", "title_zh": "PART.35 No.119药水"}, {"cid": "67736", "title": "PART.36 別了", "title_zh": "PART.36 别了"}, {"cid": "67737", "title": "PART.37 尋找弱點", "title_zh": "PART.37 寻找弱点"}, {"cid": "67738", "title": "PART.38 找到弱點", "title_zh": "PART.38 找到弱点"}, {"cid": "67739", "title": "PART.39 招待前往貓地獄", "title_zh": "PART.39 招待前往猫地狱"}, {"cid": "67741", "title": "PART.41 誰都可以嗎?", "title_zh": "PART.41 谁都可以吗?"}, {"cid": "67742", "title": "PART.42 珊璞重返日本", "title_zh": "PART.42 珊璞重返日本"}, {"cid": "67743", "title": "PART.43 沐絲來襲", "title_zh": "PART.43 沐丝来袭"}, {"cid": "67744", "title": "PART.44 格鬥表演會", "title_zh": "PART.44 格斗表演会"}, {"cid": "67745", "title": "PART.45 破解貓舌穴", "title_zh": "PART.45 破解猫舌穴"}, {"cid": "67746", "title": "PART.46 秘藥不死鳥丸", "title_zh": "PART.46 秘药不死鸟丸"}, {"cid": "67747", "title": "PART.47 夜市之戰", "title_zh": "PART.47 夜市之战"}, {"cid": "67748", "title": "PART.48 西瓜大戰", "title_zh": "PART.48 西瓜大战"}, {"cid": "67749", "title": "PART.49 招贅大海戰", "title_zh": "PART.49 招赘大海战"}, {"cid": "67750", "title": "PART.50 海貓衝鋒", "title_zh": "PART.50 海猫冲锋"}, {"cid": "67751", "title": "PART.51 想不想和我合作?", "title_zh": "PART.51 想不想和我合作?"}, {"cid": "67752", "title": "PART.52 修行DE晚餐", "title_zh": "PART.52 修行DE晚餐"}, {"cid": "67753", "title": "PART.53 爆碎點穴", "title_zh": "PART.53 爆碎点穴"}, {"cid": "67754", "title": "PART.54 不死之身的男人", "title_zh": "PART.54 不死之身的男人"}, {"cid": "67755", "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>