Back to discovery
汤神君没有朋友
Comic · 简体中文

汤神君没有朋友

转校生绵贯千寻座位旁边的汤神,是学校棒球队的王牌,但是却没有融入棒球队中,而且在班上更是独来独往,汤神就这样独自享受著自己一个人的校园生活。 📚 作品信息:作者 佐仓准 · 评分 10 · 共收录 16 卷 / 90 话章节目录与高清彩页/条漫预览。 📖 在线漫画阅读器:

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-1020/index.html

■ 剧情简介:

转校生绵贯千寻座位旁边的汤神,是学校棒球队的王牌,但是却没有融入棒球队中,而且在班上更是独来独往,汤神就这样独自享受著自己一个人的校园生活。

📚 作品信息:作者 佐仓准 · 评分 10 · 共收录 16 卷 / 90 话章节目录与高清彩页/条漫预览。

■ 收录分卷(共 16 卷):

• 汤神君没有朋友 1

• 汤神君没有朋友 2

• 汤神君没有朋友 3

• 汤神君没有朋友 4

• 汤神君没有朋友 5

• 汤神君没有朋友 6

• 汤神君没有朋友 7

• 汤神君没有朋友 8

• 汤神君没有朋友 9

• 汤神君没有朋友 10

• 汤神君没有朋友 11

• 汤神君没有朋友 12

• 汤神君没有朋友 13

• 汤神君没有朋友 14

• 汤神君没有朋友 15

• 汤神君没有朋友 16

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

• 第1话 汤神君不道歉

• 第2话 汤神君不记得了

• 第3话 汤神君没有听

• 第4话 汤神君不会背叛

• 第5话 汤神君不气馁

• 第6话 汤神君从不回复

• 第7话 汤神君不说谎

• 第8话 汤神君一如既往

• 第9话 汤神君不相信

• 第10话 汤神君不轻言放弃

• 第11话 去汤神君家

• 第12话 汤神君的暑假

• 第13话 汤神君不会忘记

• 第14话 绵贯同学很困扰

• 第15话 汤神君的饲养日记

• 第16话 门田君无法接受

• 番外篇

• 第17话 汤神君有好朋友

• 第18话 汤神君会这么说

• 第19话 久住同学很烦恼

• 第21话 藤泽同学的烦恼无止境

• 番外篇

• 第22话 门田君不会改变

• 第23话 林山君得不到回报

• 第24话 汤神君VS南田君

• 第25话 汤神君绝不让步

• 第26话 汤神君的希望落空了

• 第27话 汤神君的初次登场

• 第28话 汤神君的荣耀时刻

• 第29话 汤神君深思熟虑

• 第30话 汤神君不慌张

• 第31话 汤神君的修学旅行

• 番外篇

• 第32话 绵贯同学不知所措

• 第33话 汤神君和绵贯同学和⋯⋯

• 第34话 汤神君的野外求生

• 第35话 传说中的汤神君⋯⋯

• 第36话 汤神君和百赖同学

• 番外篇

• 第37话 汤神君有点奇怪?

• 第39话 林山君很不走运

• 第40话 绵贯同学不会拒绝

• 第41话 绵贯同学的大作战

• 附录

• 第42话 汤神君的正月

• 第43话 汤神君的亲戚们的相处

• 第44话 汤神君的第三学期

• 第45话 汤神君和Q人节

• 第46话 汤神君和送别赛

• 附录

• 第47话 汤神君的信件配送

• 第48话 门田君召集了大批新人

• 第49话 绵贯同学招不到新人

• 第50话 香织想要有新恋Q

• 第51话 汤神君被追问了

• 附录

• 第52话 汤神君在思索

• 第53话 汤神君被宣战了

• 第54话 林山君的内心想要得到满足

• 第55话 汤神君的食物M学

• 第56话 汤神君的例行动作

• 第57话 汤神君惹人流泪

• 第58话 汤神君找到了

• 第59话 汤神君被迫带上拖油瓶

• 第60话 藤泽同学想要跨过这道坎

• 第61话 汤神君察觉到了不该忘却的东西

• 附录

• 第62话 汤神君2度参赛

• 第63话 汤神裕子无法理解

