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>100%的草莓 全彩版 - 在线漫画阅读器</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-1084", "mangaid": "1084", "zh_title": "100%的草莓 全彩版", "hant_title": "100%的草莓 全彩版", "en_title": "100%的草莓 全彩版 (Bilimanga #1084)", "author": "河下水希", "tags": ["校园", "日常", "恋爱", "后宫", "欢乐", "萌系", "校园青春", "日本漫画"], "zh_desc": "放学后,在学校的顶楼与一位穿著草莓内裤的美少女相遇了。普通的国中3生‧真中淳平在夕阳余晖下看见了一位美少女,这个画面瞬间夺走他的心!她是谁?突然陷入寻找草莓女孩的恋爱迷宫中!!围绕著草莓内裤的爱情校园喜剧登场!\n\n📚 作品信息:作者 河下水希 · 评分 10 · 共收录 19 卷 / 172 话章节目录与高清彩页/条漫预览。", "hant_desc": "放學後,在學校的頂樓與一位穿著草莓內褲的美少女相遇了。普通的國中3生‧真中淳平在夕陽餘暉下看見了一位美少女,這個畫面瞬間奪走他的心!她是誰?突然陷入尋找草莓女孩的戀愛迷宮中!!圍繞著草莓內褲的愛情校園喜劇登場!\n\n📚 作品資訊:作者 河下水希 · 評分 10 · 共收錄 19 卷 / 172 話章節目錄與高清彩頁/條漫預覽。", "en_desc": "Popular serialized manga '100%的草莓 全彩版' (100%的草莓 全彩版) by 河下水希. Includes 19 volumes and 172 chapters with full online vertical/page-flip web reader.", "pages": ["https://media.huangguodrama.ai/motion/comics/bilimanga-1084/page_01.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1084/page_02.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1084/page_03.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1084/page_04.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1084/page_05.jpg", "https://media.huangguodrama.ai/motion/comics/bilimanga-1084/page_06.jpg"], "volumes": [{"title_hant": "100%的草莓 全彩版 1 草莓注意報", "title_zh": "100%的草莓 全彩版 1 草莓注意报", "cover_id": 1946307, "first_chap_id": 90712, "cover_url": "https://i.motiezw.com/cover/1084/1946307.jpg"}, {"title_hant": "100%的草莓 全彩版 2 夢幻美少女再現", "title_zh": "100%的草莓 全彩版 2 梦幻美少女再现", "cover_id": 1946496, "first_chap_id": 90721, "cover_url": "https://i.motiezw.com/cover/1084/1946496.jpg"}, {"title_hant": "100%的草莓 全彩版 3 命運的CRANK-IN!?", "title_zh": "100%的草莓 全彩版 3 命运的CRANK-IN!?", "cover_id": 1946681, "first_chap_id": 90731, "cover_url": "https://i.motiezw.com/cover/1084/1946681.jpg"}, {"title_hant": "100%的草莓 全彩版 4 我要你吻我", "title_zh": "100%的草莓 全彩版 4 我要你吻我", "cover_id": 1946862, "first_chap_id": 90741, "cover_url": "https://i.motiezw.com/cover/1084/1946862.jpg"}, {"title_hant": "100%的草莓 全彩版 5 記憶中的女孩", "title_zh": "100%的草莓 全彩版 5 记忆中的女孩", "cover_id": 1947050, "first_chap_id": 90752, "cover_url": "https://i.motiezw.com/cover/1084/1947050.jpg"}, {"title_hant": "100%的草莓 全彩版 6 天使再臨", "title_zh": "100%的草莓 全彩版 6 天使再临", "cover_id": 1947236, "first_chap_id": 90762, "cover_url": "https://i.motiezw.com/cover/1084/1947236.jpg"}, {"title_hant": "100%的草莓 全彩版 7 SWEET LITTLE SISTER", "title_zh": "100%的草莓 全彩版 7 SWEET LITTLE SISTER", "cover_id": 1947422, "first_chap_id": 90773, "cover_url": "https://i.motiezw.com/cover/1084/1947422.jpg"}, {"title_hant": "100%的草莓 全彩版 8 互相取暖?", "title_zh": "100%的草莓 全彩版 8 互相取暖?", "cover_id": 1947610, "first_chap_id": 90784, "cover_url": "https://i.motiezw.com/cover/1084/1947610.jpg"}, {"title_hant": "100%的草莓 全彩版 9 迷途羔羊與拾荒之神", "title_zh": "100%的草莓 全彩版 9 迷途羔羊与拾荒之神", "cover_id": 1947794, "first_chap_id": 90794, "cover_url": "https://i.motiezw.com/cover/1084/1947794.jpg"}, {"title_hant": "100%的草莓 全彩版 10 地下情", "title_zh": "100%的草莓 全彩版 10 地下情", "cover_id": 1947982, "first_chap_id": 90805, "cover_url": "https://i.motiezw.com/cover/1084/1947982.jpg"}, {"title_hant": "100%的草莓 全彩版 11 送出心意卻未傳達戀慕之情", "title_zh": "100%的草莓 全彩版 11 送出心意却未传达恋慕之情", "cover_id": 1948169, "first_chap_id": 90815, "cover_url": "https://i.motiezw.com/cover/1084/1948169.jpg"}, {"title_hant": "100%的草莓 全彩版 12 妄想少女", "title_zh": "100%的草莓 全彩版 12 妄想少女", "cover_id": 1948356, "first_chap_id": 90826, "cover_url": "https://i.motiezw.com/cover/1084/1948356.jpg"}], "chapters": [{"cid": "90712", "title": "第1話 草莓小褲褲!!", "title_zh": "第1话 草莓小裤裤!!"}, {"cid": "90713", "title": "第2話 你是這麼打算的嗎?", "title_zh": "第2话 你是这么打算的吗?"}, {"cid": "90714", "title": "第3話 告訴你吧!", "title_zh": "第3话 告诉你吧!"}, {"cid": "90715", "title": "第4話 不能打電話!!", "title_zh": "第4话 不能打电话!!"}, {"cid": "90716", "title": "第5話 Girl Meets Girl", "title_zh": "第5话 Girl Meets Girl"}, {"cid": "90717", "title": "第6話 像鳥一樣的真中", "title_zh": "第6话 像鸟一样的真中"}, {"cid": "90718", "title": "第7話 密室天堂or地城", "title_zh": "第7话 密室天堂or地城"}, {"cid": "90719", "title": "第8話 早晨戀愛讀書會", "title_zh": "第8话 早晨恋爱读书会"}, {"cid": "90721", "title": "第9話 突來的引誘", "title_zh": "第9话 突来的引诱"}, {"cid": "90722", "title": "第10話 爆走特急真中號", "title_zh": "第10话 爆走特急真中号"}, {"cid": "90723", "title": "第11話 下定決心", "title_zh": "第11话 下定决心"}, {"cid": "90724", "title": "第12話 錯過的心Q", "title_zh": "第12话 错过的心Q"}, {"cid": "90725", "title": "第13話 再見夢幻M少N!!", "title_zh": "第13话 再见梦幻M少N!!"}, {"cid": "90726", "title": "第14話 東城×東城三東城N次方", "title_zh": "第14话 东城×东城三东城N次方"}, {"cid": "90727", "title": "第15話 這樣也好", "title_zh": "第15话 这样也好"}, {"cid": "90728", "title": "第16話 兩人的避難所", "title_zh": "第16话 两人的避难所"}, {"cid": "90729", "title": "第17話 西野官的風格", "title_zh": "第17话 西野官的风格"}, {"cid": "90731", "title": "第18話 請留下回憶?", "title_zh": "第18话 请留下回忆?"}, {"cid": "90732", "title": "第19話 命運的影片開拍!", "title_zh": "第19话 命运的影片开拍!"}, {"cid": "90733", "title": "第20話 戀愛花朵滿枝枒", "title_zh": "第20话 恋爱花朵满枝枒"}, {"cid": "90734", "title": "第21話 比真中危險的男人", "title_zh": "第21话 比真中危险的男人"}, {"cid": "90736", "title": "第23話 決定!!", "title_zh": "第23话 决定!!"}, {"cid": "90737", "title": "第24話 不可以喜歡你嗎!", "title_zh": "第24话 不可以喜欢你吗!"}, {"cid": "90738", "title": "第25話 奔跑的N人•迷惑的男人", "title_zh": "第25话 奔跑的N人•迷惑的男人"}, {"cid": "90739", "title": "第26話 再會", "title_zh": "第26话 再会"}, {"cid": "90741", "title": "第27話 邁向夢想的第一步", "title_zh": "第27话 迈向梦想的第一步"}, {"cid": "90742", "title": "第28話 東城 IN MY ROOM", "title_zh": "第28话 东城 IN MY ROOM"}, {"cid": "90743", "title": "第29話 真中包圍網", "title_zh": "第29话 真中包围网"}, {"cid": "90744", "title": "第30話 風兩驟起的拍片集訓", "title_zh": "第30话 风两骤起的拍片集训"}, {"cid": "90745", "title": "第31話 皋月沸騰中!!", "title_zh": "第31话 皋月沸腾中!!"}, {"cid": "90746", "title": "第32話 溫我吧寸", "title_zh": "第32话 温我吧寸"}, {"cid": "90747", "title": "第33話 CRYING IN THE RAIN", "title_zh": "第33话 CRYING IN THE RAIN"}, {"cid": "90748", "title": "第34話 西野官的願望", "title_zh": "第34话 西野官的愿望"}, {"cid": "90749", "title": "第35話 打開天窗說亮話", "title_zh": "第35话 打开天窗说亮话"}, {"cid": "90750", "title": "附錄", "title_zh": "附录"}, {"cid": "90752", "title": "第36話 秘密的事", "title_zh": "第36话 秘密的事"}, {"cid": "90753", "title": "第37話 暴風雨般的校慶", "title_zh": "第37话 暴风雨般的校庆"}, {"cid": "90754", "title": "第38話 親溫的餘韻", "title_zh": "第38话 亲温的余韵"}, {"cid": "90755", "title": "第39話 今晚真的要", "title_zh": "第39话 今晚真的要"}, {"cid": "90756", "title": "第40話 記憶中的N孩", "title_zh": "第40话 记忆中的N孩"}, {"cid": "90757", "title": "第41話 洗鴛鴦浴!", "title_zh": "第41话 洗鸳鸯浴!"}, {"cid": "90758", "title": "第42話 星星降臨的夜晚!", "title_zh": "第42话 星星降临的夜晚!"}, {"cid": "90759", "title": "第43話 求求你告訴我!!", "title_zh": "第43话 求求你告诉我!!"}, {"cid": "90762", "title": "第45話 再度相會", "title_zh": "第45话 再度相会"}, {"cid": "90763", "title": "第46話 這是命運嗎!", "title_zh": "第46话 这是命运吗!"}, {"cid": "90764", "title": "第47話 災難不斷!!", "title_zh": "第47话 灾难不断!!"}, {"cid": "90765", "title": "第48話 2月14日", "title_zh": "第48话 2月14日"}, {"cid": "90766", "title": "第49話 天使再臨", "title_zh": "第49话 天使再临"}, {"cid": "90767", "title": "第50話 預感", "title_zh": "第50话 预感"}, {"cid": "90768", "title": "第51話 皋月的反擊!!", "title_zh": "第51话 皋月的反击!!"}, {"cid": "90769", "title": "第52話 放學後的練習", "title_zh": "第52话 放学后的练习"}, {"cid": "90770", "title": "第53話 永遠不放手", "title_zh": "第53话 永远不放手"}, {"cid": "90771", "title": "附錄", "title_zh": "附录"}, {"cid": "90773", "title": "第54話 DASH 淳平!!", "title_zh": "第54话 DASH 淳平!!"}, {"cid": "90774", "title": "第55話 接點", "title_zh": "第55话 接点"}, {"cid": "90775", "title": "第56話 電影院的N生", "title_zh": "第56话 电影院的N生"}, {"cid": "90776", "title": "第57話 SWEET LITTLE SISTER", "title_zh": "第57话 SWEET LITTLE SISTER"}, {"cid": "90777", "title": "第58話 新進社員登場!!", "title_zh": "第58话 新进社员登场!!"}, {"cid": "90778", "title": "第59話 救世主再次降臨", "title_zh": "第59话 救世主再次降临"}, {"cid": "90779", "title": "第60話 我想保護妳", "title_zh": "第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>