Spaces:
Running
Running
File size: 24,597 Bytes
8b1c056 9033360 374195f 313dd56 8b1c056 a591a39 8b1c056 9033360 8b1c056 9033360 8b1c056 9033360 374195f 313dd56 8b1c056 50d4022 8b1c056 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | <!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="./favicon.ico" />
<title>这个用英语怎么说?· 热点事件英语实况图</title>
<meta name="description" content="雅思停考、签证新规、秋招入职……留学生与年轻职场人天天遇到却说不出口的 9 个英文词,做成了 9 张带声音的苹果实况照片(JPG + MOV),可直接发朋友圈 / 小红书 / 抖音。" />
<style>
@font-face{font-family:'LW Poppins';font-weight:800;src:url(./fonts/lw-poppins-800.woff2) format('woff2');font-display:swap}
@font-face{font-family:'LW Poppins';font-weight:600;src:url(./fonts/lw-poppins-600.woff2) format('woff2');font-display:swap}
@font-face{font-family:'LW SC';font-weight:700;src:url(./fonts/lw-sc-700.woff2) format('woff2');font-display:swap}
@font-face{font-family:'LW SC';font-weight:500;src:url(./fonts/lw-sc-500.woff2) format('woff2');font-display:swap}
@font-face{font-family:'LW Smiley';src:url(./fonts/lw-smiley.woff2) format('woff2');font-display:swap}
@font-face{font-family:'LW IPA';src:url(./fonts/lw-ipa-500.woff2) format('woff2');font-display:swap}
:root{--bg:#0d0d10;--card:#16161b;--line:rgba(255,255,255,.1);--fg:#f3f3f5;--mute:#9a9aa6;--accent:#ff3b5c;--yellow:#ffd63d;--green:#22c55e}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--fg);font-family:'LW SC','PingFang SC','Noto Sans SC','Microsoft YaHei',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
main{max-width:1120px;margin:0 auto;padding:32px 20px 120px}
nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:36px;font-size:14px}
nav .brand{font-weight:700;letter-spacing:.02em;color:#ddd}
nav .brand b{color:var(--accent)}
nav .links{display:flex;gap:6px;border:1px solid var(--line);border-radius:999px;padding:4px}
nav .links a{padding:6px 14px;border-radius:999px;text-decoration:none;color:#ccc}
nav .links a.on{background:#fff;color:#111;font-weight:700}
nav .links a:hover{color:#fff}
.eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(255,214,61,.12);color:var(--yellow);border:1px solid rgba(255,214,61,.3);border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700}
h1{font-family:'LW Smiley','LW SC',sans-serif;font-weight:400;font-size:clamp(30px,5vw,52px);line-height:1.15;margin:16px 0 14px;letter-spacing:.01em}
h1 em{font-style:normal;color:var(--accent)}
.lead{color:var(--mute);font-size:15px;line-height:1.85;max-width:760px;margin:0}
.lead b{color:#e8e8ee;font-weight:600}
.hot{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:28px 0 8px}
.hot a{display:block;text-decoration:none;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 16px;transition:border-color .2s}
.hot a:hover{border-color:rgba(255,255,255,.3)}
.hot .k{font-size:11px;color:var(--yellow);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.hot .t{font-size:14px;font-weight:600;margin:6px 0 4px;line-height:1.5}
.hot .s{font-size:12px;color:var(--mute);line-height:1.6}
.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin:44px 0 18px}
.bar h2{font-size:22px;margin:0;font-weight:700}
.bar .sub{color:var(--mute);font-size:13px;margin-top:4px}
.btn{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#111;font-weight:700;text-decoration:none;border:0;border-radius:999px;padding:11px 18px;font-size:14px;cursor:pointer;font-family:inherit}
.btn.ghost{background:transparent;color:#eee;border:1px solid var(--line)}
.btn:hover{filter:brightness(.93)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px 18px}
@media(max-width:860px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.grid{grid-template-columns:1fr 1fr;gap:14px 10px}}
figure{margin:0;display:flex;flex-direction:column;gap:10px}
.tile{position:relative;aspect-ratio:3/4;width:100%;overflow:hidden;border-radius:22px;background:#1b1b22;border:0;padding:0;cursor:pointer;box-shadow:0 0 0 1px var(--line) inset;transition:box-shadow .2s}
.tile:hover{box-shadow:0 0 0 1px rgba(255,255,255,.35) inset}
.tile img,.tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tile img.cover{transition:opacity .3s}
.tile.playing img.cover{opacity:0}
.tile .live{position:absolute;left:12px;top:12px;display:inline-flex;align-items:center;gap:5px;background:rgba(0,0,0,.45);backdrop-filter:blur(8px);color:#fff;font-size:11px;font-weight:700;letter-spacing:.05em;border-radius:999px;padding:4px 10px;font-family:'LW Poppins',sans-serif}
.tile .live i{display:inline-block;width:9px;height:9px;border:1.5px solid #fff;border-radius:50%}
.tile .src{position:absolute;right:12px;top:12px;background:rgba(0,0,0,.45);backdrop-filter:blur(8px);color:#ddd;font-size:11px;border-radius:999px;padding:4px 9px}
.tile .play{position:absolute;right:12px;bottom:12px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.92);color:#111;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.35);transition:transform .2s}
.tile:hover .play{transform:scale(1.06)}
.tile .play svg{width:16px;height:16px}
.tile .cnt{position:absolute;left:12px;bottom:14px;color:#fff;font-size:12px;font-weight:700;text-shadow:0 1px 6px rgba(0,0,0,.6);background:rgba(0,0,0,.35);padding:3px 9px;border-radius:999px;backdrop-filter:blur(6px)}
figcaption{padding:0 4px}
figcaption .meta{font-size:12.5px;color:var(--mute)}
figcaption .en{font-family:'LW Poppins',sans-serif;font-weight:800;font-size:21px;line-height:1.2;margin-top:2px}
figcaption .en small{font-family:'LW IPA','Noto Sans',sans-serif;font-weight:400;font-size:13px;color:var(--mute);margin-left:8px}
figcaption .hook{font-size:12.5px;color:#c7c7d1;line-height:1.6;margin-top:6px;padding-left:10px;border-left:2px solid rgba(255,59,92,.6)}
.hidden-until-reveal figcaption .en{filter:blur(0)}
section.box{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px 22px 18px;margin-top:40px}
section.box h3{margin:0 0 12px;font-size:17px}
section.box ol,section.box ul{margin:0;padding-left:20px;color:#cfcfd6;font-size:14px;line-height:1.9}
section.box code{background:rgba(255,255,255,.08);padding:2px 6px;border-radius:6px;font-size:12.5px}
.copybox{position:relative;background:#0f0f13;border:1px solid var(--line);border-radius:14px;padding:16px 16px 14px;white-space:pre-wrap;font-size:13.5px;line-height:1.85;color:#d8d8df}
.copybox .cp{position:absolute;right:10px;top:10px;padding:6px 12px;font-size:12px}
.credits li{margin-bottom:4px}
.credits a{color:#bdbdd0}
footer{margin-top:44px;color:var(--mute);font-size:12.5px;line-height:1.9}
footer a{color:#bdbdd0}
.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:860px){.two{grid-template-columns:1fr}}
.toggle{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#ccc;cursor:pointer;user-select:none}
.toggle input{accent-color:var(--accent)}
</style>
</head>
<body>
<main>
<nav>
<div class="brand">这个用英语怎么说<b>?</b></div>
<div class="links">
<a class="on" href="#set-i">第九组 · 恋爱词 🫣</a>
<a href="#set-h">第八组 · 国内热点 10.22–29</a>
<a href="#set-g">第七组 · 国内热点</a>
<a href="#set-f">第六组 · 国际热点</a>
<a href="#set-e">第五组 · 留学 & 职场</a>
<a href="https://ethscriptions-truth-or-dare.static.hf.space/" target="_blank" rel="noopener" style="color:#ffd63d">✊ 真心话大冒险 ↗</a>
<a href="https://huggingface.co/spaces/Ethscriptions/eths" target="_blank" rel="noopener">制作工具 & 前四组 ↗</a>
</div>
</nav>
<header>
<span class="eyebrow">🔥 2026 年 10 月 · 五组共 45 张实况图</span>
<h1>新闻里天天见的<em>人、事、物</em>,<br>换成英文你能马上说出来吗?</h1>
<p class="lead">给 <b>雅思 / 托福考生、留学生、年轻职场人</b> 做的实况图单词卡:每张 ≤ 3 秒,先看封面猜中文,长按实况听两遍发音、看音标和释义。<b>第九组</b>是恋爱里天天说却不会用英文说的词(暧昧、相亲、官宣、备胎、冷暴力、异地恋、分手、吃醋、搭讪);<b>第八组</b>是 10 月 22–29 日这一周国内热搜涉及的词(代言、联名、抵制、挑山工、同比、医美、辅助驾驶、展会、资格);<b>第七组</b>是上一周国内热搜涉及的词(那曲地震余震、秋裤预警、考研/导师、国补以旧换新、双 11 尾款、结婚登记、生育率、续航焦虑);<b>第六组</b>是国际热点事件里的词(入境小黑屋、国考公务员、AI 裁员遣散费、关税、中期选举、诺奖得主、停火、流感疫苗、疫情暴发);<b>第五组</b>是这些人群在热点场景里常碰到的日常词。全部 <b>JPG + MOV 成对打包</b>,导入苹果「照片」即为带声音的 LIVE 实况照片,可发微信朋友圈 / 小红书 / 抖音图文。</p>
</header>
<div id="sets"></div>
<div class="two">
<section class="box">
<h3>怎么用(Mac → iPhone)</h3>
<ol>
<li>下载并解压素材包,里面是 9 对同名文件:<code>LIVE_41_invigilator.JPG</code> / <code>.MOV</code> ……</li>
<li>全选所有 JPG 和 MOV,一起拖进 Mac「照片」App(或 照片 → 文件 → 导入);每一对会被识别为一张 LIVE 实况照片。</li>
<li>通过 iCloud 照片或隔空投送到 iPhone,发朋友圈 / 小红书 / 抖音图文时选中它们,保持「实况」开启即可带声音播放。</li>
<li>不要用其他软件重新转码 MOV,否则会丢失配对信息。尺寸 1080×1440(3:4),30fps,H.264 + AAC,全部 ≤ 3 秒。</li>
</ol>
</section>
<section class="box">
<h3>建议文案(点右上角复制)</h3>
<div id="copies"></div>
</section>
</div>
<section class="box">
<h3>图片来源与授权</h3>
<ul class="credits" id="credits"></ul>
</section>
<footer>
参考 <a href="https://huggingface.co/spaces/Ethscriptions/eths" target="_blank" rel="noopener">Ethscriptions/eths</a> 的制作流程(Pillow 逐帧渲染 → ffmpeg 编码 → 写入苹果实况配对标识),源码见仓库 <code>source/studio/</code>。实况配对基于 <a href="https://github.com/pengchujin/livecanvas" target="_blank" rel="noopener">LiveCanvas</a>(MIT / Apache-2.0),保留音轨。热点选题依据公开报道(检索于 2026-10-25),不构成签证、考试或求职建议,请以官方页面为准。
</footer>
</main>
<script>
const SETS = [
{file:'./pack9.json', anchor:'set-i', hot:[
{k:'暧昧', t:'situationship:不是朋友也不是情侣,Z 世代年度热词', s:'不是 ambiguous relationship', u:'https://dictionary.cambridge.org/dictionary/english/situationship'},
{k:'官宣', t:'hard launch:社交平台正式公开恋情、放合照;偷偷露只手叫 soft launch', s:'不是 official announce', u:'https://www.dictionary.com/e/slang/soft-launch/'},
{k:'备胎', t:'backup:永远排第二位、随叫随到却不被选择的人', s:'不是 spare tire', u:'https://www.merriam-webster.com/dictionary/backup'},
{k:'冷暴力', t:'silent treatment:不回消息、不说话的冷处理', s:'不是 cold violence', u:'https://www.merriam-webster.com/dictionary/silent%20treatment'},
{k:'搭讪', t:'hit on:开口第一句的勇气', s:'不是 talk to', u:'https://www.merriam-webster.com/dictionary/hit%20on'},
]},
{file:'./pack8.json', anchor:'set-h', hot:[
{k:'姆巴佩', t:'10 月 27 日蒙牛、东鹏饮料、妙可蓝多等宣布终止与姆巴佩全部合作,姆巴佩随后在 X 上道歉', s:'代言 = endorsement,抵制 = boycott', u:'https://www.bbc.com/zhongwen/articles/c6x2v4p284ylo/simp'},
{k:'三丽鸥', t:'10 月 28 日三丽鸥因与日剧《VIVANT》联名引发抵制,深夜致歉并终止全部联名', s:'联名 = collab', u:'https://news.cctv.com/2026/10/29/ARTIFGNp8Mi3mHjtzGtWoEq2261029.shtml'},
{k:'机器狗爬泰山', t:'10 月 26 日首届 CMG 世界机器人登泰山大赛排位赛:机器狗背 100 多斤物资 1 小时登上中天门', s:'挑山工 = porter', u:'https://original.ifeng.com/c/8xYpr2ettlu'},
{k:'三季报', t:'前三季度 GDP 同比增长 4.6%,增量 5.7 万亿元为近五年最大;10 月 29 日外媒再质疑数据', s:'同比 = year-on-year', u:'https://www.news.cn/fortune/20261020/28bdb8c7296341aea6c56c82105c76c9/c.html'},
{k:'奥美定', t:'10 月 24 日热搜第一:南京女子 20 多年前注射奥美定隆胸,近期变质取出近 800mL', s:'医美 = cosmetic surgery', u:'https://view.inews.qq.com/a/20261024A0BZCL00'},
{k:'智驾公开赛', t:'10 月 26 日第二届华为乾崑智驾公开赛开启报名,「超十万人报名」登上热搜,10 月 31 日开赛', s:'辅助驾驶 = driver assistance', u:'https://news.mydrivers.com/1/1160/1160695.htm'},
{k:'广交会', t:'10 月 27 日第 140 届广交会第二期收官,第三期 10 月 31 日开幕', s:'展会 = trade fair', u:'https://www.cantonfair.org.cn/zh-CN'},
{k:'国考收官', t:'10 月 26 日 2027 国考报名结束:345 万人通过资格审查,平均 97 人竞争一个岗位', s:'资格 = eligibility', u:'https://edu.cctv.com/2026/10/27/ARTIGO9tXkive9guf15wyQcq261027.shtml'},
]},
{file:'./pack7.json', anchor:'set-g', hot:[
{k:'那曲地震', t:'10 月 22 日 22:33 西藏那曲巴青县 7.0 级地震,已致 16 人遇难,1600 余名搜救人员驰援', s:'余震 = aftershock', u:'https://www.mem.gov.cn/xw/yjyw/202610/t20261022_736710.shtml'},
{k:'秋裤预警', t:'10 月 21–25 日冷空气连番南下,「全国秋裤预警地图」显示超 15 省份需穿秋裤,北方降幅可达 10℃', s:'秋裤 = long johns', u:'http://news.weather.com.cn/2026/10/4828292.shtml'},
{k:'考研报名', t:'2027 年全国硕士研究生招生考试 10 月 15–24 日网上报名收官,机构预测报名约 320 万–335 万人', s:'读研 = grad school,导师 = supervisor', u:'http://www.moe.gov.cn/jyb_xwfb/gzdt_gzdt/s5987/202609/t20260924_1451846.html'},
{k:'双 11 · 国补', t:'天猫 10 月 15 日开预售、10 月 20 日晚 8 点付尾款;2026 年中央安排 2500 亿元支持消费品以旧换新,「国补 + 满减 + 红包」叠加', s:'尾款 = final payment,以旧换新 = trade-in', u:'https://www.ndrc.gov.cn/xxgk/zcfb/tz/202512/t20251230_1402851.html'},
{k:'初婚回千万', t:'10 月 24 日《中国统计年鉴 2026》:2025 年初婚人数 1042.33 万、重回千万,结婚登记 676.5 万对、增长 10.8%', s:'结婚登记 = marriage registration', u:'https://finance.sina.com.cn/jjxw/2026-10-24/doc-iniwicvq4847859.shtml'},
{k:'人口负增长', t:'热搜「全国总人口面临跌破 14 亿」:2025 年末 14.05 亿、全年净减 339 万,连续四年负增长,出生 792 万', s:'生育率 = fertility rate', u:'https://weibo.com/a/hot/0a70e64a122730b8_0.html?type=grab'},
{k:'油车 vs 电车', t:'10 月 20 日微博热搜第一「油车电车 10 年成本账怎么算」', s:'续航焦虑 = range anxiety', u:'https://weixinhost.com/hotspot-radar/2026-10-20'},
]},
{file:'./pack6.json', anchor:'set-f', hot:[
{k:'入境盘查', t:'10 月 25 日中方再称多名留学生入境美国时被长时间盘查、遣返,有人被限制人身自由 10 余小时', s:'「小黑屋」的英文其实是 secondary inspection', u:'https://www.voachinese.com/a/china-accuses-us-border-control-of-denying-chinese-students-entry-with-valid-visas-20261025/8000000.html'},
{k:'国考', t:'2027 年度国考 10 月 14–24 日报名,计划招录 3.57 万人、连续第二年缩招,笔试 11 月 29 日', s:'公务员 = civil servant', u:'http://edu.people.com.cn/n1/2026/1013/c1006-40813765.html'},
{k:'AI 裁员', t:'Barclays 10 月宣布裁员约 5,000 人;Amazon、Salesforce、Workday 等 AI 相关裁员持续', s:'N+1 谈的是 severance pay', u:'https://www.reuters.com/business/world-at-work/companies-cutting-jobs-investments-shift-toward-ai-2026-10-23/'},
{k:'关税', t:'10 月 23 日特朗普签令调整对加拿大产品关税,取消部分农林产品 50% 关税', s:'tariff,不是 tax', u:'https://www.whitehouse.gov/fact-sheets/2026/10/'},
{k:'中期选举', t:'11 月 3 日美国中期选举:众议院全部席位 + 参议院 1/3 改选', s:'midterm 在校园里还是「期中考」', u:'https://www.overseasvotefoundation.org/can-overseas-citizens-vote-from-abroad-in-midterms'},
{k:'诺贝尔奖', t:'10 月 5–12 日诺奖揭晓:和平奖 Navi Pillay,医学奖授予光遗传学三位科学家', s:'得主 = laureate', u:'https://www.nobelprize.org/all-nobel-prizes-2026/'},
{k:'俄乌停火', t:'10 月 23 日俄乌同意在 Oleshky 实施局部停火(10 月 27 日起),下月举行和谈', s:'ceasefire', u:'https://www.reuters.com/world/europe/russia-ukraine-agree-ceasefire-embattled-town-hold-peace-talks-2026-10-23/'},
{k:'流感季', t:'美国高校 9–10 月开设校园流感疫苗诊所;两岸疾控均提示流感处于流行期', s:'flu shot', u:'https://www.healthyhorns.utexas.edu/uhs/flu-shots.html'},
{k:'埃博拉', t:'10 月 20 日尼日利亚确认埃博拉(本迪布焦型)输入病例,非洲疾控召开紧急会议', s:'outbreak', u:'https://www.afro.who.int/countries/nigeria/news/nigeria-confirms-imported-case-ebola-bundibugyo-virus-disease'},
]},
{file:'./pack.json', anchor:'set-e', hot:[
{k:'IELTS', t:'雅思机考系统故障,中国大陆考试连停 4 天(10 月 10–13 日)后恢复', s:'改期、重考、监考……考场里的词突然都要用英文说', u:'https://www.scmp.com/news/china/diplomacy/article/3370728/british-council-resume-ielts-exams-after-4-day-outage'},
{k:'TOEFL', t:'托福 iBT 自 2026 年 1 月 21 日起改为自适应新版,分数改用 1–6 分制', s:'申请季递交成绩单、换算分数的人变多了', u:'https://www.ets.org/toefl/institutions/ibt/score-scale-update.html'},
{k:'US F-1', t:'美国取消 F-1「D/S 不定期停留」,改为最长 4 年固定期限(2026-09-15 生效);10 月 8 日 DHS 又提议新增 OPT 收费', s:'录指纹、续签、I-539 延期成了留学生的高频词', u:'https://siss.ucdavis.edu/news/federal-government-updates-international-students-and-scholars'},
{k:'UK Graduate visa', t:'英国毕业生签证:2026-12-31 前申请仍为 2 年,2027-01-01 起缩短为 18 个月', s:'年底前扎堆申请、找房交押金的人不少', u:'https://www.gov.uk/graduate-visa'},
{k:'秋招', t:'国内秋招 8–11 月进入主批,大部分校招企业在 10–11 月完成筛选与面试', s:'拿到 offer、谈试用期、第一张工资条……职场新人词汇考验', u:'https://www.jfdaily.com/news/detail?id=978651'},
]},
];
const PLAY = '<svg viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg>';
const PAUSE = '<svg viewBox="0 0 24 24" fill="currentColor"><path d="M6 5h4v14H6zM14 5h4v14h-4z"/></svg>';
let current = null;
const asset = p => /^https?:\/\//.test(p) ? p : `./live/${p}`;
function renderSet(cfg, pack) {
const nReal = pack.items.filter(i => i.source !== 'ai').length, nAi = pack.items.length - nReal;
const wrap = document.createElement('section');
wrap.id = cfg.anchor;
wrap.innerHTML = `
<div class="hot">${cfg.hot.map(h => `<a href="${h.u}" target="_blank" rel="noopener"><div class="k">${h.k}</div><div class="t">${h.t}</div><div class="s">${h.s}</div></a>`).join('')}</div>
<div class="bar">
<div>
<h2>${pack.name}</h2>
<div class="sub">点卡片播放(有声音)· ${nReal} 张真实照片来自 Wikimedia Commons,${nAi} 张为 AI 生成 · 全部 ≤ 3 秒,朋友圈兼容</div>
</div>
<div style="display:flex;gap:10px;align-items:center;flex-wrap:wrap">
<label class="toggle"><input type="checkbox" class="quiz" /> 先猜再看(隐藏答案)</label>
<a class="btn" href="${asset(pack.zip)}" download>⬇ 下载素材包(JPG + MOV · ${pack.zipMB} MB)</a>
</div>
</div>
<div class="grid">${pack.items.map(it => `
<figure data-id="${it.id}">
<button class="tile" type="button" aria-label="播放第 ${it.index} 张实况:${it.zh}">
<video src="${asset(it.preview)}" playsinline preload="none" poster="${asset(it.cover)}"></video>
<img class="cover" src="${asset(it.cover)}" alt="${it.zh} 实况图封面" loading="lazy" />
<span class="live"><i></i>LIVE</span>
<span class="src">${it.source === 'ai' ? 'AI 生成' : '实拍 · Commons'}</span>
<span class="cnt">${String(it.index).padStart(2,'0')} / ${pack.items.length}</span>
<span class="play">${PLAY}</span>
</button>
<figcaption>
<div class="meta">${it.zh} · ${it.cat} · ${it.pos} · ${it.duration.toFixed(1)} 秒 · 🔊 有声</div>
<div class="en answer">${it.en}<small>${it.ipa}</small></div>
<div class="hook">${it.hook}</div>
</figcaption>
</figure>`).join('')}</div>`;
document.getElementById('sets').appendChild(wrap);
const grid = wrap.querySelector('.grid');
const quiz = wrap.querySelector('.quiz');
const applyQuiz = () => grid.querySelectorAll('figure').forEach(f => {
const en = f.querySelector('.answer');
const hide = quiz.checked && !f.classList.contains('revealed');
en.style.filter = hide ? 'blur(9px)' : ''; en.style.userSelect = hide ? 'none' : '';
});
quiz.addEventListener('change', () => { grid.querySelectorAll('figure').forEach(f => f.classList.remove('revealed')); applyQuiz(); });
grid.querySelectorAll('.tile').forEach(tile => {
const video = tile.querySelector('video');
const play = tile.querySelector('.play');
const stop = () => { video.pause(); tile.classList.remove('playing'); play.innerHTML = PLAY; if (current === video) current = null; };
tile.addEventListener('click', () => {
if (current && current !== video) { const t = current.closest('.tile'); current.pause(); t.classList.remove('playing'); t.querySelector('.play').innerHTML = PLAY; }
if (!video.paused) { stop(); return; }
current = video; video.currentTime = 0; video.muted = false;
const ok = () => { tile.classList.add('playing'); play.innerHTML = PAUSE; };
video.play().then(ok).catch(() => { video.muted = true; video.play().then(ok).catch(() => {}); });
});
video.addEventListener('ended', () => { stop(); tile.closest('figure').classList.add('revealed'); applyQuiz(); });
});
const text = `${pack.copy.title}\n\n${pack.copy.body}`;
const box = document.createElement('div');
box.innerHTML = `<div class="meta" style="font-size:12.5px;color:#9a9aa6;margin:10px 0 6px">${pack.name}</div><div class="copybox"><button class="btn cp">复制</button><span></span></div>`;
box.querySelector('span').textContent = text;
box.querySelector('.cp').addEventListener('click', async e => {
try { await navigator.clipboard.writeText(text); e.target.textContent = '已复制 ✓'; setTimeout(() => e.target.textContent = '复制', 1500); } catch { }
});
document.getElementById('copies').appendChild(box);
const aiItems = pack.items.filter(i => i.source === 'ai').map(i => `${i.zh} / ${i.en}`).join('、');
document.getElementById('credits').insertAdjacentHTML('beforeend',
`<li style="margin-top:10px;color:#9a9aa6">${pack.name}</li>` +
pack.credits.map(c => `<li><b>${c.zh} / ${c.en}</b> — <a href="${c.page}" target="_blank" rel="noopener">${c.file}</a> · ${c.author} · ${c.licenseUrl ? `<a href="${c.licenseUrl}" target="_blank" rel="noopener">${c.license}</a>` : c.license}</li>`).join('') +
(aiItems ? `<li><b>${aiItems}</b> — AI 生成图片(本项目制作),可自由使用。</li>` : ''));
}
Promise.all(SETS.map(c => fetch(c.file).then(r => r.json()).then(p => [c, p]))).then(list => {
list.forEach(([c, p]) => renderSet(c, p));
document.getElementById('credits').insertAdjacentHTML('beforeend', '<li style="margin-top:10px">读音:Microsoft Edge 神经语音(Ava / Andrew);音效为程序合成。CC BY-SA 图片二次发布时请保留署名并沿用相同许可。</li>');
if (location.hash) { const el = document.querySelector(location.hash); if (el) el.scrollIntoView(); }
});
</script>
</body>
</html>
|