Back to discovery
轉生史萊姆日記 關於我轉生變成史萊姆這檔事
Comic · 繁體中文

轉生史萊姆日記 關於我轉生變成史萊姆這檔事

「關於我轉生變成史萊姆這檔事」最新衍生作品,「轉生史萊姆日記」來了!作者用日常生活角度,描寫角色們在平常時的生活。除了戰鬥之外,許多角色都在日常生活中展現出豐富的個性。大家穿上泳裝到湖邊玩水,戈畢爾率隊唱歌跳舞讚美利姆路,城鎮裡首次舉辦七夕祭典,托蕾妮還開起了酒吧……! 📚 作品資訊:作者 柴 / 伏瀬 / みっつばー · 評分 10 · 共收錄 6 卷 / 57 話章節目錄與高清彩頁/條漫預覽。 📖 線上漫畫閱讀器:https://media.huangguodrama.ai/motion/comics/bilimanga-1323/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/1015685). 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-1323/index.html

■ 剧情简介:

「关于我转生变成史莱姆这档事」最新衍生作品,「转生史莱姆日记」来了!作者用日常生活角度,描写角色们在平常时的生活。除了战斗之外,许多角色都在日常生活中展现出丰富的个性。大家穿上泳装到湖边玩水,戈毕尔率队唱歌跳舞赞美利姆路,城镇里首次举办七夕祭典,托蕾妮还开起了酒吧……!

📚 作品信息:作者 柴 / 伏瀬 / みっつばー · 评分 10 · 共收录 6 卷 / 57 话章节目录与高清彩页/条漫预览。

■ 收录分卷(共 6 卷):

• 转生史莱姆日记 关于我转生变成史莱姆这档事 1

• 转生史莱姆日记 关于我转生变成史莱姆这档事 2

• 转生史莱姆日记 关于我转生变成史莱姆这档事 3

• 转生史莱姆日记 关于我转生变成史莱姆这档事 4

• 转生史莱姆日记 关于我转生变成史莱姆这档事 5

• 转生史莱姆日记 关于我转生变成史莱姆这档事 6

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

• 1日记「魔物城镇的居民」

• 2日记「春天的空气」

• 3日记「假日的生活」

• 4日记「第一次的七夕」

• 5日记「朱拉的夏天」

• 6日记「泳装的一天」

• 7日记「重现夏日祭典」

• 8日记「逐渐改变」

• 附录

• 9日记「魔王来了!」

• 10日记「丰收之秋」

• 11日记「冬天来临」

• 12日记「圣诞老人在哪里」

• 13日记「享受新年假期」

• 14日记「银白S的魔物城镇」

• 15日记「风起之前」

• 16日记「坦派斯特总体战」

• 17日记「伴随著樱花飘落」

• 附录

• 18日记「犹拉瑟尼亚的兽人们」

• 19日记「前往下一个阶段」

• 21日记「启程六日」

• 22日记「那个人的足迹」

• 23日记「路过布尔慕」

• 24日记「花之都 大英格拉西亚」

• 25日记「这时候的坦派斯特」

• 26日记「旅程的终点」

• 27日记「被留下的孩子们」

• 附录

• 28日记「通往S班的大门」

• 29日记「魔国联邦的访问者」

• 30日记「为了在这个世界生存」

• 31日记「盛夏的魔物」

• 32日记「放•暑•假!」

• 33日记「魔N的后裔」

• 34日记「露营万岁!」

• 35日记「回来的我」

• 36日记「想知道的事、想做的事、做得到的事」

• 37日记「献给英雄们的赞歌」

• 附录

• 38日记「迷宫的攻略与营运」

• 39日记「魂之旅」

• 40日记「稍微回顾一下」

• 42日记「英格拉西亚的秋日祭典」

• 43日记「不加矫饰的国家」

• 44日记「自由学园秋季实地训练」

• 45日记「新的关系」

• 附录

• 46日记「请自爱」

• 47日记「岁末魔国清扫大作战」

