Back to discovery
頭文字D
Comic · 繁體中文

頭文字D

傳說中,跑秋名山下坡道最快速的王者《86》,以最厲害的慣性動作(甩尾技法)奔馳在秋名山間…… 赤城紅蠍子車隊的高橋兄弟,為了征服全關東地區的公路飆車組,終於對拓海與《86》正面宣戰! 📚 作品資訊:作者 重野秀一 · 評分 10 · 共收錄 48 卷 / 701 話章節目錄與高清彩頁/條漫預覽。 📖 線上漫畫閱讀器:https://media.huangguodrama.ai/motion/comics/bilimanga-666/index.html

Comic

Continue With Interactive Roleplay & Novel Adaptation

Keep exploring the world of 頭文字D: 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 頭文字D Online — FAQ

Explore 頭文字D online in your browser on Reelshorts. 10 available images.

Where can I read or watch 頭文字D online?
You can explore 頭文字D directly in your browser on Reelshorts (https://reelshorts.app/title/1014692). 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.
简体中文

漫画简介与全卷章节目录

【头文字D(頭文字D)· 漫画导览与全卷目录】

作者:重野秀一

评分:10

标签:热血 / 竞技 / 日常 / 校园 / 战斗热血 / 日本漫画 / 漫画 / 日漫

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

■ 剧情简介:

传说中,跑秋名山下坡道最快速的王者《86》,以最厉害的惯性动作(甩尾技法)奔驰在秋名山间……

赤城红蝎子车队的高桥兄弟,为了征服全关东地区的公路飙车组,终于对拓海与《86》正面宣战!

📚 作品信息:作者 重野秀一 · 评分 10 · 共收录 48 卷 / 701 话章节目录与高清彩页/条漫预览。

■ 收录分卷(共 48 卷):

• 头文字D 1

• 头文字D 2

• 头文字D 3

• 头文字D 4

• 头文字D 5

• 头文字D 6

• 头文字D 7

• 头文字D 8

• 头文字D 9

• 头文字D 10

• 头文字D 11

• 头文字D 12

• 头文字D 13

• 头文字D 14

• 头文字D 15

• 头文字D 16

• 头文字D 17

• 头文字D 18

• 头文字D 19

• 头文字D 20

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

• 第1话 买86!

• 第2话 最速!旋转兄弟组!

• 第3话 终极豆腐店的86!

• 第4话 池谷悲壮的决意!

• 第5话 复仇宣言!咆哮的13B!

• 第6话 夏树的秘密

• 第7话 可悲!信心粉碎的池谷!

• 第8话 开始交流战!

• 第9话 听!4A-G的咆叫!

• 第10话 下坡专家!

• 第11话 拓海!电光石火!

• 第12话 混战!

• 第13话 决战!拓海得意的技术!

• 第14话 海好大、好广!

• 第15话 山顶对决!

• 第16话 池谷贵重的体验!

• 第17话 新挑战者!

• 第18话 拓海的自尊!

• 第19话 我才不怕GT-R!

• 第20话 混老头,还我86!

• 第21话 GT-R的弱点!

• 附录

• 第22话 引擎全开的拓海!

• 第23话 追赶GT-R!

• 第24话 技术的限界!

• 第25话 爆裂的连续5弯路!

• 第26话 极限的操纵!

• 第27话 阿树的LEBIN登场!

• 第28话 友Q的力量!LEBIN激走!

• 第29话 另一个下坡传奇人物!

• 第30话 危险的慎吾!

• 第31话 拓海对慎吾!

• 第32话 疯狂的比赛!

• 附录

• 第33话 进化天才!

• 第34话 著急的慎吾!

• 第35话 反击!下坡的真髓!

• 第36话 究极的下坡道!

• 第37话 拓海又迷糊了!

• 第38话 若无其事,文太的实力!

• 第39话 白S彗星高桥凉介开始行动!

• 第40话 意外的协调!

• 第41话 拓海的N痴症!

• 第42话 敌手们的比赛前夜!

• 第43话 拓海前进、命运的瞬间!

• 第44话 惯悻移动对惯悻移动!

• 第45话 拓海的苦战、第一次的压力!

• 第46话 穷途末路!

• 第47话 痛恨的失误!

• 第48话 凉介的误算!

• 第49话 漂亮的超越!

• 第50话 向新境地前进!

• 第51话 或许喜欢错人?

• 第52话 暗云密布的恋Q!

• 第53话 池谷、勇往直前的纯爱!

• 第54话 真子给他NK!

• 第55话 为了妳我什么都愿意做!

• 第56话 未知的挑战!

• 第57话 文太的预言、拓海不会输!

• 第58话 热风!激烈!碓水崖!

• 第59话 拓海、超级甩尾的魅力!

• 第60话 回来吧!自由自在的操纵感!

• 第61话 决战!

• 第62话 不引退!

• 第63话 结束夏之恋!

• 第64话 结束夏之恋!完结编(?)

• 第65话 大计划!

• 第66话 高桥启介没有死角!

• 第67话 激战的下坡道!

• 第68话 互相冲击的自尊心!

• 第69话 追赶惊异的战斗机!

• 第70话 FD-3S能达到什么程度!?

• 第71话 敏锐的男人、高桥启介!

• 第72话 心理上的差别!?

• 第73话 下雨天的下坡道!!

• 第74话 令人恐惧的新势力!

• 第75话 雨天比赛的恐怖!

• 第76话 无比的兴奋、天才超越者!

• 第77话 三片叶纹章、战栗的妙义!!

• 第78话 最高军团的影子!!

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

# 头文字D · 首章高清画页连载预览

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

![头文字D - 第 1 页](https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_01.jpg)

![头文字D - 第 2 页](https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_02.jpg)

![头文字D - 第 3 页](https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_03.jpg)

![头文字D - 第 4 页](https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_04.jpg)

![头文字D - 第 5 页](https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_05.jpg)

![头文字D - 第 6 页](https://media.huangguodrama.ai/motion/comics/bilimanga-666/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>头文字D - 在线漫画阅读器</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-666", "mangaid": "666", "zh_title": "头文字D", "hant_title": "頭文字D", "en_title": "头文字D (Bilimanga #666)", "author": "重野秀一", "tags": ["热血", "竞技", "日常", "校园", "战斗热血", "日本漫画", "漫画", "日漫"], "zh_desc": "传说中,跑秋名山下坡道最快速的王者《86》,以最厉害的惯性动作(甩尾技法)奔驰在秋名山间……\n\r\n赤城红蝎子车队的高桥兄弟,为了征服全关东地区的公路飙车组,终于对拓海与《86》正面宣战!\n\n📚 作品信息:作者 重野秀一 · 评分 10 · 共收录 48 卷 / 701 话章节目录与高清彩页/条漫预览。", "hant_desc": "傳說中,跑秋名山下坡道最快速的王者《86》,以最厲害的慣性動作(甩尾技法)奔馳在秋名山間……\n\r\n赤城紅蠍子車隊的高橋兄弟,為了征服全關東地區的公路飆車組,終於對拓海與《86》正面宣戰!\n\n📚 作品資訊:作者 重野秀一 · 評分 10 · 共收錄 48 卷 / 701 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '头文字D' (頭文字D) by 重野秀一. Includes 48 volumes and 701 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-666/page_06.jpg"], "volumes": [{"title_hant": "頭文字D 1", "title_zh": "头文字D 1", "cover_id": 1116047, "first_chap_id": 50818, "cover_url": "https://i.motiezw.com/cover/666/1116047.jpg"}, {"title_hant": "頭文字D 2", "title_zh": "头文字D 2", "cover_id": 1116498, "first_chap_id": 50829, "cover_url": "https://i.motiezw.com/cover/666/1116498.jpg"}, {"title_hant": "頭文字D 3", "title_zh": "头文字D 3", "cover_id": 1118367, "first_chap_id": 50949, "cover_url": "https://i.motiezw.com/cover/666/1118367.jpg"}, {"title_hant": "頭文字D 4", "title_zh": "头文字D 4", "cover_id": 1118590, "first_chap_id": 50962, "cover_url": "https://i.motiezw.com/cover/666/1118590.jpg"}, {"title_hant": "頭文字D 5", "title_zh": "头文字D 5", "cover_id": 1118815, "first_chap_id": 50975, "cover_url": "https://i.motiezw.com/cover/666/1118815.jpg"}, {"title_hant": "頭文字D 6", "title_zh": "头文字D 6", "cover_id": 1119030, "first_chap_id": 50987, "cover_url": "https://i.motiezw.com/cover/666/1119030.jpg"}, {"title_hant": "頭文字D 7", "title_zh": "头文字D 7", "cover_id": 1119248, "first_chap_id": 51000, "cover_url": "https://i.motiezw.com/cover/666/1119248.jpg"}, {"title_hant": "頭文字D 8", "title_zh": "头文字D 8", "cover_id": 1119466, "first_chap_id": 51012, "cover_url": "https://i.motiezw.com/cover/666/1119466.jpg"}, {"title_hant": "頭文字D 9", "title_zh": "头文字D 9", "cover_id": 1119683, "first_chap_id": 51025, "cover_url": "https://i.motiezw.com/cover/666/1119683.jpg"}, {"title_hant": "頭文字D 10", "title_zh": "头文字D 10", "cover_id": 1119900, "first_chap_id": 51037, "cover_url": "https://i.motiezw.com/cover/666/1119900.jpg"}, {"title_hant": "頭文字D 11", "title_zh": "头文字D 11", "cover_id": 1194634, "first_chap_id": 53750, "cover_url": "https://i.motiezw.com/cover/666/1194634.jpg"}, {"title_hant": "頭文字D 12", "title_zh": "头文字D 12", "cover_id": 1194855, "first_chap_id": 53762, "cover_url": "https://i.motiezw.com/cover/666/1194855.jpg"}], "chapters": [{"cid": "50818", "title": "第1話 買86!", "title_zh": "第1话 买86!"}, {"cid": "50819", "title": "第2話 最速!旋轉兄弟組!", "title_zh": "第2话 最速!旋转兄弟组!"}, {"cid": "50820", "title": "第3話 終極豆腐店的86!", "title_zh": "第3话 终极豆腐店的86!"}, {"cid": "50821", "title": "第4話 池谷悲壯的決意!", "title_zh": "第4话 池谷悲壮的决意!"}, {"cid": "50822", "title": "第5話 復仇宣言!咆哮的13B!", "title_zh": "第5话 复仇宣言!咆哮的13B!"}, {"cid": "50823", "title": "第6話 夏樹的秘密", "title_zh": "第6话 夏树的秘密"}, {"cid": "50824", "title": "第7話 可悲!信心粉碎的池谷!", "title_zh": "第7话 可悲!信心粉碎的池谷!"}, {"cid": "50825", "title": "第8話 開始交流戰!", "title_zh": "第8话 开始交流战!"}, {"cid": "50826", "title": "第9話 聽!4A-G的咆叫!", "title_zh": "第9话 听!4A-G的咆叫!"}, {"cid": "50827", "title": "第10話 下坡專家!", "title_zh": "第10话 下坡专家!"}, {"cid": "50829", "title": "第11話 拓海!電光石火!", "title_zh": "第11话 拓海!电光石火!"}, {"cid": "50830", "title": "第12話 混戰!", "title_zh": "第12话 混战!"}, {"cid": "50831", "title": "第13話 決戰!拓海得意的技術!", "title_zh": "第13话 决战!拓海得意的技术!"}, {"cid": "50832", "title": "第14話 海好大、好廣!", "title_zh": "第14话 海好大、好广!"}, {"cid": "50833", "title": "第15話 山頂對決!", "title_zh": "第15话 山顶对决!"}, {"cid": "50834", "title": "第16話 池谷貴重的體驗!", "title_zh": "第16话 池谷贵重的体验!"}, {"cid": "50835", "title": "第17話 新挑戰者!", "title_zh": "第17话 新挑战者!"}, {"cid": "50836", "title": "第18話 拓海的自尊!", "title_zh": "第18话 拓海的自尊!"}, {"cid": "50837", "title": "第19話 我才不怕GT-R!", "title_zh": "第19话 我才不怕GT-R!"}, {"cid": "50838", "title": "第20話 混老頭,還我86!", "title_zh": "第20话 混老头,还我86!"}, {"cid": "50839", "title": "第21話 GT-R的弱點!", "title_zh": "第21话 GT-R的弱点!"}, {"cid": "50947", "title": "附錄", "title_zh": "附录"}, {"cid": "50949", "title": "第22話 引擎全開的拓海!", "title_zh": "第22话 引擎全开的拓海!"}, {"cid": "50950", "title": "第23話 追趕GT-R!", "title_zh": "第23话 追赶GT-R!"}, {"cid": "50951", "title": "第24話 技術的限界!", "title_zh": "第24话 技术的限界!"}, {"cid": "50952", "title": "第25話 爆裂的連續5彎路!", "title_zh": "第25话 爆裂的连续5弯路!"}, {"cid": "50953", "title": "第26話 極限的操縱!", "title_zh": "第26话 极限的操纵!"}, {"cid": "50954", "title": "第27話 阿樹的LEBIN登場!", "title_zh": "第27话 阿树的LEBIN登场!"}, {"cid": "50955", "title": "第28話 友Q的力量!LEBIN激走!", "title_zh": "第28话 友Q的力量!LEBIN激走!"}, {"cid": "50956", "title": "第29話 另一個下坡傳奇人物!", "title_zh": "第29话 另一个下坡传奇人物!"}, {"cid": "50957", "title": "第30話 危險的慎吾!", "title_zh": "第30话 危险的慎吾!"}, {"cid": "50958", "title": "第31話 拓海對慎吾!", "title_zh": "第31话 拓海对慎吾!"}, {"cid": "50959", "title": "第32話 瘋狂的比賽!", "title_zh": "第32话 疯狂的比赛!"}, {"cid": "50960", "title": "附錄", "title_zh": "附录"}, {"cid": "50962", "title": "第33話 進化天才!", "title_zh": "第33话 进化天才!"}, {"cid": "50963", "title": "第34話 著急的慎吾!", "title_zh": "第34话 著急的慎吾!"}, {"cid": "50964", "title": "第35話 反擊!下坡的真髓!", "title_zh": "第35话 反击!下坡的真髓!"}, {"cid": "50965", "title": "第36話 究極的下坡道!", "title_zh": "第36话 究极的下坡道!"}, {"cid": "50966", "title": "第37話 拓海又迷糊了!", "title_zh": "第37话 拓海又迷糊了!"}, {"cid": "50967", "title": "第38話 若無其事,文太的實力!", "title_zh": "第38话 若无其事,文太的实力!"}, {"cid": "50968", "title": "第39話 白S彗星高橋涼介開始行動!", "title_zh": "第39话 白S彗星高桥凉介开始行动!"}, {"cid": "50969", "title": "第40話 意外的協調!", "title_zh": "第40话 意外的协调!"}, {"cid": "50970", "title": "第41話 拓海的N痴症!", "title_zh": "第41话 拓海的N痴症!"}, {"cid": "50971", "title": "第42話 敵手們的比賽前夜!", "title_zh": "第42话 敌手们的比赛前夜!"}, {"cid": "50972", "title": "第43話 拓海前進、命運的瞬間!", "title_zh": "第43话 拓海前进、命运的瞬间!"}, {"cid": "50975", "title": "第44話 慣悻移動對慣悻移動!", "title_zh": "第44话 惯悻移动对惯悻移动!"}, {"cid": "50976", "title": "第45話 拓海的苦戰、第一次的壓力!", "title_zh": "第45话 拓海的苦战、第一次的压力!"}, {"cid": "50977", "title": "第46話 窮途末路!", "title_zh": "第46话 穷途末路!"}, {"cid": "50978", "title": "第47話 痛恨的失誤!", "title_zh": "第47话 痛恨的失误!"}, {"cid": "50979", "title": "第48話 涼介的誤算!", "title_zh": "第48话 凉介的误算!"}, {"cid": "50980", "title": "第49話 漂亮的超越!", "title_zh": "第49话 漂亮的超越!"}, {"cid": "50981", "title": "第50話 向新境地前進!", "title_zh": "第50话 向新境地前进!"}, {"cid": "50982", "title": "第51話 或許喜歡錯人?", "title_zh": "第51话 或许喜欢错人?"}, {"cid": "50983", "title": "第52話 暗雲密布的戀Q!", "title_zh": "第52话 暗云密布的恋Q!"}, {"cid": "50984", "title": "第53話 池谷、勇往直前的純愛!", "title_zh": "第53话 池谷、勇往直前的纯爱!"}, {"cid": "50985", "title": "第54話 真子給他NK!", "title_zh": "第54话 真子给他NK!"}, {"cid": "50987", "title": "第55話 為了妳我什麼都願意做!", "title_zh": "第55话 为了妳我什么都愿意做!"}, {"cid": "50988", "title": "第56話 未知的挑戰!", "title_zh": "第56话 未知的挑战!"}, {"cid": "50989", "title": "第57話 文太的預言、拓海不會輸!", "title_zh": "第57话 文太的预言、拓海不会输!"}, {"cid": "50990", "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>