Back to discovery
為了養老,我要在異世界存8萬枚金幣
Comic · 繁體中文

為了養老,我要在異世界存8萬枚金幣

為了老年後能過著安穩生活要賺20億圓!還順道釣到可愛的幼女!? 雙親及值得依賴的哥哥突然出車禍離世的18歲少女‧光波,一下子被獨自丟到殘酷的現實社會裡。 走投無路的她竟偶然從神祕存在那裡得到穿越世界的能力……? 個性堅強但思考模式有點另類的美少女,靠著現代知識與工具開創出一條屬於自己的路, 在異世界發大財的奇幻故事登場!! 📚 作品資訊:作者 本江惠介 / FUNA / 東西 · 評分 9.1 · 共收錄 14 卷 / 106 話章節目錄與高清彩頁/條漫預覽。 📖 線上漫畫閱讀器:

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 為了養老,我要在異世界存8萬枚金幣.

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 為了養老,我要在異世界存8萬枚金幣

10 available images.

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

漫画简介与全卷章节目录

【为了养老,我要在异世界存8万枚金币(為了養老,我要在異世界存8萬枚金幣)· 漫画导览与全卷目录】

作者:本江惠介 / FUNA / 东西

评分:9.1

标签:异世界 / 奇幻 / 冒险 / 经营 / 女性视角 / 治愈 / 欢乐 / 萌系

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

■ 剧情简介:

为了老年后能过著安稳生活要赚20亿圆!还顺道钓到可爱的幼女!?

双亲及值得依赖的哥哥突然出车祸离世的18岁少女‧光波,一下子被独自丢到残酷的现实社会里。

走投无路的她竟偶然从神秘存在那里得到穿越世界的能力……?

个性坚强但思考模式有点另类的美少女,靠著现代知识与工具开创出一条属于自己的路,

在异世界发大财的奇幻故事登场!!

📚 作品信息:作者 本江惠介 / FUNA / 东西 · 评分 9.1 · 共收录 14 卷 / 106 话章节目录与高清彩页/条漫预览。

■ 收录分卷(共 14 卷):

• 为了养老,我要在异世界存8万枚金币 1

• 为了养老,我要在异世界存8万枚金币 2

• 为了养老,我要在异世界存8万枚金币 3

• 为了养老,我要在异世界存8万枚金币 4

• 为了养老,我要在异世界存8万枚金币 5

• 为了养老,我要在异世界存8万枚金币 6

• 为了养老,我要在异世界存8万枚金币 7

• 为了养老,我要在异世界存8万枚金币 8

• 为了养老,我要在异世界存8万枚金币 9

• 为了养老,我要在异世界存8万枚金币 10

• 为了养老,我要在异世界存8万枚金币 11

• 为了养老,我要在异世界存8万枚金币 12

• 为了养老,我要在异世界存8万枚金币 13

• 为了养老,我要在异世界存8万枚金币 14

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

• 第1话 光波前往异世界

• 第2话 野兽终须一死

• 第3话 野心勃勃的王国

• 第4话 事前准备

• 第5话 前往波伽斯伯爵宅邸

• 第6话 光波大秀演技!

• 第7话 珍珠般的眼泪

• 第8话 武装少N

• 附录

• 第9话 买下据点

• 第10话 光波生活用品店

• 第11话 顾客至上

• 第12话 光波与鱼以及奇怪的客人

• 第13话 光波生活用品店的隐藏菜单

• 第14话 改造大小姐!

• 第15话 初登场

• 第16话 这是杀手锏哦!

• 第17话 碧翠丝的要求

• 附录

• 第18话 冒险者们

• 第19话 光波去冒险!

• 第21话 市场调查

• 第22话 雷之姬巫N诞生!

• 第23话 光波前往王城

• 第24话 击溃黑心商人!

• 第25话 招牌N店员的烦恼

• 附录

• 第26话 山野料理

• 第27话 日常的终结

• 第28话 那就开战吧![前编]

• 第29话 那就开战吧![后编]

• 第30话 姬巫N参战

• 第31话 姬巫N立于战场[前编]