• 第64话 仁堂君瞄准目标

• 第65话 绵贯千寻被盯上了

• 第66话 汤神君有了目标

• 附录

• 第67话 绵贯千寻感到疑惑

• 第68话 汤神君认真了

• 第69话 绵贯同学变了?

• 第70话 门田同学在闹别扭

• 第71话 汤神君没有发觉

• 附录

• 第72话 汤神君决一胜负

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

# 汤神君没有朋友 · 首章高清画页连载预览

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

![汤神君没有朋友 - 第 1 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_01.jpg)

![汤神君没有朋友 - 第 2 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_02.jpg)

![汤神君没有朋友 - 第 3 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_03.jpg)

![汤神君没有朋友 - 第 4 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_04.jpg)

![汤神君没有朋友 - 第 5 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_05.jpg)

![汤神君没有朋友 - 第 6 页](https://media.huangguodrama.ai/motion/comics/bilimanga-1020/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-1020", "mangaid": "1020", "zh_title": "汤神君没有朋友", "hant_title": "湯神君沒有朋友", "en_title": "汤神君没有朋友 (Bilimanga #1020)", "author": "佐仓准", "tags": ["校园", "日常", "治愈", "欢乐", "群像", "校园青春", "日本漫画", "漫画"], "zh_desc": "转校生绵贯千寻座位旁边的汤神,是学校棒球队的王牌,但是却没有融入棒球队中,而且在班上更是独来独往,汤神就这样独自享受著自己一个人的校园生活。\n\n📚 作品信息:作者 佐仓准 · 评分 10 · 共收录 16 卷 / 90 话章节目录与高清彩页/条漫预览。", "hant_desc": "轉校生綿貫千尋座位旁邊的湯神,是學校棒球隊的王牌,但是卻沒有融入棒球隊中,而且在班上更是獨來獨往,湯神就這樣獨自享受著自己一個人的校園生活。\n\n📚 作品資訊:作者 佐倉準 · 評分 10 · 共收錄 16 卷 / 90 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '汤神君没有朋友' (湯神君沒有朋友) by 佐仓准. Includes 16 volumes and 90 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1020/page_06.jpg"], "volumes": [{"title_hant": "湯神君沒有朋友 1", "title_zh": "汤神君没有朋友 1", "cover_id": 1805122, "first_chap_id": 83611, "cover_url": "https://i.motiezw.com/cover/1020/1805122.jpg"}, {"title_hant": "湯神君沒有朋友 2", "title_zh": "汤神君没有朋友 2", "cover_id": 1805292, "first_chap_id": 83617, "cover_url": "https://i.motiezw.com/cover/1020/1805292.jpg"}, {"title_hant": "湯神君沒有朋友 3", "title_zh": "汤神君没有朋友 3", "cover_id": 1805461, "first_chap_id": 83623, "cover_url": "https://i.motiezw.com/cover/1020/1805461.jpg"}, {"title_hant": "湯神君沒有朋友 4", "title_zh": "汤神君没有朋友 4", "cover_id": 1805631, "first_chap_id": 83631, "cover_url": "https://i.motiezw.com/cover/1020/1805631.jpg"}, {"title_hant": "湯神君沒有朋友 5", "title_zh": "汤神君没有朋友 5", "cover_id": 1805800, "first_chap_id": 83638, "cover_url": "https://i.motiezw.com/cover/1020/1805800.jpg"}, {"title_hant": "湯神君沒有朋友 6", "title_zh": "汤神君没有朋友 6", "cover_id": 1805968, "first_chap_id": 83644, "cover_url": "https://i.motiezw.com/cover/1020/1805968.jpg"}, {"title_hant": "湯神君沒有朋友 7", "title_zh": "汤神君没有朋友 7", "cover_id": 1806138, "first_chap_id": 83651, "cover_url": "https://i.motiezw.com/cover/1020/1806138.jpg"}, {"title_hant": "湯神君沒有朋友 8", "title_zh": "汤神君没有朋友 8", "cover_id": 1806308, "first_chap_id": 83658, "cover_url": "https://i.motiezw.com/cover/1020/1806308.jpg"}, {"title_hant": "湯神君沒有朋友 9", "title_zh": "汤神君没有朋友 9", "cover_id": 1806479, "first_chap_id": 83665, "cover_url": "https://i.motiezw.com/cover/1020/1806479.jpg"}, {"title_hant": "湯神君沒有朋友 10", "title_zh": "汤神君没有朋友 10", "cover_id": 1806648, "first_chap_id": 83672, "cover_url": "https://i.motiezw.com/cover/1020/1806648.jpg"}, {"title_hant": "湯神君沒有朋友 11", "title_zh": "汤神君没有朋友 11", "cover_id": 1806817, "first_chap_id": 83679, "cover_url": "https://i.motiezw.com/cover/1020/1806817.jpg"}, {"title_hant": "湯神君沒有朋友 12", "title_zh": "汤神君没有朋友 12", "cover_id": 1806984, "first_chap_id": 83686, "cover_url": "https://i.motiezw.com/cover/1020/1806984.jpg"}], "chapters": [{"cid": "83611", "title": "第1話 湯神君不道歉", "title_zh": "第1话 汤神君不道歉"}, {"cid": "83612", "title": "第2話 湯神君不記得了", "title_zh": "第2话 汤神君不记得了"}, {"cid": "83613", "title": "第3話 湯神君沒有聽", "title_zh": "第3话 汤神君没有听"}, {"cid": "83614", "title": "第4話 湯神君不會背叛", "title_zh": "第4话 汤神君不会背叛"}, {"cid": "83615", "title": "第5話 湯神君不氣餒", "title_zh": "第5话 汤神君不气馁"}, {"cid": "83617", "title": "第6話 湯神君從不回復", "title_zh": "第6话 汤神君从不回复"}, {"cid": "83618", "title": "第7話 湯神君不說謊", "title_zh": "第7话 汤神君不说谎"}, {"cid": "83619", "title": "第8話 湯神君一如既往", "title_zh": "第8话 汤神君一如既往"}, {"cid": "83620", "title": "第9話 湯神君不相信", "title_zh": "第9话 汤神君不相信"}, {"cid": "83621", "title": "第10話 湯神君不輕言放棄", "title_zh": "第10话 汤神君不轻言放弃"}, {"cid": "83623", "title": "第11話 去湯神君家", "title_zh": "第11话 去汤神君家"}, {"cid": "83624", "title": "第12話 湯神君的暑假", "title_zh": "第12话 汤神君的暑假"}, {"cid": "83625", "title": "第13話 湯神君不會忘記", "title_zh": "第13话 汤神君不会忘记"}, {"cid": "83626", "title": "第14話 綿貫同學很困擾", "title_zh": "第14话 绵贯同学很困扰"}, {"cid": "83627", "title": "第15話 湯神君的飼養日記", "title_zh": "第15话 汤神君的饲养日记"}, {"cid": "83628", "title": "第16話 門田君無法接受", "title_zh": "第16话 门田君无法接受"}, {"cid": "83629", "title": "番外篇", "title_zh": "番外篇"}, {"cid": "83631", "title": "第17話 湯神君有好朋友", "title_zh": "第17话 汤神君有好朋友"}, {"cid": "83632", "title": "第18話 湯神君會這麼說", "title_zh": "第18话 汤神君会这么说"}, {"cid": "83633", "title": "第19話 久住同學很煩惱", "title_zh": "第19话 久住同学很烦恼"}, {"cid": "83635", "title": "第21話 藤澤同學的煩惱無止境", "title_zh": "第21话 藤泽同学的烦恼无止境"}, {"cid": "83636", "title": "番外篇", "title_zh": "番外篇"}, {"cid": "83638", "title": "第22話 門田君不會改變", "title_zh": "第22话 门田君不会改变"}, {"cid": "83639", "title": "第23話 林山君得不到回報", "title_zh": "第23话 林山君得不到回报"}, {"cid": "83640", "title": "第24話 湯神君VS南田君", "title_zh": "第24话 汤神君VS南田君"}, {"cid": "83641", "title": "第25話 湯神君絕不讓步", "title_zh": "第25话 汤神君绝不让步"}, {"cid": "83642", "title": "第26話 湯神君的希望落空了", "title_zh": "第26话 汤神君的希望落空了"}, {"cid": "83644", "title": "第27話 湯神君的初次登場", "title_zh": "第27话 汤神君的初次登场"}, {"cid": "83645", "title": "第28話 湯神君的榮耀時刻", "title_zh": "第28话 汤神君的荣耀时刻"}, {"cid": "83646", "title": "第29話 湯神君深思熟慮", "title_zh": "第29话 汤神君深思熟虑"}, {"cid": "83647", "title": "第30話 湯神君不慌張", "title_zh": "第30话 汤神君不慌张"}, {"cid": "83648", "title": "第31話 湯神君的修學旅行", "title_zh": "第31话 汤神君的修学旅行"}, {"cid": "83649", "title": "番外篇", "title_zh": "番外篇"}, {"cid": "83651", "title": "第32話 綿貫同學不知所措", "title_zh": "第32话 绵贯同学不知所措"}, {"cid": "83652", "title": "第33話 湯神君和綿貫同學和⋯⋯", "title_zh": "第33话 汤神君和绵贯同学和⋯⋯"}, {"cid": "83653", "title": "第34話 湯神君的野外求生", "title_zh": "第34话 汤神君的野外求生"}, {"cid": "83654", "title": "第35話 傳說中的湯神君⋯⋯", "title_zh": "第35话 传说中的汤神君⋯⋯"}, {"cid": "83655", "title": "第36話 湯神君和百賴同學", "title_zh": "第36话 汤神君和百赖同学"}, {"cid": "83656", "title": "番外篇", "title_zh": "番外篇"}, {"cid": "83658", "title": "第37話 湯神君有點奇怪?", "title_zh": "第37话 汤神君有点奇怪?"}, {"cid": "83660", "title": "第39話 林山君很不走運", "title_zh": "第39话 林山君很不走运"}, {"cid": "83661", "title": "第40話 綿貫同學不會拒絕", "title_zh": "第40话 绵贯同学不会拒绝"}, {"cid": "83662", "title": "第41話 綿貫同學的大作戰", "title_zh": "第41话 绵贯同学的大作战"}, {"cid": "83663", "title": "附錄", "title_zh": "附录"}, {"cid": "83665", "title": "第42話 湯神君的正月", "title_zh": "第42话 汤神君的正月"}, {"cid": "83666", "title": "第43話 湯神君的親戚們的相處", "title_zh": "第43话 汤神君的亲戚们的相处"}, {"cid": "83667", "title": "第44話 湯神君的第三學期", "title_zh": "第44话 汤神君的第三学期"}, {"cid": "83668", "title": "第45話 湯神君和Q人節", "title_zh": "第45话 汤神君和Q人节"}, {"cid": "83669", "title": "第46話 湯神君和送別賽", "title_zh": "第46话 汤神君和送别赛"}, {"cid": "83670", "title": "附錄", "title_zh": "附录"}, {"cid": "83672", "title": "第47話 湯神君的信件配送", "title_zh": "第47话 汤神君的信件配送"}, {"cid": "83673", "title": "第48話 門田君召集了大批新人", "title_zh": "第48话 门田君召集了大批新人"}, {"cid": "83674", "title": "第49話 綿貫同學招不到新人", "title_zh": "第49话 绵贯同学招不到新人"}, {"cid": "83675", "title": "第50話 香織想要有新戀Q", "title_zh": "第50话 香织想要有新恋Q"}, {"cid": "83676", "title": "第51話 湯神君被追問了", "title_zh": "第51话 汤神君被追问了"}, {"cid": "83677", "title": "附錄", "title_zh": "附录"}, {"cid": "83679", "title": "第52話 湯神君在思索", "title_zh": "第52话 汤神君在思索"}, {"cid": "83680", "title": "第53話 湯神君被宣戰了", "title_zh": "第53话 汤神君被宣战了"}, {"cid": "83681", "title": "第54話 林山君的內心想要得到滿足", "title_zh": "第54话 林山君的内心想要得到满足"}, {"cid": "83682", "title": "第55話 湯神君的食物M學", "title_zh": "第55话 汤神君的食物M学"}]};

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>