• 48日记「离别的颂歌 前篇」

• 49日记「离别的颂歌.后篇」

• 50日记「兰加日记」

• 51日记「直到那一天为止」

• 52日记「动起来的世界」

• 53日记「你们所想的路」

• 54日记「维尔德拉观战记」

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

# 转生史莱姆日记 关于我转生变成史莱姆这档事 · 首章高清画页连载预览

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

![转生史莱姆日记 关于我转生变成史莱姆这档事 - 第 1 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_01.jpg)

![转生史莱姆日记 关于我转生变成史莱姆这档事 - 第 2 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_02.jpg)

![转生史莱姆日记 关于我转生变成史莱姆这档事 - 第 3 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_03.jpg)

![转生史莱姆日记 关于我转生变成史莱姆这档事 - 第 4 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_04.jpg)

![转生史莱姆日记 关于我转生变成史莱姆这档事 - 第 5 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_05.jpg)

![转生史莱姆日记 关于我转生变成史莱姆这档事 - 第 6 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1323/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-1323", "mangaid": "1323", "zh_title": "转生史莱姆日记 关于我转生变成史莱姆这档事", "hant_title": "轉生史萊姆日記 關於我轉生變成史萊姆這檔事", "en_title": "转生史莱姆日记 关于我转生变成史莱姆这档事 (Bilimanga #1323)", "author": "柴 / 伏瀬 / みっつばー", "tags": ["奇幻", "欢乐", "日常", "温馨", "治愈温馨", "日本漫画", "漫画", "日漫"], "zh_desc": "「关于我转生变成史莱姆这档事」最新衍生作品,「转生史莱姆日记」来了!作者用日常生活角度,描写角色们在平常时的生活。除了战斗之外,许多角色都在日常生活中展现出丰富的个性。大家穿上泳装到湖边玩水,戈毕尔率队唱歌跳舞赞美利姆路,城镇里首次举办七夕祭典,托蕾妮还开起了酒吧……!\n\n📚 作品信息:作者 柴 / 伏瀬 / みっつばー · 评分 10 · 共收录 6 卷 / 57 话章节目录与高清彩页/条漫预览。", "hant_desc": "「關於我轉生變成史萊姆這檔事」最新衍生作品,「轉生史萊姆日記」來了!作者用日常生活角度,描寫角色們在平常時的生活。除了戰鬥之外,許多角色都在日常生活中展現出豐富的個性。大家穿上泳裝到湖邊玩水,戈畢爾率隊唱歌跳舞讚美利姆路,城鎮裡首次舉辦七夕祭典,托蕾妮還開起了酒吧……!\n\n📚 作品資訊:作者 柴 / 伏瀬 / みっつばー · 評分 10 · 共收錄 6 卷 / 57 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '转生史莱姆日记 关于我转生变成史莱姆这档事' (轉生史萊姆日記 關於我轉生變成史萊姆這檔事) by 柴 / 伏瀬 / みっつばー. Includes 6 volumes and 57 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1323/page_06.jpg"], "volumes": [{"title_hant": "轉生史萊姆日記 關於我轉生變成史萊姆這檔事 1", "title_zh": "转生史莱姆日记 关于我转生变成史莱姆这档事 1", "cover_id": 2368151, "first_chap_id": 109608, "cover_url": "https://i.motiezw.com/cover/1323/2368151.jpg"}, {"title_hant": "轉生史萊姆日記 關於我轉生變成史萊姆這檔事 2", "title_zh": "转生史莱姆日记 关于我转生变成史莱姆这档事 2", "cover_id": 2368282, "first_chap_id": 109618, "cover_url": "https://i.motiezw.com/cover/1323/2368282.jpg"}, {"title_hant": "轉生史萊姆日記 關於我轉生變成史萊姆這檔事 3", "title_zh": "转生史莱姆日记 关于我转生变成史莱姆这档事 3", "cover_id": 2368437, "first_chap_id": 109629, "cover_url": "https://i.motiezw.com/cover/1323/2368437.jpg"}, {"title_hant": "轉生史萊姆日記 關於我轉生變成史萊姆這檔事 4", "title_zh": "转生史莱姆日记 关于我转生变成史莱姆这档事 4", "cover_id": 2368596, "first_chap_id": 109641, "cover_url": "https://i.motiezw.com/cover/1323/2368596.jpg"}, {"title_hant": "轉生史萊姆日記 關於我轉生變成史萊姆這檔事 5", "title_zh": "转生史莱姆日记 关于我转生变成史莱姆这档事 5", "cover_id": 2368755, "first_chap_id": 109653, "cover_url": "https://i.motiezw.com/cover/1323/2368755.jpg"}, {"title_hant": "轉生史萊姆日記 關於我轉生變成史萊姆這檔事 6", "title_zh": "转生史莱姆日记 关于我转生变成史莱姆这档事 6", "cover_id": 2368884, "first_chap_id": 109663, "cover_url": "https://i.motiezw.com/cover/1323/2368884.jpg"}], "chapters": [{"cid": "109608", "title": "1日記「魔物城鎮的居民」", "title_zh": "1日记「魔物城镇的居民」"}, {"cid": "109609", "title": "2日記「春天的空氣」", "title_zh": "2日记「春天的空气」"}, {"cid": "109610", "title": "3日記「假日的生活」", "title_zh": "3日记「假日的生活」"}, {"cid": "109611", "title": "4日記「第一次的七夕」", "title_zh": "4日记「第一次的七夕」"}, {"cid": "109612", "title": "5日記「朱拉的夏天」", "title_zh": "5日记「朱拉的夏天」"}, {"cid": "109613", "title": "6日記「泳裝的一天」", "title_zh": "6日记「泳装的一天」"}, {"cid": "109614", "title": "7日記「重現夏日祭典」", "title_zh": "7日记「重现夏日祭典」"}, {"cid": "109615", "title": "8日記「逐漸改變」", "title_zh": "8日记「逐渐改变」"}, {"cid": "109616", "title": "附錄", "title_zh": "附录"}, {"cid": "109618", "title": "9日記「魔王來了!」", "title_zh": "9日记「魔王来了!」"}, {"cid": "109619", "title": "10日記「豐收之秋」", "title_zh": "10日记「丰收之秋」"}, {"cid": "109620", "title": "11日記「冬天來臨」", "title_zh": "11日记「冬天来临」"}, {"cid": "109621", "title": "12日記「聖誕老人在哪裡」", "title_zh": "12日记「圣诞老人在哪里」"}, {"cid": "109622", "title": "13日記「享受新年假期」", "title_zh": "13日记「享受新年假期」"}, {"cid": "109623", "title": "14日記「銀白S的魔物城鎮」", "title_zh": "14日记「银白S的魔物城镇」"}, {"cid": "109624", "title": "15日記「風起之前」", "title_zh": "15日记「风起之前」"}, {"cid": "109625", "title": "16日記「坦派斯特總體戰」", "title_zh": "16日记「坦派斯特总体战」"}, {"cid": "109626", "title": "17日記「伴隨著櫻花飄落」", "title_zh": "17日记「伴随著樱花飘落」"}, {"cid": "109627", "title": "附錄", "title_zh": "附录"}, {"cid": "109629", "title": "18日記「猶拉瑟尼亞的獸人們」", "title_zh": "18日记「犹拉瑟尼亚的兽人们」"}, {"cid": "109630", "title": "19日記「前往下一個階段」", "title_zh": "19日记「前往下一个阶段」"}, {"cid": "109632", "title": "21日記「啟程六日」", "title_zh": "21日记「启程六日」"}, {"cid": "109633", "title": "22日記「那個人的足跡」", "title_zh": "22日记「那个人的足迹」"}, {"cid": "109634", "title": "23日記「路過布爾慕」", "title_zh": "23日记「路过布尔慕」"}, {"cid": "109635", "title": "24日記「花之都 大英格拉西亞」", "title_zh": "24日记「花之都 大英格拉西亚」"}, {"cid": "109636", "title": "25日記「這時候的坦派斯特」", "title_zh": "25日记「这时候的坦派斯特」"}, {"cid": "109637", "title": "26日記「旅程的終點」", "title_zh": "26日记「旅程的终点」"}, {"cid": "109638", "title": "27日記「被留下的孩子們」", "title_zh": "27日记「被留下的孩子们」"}, {"cid": "109639", "title": "附錄", "title_zh": "附录"}, {"cid": "109641", "title": "28日記「通往S班的大門」", "title_zh": "28日记「通往S班的大门」"}, {"cid": "109642", "title": "29日記「魔國聯邦的訪問者」", "title_zh": "29日记「魔国联邦的访问者」"}, {"cid": "109643", "title": "30日記「為了在這個世界生存」", "title_zh": "30日记「为了在这个世界生存」"}, {"cid": "109644", "title": "31日記「盛夏的魔物」", "title_zh": "31日记「盛夏的魔物」"}, {"cid": "109645", "title": "32日記「放•暑•假!」", "title_zh": "32日记「放•暑•假!」"}, {"cid": "109646", "title": "33日記「魔N的後裔」", "title_zh": "33日记「魔N的后裔」"}, {"cid": "109647", "title": "34日記「露營萬歲!」", "title_zh": "34日记「露营万岁!」"}, {"cid": "109648", "title": "35日記「回來的我」", "title_zh": "35日记「回来的我」"}, {"cid": "109649", "title": "36日記「想知道的事、想做的事、做得到的事」", "title_zh": "36日记「想知道的事、想做的事、做得到的事」"}, {"cid": "109650", "title": "37日記「獻給英雄們的讚歌」", "title_zh": "37日记「献给英雄们的赞歌」"}, {"cid": "109651", "title": "附錄", "title_zh": "附录"}, {"cid": "109653", "title": "38日記「迷宮的攻略與營運」", "title_zh": "38日记「迷宫的攻略与营运」"}, {"cid": "109654", "title": "39日記「魂之旅」", "title_zh": "39日记「魂之旅」"}, {"cid": "109655", "title": "40日記「稍微回顧一下」", "title_zh": "40日记「稍微回顾一下」"}, {"cid": "109657", "title": "42日記「英格拉西亞的秋日祭典」", "title_zh": "42日记「英格拉西亚的秋日祭典」"}, {"cid": "109658", "title": "43日記「不加矯飾的國家」", "title_zh": "43日记「不加矫饰的国家」"}, {"cid": "109659", "title": "44日記「自由學園秋季實地訓練」", "title_zh": "44日记「自由学园秋季实地训练」"}, {"cid": "109660", "title": "45日記「新的關係」", "title_zh": "45日记「新的关系」"}, {"cid": "109661", "title": "附錄", "title_zh": "附录"}, {"cid": "109663", "title": "46日記「請自愛」", "title_zh": "46日记「请自爱」"}, {"cid": "109664", "title": "47日記「歲末魔國清掃大作戰」", "title_zh": "47日记「岁末魔国清扫大作战」"}, {"cid": "109665", "title": "48日記「離別的頌歌 前篇」", "title_zh": "48日记「离别的颂歌 前篇」"}, {"cid": "109666", "title": "49日記「離別的頌歌.後篇」", "title_zh": "49日记「离别的颂歌.后篇」"}, {"cid": "109667", "title": "50日記「蘭加日記」", "title_zh": "50日记「兰加日记」"}, {"cid": "109668", "title": "51日記「直到那一天為止」", "title_zh": "51日记「直到那一天为止」"}, {"cid": "109669", "title": "52日記「動起來的世界」", "title_zh": "52日记「动起来的世界」"}, {"cid": "109670", "title": "53日記「你們所想的路」", "title_zh": "53日记「你们所想的路」"}, {"cid": "109671", "title": "54日記「維爾德拉觀戰記」", "title_zh": "54日记「维尔德拉观战记」"}]};

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>