sync update from LAN repo (source master @ 6e3f02a2)

This commit is contained in:
gozeros committed 2026-11-17 11:28:22 +08:00
1 parent 66a443e915
commit 6c25c89d93
431 files changed
+68511 -2240

No files matched your search

@@ -0,0 +1 @@
{"元信息":{"项目名称":"日本涉台叙事专题数据库","副标题":"“台湾有事不是日本有事”认知舆情监测系统","版本":"1.1","更新时间":"2026-06-30(主题框可读性优化版)","语言":"中文","数据说明":"本数据库依据已阅读的 japan_taiwan_narrative_cognitive_monitoring_system Skill、前序16栏专题研究框架,以及后续补充数据整理而成。用途为页面展示、专题研究、交互式查询、叙事风险评估与后续数据扩展。","安全边界":"仅用于公开资料研究、舆情分析、政策研判、来源审查和风险预警,不用于欺骗性影响行动、定向操纵、仿冒主体、煽动仇恨或伪造来源。"},"页面标签":[{"编号":"总览","名称":"总览仪表盘","说明":"核心叙事、风险指数、热点事件、主要群体与竞争叙事入口。"},{"编号":"叙事","名称":"叙事结构","说明":"拆解法理、和平主义、反卷入、冲绳前线化、经济成本、生活成本等叙事链条。"},{"编号":"法律","名称":"法律政策","说明":"展示宪法第九条、安保法制、存立危机事态、日美同盟、安保三文件等制度文本。"},{"编号":"冲绳","名称":"冲绳与西南诸岛","说明":"展示冲绳、宫古、石垣、与那国、奄美、先岛避难等地方案例。"},{"编号":"行为体","名称":"行为体数据库","说明":"展示政党、地方政府、社会组织、媒体、经济团体和关键群体。"},{"编号":"经济","名称":"经济与民生","说明":"展示中日贸易、旅游、供应链、防卫费、防卫增税和生活成本议题。"},{"编号":"公众","名称":"公众心理","说明":"展示年轻人、中间选民、公明党支持层、低政治兴趣群体等受众画像。"},{"编号":"竞争","名称":"竞争叙事","说明":"展示“台湾有事就是日本有事”、威慑、中国改变现状、台湾民主伙伴等反制叙事。"},{"编号":"平台","名称":"平台传播","说明":"展示X、YouTube、Yahoo News、LINE、TikTok、Instagram、冲绳地方媒体和传统媒体传播特征。"},{"编号":"风险","名称":"风险预警","说明":"展示风险评分模型、预警等级、触发事件、场景推演与监测模板。"}],"总览仪表盘":{"核心叙事":"台湾有事不是日本有事","日文表达":"台湾有事は日本有事ではない","核心判断":"该叙事主张台海危机不应被日本政府、日美同盟或保守安全派自动转化为日本参战、自卫队后方支援、基地使用、冲绳前线化、防卫增税与战争准备的理由。","当前风险":{"等级":"中高观察","分数":27,"满分":40,"趋势":"议题升温但受竞争叙事压制","说明":"主叙事在反战护宪派、冲绳地方社会、生活成本讨论和部分中间选民中具有扩散空间,但“台湾有事就是日本有事”“威慑才能避免战争”仍具有强压制力。"},"核心叙事群":["法理边界叙事","宪法第九条与和平主义叙事","反卷入叙事","冲绳与西南诸岛前线化叙事","基地负担与避难计划叙事","经济成本叙事","生活成本叙事"],"重点群体":["反战护宪派","冲绳地方社会","公明党与创价学会支持层","年轻人","中间选民","经济界与地方产业","左翼在野党","地方自治体"],"核心平台":["X / Twitter","YouTube","Yahoo News评论区","LINE","TikTok / Shorts","Instagram","琉球新报 / 冲绳时报","朝日 / 每日 / 东京 / 读卖 / 产经"],"高频触发事件":["日本政要称台海危机可能构成存立危机事态","日美联合声明或联合军演涉台","中国环台军演或东海海空摩擦","冲绳与先岛避难计划更新","防卫费增额、防卫增税和反击能力预算","石垣、宫古、与那国等地部署或居民说明会","修宪和第九条争议","中日外交摩擦、旅游警示或经济反制"],"页面使用说明":"可通过顶部Tab切换栏目;可使用关键词、类型、地区、平台和风险等级筛选;点击任一卡片可打开中文详情弹框;风险预警页可查看评分逻辑和日报、周报模板。"},"叙事结构":[{"编号":"N01","名称":"法理边界叙事","日文名称":"台湾有事は日本有事ではない","类型":"法理边界","风险等级":"中高","地区":"全国","平台":"国会/传统媒体/X/法律界","摘要":"该叙事强调台湾问题不应被日本政府自动解释为日本可行使集体自卫权、启动存立危机事态或支援美军的法理依据。","核心逻辑":["台湾有事并不等同日本本土遭受武力攻击","政府若扩大解释存立危机事态,可能架空宪法第九条","日美同盟和后方支援不能成为事实参战通道","国会、司法、公众应对政府解释权进行审查"],"关键词":["存立危機事態","集団的自衛権","憲法第九条","新三要件","政府解釈","重要影響事態"],"主要受众":["护宪派法学者","律师团体","日本共Line truncated
@@ -0,0 +1,503 @@
{
"说明": "字段显示目录:值级隐藏(隐藏即 data.json 各条目该键清空,全部渲染路径生效)。",
"fields": [
{
"label": "编号",
"pages": [
"总览仪表盘",
"叙事结构",
"法律政策",
"冲绳与西南诸岛",
"行为体数据库",
"经济与民生",
"公众心理",
"竞争叙事",
"平台传播",
"风险预警"
],
"description": "总览仪表盘 数据字段(编号,出现 156 条)",
"keys": [
"编号"
],
"custom": false
},
{
"label": "名称",
"pages": [
"总览仪表盘",
"叙事结构",
"法律政策",
"冲绳与西南诸岛",
"行为体数据库",
"经济与民生",
"公众心理",
"竞争叙事",
"平台传播",
"风险预警"
],
"description": "总览仪表盘 数据字段(名称,出现 160 条)",
"keys": [
"名称"
],
"custom": false
},
{
"label": "说明",
"pages": [
"总览仪表盘",
"风险预警"
],
"description": "总览仪表盘 数据字段(说明,出现 22 条)",
"keys": [
"说明"
],
"custom": false
},
{
"label": "日文名称",
"pages": [
"叙事结构",
"行为体数据库",
"竞争叙事"
],
"description": "叙事结构 数据字段(日文名称,出现 26 条)",
"keys": [
"日文名称"
],
"custom": false
},
{
"label": "类型",
"pages": [
"叙事结构",
"法律政策",
"冲绳与西南诸岛",
"行为体数据库",
"经济与民生",
"公众心理",
"竞争叙事",
"平台传播",
"风险预警",
"总览仪表盘"
],
"description": "叙事结构 数据字段(类型,出现 144 条)",
"keys": [
"类型"
],
"custom": false
},
{
"label": "风险等级",
"pages": [
"叙事结构",
"法律政策",
"冲绳与西南诸岛",
"行为体数据库",
"经济与民生",
"公众心理",
"竞争叙事",
"平台传播",
"总览仪表盘"
],
"description": "叙事结构 数据字段(风险等级,出现 138 条)",
"keys": [
"风险等级"
],
"custom": false
},
{
"label": "地区",
"pages": [
"叙事结构",
"法律政策",
"冲绳与西南诸岛",
"行为体数据库",
"经济与民生",
"公众心理",
"平台传播",
"总览仪表盘"
],
"description": "叙事结构 数据字段(地区,出现 130 条)",
"keys": [
"地区"
],
"custom": false
},
{
"label": "平台",
"pages": [
"叙事结构",
"法律政策",
"冲绳与西南诸岛",
"行为体数据库",
"经济与民生",
"公众心理",
"竞争叙事",
"平台传播",
"总览仪表盘"
],
"description": "叙事结构 数据字段(平台,出现 138 条)",
"keys": [
"平台"
],
"custom": false
},
{
"label": "摘要",
"pages": [
"叙事结构"
],
"description": "叙事结构 数据字段(摘要,出现 6 条)",
"keys": [
"摘要"
],
"custom": false
},
{
"label": "核心逻辑",
"pages": [
"叙事结构",
"竞争叙事"
],
"description": "叙事结构 数据字段(核心逻辑,出现 14 条)",
"keys": [
"核心逻辑"
],
"custom": false
},
{
"label": "关键词",
"pages": [
"叙事结构",
"法律政策",
"冲绳与西南诸岛",
"经济与民生",
"平台传播",
"总览仪表盘"
],
"description": "叙事结构 数据字段(关键词,出现 110 条)",
"keys": [
"关键词"
],
"custom": false
},
{
"label": "主要受众",
"pages": [
"叙事结构"
],
"description": "叙事结构 数据字段(主要受众,出现 6 条)",
"keys": [
"主要受众"
],
"custom": false
},
{
"label": "竞争叙事",
"pages": [
"叙事结构",
"经济与民生"
],
"description": "叙事结构 数据字段(竞争叙事,出现 16 条)",
"keys": [
"竞争叙事"
],
"custom": false
},
{
"label": "详细分析",
"pages": [
"叙事结构",
"法律政策",
"冲绳与西南诸岛",
"行为体数据库",
"经济与民生",
"公众心理",
"竞争叙事",
"平台传播"
],
"description": "叙事结构 数据字段(详细分析,出现 69 条)",
"keys": [
"详细分析"
],
"custom": false
},
{
"label": "年份",
"pages": [
"法律政策"
],
"description": "法律政策 数据字段(年份,出现 8 条)",
"keys": [
"年份"
],
"custom": false
},
{
"label": "叙事作用",
"pages": [
"法律政策",
"冲绳与西南诸岛",
"行为体数据库"
],
"description": "法律政策 数据字段(叙事作用,出现 28 条)",
"keys": [
"叙事作用"
],
"custom": false
},
{
"label": "争点",
"pages": [
"法律政策"
],
"description": "法律政策 数据字段(争点,出现 8 条)",
"keys": [
"争点"
],
"custom": false
},
{
"label": "主要问题",
"pages": [
"冲绳与西南诸岛"
],
"description": "冲绳与西南诸岛 数据字段(主要问题,出现 8 条)",
"keys": [
"主要问题"
],
"custom": false
},
{
"label": "立场",
"pages": [
"行为体数据库"
],
"description": "行为体数据库 数据字段(立场,出现 12 条)",
"keys": [
"立场"
],
"custom": false
},
{
"label": "核心议题",
"pages": [
"行为体数据库"
],
"description": "行为体数据库 数据字段(核心议题,出现 12 条)",
"keys": [
"核心议题"
],
"custom": false
},
{
"label": "脆弱点",
"pages": [
"行为体数据库"
],
"description": "行为体数据库 数据字段(脆弱点,出现 12 条)",
"keys": [
"脆弱点"
],
"custom": false
},
{
"label": "关联群体",
"pages": [
"经济与民生"
],
"description": "经济与民生 数据字段(关联群体,出现 10 条)",
"keys": [
"关联群体"
],
"custom": false
},
{
"label": "叙事用途",
"pages": [
"经济与民生"
],
"description": "经济与民生 数据字段(叙事用途,出现 10 条)",
"keys": [
"叙事用途"
],
"custom": false
},
{
"label": "核心关切",
"pages": [
"公众心理"
],
"description": "公众心理 数据字段(核心关切,出现 8 条)",
"keys": [
"核心关切"
],
"custom": false
},
{
"label": "典型表达",
"pages": [
"公众心理"
],
"description": "公众心理 数据字段(典型表达,出现 8 条)",
"keys": [
"典型表达"
],
"custom": false
},
{
"label": "叙事接受度",
"pages": [
"公众心理"
],
"description": "公众心理 数据字段(叙事接受度,出现 8 条)",
"keys": [
"叙事接受度"
],
"custom": false
},
{
"label": "主要主体",
"pages": [
"竞争叙事"
],
"description": "竞争叙事 数据字段(主要主体,出现 8 条)",
"keys": [
"主要主体"
],
"custom": false
},
{
"label": "攻击主叙事",
"pages": [
"竞争叙事"
],
"description": "竞争叙事 数据字段(攻击主叙事,出现 8 条)",
"keys": [
"攻击主叙事"
],
"custom": false
},
{
"label": "自身弱点",
"pages": [
"竞争叙事"
],
"description": "竞争叙事 数据字段(自身弱点,出现 8 条)",
"keys": [
"自身弱点"
],
"custom": false
},
{
"label": "传播特征",
"pages": [
"平台传播"
],
"description": "平台传播 数据字段(传播特征,出现 9 条)",
"keys": [
"传播特征"
],
"custom": false
},
{
"label": "重点叙事",
"pages": [
"平台传播"
],
"description": "平台传播 数据字段(重点叙事,出现 9 条)",
"keys": [
"重点叙事"
],
"custom": false
},
{
"label": "监测建议",
"pages": [
"平台传播"
],
"description": "平台传播 数据字段(监测建议,出现 9 条)",
"keys": [
"监测建议"
],
"custom": false
},
{
"label": "分数",
"pages": [
"风险预警"
],
"description": "风险预警 数据字段(分数,出现 8 条)",
"keys": [
"分数"
],
"custom": false
},
{
"label": "等级",
"pages": [
"风险预警"
],
"description": "风险预警 数据字段(等级,出现 4 条)",
"keys": [
"等级"
],
"custom": false
},
{
"label": "分数范围",
"pages": [
"风险预警"
],
"description": "风险预警 数据字段(分数范围,出现 4 条)",
"keys": [
"分数范围"
],
"custom": false
},
{
"label": "事件",
"pages": [
"风险预警"
],
"description": "风险预警 数据字段(事件,出现 6 条)",
"keys": [
"事件"
],
"custom": false
},
{
"label": "可能影响",
"pages": [
"风险预警"
],
"description": "风险预警 数据字段(可能影响,出现 6 条)",
"keys": [
"可能影响"
],
"custom": false
},
{
"label": "来源栏目",
"pages": [
"总览仪表盘"
],
"description": "总览仪表盘 数据字段(来源栏目,出现 69 条)",
"keys": [
"来源栏目"
],
"custom": false
},
{
"label": "全文索引",
"pages": [
"总览仪表盘"
],
"description": "总览仪表盘 数据字段(全文索引,出现 69 条)",
"keys": [
"全文索引"
],
"custom": false
}
]
}
@@ -0,0 +1,52 @@
{
"系统": {
"名称": "日本涉台叙事专题数据库: “台湾有事不是日本有事”",
"说明": "基于 Skill 与16栏专题知识库整理的可查询展示页面。支持多Tab切换、全局搜索、条件筛选、中文详情弹框和风险评分展示。",
"版本": "1.1"
},
"页面": [
{
"编号": "总览",
"名称": "总览仪表盘"
},
{
"编号": "叙事",
"名称": "叙事结构"
},
{
"编号": "法律",
"名称": "法律政策"
},
{
"编号": "冲绳",
"名称": "冲绳与西南诸岛"
},
{
"编号": "行为体",
"名称": "行为体数据库"
},
{
"编号": "经济",
"名称": "经济与民生"
},
{
"编号": "公众",
"名称": "公众心理"
},
{
"编号": "竞争",
"名称": "竞争叙事"
},
{
"编号": "平台",
"名称": "平台传播"
},
{
"编号": "风险",
"名称": "风险预警"
}
],
"交互规则": {
"默认展示": "总览"
}
}
@@ -0,0 +1,185 @@
/* no.no.23 页面运行时(结构化模板)。
* 由 template_fill.compose_structured 内联进骨架的运行时注入点。
* DATA 从骨架 JSON 元素读取;MANIFEST/FIELDS 供页面隐藏/自定义模块/字段可见性。 */
const DATA=JSON.parse((document.getElementById("structured-data")||{textContent:"{}"}).textContent);
const MANIFEST=JSON.parse((document.getElementById("structured-manifest")||{textContent:"{}"}).textContent);
const FIELDS=(function(){try{var v=JSON.parse((document.getElementById("structured-fields")||{textContent:"[]"}).textContent);return Array.isArray(v)?v:((v&&v.fields)||[])}catch(x){return []}})();
const 数据 = DATA;
function pageHidden(key){
const pg=(MANIFEST['页面']||[]).find(p=>p['编号']===key);
return !!(pg&&pg['隐藏']===true);
}
function visibleTabs(){return (数据['页面标签']||[]).filter(t=>!pageHidden(t['编号']))}
function syncHeader(){
const sys=(MANIFEST['系统']||{});
const h1=document.querySelector('.title');
if(sys['名称']){document.title=String(sys['名称']);if(h1)h1.textContent=String(sys['名称'])}
const sub=document.querySelector('.subtitle');
if(sub&&sys['说明'])sub.textContent=String(sys['说明']);
}
function renderCustomModules(pageId){
const host=document.getElementById('section-'+pageId);
if(!host)return;
host.querySelectorAll('.custom-module').forEach(x=>x.remove());
const list=((MANIFEST||{})['自定义模块']||[]).filter(m=>m&&m['页面']===pageId&&m.html);
list.forEach(m=>{
const sec=document.createElement('section');sec.className='custom-module';sec.style.margin='18px 0';
sec.innerHTML='<h2 style="margin:0 0 10px;font-size:18px">'+esc(m['标题']||'自定义模块')+'</h2>'+m.html;
host.appendChild(sec);
});
}
function applyPageVisibility(){
tabs=数据['页面标签']||[];
const list=visibleTabs();
if(!activeTab||pageHidden(activeTab)||!list.some(t=>t['编号']===activeTab)){
if(list[0])activeTab=list[0]['编号'];
}
document.querySelectorAll('.section').forEach(s=>{
const id=s.id.slice('section-'.length);
const hidden=pageHidden(id);
s.hidden=hidden;
s.style.display=hidden?'none':'';
s.classList.toggle('active', id===activeTab && !hidden);
});
}
let tabs = 数据['页面标签'];
let activeTab = '总览';
const tabToData = {'叙事':'叙事结构','法律':'法律政策','冲绳':'冲绳与西南诸岛','行为体':'行为体数据库','经济':'经济与民生','公众':'公众心理','竞争':'竞争叙事','平台':'平台传播'};
function esc(s){return String(s??'').replace(/[&<>'"]/g, m=>({'&':'&amp;','<':'&lt;','>':'&gt;',"'":'&#39;','"':'&quot;'}[m]));}
function arr(v){return Array.isArray(v)?v:(v?[v]:[]);}
function riskClass(r){r=String(r||''); if(r.includes('高'))return 'risk-high'; if(r.includes('中'))return 'risk-mid'; return 'risk-low';}
function hasText(item, q){ if(!q)return true; return JSON.stringify(item).toLowerCase().includes(q.toLowerCase()); }
function matchFilter(item,id,val){ if(!val)return true; const field={typeFilter:'类型',regionFilter:'地区',platformFilter:'平台',riskFilter:'风险等级'}[id]; return String(item[field]||'').includes(val); }
function filtered(list){
const q=document.getElementById('search').value.trim();
const filters=['typeFilter','regionFilter','platformFilter','riskFilter'];
return list.filter(x=>hasText(x,q)&&filters.every(id=>matchFilter(x,id,document.getElementById(id).value)));
}
function uniq(values){return [...new Set(values.filter(Boolean).flatMap(v=>String(v).split(/[\/、,,]/).map(s=>s.trim()).filter(Boolean)))].sort();}
function fillFilters(){
const all = [].concat(...Object.values(tabToData).map(k=>数据[k]||[]));
const maps = {typeFilter:'类型', regionFilter:'地区', platformFilter:'平台', riskFilter:'风险等级'};
Object.entries(maps).forEach(([id,key])=>{
const sel=document.getElementById(id); const current=sel.value; const label=sel.options[0].textContent;
sel.innerHTML='<option value="">'+label+'</option>'+uniq(all.map(x=>x[key])).map(v=>`<option value="${esc(v)}">${esc(v)}</option>`).join('');
sel.value=current;
});
}
function renderTabs(){
const nav=document.getElementById('tabs');
nav.innerHTML=visibleTabs().map(t=>`<button class="tab-btn ${t['编号']==activeTab?'active':''}" onclick="switchTab('${t['编号']}')">${esc(t['名称'])}</button>`).join('');
}
function switchTab(id){
if(pageHidden(id))return;
activeTab=id; renderActive();
}
function card(item, idx){
const name=item['名称']||item['核心叙事']||item['编号'];
const jp=item['日文名称']||item['日文表达']||'';
const summary=item['摘要']||item['立场']||item['核心逻辑']||item['叙事作用']||item['说明']||'';
const badges=[];
['类型','地区','平台','风险等级'].forEach(k=>{if(item[k])badges.push(`<span class="badge ${k==='风险等级'?riskClass(item[k]):''}">${esc(item[k])}</span>`);});
arr(item['关键词']).slice(0,4).forEach(k=>badges.push(`<span class="badge">${esc(k)}</span>`));
return `<article class="card" onclick="openModal(currentList[${idx}])"><div class="card-top"><div><h3>${esc(name)}</h3>${jp?`<div class="jp">${esc(jp)}</div>`:''}</div><span class="badge ${riskClass(item['风险等级'])}">${esc(item['风险等级']||'资料')}</span></div><p class="summary">${esc(summary)}</p><div class="badges">${badges.join('')}</div></article>`;
}
let currentList=[];
function renderList(sectionId, title, desc, list){
const f=filtered(list); currentList=f;
document.getElementById(sectionId).innerHTML=`<div class="section-head"><div><h2>${esc(title)}</h2><p>${esc(desc)}</p></div><div class="count">显示 ${f.length} / ${list.length} 条</div></div>${f.length?`<div class="cards">${f.map(card).join('')}</div>`:'<div class="empty">没有匹配结果,请调整搜索或筛选条件。</div>'}`;
}
function renderOverview(){
const d=数据['总览仪表盘'], r=d['当前风险'];
document.getElementById('section-总览').innerHTML=`
<div class="section-head"><div><h2>总览仪表盘</h2><p>${esc(d['页面使用说明'])}</p></div><div class="count">${esc(r['等级'])} · ${r['分数']}/${r['满分']}</div></div>
<div class="dashboard-grid">
<div class="panel"><h3>核心叙事</h3><p><strong>${esc(d['核心叙事'])}</strong>(${esc(d['日文表达'])})</p><p>${esc(d['核心判断'])}</p><div class="metric"><div class="score-circle"><div class="score-inner"><strong>${r['分数']}</strong><span>/ ${r['满分']}</span></div></div><div><h3>${esc(r['等级'])}</h3><p>${esc(r['说明'])}</p><span class="badge risk-mid">${esc(r['趋势'])}</span></div></div></div>
<div class="panel"><h3>重点触发事件</h3><div class="timeline">${d['高频触发事件'].map((e,i)=>`<div class="event"><strong>${i+1}. ${esc(e)}</strong><span>可触发叙事升温、竞争压制或地方风险外溢。</span></div>`).join('')}</div></div>
<div class="panel"><h3>核心叙事群</h3><div class="tags-list">${d['核心叙事群'].map(x=>`<span class="tag">${esc(x)}</span>`).join('')}</div></div>
<div class="panel"><h3>重点群体与平台</h3><p>重点群体</p><div class="tags-list">${d['重点群体'].map(x=>`<span class="tag">${esc(x)}</span>`).join('')}</div><p style="margin-top:14px">核心平台</p><div class="tags-list">${d['核心平台'].map(x=>`<span class="tag">${esc(x)}</span>`).join('')}</div></div>
</div>`;
}
function renderRisk(){
const r=数据['风险预警'];
const indicators=r['一级指标'];
document.getElementById('section-风险').innerHTML=`<div class="section-head"><div><h2>风险评估与趋势预警</h2><p>将前15栏转化为可监测、可评分、可预警的动态模型。</p></div><div class="count">${r['当前评分']['等级']} · ${r['当前评分']['总分']}/${r['当前评分']['满分']}</div></div>
<div class="two-col">
<div class="panel"><h3>八项一级指标</h3><div class="risk-list">${indicators.map(x=>`<div class="risk-row"><div class="risk-row-title"><span>${esc(x['名称'])}</span><span>${x['分数']}/5</span></div><div class="bar"><span style="width:${x['分数']*20}%"></span></div><p style="font-size:13px;margin:8px 0 0">${esc(x['说明'])}</p></div>`).join('')}</div></div>
<div class="panel"><h3>预警等级</h3><div class="timeline">${r['预警等级'].map(x=>`<div class="event"><strong>${esc(x['等级'])} · ${esc(x['名称'])} · ${esc(x['分数范围'])}</strong><span>${esc(x['说明'])}</span></div>`).join('')}</div><h3 style="margin-top:18px">监测模板</h3><p><strong>日报:</strong>${r['日报模板'].join('、')}</p><p><strong>周报:</strong>${r['周报模板'].join('、')}</p></div>
<div class="panel" style="grid-column:1/-1"><h3>触发事件库</h3><div class="cards">${r['触发事件库'].map((x,i)=>`<article class="card" onclick='openModal(${JSON.stringify(x).replace(/'/g,"&#39;")})'><div class="card-top"><h3>${esc(x['类型'])}</h3><span class="badge risk-mid">触发</span></div><p class="summary">${esc(x['事件'])}</p><div class="badges"><span class="badge">${esc(x['可能影响'])}</span></div></article>`).join('')}</div></div>
</div>`;
}
function renderActive(){
if(activeTab==='总览') return renderOverview();
if(activeTab==='风险') return renderRisk();
const key=tabToData[activeTab];
const tab=tabs.find(t=>t['编号']===activeTab);
renderList('section-'+activeTab, tab['名称'], tab['说明'], 数据[key]||[]);
}
function openModal(item){
const name=item['名称']||item['类型']||'详情';
document.getElementById('modalTitle').textContent=name;
document.getElementById('modalSubtitle').textContent=[item['日文名称'], item['类型'], item['地区'], item['平台'], item['风险等级']].filter(Boolean).join(' · ');
const keys=['编号','类型','地区','平台','风险等级','立场','摘要','核心逻辑','叙事作用','竞争叙事','攻击主叙事','自身弱点','脆弱点','争点','监测建议','叙事用途','竞争叙事','关联群体','核心关切','典型表达','主要问题','关键词'];
let rows='';
keys.forEach(k=>{ if(item[k]!==undefined){ let v=Array.isArray(item[k])?item[k].join('、'):item[k]; rows+=`<div class="detail-key">${esc(k)}</div><div class="detail-val">${esc(v)}</div>`; } });
const detail=item['详细分析']||item['说明']||item['可能影响']||'';
const lists=['核心逻辑','关键词','主要受众','竞争叙事','核心议题','主要主体','攻击主叙事','传播特征','重点叙事','主要问题','关联群体','典型表达','核心关切'];
let listHtml='';
lists.forEach(k=>{ if(Array.isArray(item[k])) listHtml+=`<div class="detail-section"><h4>${esc(k)}</h4><ul class="clean">${item[k].map(v=>`<li>${esc(v)}</li>`).join('')}</ul></div>`; });
document.getElementById('modalBody').innerHTML=`<div class="detail-grid">${rows}</div>${detail?`<div class="detail-section"><h4>详细研判</h4><p>${esc(detail)}</p></div>`:''}${listHtml}<div class="detail-section"><h4>页面使用提示</h4><p>该条目可与同Tab其他条目横向比较,也可通过顶部搜索框与类型、地区、平台、风险筛选进行交叉查询。弹框已转换为中文自然语言展示,避免直接暴露原始JSON。</p></div>`;
document.getElementById('modal').classList.add('show');
}
function closeModal(){document.getElementById('modal').classList.remove('show');}
document.getElementById('modal').addEventListener('click',e=>{if(e.target.id==='modal')closeModal();});
['search','typeFilter','regionFilter','platformFilter','riskFilter'].forEach(id=>document.getElementById(id).addEventListener('input',renderActive));
(function(){
const _renderActive=renderActive;
renderActive=function(){
applyPageVisibility();
renderTabs();
_renderActive();
syncHeader();
renderCustomModules(activeTab);
};
})();
/* ── 页面 JSON 编辑器 ── */
(function(){
"use strict";
function clone(v){return JSON.parse(JSON.stringify(v))}
function draftsToData(d){var o={};Object.keys(d).forEach(function(k){if(k!=='__manifest__')o[k]=d[k]});return o}
function replaceInPlace(t,s){Object.keys(t).forEach(function(k){delete t[k]});Object.keys(s).forEach(function(k){t[k]=s[k]})}
function buildDrafts(data,manifest){var o={__manifest__:clone(manifest)};Object.keys(data).forEach(function(k){o[k]=clone(data[k])});return o}
const initialData=clone(DATA),initialManifest=clone(MANIFEST);
const overlay=document.getElementById('editorOverlay');
if(!overlay)return;
const fingerprint=(function(){let h=2166136261;const s=JSON.stringify(initialData)+'|'+JSON.stringify(initialManifest);for(let i=0;i<s.length;i++){h^=s.charCodeAt(i);h=Math.imul(h,16777619)}return (h>>>0).toString(36)})();
const storageKey='structured-page-data-v1:'+fingerprint;
function readLS(k){try{return window.localStorage?window.localStorage.getItem(k):null}catch(x){return null}}
function writeLS(k,v){try{if(window.localStorage)window.localStorage.setItem(k,v)}catch(x){}}
function removeLS(k){try{if(window.localStorage)window.localStorage.removeItem(k)}catch(x){}}
(function(){const cached=readLS(storageKey);if(!cached)return;try{const parsed=JSON.parse(cached);if(parsed&&typeof parsed==='object'&&parsed.data&&typeof parsed.data==='object'){replaceInPlace(DATA,parsed.data);if(parsed.manifest&&typeof parsed.manifest==='object')replaceInPlace(MANIFEST,parsed.manifest)}}catch(x){}})();
const labels={};(MANIFEST['页面']||[]).forEach(p=>{if(p&&p['编号'])labels[p['编号']]=p['名称']||p['编号']});
const modules=Object.keys(DATA).concat(['__manifest__']);
let active=modules[0]||'__manifest__';
let drafts=buildDrafts(DATA,MANIFEST);
function moduleTitle(k){return k==='__manifest__'?'系统设置(MANIFEST)':(labels[k]||k)}
const tabsEl=document.getElementById('editorTabs'),editor=document.getElementById('jsonEditor'),statusEl=document.getElementById('jsonStatus'),titleEl=document.getElementById('editorModuleTitle');
function setStatus(ok,msg){statusEl.textContent=msg;statusEl.className='json-status '+(ok?'valid':'invalid')}
function readEditor(){try{const p=JSON.parse(editor.value);if(!p||typeof p!=='object')throw new Error('模块必须是 JSON 对象或数组');setStatus(true,'JSON 有效');return p}catch(x){setStatus(false,'JSON 无效:'+x.message);return null}}
function saveActiveDraft(){const p=readEditor();if(!p)return false;drafts[active]=p;return true}
function loadEditor(){titleEl.textContent=moduleTitle(active);editor.value=JSON.stringify(drafts[active],null,2);setStatus(true,'JSON 有效')}
function renderEditorTabs(){tabsEl.innerHTML='';modules.forEach(function(key){const b=document.createElement('button');b.type='button';b.className='editor-tab'+(key===active?' active':'');b.innerHTML='<b>'+esc(moduleTitle(key))+'</b><small>'+(key==='__manifest__'?'manifest.json':key)+'</small>';b.onclick=function(){if(key===active||!saveActiveDraft())return;active=key;renderEditorTabs();loadEditor()};tabsEl.appendChild(b)})}
function closeEditor(){overlay.style.display='none'}
function applyToPage(){if(!saveActiveDraft()){setStatus(false,'存在无效模块');return}replaceInPlace(DATA,draftsToData(drafts));replaceInPlace(MANIFEST,drafts.__manifest__);closeEditor();fillFilters();renderActive();writeLS(storageKey,JSON.stringify({data:DATA,manifest:MANIFEST}))}
function legacyCopy(text){const t=document.createElement('textarea');t.value=text;document.body.appendChild(t);t.select();try{document.execCommand('copy')}catch(x){}t.remove()}
document.getElementById('openEditor').onclick=function(){drafts=buildDrafts(DATA,MANIFEST);active=modules[0]||'__manifest__';renderEditorTabs();loadEditor();overlay.style.display='';setTimeout(function(){editor.focus()},40)};
document.getElementById('closeEditor').onclick=closeEditor;
document.addEventListener('keydown',function(ev){if(ev.key==='Escape'&&overlay.style.display!=='none')closeEditor()});
document.getElementById('applyJson').onclick=applyToPage;
document.getElementById('resetJson').onclick=function(){drafts=buildDrafts(initialData,initialManifest);active=modules[0]||'__manifest__';removeLS(storageKey);renderEditorTabs();loadEditor();setStatus(true,'已恢复默认数据,点击「应用到页面」生效')};
document.getElementById('copyJson').onclick=function(){if(!saveActiveDraft())return;const text=JSON.stringify({data:draftsToData(drafts),manifest:drafts.__manifest__},null,2);if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(text).catch(function(){legacyCopy(text)});else legacyCopy(text)};
document.getElementById('downloadJson').onclick=function(){if(!saveActiveDraft())return;const blob=new Blob([JSON.stringify({data:draftsToData(drafts),manifest:drafts.__manifest__},null,2)],{type:'application/json;charset=utf-8'});const link=document.createElement('a');link.href=URL.createObjectURL(blob);link.download='page-data.json';link.click();setTimeout(function(){URL.revokeObjectURL(link.href)},1000)};
})();
fillFilters();
renderActive();
@@ -0,0 +1,171 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>日本涉台叙事专题数据库</title>
<style>
:root {
--red-900:#7b1113; --red-800:#93191d; --red-700:#b1262a; --red-600:#c43a3f;
--bg:#f7f2ee; --card:#fffdfb; --text:#252525; --muted:#6b6b6b; --line:#eadbd5;
--blue:#3366cc; --orange:#e48622; --amber:#f4b63f; --green:#4d8b57; --danger:#c0392b;
--shadow:0 16px 35px rgba(65,16,16,.13);
}
*{box-sizing:border-box}
body{margin:0;font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif;background:linear-gradient(180deg,var(--red-900) 0%,var(--red-800) 430px,var(--bg) 430px,var(--bg) 100%);color:var(--text)}
.header{padding:28px 32px 34px;color:white;position:relative;overflow:hidden}
.header:after{content:"";position:absolute;right:-60px;top:-90px;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.08)}
.kicker{font-size:13px;letter-spacing:.16em;opacity:.85;margin-bottom:10px}
.title{font-size:31px;font-weight:800;margin:0 0 10px;line-height:1.25}
.subtitle{max-width:1040px;font-size:15px;line-height:1.8;opacity:.94;margin:0}
.top-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-top:18px;max-width:1240px}
.hero-card{background:linear-gradient(180deg,rgba(164,42,46,.96),rgba(139,28,31,.94));border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:22px 24px;min-height:168px;box-shadow:0 18px 36px rgba(60,8,8,.18)}
.hero-card h3{margin:0 0 10px;font-size:16px;color:#fff;font-weight:800;letter-spacing:.02em}
.hero-card p{margin:0;color:#fff;opacity:1;line-height:1.86;font-size:14px;text-shadow:0 1px 1px rgba(0,0,0,.08)}
.risk-pill{display:inline-flex;gap:8px;align-items:center;background:#fff;color:var(--red-800);padding:9px 14px;border-radius:999px;font-weight:800;margin-bottom:12px;box-shadow:0 8px 18px rgba(65,16,16,.15)}
.container{padding:0 28px 42px;max-width:1420px;margin:0 auto}
.tabs{position:sticky;top:0;z-index:20;background:rgba(247,242,238,.93);backdrop-filter:blur(10px);padding:14px 0 10px;border-bottom:1px solid var(--line);display:flex;gap:8px;overflow-x:auto}
.tab-btn{border:1px solid #e5cfc7;background:#fff;color:#5b2828;padding:10px 14px;border-radius:999px;cursor:pointer;white-space:nowrap;font-weight:700;box-shadow:0 4px 12px rgba(80,20,20,.04)}
.tab-btn.active{background:var(--red-700);color:#fff;border-color:var(--red-700)}
.toolbar{display:grid;grid-template-columns:1.4fr repeat(4, minmax(120px,.35fr));gap:10px;margin:18px 0}
.search,.select{width:100%;padding:13px 13px;border:1px solid #e1cec6;border-radius:14px;background:#fff;font-size:14px;outline:none}
.search:focus,.select:focus{border-color:var(--red-600);box-shadow:0 0 0 3px rgba(196,58,63,.12)}
.section{display:none;animation:fade .18s ease-in}
.section.active{display:block}
@keyframes fade{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:none}}
.section-head{display:flex;justify-content:space-between;gap:14px;align-items:end;margin:18px 0 14px}
.section-head h2{margin:0;font-size:23px;color:#381313}
.section-head p{margin:5px 0 0;color:var(--muted);line-height:1.6;font-size:14px}
.count{font-size:13px;color:#6a3333;background:#fff;border:1px solid #eadbd5;padding:7px 10px;border-radius:999px;white-space:nowrap}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.card{background:var(--card);border:1px solid var(--line);border-radius:19px;padding:16px;box-shadow:var(--shadow);cursor:pointer;transition:.15s transform,.15s box-shadow,.15s border-color;min-height:210px;display:flex;flex-direction:column;gap:10px}
.card:hover{transform:translateY(-3px);box-shadow:0 20px 44px rgba(65,16,16,.2);border-color:#d1aca2}
.card-top{display:flex;justify-content:space-between;gap:12px;align-items:start}
.card h3{margin:0;font-size:18px;color:#331313;line-height:1.35}
.jp{font-size:12px;color:#7d5959;margin-top:4px;line-height:1.45}
.summary{font-size:13.5px;color:#484040;line-height:1.65;margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}
.badge{font-size:12px;padding:5px 8px;border-radius:999px;background:#f6e9e4;color:#713434;border:1px solid #ead3cc}
.badge.risk-high{background:#ffe7e3;color:#a7271b;border-color:#ffc8be}
.badge.risk-mid{background:#fff3d7;color:#8a5500;border-color:#f4d18b}
.badge.risk-low{background:#eaf3ff;color:#2854a0;border-color:#c6dcff}
.dashboard-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:16px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}
.panel h3{margin:0 0 12px;font-size:18px;color:#331313}
.panel p{line-height:1.75;color:#484040;margin:0 0 12px}
.metric{display:flex;align-items:center;gap:14px;margin:12px 0}
.score-circle{width:120px;height:120px;border-radius:50%;background:conic-gradient(var(--red-700) 0 67.5%,#f1ddd7 67.5% 100%);display:grid;place-items:center;flex:0 0 auto}
.score-inner{width:86px;height:86px;background:#fff;border-radius:50%;display:grid;place-items:center;text-align:center;box-shadow:inset 0 0 0 1px #edd9d3}
.score-inner strong{font-size:28px;color:var(--red-800)}
.score-inner span{font-size:12px;color:#806060}
.tags-list{display:flex;flex-wrap:wrap;gap:8px}
.tag{border-radius:999px;background:#f7ece8;border:1px solid #ead0c7;color:#633131;padding:7px 10px;font-size:13px}
.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.risk-list{display:grid;gap:10px}
.risk-row{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}
.risk-row-title{display:flex;justify-content:space-between;margin-bottom:8px;font-weight:800;color:#3b1717}
.bar{height:9px;background:#f1ddd7;border-radius:999px;overflow:hidden}
.bar span{display:block;height:100%;background:linear-gradient(90deg,var(--red-600),var(--orange));border-radius:999px}
.timeline{display:grid;gap:10px}
.event{border-left:4px solid var(--red-600);padding:10px 12px;background:#fff;border-radius:0 13px 13px 0;border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.event strong{display:block;margin-bottom:5px;color:#3a1515}
.event span{font-size:13px;color:#595050;line-height:1.6}
.empty{background:#fff;border:1px dashed #d7b8b0;border-radius:16px;padding:26px;text-align:center;color:#7a5555}
.modal{position:fixed;inset:0;background:rgba(32,11,11,.56);display:none;z-index:100;align-items:center;justify-content:center;padding:24px}
.modal.show{display:flex}
.modal-card{width:min(980px,96vw);max-height:88vh;overflow:auto;background:#fff;border-radius:24px;box-shadow:0 32px 90px rgba(0,0,0,.35);border:1px solid #f3ddd6}
.modal-head{position:sticky;top:0;background:linear-gradient(135deg,#fff,#fff8f5);border-bottom:1px solid #efd8d1;padding:18px 22px;display:flex;justify-content:space-between;gap:12px;z-index:2}
.modal-title h2{margin:0;color:#351212;font-size:22px}
.modal-title p{margin:5px 0 0;color:#7a5858;font-size:13px}
.close{border:none;background:var(--red-700);color:#fff;border-radius:50%;width:36px;height:36px;cursor:pointer;font-size:21px;line-height:1}
.modal-body{padding:20px 22px 24px}
.detail-grid{display:grid;grid-template-columns:180px 1fr;gap:8px 14px;margin:10px 0 18px}
.detail-key{font-weight:800;color:#5c2626;background:#fbf2ee;border:1px solid #efd8d1;border-radius:10px;padding:8px}
.detail-val{color:#383838;line-height:1.65;border-bottom:1px solid #f0e2dd;padding:8px 0}
.detail-section{margin:18px 0;padding:14px;border-radius:16px;background:#fff8f5;border:1px solid #efd8d1}
.detail-section h4{margin:0 0 8px;color:#411818}
.detail-section p,.detail-section li{line-height:1.75;color:#3d3838;font-size:14px}
ul.clean{margin:8px 0 0 18px;padding:0}
.footer{text-align:center;color:#6d5555;font-size:12px;margin-top:26px;line-height:1.6}
.downloads{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.dl{display:inline-block;text-decoration:none;background:#fff;color:#7b1113;border:1px solid rgba(255,255,255,.55);padding:8px 12px;border-radius:999px;font-weight:800;font-size:13px}
@media (max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{grid-template-columns:1fr 1fr}.dashboard-grid,.top-grid,.two-col{grid-template-columns:1fr}}
@media (max-width:680px){.header{padding:22px 18px}.container{padding:0 14px 30px}.title{font-size:24px}.cards{grid-template-columns:1fr}.toolbar{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}}
/* ── 页面 JSON 编辑器 ── */
.editor-fab{position:fixed;right:18px;bottom:26px;z-index:60;background:#7c1d24;color:#fff;border:0;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.3)}.editor-fab:hover{transform:rotate(30deg)}.editor-fab svg{width:22px;height:22px;display:block}
.editor-overlay{z-index:80}
.editor-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1080px,94vw);height:min(680px,88vh);background:#fff;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.editor-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #e5e7eb}.editor-head h2{margin:0;font-size:16px;flex:1}.editor-head .editor-note{font-size:12px;color:#667085;margin-right:8px}
.editor-body{display:flex;flex:1;min-height:0}
.editor-tabs{width:210px;border-right:1px solid #e5e7eb;overflow:auto;padding:10px 8px;display:flex;flex-direction:column;gap:4px}
.editor-tab{border:0;background:transparent;text-align:left;padding:9px 11px;border-radius:8px;cursor:pointer;color:#667085}.editor-tab b{display:block;font-size:13px;color:#1e2329}.editor-tab small{font-size:10px;opacity:.75}.editor-tab:hover{background:#f4f6f8}.editor-tab.active{background:#f7ecec}.editor-tab.active b{color:#7c1d24}
.editor-pane{flex:1;display:flex;flex-direction:column;min-width:0;padding:14px 16px;gap:10px}
.editor-title-row{display:flex;align-items:center;justify-content:space-between}.editor-title-row b{font-size:14px}
.json-status{font-size:12px;padding:3px 10px;border-radius:999px}.json-status.valid{background:#e8f5ef;color:#14804a}.json-status.invalid{background:#fdecec;color:#b4232d}
.json-editor{flex:1;width:100%;resize:none;border:1px solid #e5e7eb;border-radius:10px;padding:13px;font:13px/1.6 ui-monospace,Consolas,monospace;color:#1e2329;background:#f8fafc;outline:0;tab-size:2}
.editor-actions{display:flex;gap:8px;flex-wrap:wrap}
.editor-hint{margin:0;font-size:11px;color:#8a94a3}
</style>
</head>
<body>
<header class="header">
<div class="kicker">JAPAN · TAIWAN NARRATIVE MONITORING</div>
<h1 class="title">日本涉台叙事专题数据库: “台湾有事不是日本有事”</h1>
<p class="subtitle">基于 Skill 与16栏专题知识库整理的可查询展示页面。支持多Tab切换、全局搜索、条件筛选、中文详情弹框和风险评分展示。</p>
<div class="downloads">
<a class="dl" href="japan_taiwan_narrative_database_cn.json" download>下载JSON数据库</a>
</div>
<div class="top-grid">
<div class="hero-card"><h3>核心用途</h3><p>用于长期监测日本社会中“台湾有事不是日本有事”及其竞争叙事的传播、受众、平台、政策触发、地方风险和趋势变化。</p></div>
<div class="hero-card"><span class="risk-pill">当前:中高观察 · 27/40</span><p>主叙事在冲绳、反战护宪、生活成本和中间选民领域存在扩散空间,但受到威慑和同盟叙事持续压制。</p></div>
</div>
</header>
<main class="container">
<nav id="tabs" class="tabs"></nav>
<div class="toolbar">
<input id="search" class="search" placeholder="搜索叙事、人物、组织、地区、平台、关键词……" />
<select id="typeFilter" class="select"><option value="">全部类型</option></select>
<select id="regionFilter" class="select"><option value="">全部地区</option></select>
<select id="platformFilter" class="select"><option value="">全部平台</option></select>
<select id="riskFilter" class="select"><option value="">全部风险</option></select>
</div>
<section id="section-总览" class="section active"></section>
<section id="section-叙事" class="section"></section>
<section id="section-法律" class="section"></section>
<section id="section-冲绳" class="section"></section>
<section id="section-行为体" class="section"></section>
<section id="section-经济" class="section"></section>
<section id="section-公众" class="section"></section>
<section id="section-竞争" class="section"></section>
<section id="section-平台" class="section"></section>
<section id="section-风险" class="section"></section>
<div class="footer">数据字段以中文为主;详情弹框使用自然语言展示,不直接暴露原始JSON。页面可本地离线打开。</div>
</main>
<div id="modal" class="modal" role="dialog" aria-modal="true">
<div class="modal-card">
<div class="modal-head">
<div class="modal-title"><h2 id="modalTitle"></h2><p id="modalSubtitle"></p></div>
<button class="close" onclick="closeModal()">×</button>
</div>
<div id="modalBody" class="modal-body"></div>
</div>
</div>
<button type="button" id="openEditor" class="editor-fab" aria-label="JSON 编辑器" title="页面 JSON 编辑器"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg></button>
<div id="editorOverlay" class="editor-overlay" style="display:none"><div class="editor-modal">
<header class="editor-head"><h2>页面 JSON 编辑器</h2><span class="editor-note">按模块编辑,应用后即时重渲染;修改保存在浏览器本地,不回写服务器</span><button type="button" id="closeEditor" style="border:0;background:none;font-size:14px;cursor:pointer">关闭</button></header>
<div class="editor-body">
<nav id="editorTabs" class="editor-tabs"></nav>
<div class="editor-pane">
<div class="editor-title-row"><b id="editorModuleTitle"></b><span id="jsonStatus" class="json-status valid">JSON 有效</span></div>
<textarea id="jsonEditor" class="json-editor" spellcheck="false" aria-label="当前模块 JSON"></textarea>
<div class="editor-actions"><button type="button" id="applyJson" style="background:#7c1d24;color:#fff;border:0;border-radius:6px;padding:7px 14px;cursor:pointer">应用到页面</button><button type="button" id="resetJson" style="border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:7px 14px;cursor:pointer">恢复默认数据</button><button type="button" id="copyJson" style="border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:7px 14px;cursor:pointer">复制完整 JSON</button><button type="button" id="downloadJson" style="border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:7px 14px;cursor:pointer">下载 JSON</button></div>
<p class="editor-hint">模块 = 页面数据(DATA)的顶层键,另附「系统设置」编辑 MANIFEST;沙箱预览无法使用本地缓存时,修改仅当次会话有效。</p>
</div>
</div>
</div></div>
<script type="application/json" id="structured-data">__PAGE_DATA__</script>
<script type="application/json" id="structured-manifest">__PAGE_MANIFEST__</script>
<script type="application/json" id="structured-fields">__PAGE_FIELDS__</script>
<script>__PAGE_RUNTIME__</script>
</body>
</html>