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-579", "mangaid": "579", "zh_title": "听说你们要结婚!?", "hant_title": "聽說你們要結婚!?", "en_title": "听说你们要结婚!? (Bilimanga #579)", "author": "若木民喜", "tags": ["职场", "经营", "恋爱", "后宫", "日常", "职场都市", "日本漫画", "漫画"], "zh_desc": "「大家──!听说大原跟本城寺要结婚啰!!」\n\r\n大原拓也与本城寺莉香是住在首都圈内的上班族。\n\r\n虽然他们都不擅长与人交往,不过收留了一只流浪猫的拓也跟喜欢研究地图的莉香,\n\r\n都过著属于自己的幸福生活……\n\r\n因应严峻的疫情,两人工作的旅行社决定到西伯利亚驻点,\n\r\n而公司上层决定外派的人选会优先从单身者之中选出。\n\r\n为了不要被流放到寒冷遥远的西伯利亚,为了守护最心爱的单身日常生活,\n\r\n两人决定要假装结婚。\n\r\n然而结婚的消息传到同事耳中之后,大家的祝福与发问反而成了巨大的压力以及破绽。\n\r\n所以莉香再次提议要与拓也一起编造爱情经历,假造两人真的是情侣的证据。\n\r\n于是他们开始像一般情侣一样约会、半同居。\n\r\n\n\r\n距离外派还有365天=距离结婚还有365天。两人会在这365天发生什么样的心境变化!?\n\r\n由猫奴眼镜仔和热爱地图成痴的女子为各位带来的\n\r\n令和时代的结婚喜剧漫画第一集正式开演!\n\n📚 作品信息:作者 若木民喜 · 评分 10 · 共收录 11 卷 / 110 话章节目录与高清彩页/条漫预览。", "hant_desc": "「大家──!聽說大原跟本城寺要結婚囉!!」\n\r\n大原拓也與本城寺莉香是住在首都圈內的上班族。\n\r\n雖然他們都不擅長與人交往,不過收留了一隻流浪貓的拓也跟喜歡研究地圖的莉香,\n\r\n都過著屬於自己的幸福生活……\n\r\n因應嚴峻的疫情,兩人工作的旅行社決定到西伯利亞駐點,\n\r\n而公司上層決定外派的人選會優先從單身者之中選出。\n\r\n為了不要被流放到寒冷遙遠的西伯利亞,為了守護最心愛的單身日常生活,\n\r\n兩人決定要假裝結婚。\n\r\n然而結婚的消息傳到同事耳中之後,大家的祝福與發問反而成了巨大的壓力以及破綻。\n\r\n所以莉香再次提議要與拓也一起編造愛情經歷,假造兩人真的是情侶的證據。\n\r\n於是他們開始像一般情侶一樣約會、半同居。\n\r\n\n\r\n距離外派還有365天=距離結婚還有365天。兩人會在這365天發生什麼樣的心境變化!?\n\r\n由貓奴眼鏡仔和熱愛地圖成痴的女子為各位帶來的\n\r\n令和時代的結婚喜劇漫畫第一集正式開演!\n\n📚 作品資訊:作者 若木民喜 · 評分 10 · 共收錄 11 卷 / 110 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '听说你们要结婚!?' (聽說你們要結婚!?) by 若木民喜. Includes 11 volumes and 110 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-579/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-579/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-579/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-579/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-579/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-579/page_06.jpg"], "volumes": [{"title_hant": "聽說你們要結婚!? 1", "title_zh": "听说你们要结婚!? 1", "cover_id": 967876, "first_chap_id": 45044, "cover_url": "https://i.motiezw.com/cover/579/967876.jpg"}, {"title_hant": "聽說你們要結婚!? 2", "title_zh": "听说你们要结婚!? 2", "cover_id": 968068, "first_chap_id": 45053, "cover_url": "https://i.motiezw.com/cover/579/968068.jpg"}, {"title_hant": "聽說你們要結婚!? 3", "title_zh": "听说你们要结婚!? 3", "cover_id": 968261, "first_chap_id": 45064, "cover_url": "https://i.motiezw.com/cover/579/968261.jpg"}, {"title_hant": "聽說你們要結婚!? 4", "title_zh": "听说你们要结婚!? 4", "cover_id": 968468, "first_chap_id": 45076, "cover_url": "https://i.motiezw.com/cover/579/968468.jpg"}, {"title_hant": "聽說你們要結婚!? 5", "title_zh": "听说你们要结婚!? 5", "cover_id": 968663, "first_chap_id": 45088, "cover_url": "https://i.motiezw.com/cover/579/968663.jpg"}, {"title_hant": "聽說你們要結婚!? 6", "title_zh": "听说你们要结婚!? 6", "cover_id": 968868, "first_chap_id": 45101, "cover_url": "https://i.motiezw.com/cover/579/968868.jpg"}, {"title_hant": "聽說你們要結婚!? 7", "title_zh": "听说你们要结婚!? 7", "cover_id": 969063, "first_chap_id": 45113, "cover_url": "https://i.motiezw.com/cover/579/969063.jpg"}, {"title_hant": "聽說你們要結婚!? 8", "title_zh": "听说你们要结婚!? 8", "cover_id": 969257, "first_chap_id": 45125, "cover_url": "https://i.motiezw.com/cover/579/969257.jpg"}, {"title_hant": "聽說你們要結婚!? 9", "title_zh": "听说你们要结婚!? 9", "cover_id": 969450, "first_chap_id": 45137, "cover_url": "https://i.motiezw.com/cover/579/969450.jpg"}, {"title_hant": "聽說你們要結婚!? 10", "title_zh": "听说你们要结婚!? 10", "cover_id": 969641, "first_chap_id": 45148, "cover_url": "https://i.motiezw.com/cover/579/969641.jpg"}, {"title_hant": "聽說你們要結婚!? 11", "title_zh": "听说你们要结婚!? 11", "cover_id": 969834, "first_chap_id": 45159, "cover_url": "https://i.motiezw.com/cover/579/969834.jpg"}], "chapters": [{"cid": "45044", "title": "ADV.1「真的要結婚嗎?」", "title_zh": "ADV.1「真的要结婚吗?」"}, {"cid": "45045", "title": "ADV.2「真的需要宣布結婚嗎?」", "title_zh": "ADV.2「真的需要宣布结婚吗?」"}, {"cid": "45046", "title": "ADV.3「真的需要慶祝嗎?」", "title_zh": "ADV.3「真的需要庆祝吗?」"}, {"cid": "45047", "title": "ADV.4「真的需要交往的契機嗎?」", "title_zh": "ADV.4「真的需要交往的契机吗?」"}, {"cid": "45048", "title": "ADV.5「真的一定要求婚嗎?」", "title_zh": "ADV.5「真的一定要求婚吗?」"}, {"cid": "45049", "title": "ADV.6「真的需要結婚戒指嗎?」", "title_zh": "ADV.6「真的需要结婚戒指吗?」"}, {"cid": "45050", "title": "ADV.7「所謂的結婚是什麼呢?」(前篇)", "title_zh": "ADV.7「所谓的结婚是什么呢?」(前篇)"}, {"cid": "45051", "title": "ADV.8「所謂的結婚是什麼呢?」(後篇)", "title_zh": "ADV.8「所谓的结婚是什么呢?」(后篇)"}, {"cid": "45053", "title": "ADV.9「真的能好好打招呼嗎?」①", "title_zh": "ADV.9「真的能好好打招呼吗?」①"}, {"cid": "45054", "title": "ADV.10「真的能好好打招呼嗎?」②", "title_zh": "ADV.10「真的能好好打招呼吗?」②"}, {"cid": "45055", "title": "ADV.11「真的能好好打招呼嗎?」③", "title_zh": "ADV.11「真的能好好打招呼吗?」③"}, {"cid": "45056", "title": "ADV.12「真的能GD危機嗎?」①", "title_zh": "ADV.12「真的能GD危机吗?」①"}, {"cid": "45057", "title": "ADV.13「真的能GD危機嗎?」②", "title_zh": "ADV.13「真的能GD危机吗?」②"}, {"cid": "45058", "title": "ADV.14「真的能GD危機嗎?」③", "title_zh": "ADV.14「真的能GD危机吗?」③"}, {"cid": "45059", "title": "ADV.15「真的能GD危機嗎?」④", "title_zh": "ADV.15「真的能GD危机吗?」④"}, {"cid": "45060", "title": "ADV.16「真的能GD人生嗎?」①", "title_zh": "ADV.16「真的能GD人生吗?」①"}, {"cid": "45061", "title": "ADV.17「真的能GD人生嗎?」②", "title_zh": "ADV.17「真的能GD人生吗?」②"}, {"cid": "45062", "title": "ADV.18「真的能GD人生嗎?」③", "title_zh": "ADV.18「真的能GD人生吗?」③"}, {"cid": "45064", "title": "ADV.19「真的能GD人生嗎?」④", "title_zh": "ADV.19「真的能GD人生吗?」④"}, {"cid": "45065", "title": "ADV.20「真的能GD人生嗎?」⑤", "title_zh": "ADV.20「真的能GD人生吗?」⑤"}, {"cid": "45066", "title": "ADV.21「真的能GD人生嗎?」⑥", "title_zh": "ADV.21「真的能GD人生吗?」⑥"}, {"cid": "45068", "title": "ADV.23「兩人在一起真的會幸福嗎?」①", "title_zh": "ADV.23「两人在一起真的会幸福吗?」①"}, {"cid": "45069", "title": "ADV.24「兩人在一起真的會幸福嗎?」②", "title_zh": "ADV.24「两人在一起真的会幸福吗?」②"}, {"cid": "45070", "title": "ADV.25「兩人在一起真的會幸福嗎?」③", "title_zh": "ADV.25「两人在一起真的会幸福吗?」③"}, {"cid": "45071", "title": "ADV.26「兩人在一起真的會幸福嗎?」④", "title_zh": "ADV.26「两人在一起真的会幸福吗?」④"}, {"cid": "45072", "title": "ADV.27「兩人在一起真的會幸福嗎?」⑤", "title_zh": "ADV.27「两人在一起真的会幸福吗?」⑤"}, {"cid": "45073", "title": "ADV.28「兩人在一起真的會幸福嗎?」⑥", "title_zh": "ADV.28「两人在一起真的会幸福吗?」⑥"}, {"cid": "45074", "title": "ADV.29「兩人在一起真的會幸福嗎?」⑦", "title_zh": "ADV.29「两人在一起真的会幸福吗?」⑦"}, {"cid": "45076", "title": "ADV.30「真的要說出愛的告白嗎?」①", "title_zh": "ADV.30「真的要说出爱的告白吗?」①"}, {"cid": "45077", "title": "ADV.31「真的要說出愛的告白嗎?」②", "title_zh": "ADV.31「真的要说出爱的告白吗?」②"}, {"cid": "45078", "title": "ADV.32「真的要說出愛的告白嗎?」③", "title_zh": "ADV.32「真的要说出爱的告白吗?」③"}, {"cid": "45079", "title": "ADV.33「真的要說出愛的告白嗎?」④", "title_zh": "ADV.33「真的要说出爱的告白吗?」④"}, {"cid": "45080", "title": "ADV.34「一起去約會真的不要緊嗎?」①", "title_zh": "ADV.34「一起去约会真的不要紧吗?」①"}, {"cid": "45081", "title": "ADV.35「一起去約會真的不要緊嗎?」②", "title_zh": "ADV.35「一起去约会真的不要紧吗?」②"}, {"cid": "45082", "title": "ADV.36「一起去約會真的不要緊嗎?」③", "title_zh": "ADV.36「一起去约会真的不要紧吗?」③"}, {"cid": "45083", "title": "ADV.37「一起去約會真的不要緊嗎?」④", "title_zh": "ADV.37「一起去约会真的不要紧吗?」④"}, {"cid": "45084", "title": "ADV.38「一起去約會真的不要緊嗎?」⑤", "title_zh": "ADV.38「一起去约会真的不要紧吗?」⑤"}, {"cid": "45085", "title": "ADV.39「一起去約會真的不要緊嗎?」⑥", "title_zh": "ADV.39「一起去约会真的不要紧吗?」⑥"}, {"cid": "45086", "title": "附錄", "title_zh": "附录"}, {"cid": "45088", "title": "ADV.40「真的要住在同個屋簷下?」①", "title_zh": "ADV.40「真的要住在同个屋簷下?」①"}, {"cid": "45089", "title": "ADV.41「真的要住在同個屋簷下?」②", "title_zh": "ADV.41「真的要住在同个屋簷下?」②"}, {"cid": "45090", "title": "ADV.42「真的要住在同個屋簷下?」③", "title_zh": "ADV.42「真的要住在同个屋簷下?」③"}, {"cid": "45091", "title": "ADV.43「真的要住在同個屋簷下?」④", "title_zh": "ADV.43「真的要住在同个屋簷下?」④"}, {"cid": "45093", "title": "ADV.45「真的要住在同個屋簷下?」⑥", "title_zh": "ADV.45「真的要住在同个屋簷下?」⑥"}, {"cid": "45094", "title": "ADV.46「這樣就結束真的好嗎?」①", "title_zh": "ADV.46「这样就结束真的好吗?」①"}, {"cid": "45095", "title": "ADV.47「這樣就結束真的好嗎?」②", "title_zh": "ADV.47「这样就结束真的好吗?」②"}, {"cid": "45096", "title": "ADV.48「這樣就結束真的好嗎?」③", "title_zh": "ADV.48「这样就结束真的好吗?」③"}, {"cid": "45097", "title": "ADV.49「這樣就結束真的好嗎?」④", "title_zh": "ADV.49「这样就结束真的好吗?」④"}, {"cid": "45098", "title": "ADV.50「這樣就結束真的好嗎?」⑤", "title_zh": "ADV.50「这样就结束真的好吗?」⑤"}, {"cid": "45099", "title": "附錄", "title_zh": "附录"}, {"cid": "45101", "title": "ADV.51「結婚不可或缺的事物是什麼呢?」①", "title_zh": "ADV.51「结婚不可或缺的事物是什么呢?」①"}, {"cid": "45102", "title": "ADV.52「結婚不可或缺的事物是什麼呢?」②", "title_zh": "ADV.52「结婚不可或缺的事物是什么呢?」②"}, {"cid": "45103", "title": "ADV.53「結婚不可或缺的事物是什麼呢?」③", "title_zh": "ADV.53「结婚不可或缺的事物是什么呢?」③"}, {"cid": "45104", "title": "ADV.54「結婚不可或缺的事物是什麼呢?」④", "title_zh": "ADV.54「结婚不可或缺的事物是什么呢?」④"}, {"cid": "45105", "title": "ADV.55「不如意的人生很無聊嗎?」①", "title_zh": "ADV.55「不如意的人生很无聊吗?」①"}, {"cid": "45106", "title": "ADV.56「不如意的人生很無聊嗎?」②", "title_zh": "ADV.56「不如意的人生很无聊吗?」②"}, {"cid": "45107", "title": "ADV.57「不如意的人生很無聊嗎?」③", "title_zh": "ADV.57「不如意的人生很无聊吗?」③"}, {"cid": "45108", "title": "ADV.58「不如意的人生很無聊嗎?」④", "title_zh": "ADV.58「不如意的人生很无聊吗?」④"}, {"cid": "45109", "title": "ADV.59「不如意的人生很無聊嗎?」⑤", "title_zh": "ADV.59「不如意的人生很无聊吗?」⑤"}, {"cid": "45110", "title": "ADV.60「不如意的人生很無聊嗎?」⑥", "title_zh": "ADV.60「不如意的人生很无聊吗?」⑥"}]};
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>