• 第32话 姬巫N立于战场[后编]

• 附录

• 第33话

• 第34话

• 第35话

• 第36话

• 第37话

• 第38话

• 第39话

• 第41话

• 第42话

• 第43话

• 第44话

• 第45话

• 第46话

• 第47话

• 第48话

• 第49话

• 第50话

• 第51话

• 第52话

• 第53话

• 第54话

• 第55话

• 第56话

• 第57话

• 第58话

• 第59话

• 第60话

• 第61话

• 第68话

• 第69话

• 第70话

• 第71话

• 第72话

• 第73话

• 第74话

• 第75话

• 第76话

• 第77话

• 第78话

• 第79话

• 第80话

• 第81话

• 第82话

• 第83话

• 第84话

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

# 为了养老,我要在异世界存8万枚金币 · 首章高清画页连载预览

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

![为了养老,我要在异世界存8万枚金币 - 第 1 页](https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_01.jpg)

![为了养老,我要在异世界存8万枚金币 - 第 2 页](https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_02.jpg)

![为了养老,我要在异世界存8万枚金币 - 第 3 页](https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_03.jpg)

![为了养老,我要在异世界存8万枚金币 - 第 4 页](https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_04.jpg)

![为了养老,我要在异世界存8万枚金币 - 第 5 页](https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_05.jpg)

