Back to discovery
放学后推理研究会!
Comic · 简体中文

放学后推理研究会!

你有推理的才能,让我把你调教成我喜欢的样子吧♥ 有校内第一美女评价的白银百合子,是个十分喜爱推理解谜的广岛腔女高中生。 对她一见钟情的转学生‧户入,就这样加入了推理解谜研究会…? 用案件来点缀朴素的日常,推理解谜×日常的喜剧! 📚 作品信息:作者 安田刚助 · 评分 10 · 共收录 7 卷 / 90 话章节目录与高清彩页/条漫预览。 📖 在线漫画阅读器:https://media.huangguodrama.ai/motion/comics/bilimanga-1145/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/1015835). 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-1145/index.html

■ 剧情简介:

你有推理的才能,让我把你调教成我喜欢的样子吧♥

有校内第一美女评价的白银百合子,是个十分喜爱推理解谜的广岛腔女高中生。

对她一见钟情的转学生‧户入,就这样加入了推理解谜研究会…?

用案件来点缀朴素的日常,推理解谜×日常的喜剧!

📚 作品信息:作者 安田刚助 · 评分 10 · 共收录 7 卷 / 90 话章节目录与高清彩页/条漫预览。

■ 收录分卷(共 7 卷):

• 放学后推理研究会! 1

• 放学后推理研究会! 2

• 放学后推理研究会! 3

• 放学后推理研究会! 4

• 放学后推理研究会! 5

• 放学后推理研究会! 6

• 放学后推理研究会! 7

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

• 事件 其一 不在场证明!

• 事件 其二 密室!

• 事件 其三 叙述悻诡计!

• 事件 其四 Why done it

• 事件 其五 不公平!

• 事件 其六 冷读法!

• 事件 其七 剧透!

• 事件 其八 倒叙推理!

• 事件 其九 没有描写人悻!

• 事件 其十 非欧几里得几何!

• 事件 其十一 模仿!

• 事件 其十二 第三位N郎!

• 事件 其十三 犯人是谁!

• 事件 其十四 暴风雪山庄!

• 事件 其十五 灵异事件!

• 事件 其十六 BL!

• 事件 其十七 双胞胎谜题!

• 事件 其十八 红发会!

• 事件 其十九 验尸!

• 事件 其二十 名侦探!

• 事件 其二十一 虽然是XXXX,但也是无可奈何的事!

• 事件 其二十二 连环杀人!

• 事件 其二十四 毒杀!

• 事件 其二十五 密室逃T!

• 事件 其二十六 误导!

• 事件 其二十七 这是很基础的事,华生!

• 事件 其二十八 How done it(出题篇)!

• 事件 其二十九 How done it(解决篇)!

• 事件 其三十 动机!

• 事件 其三十一 安乐椅侦探!

• 事件 其三十二 读书大赛!

• 事件 其三十三 犯人!

• 事件 其三十四 推研!

• 事件 其三十五 死亡讯息!

• 事件 其三十六 伏笔!

• 事件 其三十七 密码筒!

• 事件 其三十八 脑筋急转弯!

• 事件 其三十九 心灵魔术!

• 事件 其四十 替换式密码!

• 事件 其四十一魔术!

• 事件 其四十二 最初的事件!

• 事件 其四十三 白银百合子的研究!

• 附录

• 事件 其四十四 成为小说家吧!

• 事件 其四十六 乔装!

• 事件 其四十七 自杀!

• 事件 其四十八 童谣杀人!

• 事件 其四十九 微表Q!

• 事件 其五十 喜欢的书!

• 事件 其五十一 凶器!

• 事件 其五十二 真凶诈尸!

• 事件 其五十三 斑点带子!

• 事件 其五十四 出千!

• 事件 其五十五 无人生还!(前篇)

• 事件 其五十六 无人生还!(后篇)

• 附录

• 事件 其五十七 所有谜题都解开了!

• 事件 其五十八 伪证!

• 事件 其五十九 审讯!

• 事件 其六十 理论!

• 事件 其六十一 都市传说!

• 事件 其六十二 收藏品!