![为了养老,我要在异世界存8万枚金币 - 第 6 页](https://media.huangguodrama.ai/motion/comics/bilimanga-391/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>为了养老,我要在异世界存8万枚金币 - 在线漫画阅读器</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-391", "mangaid": "391", "zh_title": "为了养老,我要在异世界存8万枚金币", "hant_title": "為了養老,我要在異世界存8萬枚金幣", "en_title": "为了养老,我要在异世界存8万枚金币 (Bilimanga #391)", "author": "本江惠介 / FUNA / 东西", "tags": ["异世界", "奇幻", "冒险", "经营", "女性视角", "治愈", "欢乐", "萌系"], "zh_desc": "为了老年后能过著安稳生活要赚20亿圆!还顺道钓到可爱的幼女!?\n\r\n\n\r\n双亲及值得依赖的哥哥突然出车祸离世的18岁少女‧光波,一下子被独自丢到残酷的现实社会里。\n\r\n走投无路的她竟偶然从神秘存在那里得到穿越世界的能力……?\n\r\n个性坚强但思考模式有点另类的美少女,靠著现代知识与工具开创出一条属于自己的路,\n\r\n\n\r\n在异世界发大财的奇幻故事登场!!\n\n📚 作品信息:作者 本江惠介 / FUNA / 东西 · 评分 9.1 · 共收录 14 卷 / 106 话章节目录与高清彩页/条漫预览。", "hant_desc": "為了老年後能過著安穩生活要賺20億圓!還順道釣到可愛的幼女!?\n\r\n\n\r\n雙親及值得依賴的哥哥突然出車禍離世的18歲少女‧光波,一下子被獨自丟到殘酷的現實社會裡。\n\r\n走投無路的她竟偶然從神祕存在那裡得到穿越世界的能力……?\n\r\n個性堅強但思考模式有點另類的美少女,靠著現代知識與工具開創出一條屬於自己的路,\n\r\n\n\r\n在異世界發大財的奇幻故事登場!!\n\n📚 作品資訊:作者 本江惠介 / FUNA / 東西 · 評分 9.1 · 共收錄 14 卷 / 106 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '为了养老,我要在异世界存8万枚金币' (為了養老,我要在異世界存8萬枚金幣) by 本江惠介 / FUNA / 东西. Includes 14 volumes and 106 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-391/page_06.jpg"], "volumes": [{"title_hant": "為了養老,我要在異世界存8萬枚金幣 1", "title_zh": "为了养老,我要在异世界存8万枚金币 1", "cover_id": 1865267, "first_chap_id": 31431, "cover_url": "https://i.motiezw.com/cover/391/1865267.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 2", "title_zh": "为了养老,我要在异世界存8万枚金币 2", "cover_id": 1865461, "first_chap_id": 31440, "cover_url": "https://i.motiezw.com/cover/391/1865461.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 3", "title_zh": "为了养老,我要在异世界存8万枚金币 3", "cover_id": 1865644, "first_chap_id": 31450, "cover_url": "https://i.motiezw.com/cover/391/1865644.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 4", "title_zh": "为了养老,我要在异世界存8万枚金币 4", "cover_id": 1865806, "first_chap_id": 31459, "cover_url": "https://i.motiezw.com/cover/391/1865806.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 5", "title_zh": "为了养老,我要在异世界存8万枚金币 5", "cover_id": 681756, "first_chap_id": 31467, "cover_url": "https://i.motiezw.com/cover/391/681756.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 6", "title_zh": "为了养老,我要在异世界存8万枚金币 6", "cover_id": 681928, "first_chap_id": 31476, "cover_url": "https://i.motiezw.com/cover/391/681928.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 7", "title_zh": "为了养老,我要在异世界存8万枚金币 7", "cover_id": 682088, "first_chap_id": 31482, "cover_url": "https://i.motiezw.com/cover/391/682088.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 8", "title_zh": "为了养老,我要在异世界存8万枚金币 8", "cover_id": 682248, "first_chap_id": 31488, "cover_url": "https://i.motiezw.com/cover/391/682248.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 9", "title_zh": "为了养老,我要在异世界存8万枚金币 9", "cover_id": 682409, "first_chap_id": 31494, "cover_url": "https://i.motiezw.com/cover/391/682409.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 10", "title_zh": "为了养老,我要在异世界存8万枚金币 10", "cover_id": 682570, "first_chap_id": 31502, "cover_url": "https://i.motiezw.com/cover/391/682570.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 11", "title_zh": "为了养老,我要在异世界存8万枚金币 11", "cover_id": 682727, "first_chap_id": 31513, "cover_url": "https://i.motiezw.com/cover/391/682727.jpg"}, {"title_hant": "為了養老,我要在異世界存8萬枚金幣 12", "title_zh": "为了养老,我要在异世界存8万枚金币 12", "cover_id": 682860, "first_chap_id": 31524, "cover_url": "https://i.motiezw.com/cover/391/682860.jpg"}], "chapters": [{"cid": "31431", "title": "第1話 光波前往異世界", "title_zh": "第1话 光波前往异世界"}, {"cid": "31432", "title": "第2話 野獸終須一死", "title_zh": "第2话 野兽终须一死"}, {"cid": "31433", "title": "第3話 野心勃勃的王國", "title_zh": "第3话 野心勃勃的王国"}, {"cid": "31434", "title": "第4話 事前準備", "title_zh": "第4话 事前准备"}, {"cid": "31435", "title": "第5話 前往波伽斯伯爵宅邸", "title_zh": "第5话 前往波伽斯伯爵宅邸"}, {"cid": "31436", "title": "第6話 光波大秀演技!", "title_zh": "第6话 光波大秀演技!"}, {"cid": "31437", "title": "第7話 珍珠般的眼淚", "title_zh": "第7话 珍珠般的眼泪"}, {"cid": "31438", "title": "第8話 武裝少N", "title_zh": "第8话 武装少N"}, {"cid": "86677", "title": "附錄", "title_zh": "附录"}, {"cid": "31440", "title": "第9話 買下據點", "title_zh": "第9话 买下据点"}, {"cid": "31441", "title": "第10話 光波生活用品店", "title_zh": "第10话 光波生活用品店"}, {"cid": "31442", "title": "第11話 顧客至上", "title_zh": "第11话 顾客至上"}, {"cid": "31443", "title": "第12話 光波與魚以及奇怪的客人", "title_zh": "第12话 光波与鱼以及奇怪的客人"}, {"cid": "31444", "title": "第13話 光波生活用品店的隱藏菜單", "title_zh": "第13话 光波生活用品店的隐藏菜单"}, {"cid": "31445", "title": "第14話 改造大小姐!", "title_zh": "第14话 改造大小姐!"}, {"cid": "31446", "title": "第15話 初登場", "title_zh": "第15话 初登场"}, {"cid": "31447", "title": "第16話 這是殺手鐧哦!", "title_zh": "第16话 这是杀手锏哦!"}, {"cid": "31448", "title": "第17話 碧翠絲的要求", "title_zh": "第17话 碧翠丝的要求"}, {"cid": "86678", "title": "附錄", "title_zh": "附录"}, {"cid": "31450", "title": "第18話 冒險者們", "title_zh": "第18话 冒险者们"}, {"cid": "31451", "title": "第19話 光波去冒險!", "title_zh": "第19话 光波去冒险!"}, {"cid": "31453", "title": "第21話 市場調查", "title_zh": "第21话 市场调查"}, {"cid": "31454", "title": "第22話 雷之姬巫N誕生!", "title_zh": "第22话 雷之姬巫N诞生!"}, {"cid": "31455", "title": "第23話 光波前往王城", "title_zh": "第23话 光波前往王城"}, {"cid": "31456", "title": "第24話 擊潰黑心商人!", "title_zh": "第24话 击溃黑心商人!"}, {"cid": "31457", "title": "第25話 招牌N店員的煩惱", "title_zh": "第25话 招牌N店员的烦恼"}, {"cid": "86679", "title": "附錄", "title_zh": "附录"}, {"cid": "31459", "title": "第26話 山野料理", "title_zh": "第26话 山野料理"}, {"cid": "31460", "title": "第27話 日常的終結", "title_zh": "第27话 日常的终结"}, {"cid": "31461", "title": "第28話 那就開戰吧![前編]", "title_zh": "第28话 那就开战吧![前编]"}, {"cid": "31462", "title": "第29話 那就開戰吧![後編]", "title_zh": "第29话 那就开战吧![后编]"}, {"cid": "31463", "title": "第30話 姬巫N參戰", "title_zh": "第30话 姬巫N参战"}, {"cid": "31464", "title": "第31話 姬巫N立於戰場[前編]", "title_zh": "第31话 姬巫N立于战场[前编]"}, {"cid": "31465", "title": "第32話 姬巫N立於戰場[後編]", "title_zh": "第32话 姬巫N立于战场[后编]"}, {"cid": "86680", "title": "附錄", "title_zh": "附录"}, {"cid": "31467", "title": "第33話", "title_zh": "第33话"}, {"cid": "31468", "title": "第34話", "title_zh": "第34话"}, {"cid": "31469", "title": "第35話", "title_zh": "第35话"}, {"cid": "31470", "title": "第36話", "title_zh": "第36话"}, {"cid": "31471", "title": "第37話", "title_zh": "第37话"}, {"cid": "31472", "title": "第38話", "title_zh": "第38话"}, {"cid": "31473", "title": "第39話", "title_zh": "第39话"}, {"cid": "31476", "title": "第41話", "title_zh": "第41话"}, {"cid": "31477", "title": "第42話", "title_zh": "第42话"}, {"cid": "31478", "title": "第43話", "title_zh": "第43话"}, {"cid": "31479", "title": "第44話", "title_zh": "第44话"}, {"cid": "31480", "title": "第45話", "title_zh": "第45话"}, {"cid": "31482", "title": "第46話", "title_zh": "第46话"}, {"cid": "31483", "title": "第47話", "title_zh": "第47话"}, {"cid": "31484", "title": "第48話", "title_zh": "第48话"}, {"cid": "31485", "title": "第49話", "title_zh": "第49话"}, {"cid": "31486", "title": "第50話", "title_zh": "第50话"}, {"cid": "31488", "title": "第51話", "title_zh": "第51话"}, {"cid": "31489", "title": "第52話", "title_zh": "第52话"}, {"cid": "31490", "title": "第53話", "title_zh": "第53话"}, {"cid": "31491", "title": "第54話", "title_zh": "第54话"}, {"cid": "31492", "title": "第55話", "title_zh": "第55话"}, {"cid": "31494", "title": "第56話", "title_zh": "第56话"}, {"cid": "31495", "title": "第57話", "title_zh": "第57话"}, {"cid": "31496", "title": "第58話", "title_zh": "第58话"}]};

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>