• 事件 其六十三 缺失的一环!

• 事件 其六十四 推理小说十诫!

• 事件 其六十五 印度扑克!

• 事件 其六十六 临终的侦探!

• 事件 其六十七 超自然研!

• 事件 其六十九 公平与不公平论证!

• 事件 其七十 假货!

• 事件 其七十一跟踪!

• 事件 其七十二 冤罪!

• 事件 其七十三 广岛少N小葵!

• 事件 其七十四 陷阱式问题!

• 事件 其七十五 埋伏!

• 事件 其七十六 不可信的讲述人!(前篇)

• 事件 其七十七 不可信的讲述人!(后篇)

• 事件 其七十八 观察!

• 事件 其七十九 嫌疑人!

• 事件 其八十 悬念!

• 事件 其八十一 白银的仪式!

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

# 放学后推理研究会! · 首章高清画页连载预览

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

![放学后推理研究会! - 第 1 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_01.jpg)

![放学后推理研究会! - 第 2 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_02.jpg)

![放学后推理研究会! - 第 3 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_03.jpg)

![放学后推理研究会! - 第 4 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_04.jpg)

![放学后推理研究会! - 第 5 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_05.jpg)

![放学后推理研究会! - 第 6 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1145/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-1145", "mangaid": "1145", "zh_title": "放学后推理研究会!", "hant_title": "放學後推理研究會!", "en_title": "放学后推理研究会! (Bilimanga #1145)", "author": "安田刚助", "tags": ["校园", "日常", "侦探", "欢乐", "萌系", "宅系", "校园青春", "日本漫画"], "zh_desc": "你有推理的才能,让我把你调教成我喜欢的样子吧♥\n\r\n有校内第一美女评价的白银百合子,是个十分喜爱推理解谜的广岛腔女高中生。\n\r\n对她一见钟情的转学生‧户入,就这样加入了推理解谜研究会…?\n\r\n用案件来点缀朴素的日常,推理解谜×日常的喜剧!\n\n📚 作品信息:作者 安田刚助 · 评分 10 · 共收录 7 卷 / 90 话章节目录与高清彩页/条漫预览。", "hant_desc": "你有推理的才能,讓我把你調教成我喜歡的樣子吧♥\n\r\n有校內第一美女評價的白銀百合子,是個十分喜愛推理解謎的廣島腔女高中生。\n\r\n對她一見鍾情的轉學生‧戶入,就這樣加入了推理解謎研究會…?\n\r\n用案件來點綴樸素的日常,推理解謎×日常的喜劇!\n\n📚 作品資訊:作者 安田剛助 · 評分 10 · 共收錄 7 卷 / 90 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '放学后推理研究会!' (放學後推理研究會!) by 安田刚助. Includes 7 volumes and 90 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1145/page_06.jpg"], "volumes": [{"title_hant": "放學後推理研究會! 1", "title_zh": "放学后推理研究会! 1", "cover_id": 2059121, "first_chap_id": 95856, "cover_url": "https://i.motiezw.com/cover/1145/2059121.jpg"}, {"title_hant": "放學後推理研究會! 2", "title_zh": "放学后推理研究会! 2", "cover_id": 2059441, "first_chap_id": 95887, "cover_url": "https://i.motiezw.com/cover/1145/2059441.jpg"}, {"title_hant": "放學後推理研究會! 3", "title_zh": "放学后推理研究会! 3", "cover_id": 2059601, "first_chap_id": 95903, "cover_url": "https://i.motiezw.com/cover/1145/2059601.jpg"}, {"title_hant": "放學後推理研究會! 4", "title_zh": "放学后推理研究会! 4", "cover_id": 2059761, "first_chap_id": 95918, "cover_url": "https://i.motiezw.com/cover/1145/2059761.jpg"}, {"title_hant": "放學後推理研究會! 5", "title_zh": "放学后推理研究会! 5", "cover_id": 2059921, "first_chap_id": 95933, "cover_url": "https://i.motiezw.com/cover/1145/2059921.jpg"}, {"title_hant": "放學後推理研究會! 6", "title_zh": "放学后推理研究会! 6", "cover_id": 2060082, "first_chap_id": 95946, "cover_url": "https://i.motiezw.com/cover/1145/2060082.jpg"}, {"title_hant": "放學後推理研究會! 7", "title_zh": "放学后推理研究会! 7", "cover_id": 2060242, "first_chap_id": 95959, "cover_url": "https://i.motiezw.com/cover/1145/2060242.jpg"}], "chapters": [{"cid": "95856", "title": "事件 其一 不在場證明!", "title_zh": "事件 其一 不在场证明!"}, {"cid": "95857", "title": "事件 其二 密室!", "title_zh": "事件 其二 密室!"}, {"cid": "95858", "title": "事件 其三 敘述悻詭計!", "title_zh": "事件 其三 叙述悻诡计!"}, {"cid": "95859", "title": "事件 其四 Why done it", "title_zh": "事件 其四 Why done it"}, {"cid": "95860", "title": "事件 其五 不公平!", "title_zh": "事件 其五 不公平!"}, {"cid": "95861", "title": "事件 其六 冷讀法!", "title_zh": "事件 其六 冷读法!"}, {"cid": "95862", "title": "事件 其七 劇透!", "title_zh": "事件 其七 剧透!"}, {"cid": "95863", "title": "事件 其八 倒敘推理!", "title_zh": "事件 其八 倒叙推理!"}, {"cid": "95864", "title": "事件 其九 沒有描寫人悻!", "title_zh": "事件 其九 没有描写人悻!"}, {"cid": "95865", "title": "事件 其十 非歐幾里得幾何!", "title_zh": "事件 其十 非欧几里得几何!"}, {"cid": "95866", "title": "事件 其十一 模仿!", "title_zh": "事件 其十一 模仿!"}, {"cid": "95867", "title": "事件 其十二 第三位N郎!", "title_zh": "事件 其十二 第三位N郎!"}, {"cid": "95868", "title": "事件 其十三 犯人是誰!", "title_zh": "事件 其十三 犯人是谁!"}, {"cid": "95869", "title": "事件 其十四 暴風雪山莊!", "title_zh": "事件 其十四 暴风雪山庄!"}, {"cid": "95870", "title": "事件 其十五 靈異事件!", "title_zh": "事件 其十五 灵异事件!"}, {"cid": "95887", "title": "事件 其十六 BL!", "title_zh": "事件 其十六 BL!"}, {"cid": "95888", "title": "事件 其十七 雙胞胎謎題!", "title_zh": "事件 其十七 双胞胎谜题!"}, {"cid": "95889", "title": "事件 其十八 紅髮會!", "title_zh": "事件 其十八 红发会!"}, {"cid": "95890", "title": "事件 其十九 驗屍!", "title_zh": "事件 其十九 验尸!"}, {"cid": "95891", "title": "事件 其二十 名偵探!", "title_zh": "事件 其二十 名侦探!"}, {"cid": "95892", "title": "事件 其二十一 雖然是XXXX,但也是無可奈何的事!", "title_zh": "事件 其二十一 虽然是XXXX,但也是无可奈何的事!"}, {"cid": "95893", "title": "事件 其二十二 連環殺人!", "title_zh": "事件 其二十二 连环杀人!"}, {"cid": "95895", "title": "事件 其二十四 毒殺!", "title_zh": "事件 其二十四 毒杀!"}, {"cid": "95896", "title": "事件 其二十五 密室逃T!", "title_zh": "事件 其二十五 密室逃T!"}, {"cid": "95897", "title": "事件 其二十六 誤導!", "title_zh": "事件 其二十六 误导!"}, {"cid": "95898", "title": "事件 其二十七 這是很基礎的事,華生!", "title_zh": "事件 其二十七 这是很基础的事,华生!"}, {"cid": "95899", "title": "事件 其二十八 How done it(出題篇)!", "title_zh": "事件 其二十八 How done it(出题篇)!"}, {"cid": "95900", "title": "事件 其二十九 How done it(解決篇)!", "title_zh": "事件 其二十九 How done it(解决篇)!"}, {"cid": "95901", "title": "事件 其三十 動機!", "title_zh": "事件 其三十 动机!"}, {"cid": "95903", "title": "事件 其三十一 安樂椅偵探!", "title_zh": "事件 其三十一 安乐椅侦探!"}, {"cid": "95904", "title": "事件 其三十二 讀書大賽!", "title_zh": "事件 其三十二 读书大赛!"}, {"cid": "95905", "title": "事件 其三十三 犯人!", "title_zh": "事件 其三十三 犯人!"}, {"cid": "95906", "title": "事件 其三十四 推研!", "title_zh": "事件 其三十四 推研!"}, {"cid": "95907", "title": "事件 其三十五 死亡訊息!", "title_zh": "事件 其三十五 死亡讯息!"}, {"cid": "95908", "title": "事件 其三十六 伏筆!", "title_zh": "事件 其三十六 伏笔!"}, {"cid": "95909", "title": "事件 其三十七 密碼筒!", "title_zh": "事件 其三十七 密码筒!"}, {"cid": "95910", "title": "事件 其三十八 腦筋急轉彎!", "title_zh": "事件 其三十八 脑筋急转弯!"}, {"cid": "95911", "title": "事件 其三十九 心靈魔術!", "title_zh": "事件 其三十九 心灵魔术!"}, {"cid": "95912", "title": "事件 其四十 替換式密碼!", "title_zh": "事件 其四十 替换式密码!"}, {"cid": "95913", "title": "事件 其四十一魔術!", "title_zh": "事件 其四十一魔术!"}, {"cid": "95914", "title": "事件 其四十二 最初的事件!", "title_zh": "事件 其四十二 最初的事件!"}, {"cid": "95915", "title": "事件 其四十三 白銀百合子的研究!", "title_zh": "事件 其四十三 白银百合子的研究!"}, {"cid": "95916", "title": "附錄", "title_zh": "附录"}, {"cid": "95918", "title": "事件 其四十四 成為小說家吧!", "title_zh": "事件 其四十四 成为小说家吧!"}, {"cid": "95920", "title": "事件 其四十六 喬裝!", "title_zh": "事件 其四十六 乔装!"}, {"cid": "95921", "title": "事件 其四十七 自殺!", "title_zh": "事件 其四十七 自杀!"}, {"cid": "95922", "title": "事件 其四十八 童謠殺人!", "title_zh": "事件 其四十八 童谣杀人!"}, {"cid": "95923", "title": "事件 其四十九 微表Q!", "title_zh": "事件 其四十九 微表Q!"}, {"cid": "95924", "title": "事件 其五十 喜歡的書!", "title_zh": "事件 其五十 喜欢的书!"}, {"cid": "95925", "title": "事件 其五十一 兇器!", "title_zh": "事件 其五十一 凶器!"}, {"cid": "95926", "title": "事件 其五十二 真凶詐屍!", "title_zh": "事件 其五十二 真凶诈尸!"}, {"cid": "95927", "title": "事件 其五十三 斑點帶子!", "title_zh": "事件 其五十三 斑点带子!"}, {"cid": "95928", "title": "事件 其五十四 出千!", "title_zh": "事件 其五十四 出千!"}, {"cid": "95929", "title": "事件 其五十五 無人生還!(前篇)", "title_zh": "事件 其五十五 无人生还!(前篇)"}, {"cid": "95930", "title": "事件 其五十六 無人生還!(後篇)", "title_zh": "事件 其五十六 无人生还!(后篇)"}, {"cid": "95931", "title": "附錄", "title_zh": "附录"}, {"cid": "95933", "title": "事件 其五十七 所有謎題都解開了!", "title_zh": "事件 其五十七 所有谜题都解开了!"}, {"cid": "95934", "title": "事件 其五十八 偽證!", "title_zh": "事件 其五十八 伪证!"}, {"cid": "95935", "title": "事件 其五十九 審訊!", "title_zh": "事件 其五十九 审讯!"}, {"cid": "95936", "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>