sync update from LAN repo (source dhk-1 @ fc974e93)

This commit is contained in:
gozeros committed 2026-11-17 11:28:44 +08:00
1 parent a1fa13a238
commit e2fea6a801
432 files changed
+68707 -2270

No files matched your search

@@ -0,0 +1 @@
{"modules": [{"title": "历史记忆与制度背景", "desc": "梳理菲律宾殖民记忆、基地制度、共同防御条约、VFA、EDCA及关键历史争议,区分历史事实与当代解释。", "insights": ["1991年基地条约争议与1992年美军撤出,是理解主权和外国军事存在争议的重要历史案例。", "MDT、VFA与EDCA的法律功能不同,应分别研究同盟义务、人员访问和约定地点使用。", "EDCA司法争议应同时阅读多数意见和异议意见。"], "sheets": [{"name": "历史制度时间线", "headers": ["ID", "日期/时期", "事件/制度节点", "可核验事实摘要", "与叙事的关联", "资料类型", "来源标题", "来源URL", "限制/待办"], "rows": [["H01", "1898—1946", "美国统治与菲律宾独立", "菲律宾经历美国统治并于1946年独立;可作为殖民记忆背景,不能据此推断当代公众对美立场。", "历史记忆/反殖民话语", "历史背景", "", "", "待补官方独立文件"], ["H02", "1947-03-14", "美菲军事基地协定", "美国国务院历史背景资料记载,1947年协定使美国在菲律宾维持Clark、Subic等主要设施。", "基地权限/外国军事存在", "官方历史背景", "Background Notes: Philippines, August 1999", "https://1997-2001.state.gov/background_notes/philippines_0899_bgn.html", "需补协定原文及修订文本"], ["H03", "1951-08-30;1952-08-27生效", "共同防御条约(MDT)", "联合国条约数据库记载,条约于1951年签署、1952年生效。", "同盟义务/威慑/风险分担", "条约登记", "Mutual Defense Treaty—UN Treaty Series", "https://treaties.un.org/Pages/showDetails.aspx?objid=080000028014df2a", "条约义务不等于自动参战"], ["H04", "1958", "美国对菲律宾政策声明", "美国国务院历史档案讨论菲律宾的战略价值、商业利益和菲律宾民族主义/独立外交诉求。", "美国战略认知/自主诉求", "历史政策档案", "", "", "待补稳定原文URL"], ["H05", "1991-09-16", "菲律宾参议院拒绝基地条约", "美国国务院历史资料记载,参议院拒绝基地条约,随后美军撤离。", "主权/反基地争议", "官方历史背景", "Background Notes: Philippines, August 1999", "https://1997-2001.state.gov/background_notes/philippines_0899_bgn.html", "需补辩论、表决和社会运动材料"], ["H06", "1992-11-24", "美军撤出主要基地", "美国国务院历史资料记载,最后一批美军于1992年11月离开;部分基地资产转交菲律宾并转为民用。", "基地撤出/经济转换", "官方历史背景", "Background Notes: Philippines, August 1999", "https://1997-2001.state.gov/background_notes/philippines_0899_bgn.html", "经济效应需菲律宾数据核验"], ["H07", "1998-02-10签署;1999-06-01生效", "访问部队协定(VFA)", "VFA为获菲律宾政府批准活动而临时赴菲的美国人员规定相关待遇和法律框架。", "人员访问/司法管辖", "协定原文", "Visiting Forces Agreement—LawPhil", "https://lawphil.net/international/treaties/vfa_1998.html", "需结合实施实践和司法案例"], ["H08", "2014-04-28签署;2014-06-25生效", "加强防务合作协议(EDCA)", "美国国务院条约页面记载EDCA于2014年签署并于同年生效。", "轮换部署/约定地点", "政府条约页面", "Philippines—Agreement on Defense Cooperation", "https://2021-2025.state.gov/14-625/", "页面可能访问受限,需补菲律宾官方文本"], ["H09", "2016-01-12", "菲律宾最高法院审理EDCA合宪性", "Saguisag案审查EDCA合宪性,判决页包含多数意见及法官单独/异议意见。", "主权/宪法程序", "司法判决", "G.R. No. 212426—LawPhil", "https://lawphil.net/judjuris/juri2016/jan2016/gr_212426_2016.html", "应分别编码多数和异议意见"], ["H10", "2016-07-12", "南海仲裁裁决", "仲裁庭作出裁决,涉及《联合国海洋法公约》下的海洋权利等法律问题。", "海洋权益/国际法背景", "国际仲裁资料", "PCA South China Sea Arbitration", "https://pca-cpa.org/en/cases/7/", "不应与美菲同盟法律依据混同"], ["H11", "2020—2021", "VFA终止通知及撤回", "菲律宾曾通知终止VFA,随后暂停终止程序,并于2021年撤回终止通知。", "战略自主/同盟依赖", "国会研究", "The Philippines: Background and U.S. Relations—CRS", "https://www.everycrsreport.com/reports/R47055.html", "需补双方各次通知原文"], ["H12", "2023-02-01", "宣布新增四个EDCA地点", "美菲宣布计划新增四个地点,官方声明强调训练、互操作性及人道主义救灾用途。", "军事部署/地区战略", "美国国防部公告", "Philippines, U.S. Announce Four New EDCA Sites", "https://www.defense.gov/News/Releases/Release/Article/3285566/philippines-us-announce-four-new-edca-sites/", "官方目标需与独立效果数据区分"], ["H13", "2023-04-03", "公布新增EDCA地点", "地点包括Naval Base Camilo OsiasLine truncated
@@ -0,0 +1,165 @@
{
"说明": "字段显示目录:值级隐藏(隐藏即 data.json 各条目该键清空,全部渲染路径生效)。",
"fields": [
{
"label": "title",
"pages": [
"历史记忆与制度背景",
"叙事命题",
"菲律宾受众研究",
"竞争叙事研究",
"传播与平台机制",
"影响活动与信息真实性",
"传播效果与政策评估",
"菲律宾国家利益分析",
"叙事拆解与编码",
"舆情检测与分析流程"
],
"description": "历史记忆与制度背景 数据字段(title,出现 10 条)",
"keys": [
"title"
],
"custom": false
},
{
"label": "desc",
"pages": [
"历史记忆与制度背景",
"叙事命题",
"菲律宾受众研究",
"竞争叙事研究",
"传播与平台机制",
"影响活动与信息真实性",
"传播效果与政策评估",
"菲律宾国家利益分析",
"叙事拆解与编码",
"舆情检测与分析流程"
],
"description": "历史记忆与制度背景 数据字段(desc,出现 10 条)",
"keys": [
"desc"
],
"custom": false
},
{
"label": "insights",
"pages": [
"历史记忆与制度背景",
"叙事命题",
"菲律宾受众研究",
"竞争叙事研究",
"传播与平台机制",
"影响活动与信息真实性",
"传播效果与政策评估",
"菲律宾国家利益分析",
"叙事拆解与编码",
"舆情检测与分析流程"
],
"description": "历史记忆与制度背景 数据字段(insights,出现 10 条)",
"keys": [
"insights"
],
"custom": false
},
{
"label": "sheets",
"pages": [
"历史记忆与制度背景",
"叙事命题",
"菲律宾受众研究",
"竞争叙事研究",
"传播与平台机制",
"影响活动与信息真实性",
"传播效果与政策评估",
"菲律宾国家利益分析",
"叙事拆解与编码",
"舆情检测与分析流程"
],
"description": "历史记忆与制度背景 数据字段(sheets,出现 10 条)",
"keys": [
"sheets"
],
"custom": false
},
{
"label": "count",
"pages": [
"历史记忆与制度背景",
"叙事命题",
"菲律宾受众研究",
"竞争叙事研究",
"传播与平台机制",
"影响活动与信息真实性",
"传播效果与政策评估",
"菲律宾国家利益分析",
"叙事拆解与编码",
"舆情检测与分析流程"
],
"description": "历史记忆与制度背景 数据字段(count,出现 10 条)",
"keys": [
"count"
],
"custom": false
},
{
"label": "name",
"pages": [
"历史记忆与制度背景",
"叙事命题",
"菲律宾受众研究",
"竞争叙事研究",
"传播与平台机制",
"影响活动与信息真实性",
"传播效果与政策评估",
"菲律宾国家利益分析",
"叙事拆解与编码",
"舆情检测与分析流程"
],
"description": "历史记忆与制度背景 数据字段(name,出现 36 条)",
"keys": [
"name"
],
"custom": false
},
{
"label": "headers",
"pages": [
"历史记忆与制度背景",
"叙事命题",
"菲律宾受众研究",
"竞争叙事研究",
"传播与平台机制",
"影响活动与信息真实性",
"传播效果与政策评估",
"菲律宾国家利益分析",
"叙事拆解与编码",
"舆情检测与分析流程"
],
"description": "历史记忆与制度背景 数据字段(headers,出现 36 条)",
"keys": [
"headers"
],
"custom": false
},
{
"label": "rows",
"pages": [
"历史记忆与制度背景",
"叙事命题",
"菲律宾受众研究",
"竞争叙事研究",
"传播与平台机制",
"影响活动与信息真实性",
"传播效果与政策评估",
"菲律宾国家利益分析",
"叙事拆解与编码",
"舆情检测与分析流程"
],
"description": "历史记忆与制度背景 数据字段(rows,出现 36 条)",
"keys": [
"rows"
],
"custom": false
}
]
}
@@ -0,0 +1,56 @@
{
"系统": {
"名称": "菲律宾不做美国棋子叙事研究",
"说明": "围绕菲美同盟、南海安全、战略自主与经济利益,梳理历史制度、受众认知、竞争叙事、平台传播和舆情变化。研究以公开资料为基础,区分可核验事实、政策解释与尚待证实的战略意图判断。",
"版本": "1.0"
},
"页面": [
{
"编号": "overview",
"名称": "专题总览"
},
{
"编号": "m1",
"名称": "历史记忆与制度背景"
},
{
"编号": "m2",
"名称": "叙事命题"
},
{
"编号": "m3",
"名称": "菲律宾受众研究"
},
{
"编号": "m4",
"名称": "竞争叙事研究"
},
{
"编号": "m5",
"名称": "传播与平台机制"
},
{
"编号": "m6",
"名称": "影响活动与信息真实性"
},
{
"编号": "m7",
"名称": "传播效果与政策评估"
},
{
"编号": "m8",
"名称": "菲律宾国家利益分析"
},
{
"编号": "m9",
"名称": "叙事拆解与编码"
},
{
"编号": "m10",
"名称": "舆情检测与分析流程"
}
],
"交互规则": {
"默认展示": "overview"
}
}
@@ -0,0 +1,443 @@
/* no.27 页面运行时(结构化模板)。
* 由 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 []}})();
function pageHidden(key){
const pg=(MANIFEST['页面']||[]).find(p=>p['编号']===key);
return !!(pg&&pg['隐藏']===true);
}
function visibleTabs(){return [...document.querySelectorAll('.tab')].filter(t=>!pageHidden(t.dataset.tab))}
function syncHeader(){
const sys=(MANIFEST['系统']||{});
if(sys['名称']){document.title=String(sys['名称']);const h1=document.querySelector('.hero h1');if(h1)h1.textContent=String(sys['名称'])}
const sub=document.querySelector('.hero p');if(sub&&sys['说明'])sub.textContent=String(sys['说明']);
}
function renderCustomModules(pageId){
const host=document.getElementById('panel-'+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(){
document.querySelectorAll('.tab').forEach(b=>{
const hide=pageHidden(b.dataset.tab);
b.hidden=hide; b.style.display=hide?'none':'';
if(hide)b.classList.remove('active');
});
const active=document.querySelector('.tab.active');
if(!active||pageHidden(active.dataset.tab)){
const first=visibleTabs()[0];
if(first){
document.querySelectorAll('.tab').forEach(b=>b.classList.toggle('active',b===first));
document.querySelectorAll('.panel').forEach(p=>p.classList.toggle('active',p.id==='panel-'+first.dataset.tab));
}
}
}
function esc(v){return String(v==null?'':v).replace(/[&<>"]/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;'}[c]));}
function cellHtml(v){const s=String(v==null?'':v);if(/^https?:\/\/\S+$/.test(s.trim()))return '<a href="'+esc(s.trim())+'" target="_blank" rel="noopener noreferrer">打开来源 ↗</a><div class="small">'+esc(s.trim())+'</div>';const re=/(https?:\/\/[^\s;;,,]+)/g;return esc(s).replace(re,u=>'<a href="'+esc(u.replace(/[).。]+$/,''))+'" target="_blank" rel="noopener noreferrer">'+esc(u.replace(/[).。]+$/,''))+' ↗</a>');}
function renderSheet(s,moduleId,index){
const rows=s.rows||[]; const open=index===0?' open':''; let body='';
if(moduleId==='m1'&&s.name==='历史制度时间线') body=renderTimelineRecords(s);
else if(moduleId==='m3'&&s.name==='受众研究框架') body=renderAudienceRecords(s);
else if(moduleId==='m2'&&s.name==='叙事命题') body=renderClaimRecords(s);
else if(moduleId==='m4'&&s.name==='竞争叙事矩阵') body=renderCompetingNarratives(s);
else if(moduleId==='m5'&&s.name==='平台与新闻使用数据') body=renderPlatformDashboard(s);
else if(moduleId==='m5'&&s.name==='平台机制矩阵') body=renderPlatformMechanisms(s);
else if(moduleId==='m5'&&s.name==='社交平台与公共讨论样本') body=renderSocialSamples(s);
else if(moduleId==='m6'&&(/影响活动案例|信息行动案例/.test(s.name))) body=renderIncidentDossiers(s);
else if(moduleId==='m6'&&s.name==='真实性检测指标') body=renderAuditDimensions(s);
else if(moduleId==='m7'&&s.name==='政策效果评估框架') body=renderEvaluationChain(s);
else if(moduleId==='m7'&&s.name==='评估案例与基线') body=renderEvaluationCases(s);
else if(moduleId==='m7'&&s.name==='指标与因果识别') body=renderMethodCards(s);
else if(moduleId==='m8'&&s.name==='国家利益维度矩阵') body=renderNationalInterest(s);
else if(moduleId==='m8'&&s.name==='基线数据') body=renderBaselineMetrics(s);
else if(moduleId==='m9'&&s.name==='叙事拆解总表') body=renderDecompositionSteps(s);
else if(moduleId==='m9'&&s.name==='叙事编码手册') body=renderCodebookCards(s);
else if(moduleId==='m9'&&s.name==='案例逐项拆解') body=renderNarrativeCases(s);
else if(moduleId==='m10'&&s.name==='真实舆情收集数据') body=renderSentimentCollectionData(s);
else if(moduleId==='m10'&&s.name==='舆情检测指标') body=renderMonitoringMetrics(s);
else if(moduleId==='m10'&&s.name==='情感立场标签') body=renderTaxonomy(s);
else if(moduleId==='m10'&&s.name==='采集与分析流程') body=renderWorkflowSteps(s);
else body=renderGenericRecords(s,moduleId);
return '<details class="dataset"'+open+'><summary><span>'+esc(s.name)+'</span><span class="dataset-count">'+rows.length+' 条记录 · '+s.headers.length+' 个字段</span></summary>'+body+'</details>';
}
function sourceLinks(text){
const s=String(text==null?'':text);
const re=/(https?:\/\/[^\s;;,,]+)/g;
return esc(s).replace(re,u=>{
const clean=u.replace(/[).。]+$/,'');
return '<a href="'+esc(clean)+'" target="_blank" rel="noopener noreferrer">'+esc(clean)+' ↗</a>';
});
}
function getTitleIndex(s){
const h=s.headers||[];
if(/^(id|编号|序号)$/i.test((h[0]||'').trim()))return Math.min(1,h.length-1);
if(h[0]==='步骤' && h[1])return 1;
if(h[0]==='标签层' && h[1])return 1;
if(h[0]==='维度' && h[1]==='指标')return 1;
if(h[0]==='字段')return 0;
if(h[0]==='受众/观察层')return 0;
if(h[0]==='指标/平台')return 0;
if(h[0]==='平台/载体')return 0;
if(h[0]==='文件/材料')return 0;
if(h[0]==='评估层次')return 0;
if(h[0]==='维度')return 0;
if(h[0]==='叙事要素')return 1;
if(h[0]==='调查/研究')return 0;
if(h[0]==='项目/资金类别')return 0;
if(h[0]==='受众/观察层')return 0;
return 0;
}
function findCol(s,patterns){
return (s.headers||[]).findIndex(h=>patterns.some(p=>p.test(String(h||''))));
}
function renderTimelineRecords(s){
const rows=s.rows||[];
let out='<div class="timeline-records">';
rows.forEach((r,i)=>{
const date=r[1]||'', title=r[2]||'历史节点', summary=r[3]||'', relation=r[4]||'', link=r[7]||'';
out+='<article class="timeline-record"><div class="timeline-spine"><span>'+String(i+1).padStart(2,'0')+'</span></div><div class="timeline-record-main"><div class="timeline-date">'+esc(date)+'</div><h4>'+esc(title)+'</h4><p>'+sourceLinks(summary)+'</p><div class="timeline-relation">'+esc(relation)+'</div>';
if(link)out+='<details class="record-more"><summary>原始来源与完整记录</summary><div class="record-fields">'+r.map((v,j)=>v?'<div class="field"><div class="field-label">'+esc(s.headers[j]||('字段'+(j+1)))+'</div><div class="field-value">'+sourceLinks(v)+'</div></div>':'').join('')+'</div></details>';
out+='</div></article>';
});
out+='</div>';
return out;
}
function renderAudienceRecords(s){
const rows=s.rows||[], h=s.headers||[];
const idx={name:0,question:1,metrics:2,sources:3,gaps:4,method:5,narrative:6,attitude:7};
let out='<div class="audience-grid">';
rows.forEach((r,i)=>{
let narrative=String(r[idx.narrative]||'');
narrative=narrative.replace(/^\s*(可能并存的叙事|可能出现的叙事|叙事线索)\s*[::]\s*/,'');
const items=narrative.split(/[;;]\s*/).map(x=>x.replace(/^\s*(可能并存的叙事|可能出现的叙事|叙事线索)\s*[::]\s*/,'').trim()).filter(Boolean);
const attitude=String(r[idx.attitude]||'');
out+='<article class="audience-card"><div class="audience-card-head"><span class="audience-number">'+String(i+1).padStart(2,'0')+'</span><div><h3>'+esc(r[idx.name])+'</h3><p>'+esc(r[idx.question])+'</p></div></div>';
out+='<div class="audience-narratives">'+items.map((item,j)=>'<div class="audience-narrative"><span class="narrative-bullet">'+String(j+1).padStart(2,'0')+'</span><p>'+esc(item)+'</p></div>').join('')+'</div>';
if(attitude)out+='<div class="audience-attitude"><span class="field-label">态度观察重点</span><p>'+esc(attitude)+'</p></div>';
out+='<div class="audience-tags"><span>观察指标:'+esc(r[idx.metrics]||'待定义')+'</span></div>';
out+='<details class="audience-detail"><summary>展开受众研究详情</summary><div class="record-fields">';
[idx.sources,idx.gaps,idx.method].forEach(j=>{if(r[j])out+='<div class="field"><div class="field-label">'+esc(h[j])+'</div><div class="field-value">'+sourceLinks(r[j])+'</div></div>';});
out+='</div></details></article>';
});
return out+'</div>';
}
function detailFields(s,r,skip=[]){
return '<div class="record-fields">'+r.map((v,j)=>v&&skip.indexOf(j)<0?'<div class="field"><div class="field-label">'+esc(s.headers[j]||('字段'+(j+1)))+'</div><div class="field-value">'+sourceLinks(v)+'</div></div>':'').join('')+'</div>';
}
function colIndex(s,rx,fallback=-1){
const i=(s.headers||[]).findIndex(h=>rx.test(String(h||'')));
return i>=0?i:fallback;
}
function cardDetails(s,r,skip=[]){
return '<details class="record-more"><summary>查看完整记录与来源</summary>'+detailFields(s,r,skip)+'</details>';
}
function renderClaimRecords(s){
const id=colIndex(s,/^id$/i,0), title=colIndex(s,/叙事命题/,1), typ=colIndex(s,/命题类型/,2), evidence=colIndex(s,/当前公开证据/,3);
return '<div class="claim-list">'+(s.rows||[]).map((r,i)=>'<article class="claim-card"><div class="claim-card-top"><span class="claim-id">'+esc(r[id]||('C'+String(i+1).padStart(2,'0')) )+'</span><span class="claim-type">'+esc(r[typ]||'研究命题')+'</span></div><h3>'+esc(r[title]||'待命名命题')+'</h3><p class="claim-evidence">'+sourceLinks(r[evidence]||'需结合原始材料与独立来源核验。')+'</p>'+cardDetails(s,r,[])+'</article>').join('')+'</div>';
}
function renderCompetingNarratives(s){
const title=colIndex(s,/竞争叙事框架/,1), claim=colIndex(s,/核心命题|典型表达/,2), value=colIndex(s,/主要价值诉求/,3), materials=colIndex(s,/代表性载体|公开材料/,4), relation=colIndex(s,/与.*关系/,5), check=colIndex(s,/关键事实问题|可核验点/,6), limit=colIndex(s,/反证|限制/,7);
return '<div class="narrative-matrix">'+(s.rows||[]).map((r,i)=>'<article class="narrative-frame-card"><div class="frame-card-head"><span class="frame-no">'+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[title]||'竞争叙事')+'</h3></div><p class="frame-claim">'+sourceLinks(r[claim]||'')+'</p><div class="frame-lanes"><div><b>价值诉求</b><p>'+esc(r[value]||'')+'</p></div><div><b>与核心叙事的关系</b><p>'+esc(r[relation]||'')+'</p></div></div><div class="frame-check"><b>需要核验</b><p>'+esc(r[check]||'')+'</p></div>'+cardDetails(s,r,[title,claim,value,relation,check])+'</article>').join('')+'</div>';
}
function renderPlatformDashboard(s){
const name=colIndex(s,/指标\/平台|指标\/平台|指标\/平台|指标|平台/,1), period=colIndex(s,/时间范围|时间/,2), value=colIndex(s,/数据值|数值|结果/,3), def=colIndex(s,/指标定义|定义/,4), source=colIndex(s,/来源/,5), use=colIndex(s,/研究用途|用途/,6), limit=colIndex(s,/限制|注意事项/,7);
return '<div class="platform-stat-grid">'+(s.rows||[]).map((r,i)=>'<article class="platform-stat-card"><div class="platform-stat-top"><span>'+esc(r[period]||'统计口径见详情')+'</span><span class="platform-stat-index">'+String(i+1).padStart(2,'0')+'</span></div><h3>'+esc(r[name]||'平台指标')+'</h3><div class="platform-stat-value">'+esc(r[value]||'—')+'</div><p>'+esc(r[def]||'')+'</p><div class="platform-stat-use">'+esc(r[use]||'')+'</div>'+cardDetails(s,r,[name,period,value,def,use])+'</article>').join('')+'</div>';
}
function renderPlatformMechanisms(s){
const title=colIndex(s,/平台\/载体/,0), func=colIndex(s,/主要公共功能/,1), mechanism=colIndex(s,/可观察的传播机制/,2), format=colIndex(s,/内容形式/,3), data=colIndex(s,/可采集的公开数据/,4), risk=colIndex(s,/潜在偏差|风险/,5);
return '<div class="channel-board">'+(s.rows||[]).map((r,i)=>'<article class="channel-card"><div class="channel-number">'+String(i+1).padStart(2,'0')+'</div><div class="channel-main"><h3>'+esc(r[title]||'平台')+'</h3><p class="channel-function">'+esc(r[func]||'')+'</p><div class="channel-block"><b>传播机制</b><p>'+esc(r[mechanism]||'')+'</p></div><div class="channel-block"><b>内容形式</b><p>'+esc(r[format]||'')+'</p></div><div class="channel-block"><b>可采集数据</b><p>'+esc(r[data]||'')+'</p></div><div class="channel-risk"><b>偏差与边界</b><p>'+esc(r[risk]||'')+'</p></div>'+cardDetails(s,r,[title,func,mechanism,format,data,risk])+'</div></article>').join('')+'</div>';
}
function renderSocialSamples(s){
const date=colIndex(s,/日期|时间/,1), platform=colIndex(s,/平台\/载体|平台/,2), title=colIndex(s,/样本主体\/标题|标题|案例/,3), summary=colIndex(s,/内容摘要|样本内容摘要|主要内容/,4), frame=colIndex(s,/叙事框架|议题/,5), url=colIndex(s,/URL|链接/,6), limitation=colIndex(s,/限制/,8);
return '<div class="social-feed">'+(s.rows||[]).map((r,i)=>'<article class="social-sample"><div class="social-sample-meta"><span>'+esc(r[platform]||'公开材料')+'</span><time>'+esc(r[date]||'日期待核')+'</time></div><h3>'+esc(r[title]||'公开讨论样本')+'</h3><p>'+sourceLinks(r[summary]||'')+'</p><div class="social-frame">'+esc(r[frame]||'')+'</div><div class="social-sample-foot">'+(r[url]?'<a href="'+esc(r[url])+'" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a>':'')+'<span>'+esc(r[limitation]||'')+'</span></div>'+cardDetails(s,r,[date,platform,title,summary,frame,url])+'</article>').join('')+'</div>';
}
function renderIncidentDossiers(s){
const id=colIndex(s,/^id$/i,0), date=colIndex(s,/时间|日期/,1), title=colIndex(s,/平台\/对象|报道\/事件|活动\/事件|事件/,2), summary=colIndex(s,/公开报告的活动|主要发现|内容\/行为特征|报道记录/,3), metric=colIndex(s,/报告指标|规模/,4), status=colIndex(s,/归属判断状态|证据状态/,7);
return '<div class="incident-board">'+(s.rows||[]).map((r,i)=>'<article class="incident-card"><div class="incident-marker"><span>'+String(i+1).padStart(2,'0')+'</span><small>'+esc(r[date]||'时间待核')+'</small></div><div class="incident-content"><div class="incident-title-row"><h3>'+esc(r[title]||'信息活动案例')+'</h3><span class="incident-status">'+esc(r[status]||'公开资料记录')+'</span></div><p>'+sourceLinks(r[summary]||'')+'</p>'+(r[metric]?'<div class="incident-metric"><b>公开报告指标</b><span>'+esc(r[metric])+'</span></div>':'')+cardDetails(s,r,[id,date,title,summary,metric,status])+'</div></article>').join('')+'</div>';
}
function renderAuditDimensions(s){
const dimension=colIndex(s,/维度/,0), indicator=colIndex(s,/指标\/线索|指标/,1), method=colIndex(s,/数据字段|测量方法/,2), supports=colIndex(s,/可支持的判断/,3), cannot=colIndex(s,/不能单独证明/,4), strength=colIndex(s,/证据强度/,5);
return '<div class="audit-grid">'+(s.rows||[]).map((r,i)=>'<article class="audit-card"><div class="audit-card-top"><span>'+esc(r[dimension]||'真实性审计')+'</span><small>'+esc(r[strength]||'综合判断')+'</small></div><h3>'+esc(r[indicator]||'检测指标')+'</h3><div class="audit-method"><b>观察方式</b><p>'+esc(r[method]||'')+'</p></div><div class="audit-two-col"><div><b>可以支持</b><p>'+esc(r[supports]||'')+'</p></div><div><b>不能单独证明</b><p>'+esc(r[cannot]||'')+'</p></div></div>'+cardDetails(s,r,[dimension,indicator,method,supports,cannot,strength])+'</article>').join('')+'</div>';
}
function renderEvaluationChain(s){
const stage=colIndex(s,/评估层次/,0), question=colIndex(s,/核心问题/,1), metrics=colIndex(s,/指标示例/,2), sources=colIndex(s,/可用数据源/,3), method=colIndex(s,/建议方法/,4), risk=colIndex(s,/常见误判/,5);
return '<div class="evaluation-chain">'+(s.rows||[]).map((r,i)=>'<article class="evaluation-step"><div class="evaluation-step-no">'+String(i+1).padStart(2,'0')+'</div><div class="evaluation-step-body"><div class="evaluation-step-title"><h3>'+esc(r[stage]||'评估阶段')+'</h3><p>'+esc(r[question]||'')+'</p></div><div class="evaluation-columns"><div><b>指标</b><p>'+esc(r[metrics]||'')+'</p></div><div><b>数据与方法</b><p>'+esc([r[sources],r[method]].filter(Boolean).join(';'))+'</p></div></div><div class="evaluation-caution"><b>注意</b> '+esc(r[risk]||'')+'</div>'+cardDetails(s,r,[stage,question,metrics,sources,method,risk])+'</div></article>').join('')+'</div>';
}
function renderEvaluationCases(s){
const title=colIndex(s,/政策\/事件/,1), object=colIndex(s,/评估对象/,2), info=colIndex(s,/已知公开信息/,3), baseline=colIndex(s,/可建立的基线/,4), outcome=colIndex(s,/推荐结果指标/,5), method=colIndex(s,/因果识别思路/,6), confound=colIndex(s,/混杂因素/,7);
return '<div class="evaluation-case-grid">'+(s.rows||[]).map((r,i)=>'<article class="evaluation-case"><span class="case-index">评估案例 '+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[title]||'政策评估案例')+'</h3><p class="case-object">'+esc(r[object]||'')+'</p><div class="case-fact"><b>已知资料</b><p>'+esc(r[info]||'')+'</p></div><div class="case-columns"><div><b>基线</b><p>'+esc(r[baseline]||'')+'</p></div><div><b>结果指标</b><p>'+esc(r[outcome]||'')+'</p></div></div><div class="case-method"><b>因果识别</b><p>'+esc(r[method]||'')+'</p></div><div class="case-caveat"><b>混杂因素</b><p>'+esc(r[confound]||'')+'</p></div>'+cardDetails(s,r,[title,object,info,baseline,outcome,method,confound])+'</article>').join('')+'</div>';
}
function renderMethodCards(s){
const q=colIndex(s,/研究问题/,0), metrics=colIndex(s,/推荐指标/,1), structure=colIndex(s,/数据结构/,2), method=colIndex(s,/方法建议/,3), minimum=colIndex(s,/最小证据要求/,4), risk=colIndex(s,/高风险推断/,5);
return '<div class="method-board">'+(s.rows||[]).map((r,i)=>'<article class="method-card"><div class="method-card-head"><span>'+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[q]||'研究问题')+'</h3></div><div class="method-block"><b>推荐指标</b><p>'+esc(r[metrics]||'')+'</p></div><div class="method-block"><b>方法与数据</b><p>'+esc([r[method],r[structure]].filter(Boolean).join(';'))+'</p></div><div class="method-proof"><b>最低证据要求</b><p>'+esc(r[minimum]||'')+'</p></div><div class="method-risk"><b>避免的推断</b><p>'+esc(r[risk]||'')+'</p></div>'+cardDetails(s,r,[q,metrics,structure,method,minimum,risk])+'</article>').join('')+'</div>';
}
function renderNationalInterest(s){
const title=colIndex(s,/维度/,0), question=colIndex(s,/核心问题/,1), gains=colIndex(s,/可能收益|收益\/机会/,2), risks=colIndex(s,/可能成本|成本\/风险/,3), metrics=colIndex(s,/应采集指标/,4), source=colIndex(s,/可用数据源/,5), relation=colIndex(s,/与核心叙事关系/,6);
return '<div class="interest-map">'+(s.rows||[]).map((r,i)=>'<article class="interest-card"><div class="interest-card-head"><span>'+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[title]||'国家利益维度')+'</h3></div><p class="interest-question">'+esc(r[question]||'')+'</p><div class="interest-balance"><div class="interest-gain"><b>收益与机会</b><p>'+esc(r[gains]||'')+'</p></div><div class="interest-risk"><b>成本与风险</b><p>'+esc(r[risks]||'')+'</p></div></div><div class="interest-measure"><b>如何衡量</b><p>'+esc(r[metrics]||'')+'</p></div><div class="interest-relation">'+esc(r[relation]||'')+'</div>'+cardDetails(s,r,[title,question,gains,risks,metrics,source,relation])+'</article>').join('')+'</div>';
}
function renderBaselineMetrics(s){
const title=colIndex(s,/指标/,1), period=colIndex(s,/时期|时间/,2), value=colIndex(s,/数值|金额|数据/,3), definition=colIndex(s,/口径|说明/,4), source=colIndex(s,/来源/,5), use=colIndex(s,/用途/,6);
return '<div class="baseline-grid">'+(s.rows||[]).map((r,i)=>'<article class="baseline-card"><div class="baseline-period">'+esc(r[period]||'统计期见详情')+'</div><h3>'+esc(r[title]||'基线指标')+'</h3><div class="baseline-value">'+esc(r[value]||'—')+'</div><p>'+esc(r[definition]||'')+'</p><div class="baseline-use">'+esc(r[use]||'')+'</div>'+cardDetails(s,r,[title,period,value,definition,use])+'</article>').join('')+'</div>';
}
function renderDecompositionSteps(s){
const title=colIndex(s,/叙事要素/,1), core=colIndex(s,/核心内容/,2), forms=colIndex(s,/子命题|表达形式/,3), evidence=colIndex(s,/可观察证据/,4), question=colIndex(s,/需要核验的问题/,5), risk=colIndex(s,/混淆风险/,6);
return '<div class="decomp-board">'+(s.rows||[]).map((r,i)=>'<article class="decomp-step"><div class="decomp-index">'+String(i+1).padStart(2,'0')+'</div><div class="decomp-main"><h3>'+esc(r[title]||'叙事要素')+'</h3><p class="decomp-core">'+esc(r[core]||'')+'</p><div class="decomp-grid"><div><b>表达形式</b><p>'+esc(r[forms]||'')+'</p></div><div><b>可观察证据</b><p>'+esc(r[evidence]||'')+'</p></div><div><b>核验问题</b><p>'+esc(r[question]||'')+'</p></div><div><b>混淆风险</b><p>'+esc(r[risk]||'')+'</p></div></div>'+cardDetails(s,r,[title,core,forms,evidence,question,risk])+'</div></article>').join('')+'</div>';
}
function renderCodebookCards(s){
const field=colIndex(s,/^字段$|标签层/,0), allowed=colIndex(s,/允许值|标签值/,1), def=colIndex(s,/定义与判定规则|定义/,2), example=colIndex(s,/例子|示例/,3), caution=colIndex(s,/注意事项|不可推断/,4);
return '<div class="codebook-grid">'+(s.rows||[]).map((r,i)=>'<article class="codebook-card"><div class="codebook-card-head"><span>'+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[field]||'编码字段')+'</h3></div><div class="codebook-values">'+esc(r[allowed]||'')+'</div><p>'+esc(r[def]||'')+'</p>'+(r[example]?'<div class="codebook-example"><b>示例</b><p>'+esc(r[example])+'</p></div>':'')+(r[caution]?'<div class="codebook-caution">'+esc(r[caution])+'</div>':'')+cardDetails(s,r,[field,allowed,def,example,caution])+'</article>').join('')+'</div>';
}
function renderNarrativeCases(s){
const title=colIndex(s,/案例\/材料/,1), claim=colIndex(s,/核心命题/,2), problem=colIndex(s,/问题定义/,3), cause=colIndex(s,/因果解释|归因/,4), values=colIndex(s,/价值基础/,5), evidence=colIndex(s,/证据类型与核验/,7), relation=colIndex(s,/竞争叙事关系/,9), status=colIndex(s,/事实状态与限制/,10);
return '<div class="narrative-case-board">'+(s.rows||[]).map((r,i)=>'<article class="narrative-case-card"><div class="narrative-case-kicker">案例拆解 '+String(i+1).padStart(2,'0')+'</div><h3>'+esc(r[title]||'叙事案例')+'</h3><div class="narrative-case-claim">'+esc(r[claim]||'')+'</div><div class="narrative-case-grid"><div><b>问题定义</b><p>'+esc(r[problem]||'')+'</p></div><div><b>因果解释</b><p>'+esc(r[cause]||'')+'</p></div><div><b>价值基础</b><p>'+esc(r[values]||'')+'</p></div><div><b>证据核验</b><p>'+sourceLinks(r[evidence]||'')+'</p></div></div><div class="narrative-case-relation"><b>竞争关系</b><p>'+esc(r[relation]||'')+'</p></div><div class="narrative-case-status"><b>事实状态与限制</b><p>'+esc(r[status]||'')+'</p></div>'+cardDetails(s,r,[title,claim,problem,cause,values,evidence,relation,status])+'</article>').join('')+'</div>';
}
function renderGenericRecords(s,moduleId){
const rows=s.rows||[], h=s.headers||[];
const titleIdx=getTitleIndex(s);
const excerptPatterns=/摘要|核心|用途|结果|事实|问题|说明|定义|证据|内容|描述|发现|主要|解释|政策|信息|判断|目标|材料|可核验|研究用途|操作定义|可能收益|可能成本|关键内容|公开信息|已知公开/i;
let out='<div class="record-grid '+moduleId+'-record-grid">';
rows.forEach((r,ri)=>{
const title=String(r[titleIdx]||r[0]||'未命名记录');
let excerptIdx=-1;
// Pick the most useful explanatory field instead of arbitrary long strings.
for(let j=0;j<h.length;j++){
if(j===titleIdx || !r[j])continue;
if(excerptPatterns.test(String(h[j])) && String(r[j]).length>30){excerptIdx=j;break;}
}
if(excerptIdx<0){
let best=0;
for(let j=0;j<h.length;j++){if(j===titleIdx||!r[j])continue;const len=String(r[j]).length;if(len>best&&len<1800){best=len;excerptIdx=j;}}
}
const excerpt=excerptIdx>=0?String(r[excerptIdx]||''):'';
let idLabel='';
if(/^(id|编号|序号)$/i.test(String(h[0]||'').trim()))idLabel=String(r[0]||'');
const tagCols=[];
for(let j=0;j<h.length&&tagCols.length<3;j++){
if(j===titleIdx||j===0||!r[j])continue;
if(/日期|时间|类型|领域|平台|地区|调查|来源类型|维度|分类|标签|时期|评估层次|状态/i.test(String(h[j])))tagCols.push(String(h[j])+': '+String(r[j]).slice(0,80));
}
let kind='record-card';
if(moduleId==='m2')kind+=' claim-record';
if(moduleId==='m4')kind+=' narrative-record';
if(moduleId==='m5')kind+=' platform-record';
if(moduleId==='m6')kind+=' incident-record';
if(moduleId==='m7')kind+=' evaluation-record';
if(moduleId==='m8')kind+=' interest-record';
if(moduleId==='m9')kind+=' coding-record';
if(moduleId==='m10')kind+=' monitoring-record';
out+='<article class="'+kind+'"><div class="record-top">'+(idLabel?'<span class="record-id">'+esc(idLabel)+'</span>':'')+'<h4>'+esc(title)+'</h4></div>';
if(excerpt)out+='<p class="record-excerpt">'+sourceLinks(excerpt)+'</p>';
if(tagCols.length)out+='<div class="record-tags">'+tagCols.map(t=>'<span class="record-tag">'+esc(t)+'</span>').join('')+'</div>';
out+='<details class="record-more"><summary>查看完整详情与来源</summary><div class="record-fields">';
r.forEach((v,j)=>{if(!v)return;out+='<div class="field"><div class="field-label">'+esc(h[j]||('字段'+(j+1)))+'</div><div class="field-value">'+sourceLinks(v)+'</div></div>';});
out+='</div></details></article>';
});
out+='</div><div class="empty">没有匹配的记录</div>';
return out;
}
function render(){
DATA.modules.forEach((m,i)=>{
const id='m'+(i+1), target=document.getElementById('data-'+id);
if(target)target.innerHTML=m.sheets.map((sh,j)=>renderSheet(sh,id,j)).join('');
});
const usageRows=(DATA.usage&&DATA.usage.rows)||[];
const usage=document.getElementById('usageNotes');
if(usage)usage.innerHTML='<ul>'+usageRows.map(r=>'<li><b>'+esc(r[0])+':</b>'+esc(r[1])+'</li>').join('')+'</ul>';
}
function showTab(id){if(pageHidden(id))return;document.querySelectorAll('.panel').forEach(p=>p.classList.toggle('active',p.id==='panel-'+id));document.querySelectorAll('.tab').forEach(b=>b.classList.toggle('active',b.dataset.tab===id));window.scrollTo({top:0,behavior:'smooth'});renderCustomModules(id);}
function filterModule(id,q){
q=(q||'').toLowerCase().trim();
const root=document.getElementById('data-'+id);let total=0,shown=0;
root.querySelectorAll('.dataset').forEach((ds,di)=>{
const cards=[...ds.querySelectorAll('.record-card,.audience-card,.timeline-record')];let n=0;
cards.forEach(card=>{const ok=!q||card.textContent.toLowerCase().includes(q);card.style.display=ok?'':'none';if(ok)n++;});
total+=cards.length;shown+=n;
const count=ds.querySelector('.dataset-count');
if(count)count.textContent=q?(n+' / '+cards.length+' 条记录'):(cards.length+' 条记录');
const empty=ds.querySelector('.empty');
if(empty)empty.style.display=n?'none':'block';
ds.style.display=q&&!n?'none':'';
if(q&&n)ds.open=true;
if(!q)ds.open=(di===0);
});
const summary=document.getElementById('summary-'+id);
if(summary)summary.textContent=q?('检索结果:'+shown+' / '+total+' 条记录'):'显示本专题全部 '+total+' 条记录;展开资料专题查看详情';
}
function clearSearch(id){const x=document.querySelector('[data-filter-module="'+id+'"]');if(x){x.value='';filterModule(id,'');}}
function exportModule(id){const m=DATA.modules[Number(id.slice(1))-1];if(!m)return;let rows=[];m.sheets.forEach(s=>{rows.push(['数据表',s.name]);rows.push(s.headers);s.rows.forEach(r=>rows.push(r));rows.push([]);});const csv=rows.map(r=>r.map(v=>'"'+String(v==null?'':v).replace(/"/g,'""')+'"').join(',')).join('\r\n');const blob=new Blob(['\ufeff'+csv],{type:'text/csv;charset=utf-8;'});const u=URL.createObjectURL(blob),a=document.createElement('a');a.href=u;a.download='菲律宾不做美国棋子_'+(DATA.modules[Number(id.slice(1))-1]?.title||id)+'.csv';a.click();URL.revokeObjectURL(u);}
document.addEventListener('click',e=>{const t=e.target.closest('[data-tab]');if(t)showTab(t.dataset.tab);const c=e.target.closest('[data-open]');if(c)showTab(c.dataset.open);const b=e.target.closest('[data-clear-module]');if(b)clearSearch(b.dataset.clearModule);const ex=e.target.closest('[data-export-module]');if(ex)exportModule(ex.dataset.exportModule);});
document.addEventListener('input',e=>{if(e.target.matches('[data-filter-module]'))filterModule(e.target.dataset.filterModule,e.target.value);});
function detailFields(s,r,skip=[]){return '<div class="record-fields">'+r.map((v,j)=>v&&skip.indexOf(j)<0?'<div class="field"><div class="field-label">'+esc(s.headers[j]||('字段'+(j+1)))+'</div><div class="field-value">'+sourceLinks(v)+'</div></div>':'').join('')+'</div>';}
function colIndex(s,rx,fallback=-1){const i=(s.headers||[]).findIndex(h=>rx.test(String(h||'')));return i>=0?i:fallback;}
function cardDetails(s,r,skip=[]){return '<details class="record-more"><summary>查看完整记录与来源</summary>'+detailFields(s,r,skip)+'</details>';}
function renderClaimRecords(s){
const id=colIndex(s,/^id$/i,0), title=colIndex(s,/叙事命题/,1), typ=colIndex(s,/命题类型/,2), evidence=colIndex(s,/当前公开证据/,3);
return '<div class="claim-list">'+(s.rows||[]).map((r,i)=>'<article class="claim-card"><div class="claim-card-top"><span class="claim-id">'+esc(r[id]||('C'+String(i+1).padStart(2,'0')) )+'</span><span class="claim-type">'+esc(r[typ]||'研究命题')+'</span></div><h3>'+esc(r[title]||'待命名命题')+'</h3><p class="claim-evidence">'+sourceLinks(r[evidence]||'需结合原始材料与独立来源核验。')+'</p>'+cardDetails(s,r,[])+'</article>').join('')+'</div>';
}
function renderCompetingNarratives(s){
const title=colIndex(s,/竞争叙事框架/,1), claim=colIndex(s,/核心命题|典型表达/,2), value=colIndex(s,/主要价值诉求/,3), relation=colIndex(s,/与.*关系/,5), check=colIndex(s,/关键事实问题|可核验点/,6);
return '<div class="narrative-matrix">'+(s.rows||[]).map((r,i)=>'<article class="narrative-frame-card"><div class="frame-card-head"><span class="frame-no">'+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[title]||'竞争叙事')+'</h3></div><p class="frame-claim">'+sourceLinks(r[claim]||'')+'</p><div class="frame-lanes"><div><b>价值诉求</b><p>'+esc(r[value]||'')+'</p></div><div><b>与核心叙事的关系</b><p>'+esc(r[relation]||'')+'</p></div></div><div class="frame-check"><b>需要核验</b><p>'+esc(r[check]||'')+'</p></div>'+cardDetails(s,r,[title,claim,value,relation,check])+'</article>').join('')+'</div>';
}
function renderPlatformDashboard(s){
const name=colIndex(s,/指标\/平台|指标\/平台|指标|平台/,1), period=colIndex(s,/时间范围|时间/,2), value=colIndex(s,/数据值|数值|结果/,3), def=colIndex(s,/指标定义|定义/,4), use=colIndex(s,/研究用途|用途/,6);
return '<div class="platform-stat-grid">'+(s.rows||[]).map((r,i)=>'<article class="platform-stat-card"><div class="platform-stat-top"><span>'+esc(r[period]||'统计口径见详情')+'</span><span class="platform-stat-index">'+String(i+1).padStart(2,'0')+'</span></div><h3>'+esc(r[name]||'平台指标')+'</h3><div class="platform-stat-value">'+esc(r[value]||'—')+'</div><p>'+esc(r[def]||'')+'</p><div class="platform-stat-use">'+esc(r[use]||'')+'</div>'+cardDetails(s,r,[name,period,value,def,use])+'</article>').join('')+'</div>';
}
function renderPlatformMechanisms(s){
const title=colIndex(s,/平台\/载体/,0), func=colIndex(s,/主要公共功能/,1), mechanism=colIndex(s,/可观察的传播机制/,2), format=colIndex(s,/内容形式/,3), data=colIndex(s,/可采集的公开数据/,4), risk=colIndex(s,/潜在偏差|风险/,5);
return '<div class="channel-board">'+(s.rows||[]).map((r,i)=>'<article class="channel-card"><div class="channel-number">'+String(i+1).padStart(2,'0')+'</div><div class="channel-main"><h3>'+esc(r[title]||'平台')+'</h3><p class="channel-function">'+esc(r[func]||'')+'</p><div class="channel-block"><b>传播机制</b><p>'+esc(r[mechanism]||'')+'</p></div><div class="channel-block"><b>内容形式</b><p>'+esc(r[format]||'')+'</p></div><div class="channel-block"><b>可采集数据</b><p>'+esc(r[data]||'')+'</p></div><div class="channel-risk"><b>偏差与边界</b><p>'+esc(r[risk]||'')+'</p></div>'+cardDetails(s,r,[title,func,mechanism,format,data,risk])+'</div></article>').join('')+'</div>';
}
function renderSocialSamples(s){
const date=colIndex(s,/日期|时间/,1), platform=colIndex(s,/平台\/载体|平台/,2), title=colIndex(s,/样本主体\/标题|标题|案例/,3), summary=colIndex(s,/内容摘要|样本内容摘要|主要内容/,4), frame=colIndex(s,/叙事框架|议题/,5), url=colIndex(s,/URL|链接/,6), limitation=colIndex(s,/限制/,8);
return '<div class="social-feed">'+(s.rows||[]).map((r,i)=>'<article class="social-sample"><div class="social-sample-meta"><span>'+esc(r[platform]||'公开材料')+'</span><time>'+esc(r[date]||'日期待核')+'</time></div><h3>'+esc(r[title]||'公开讨论样本')+'</h3><p>'+sourceLinks(r[summary]||'')+'</p><div class="social-frame">'+esc(r[frame]||'')+'</div><div class="social-sample-foot">'+(r[url]?'<a href="'+esc(r[url])+'" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a>':'')+'<span>'+esc(r[limitation]||'')+'</span></div>'+cardDetails(s,r,[date,platform,title,summary,frame,url])+'</article>').join('')+'</div>';
}
function renderIncidentDossiers(s){
const id=colIndex(s,/^id$/i,0), date=colIndex(s,/时间|日期/,1), title=colIndex(s,/平台\/对象|报道\/事件|活动\/事件|事件/,2), summary=colIndex(s,/公开报告的活动|主要发现|内容\/行为特征|报道记录/,3), metric=colIndex(s,/报告指标|规模/,4), status=colIndex(s,/归属判断状态|证据状态/,7);
return '<div class="incident-board">'+(s.rows||[]).map((r,i)=>'<article class="incident-card"><div class="incident-marker"><span>'+String(i+1).padStart(2,'0')+'</span><small>'+esc(r[date]||'时间待核')+'</small></div><div class="incident-content"><div class="incident-title-row"><h3>'+esc(r[title]||'信息活动案例')+'</h3><span class="incident-status">'+esc(r[status]||'公开资料记录')+'</span></div><p>'+sourceLinks(r[summary]||'')+'</p>'+(r[metric]?'<div class="incident-metric"><b>公开报告指标</b><span>'+esc(r[metric])+'</span></div>':'')+cardDetails(s,r,[id,date,title,summary,metric,status])+'</div></article>').join('')+'</div>';
}
function renderAuditDimensions(s){
const dimension=colIndex(s,/维度/,0), indicator=colIndex(s,/指标\/线索|指标/,1), method=colIndex(s,/数据字段|测量方法/,2), supports=colIndex(s,/可支持的判断/,3), cannot=colIndex(s,/不能单独证明/,4), strength=colIndex(s,/证据强度/,5);
return '<div class="audit-grid">'+(s.rows||[]).map((r,i)=>'<article class="audit-card"><div class="audit-card-top"><span>'+esc(r[dimension]||'真实性审计')+'</span><small>'+esc(r[strength]||'综合判断')+'</small></div><h3>'+esc(r[indicator]||'检测指标')+'</h3><div class="audit-method"><b>观察方式</b><p>'+esc(r[method]||'')+'</p></div><div class="audit-two-col"><div><b>可以支持</b><p>'+esc(r[supports]||'')+'</p></div><div><b>不能单独证明</b><p>'+esc(r[cannot]||'')+'</p></div></div>'+cardDetails(s,r,[dimension,indicator,method,supports,cannot,strength])+'</article>').join('')+'</div>';
}
function renderEvaluationChain(s){
const stage=colIndex(s,/评估层次/,0), question=colIndex(s,/核心问题/,1), metrics=colIndex(s,/指标示例/,2), sources=colIndex(s,/可用数据源/,3), method=colIndex(s,/建议方法/,4), risk=colIndex(s,/常见误判/,5);
return '<div class="evaluation-chain">'+(s.rows||[]).map((r,i)=>'<article class="evaluation-step"><div class="evaluation-step-no">'+String(i+1).padStart(2,'0')+'</div><div class="evaluation-step-body"><div class="evaluation-step-title"><h3>'+esc(r[stage]||'评估阶段')+'</h3><p>'+esc(r[question]||'')+'</p></div><div class="evaluation-columns"><div><b>指标</b><p>'+esc(r[metrics]||'')+'</p></div><div><b>数据与方法</b><p>'+esc([r[sources],r[method]].filter(Boolean).join(';'))+'</p></div></div><div class="evaluation-caution"><b>注意</b> '+esc(r[risk]||'')+'</div>'+cardDetails(s,r,[stage,question,metrics,sources,method,risk])+'</div></article>').join('')+'</div>';
}
function renderEvaluationCases(s){
const title=colIndex(s,/政策\/事件/,1), object=colIndex(s,/评估对象/,2), info=colIndex(s,/已知公开信息/,3), baseline=colIndex(s,/可建立的基线/,4), outcome=colIndex(s,/推荐结果指标/,5), method=colIndex(s,/因果识别思路/,6), confound=colIndex(s,/混杂因素/,7);
return '<div class="evaluation-case-grid">'+(s.rows||[]).map((r,i)=>'<article class="evaluation-case"><span class="case-index">评估案例 '+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[title]||'政策评估案例')+'</h3><p class="case-object">'+esc(r[object]||'')+'</p><div class="case-fact"><b>已知资料</b><p>'+esc(r[info]||'')+'</p></div><div class="case-columns"><div><b>基线</b><p>'+esc(r[baseline]||'')+'</p></div><div><b>结果指标</b><p>'+esc(r[outcome]||'')+'</p></div></div><div class="case-method"><b>因果识别</b><p>'+esc(r[method]||'')+'</p></div><div class="case-caveat"><b>混杂因素</b><p>'+esc(r[confound]||'')+'</p></div>'+cardDetails(s,r,[title,object,info,baseline,outcome,method,confound])+'</article>').join('')+'</div>';
}
function renderMethodCards(s){
const q=colIndex(s,/研究问题/,0), metrics=colIndex(s,/推荐指标/,1), structure=colIndex(s,/数据结构/,2), method=colIndex(s,/方法建议/,3), minimum=colIndex(s,/最小证据要求/,4), risk=colIndex(s,/高风险推断/,5);
return '<div class="method-board">'+(s.rows||[]).map((r,i)=>'<article class="method-card"><div class="method-card-head"><span>'+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[q]||'研究问题')+'</h3></div><div class="method-block"><b>推荐指标</b><p>'+esc(r[metrics]||'')+'</p></div><div class="method-block"><b>方法与数据</b><p>'+esc([r[method],r[structure]].filter(Boolean).join(';'))+'</p></div><div class="method-proof"><b>最低证据要求</b><p>'+esc(r[minimum]||'')+'</p></div><div class="method-risk"><b>避免的推断</b><p>'+esc(r[risk]||'')+'</p></div>'+cardDetails(s,r,[q,metrics,structure,method,minimum,risk])+'</article>').join('')+'</div>';
}
function renderNationalInterest(s){
const title=colIndex(s,/维度/,0), question=colIndex(s,/核心问题/,1), gains=colIndex(s,/可能收益|收益\/机会/,2), risks=colIndex(s,/可能成本|成本\/风险/,3), metrics=colIndex(s,/应采集指标/,4), source=colIndex(s,/可用数据源/,5), relation=colIndex(s,/与核心叙事关系/,6);
return '<div class="interest-map">'+(s.rows||[]).map((r,i)=>'<article class="interest-card"><div class="interest-card-head"><span>'+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[title]||'国家利益维度')+'</h3></div><p class="interest-question">'+esc(r[question]||'')+'</p><div class="interest-balance"><div class="interest-gain"><b>收益与机会</b><p>'+esc(r[gains]||'')+'</p></div><div class="interest-risk"><b>成本与风险</b><p>'+esc(r[risks]||'')+'</p></div></div><div class="interest-measure"><b>如何衡量</b><p>'+esc(r[metrics]||'')+'</p></div><div class="interest-relation">'+esc(r[relation]||'')+'</div>'+cardDetails(s,r,[title,question,gains,risks,metrics,source,relation])+'</article>').join('')+'</div>';
}
function renderBaselineMetrics(s){
const title=colIndex(s,/指标/,1), period=colIndex(s,/时期|时间/,2), value=colIndex(s,/数值|金额|数据/,3), definition=colIndex(s,/口径|说明/,4), use=colIndex(s,/用途/,6);
return '<div class="baseline-grid">'+(s.rows||[]).map((r,i)=>'<article class="baseline-card"><div class="baseline-period">'+esc(r[period]||'统计期见详情')+'</div><h3>'+esc(r[title]||'基线指标')+'</h3><div class="baseline-value">'+esc(r[value]||'—')+'</div><p>'+esc(r[definition]||'')+'</p><div class="baseline-use">'+esc(r[use]||'')+'</div>'+cardDetails(s,r,[title,period,value,definition,use])+'</article>').join('')+'</div>';
}
function renderDecompositionSteps(s){
const title=colIndex(s,/叙事要素/,1), core=colIndex(s,/核心内容/,2), forms=colIndex(s,/子命题|表达形式/,3), evidence=colIndex(s,/可观察证据/,4), question=colIndex(s,/需要核验的问题/,5), risk=colIndex(s,/混淆风险/,6);
return '<div class="decomp-board">'+(s.rows||[]).map((r,i)=>'<article class="decomp-step"><div class="decomp-index">'+String(i+1).padStart(2,'0')+'</div><div class="decomp-main"><h3>'+esc(r[title]||'叙事要素')+'</h3><p class="decomp-core">'+esc(r[core]||'')+'</p><div class="decomp-grid"><div><b>表达形式</b><p>'+esc(r[forms]||'')+'</p></div><div><b>可观察证据</b><p>'+esc(r[evidence]||'')+'</p></div><div><b>核验问题</b><p>'+esc(r[question]||'')+'</p></div><div><b>混淆风险</b><p>'+esc(r[risk]||'')+'</p></div></div>'+cardDetails(s,r,[title,core,forms,evidence,question,risk])+'</div></article>').join('')+'</div>';
}
function renderCodebookCards(s){
const field=colIndex(s,/^字段$|标签层/,0), allowed=colIndex(s,/允许值|标签值/,1), def=colIndex(s,/定义与判定规则|定义/,2), example=colIndex(s,/例子|示例/,3), caution=colIndex(s,/注意事项|不可推断/,4);
return '<div class="codebook-grid">'+(s.rows||[]).map((r,i)=>'<article class="codebook-card"><div class="codebook-card-head"><span>'+String(i+1).padStart(2,'0')+'</span><h3>'+esc(r[field]||'编码字段')+'</h3></div><div class="codebook-values">'+esc(r[allowed]||'')+'</div><p>'+esc(r[def]||'')+'</p>'+(r[example]?'<div class="codebook-example"><b>示例</b><p>'+esc(r[example])+'</p></div>':'')+(r[caution]?'<div class="codebook-caution">'+esc(r[caution])+'</div>':'')+cardDetails(s,r,[field,allowed,def,example,caution])+'</article>').join('')+'</div>';
}
function renderNarrativeCases(s){
const title=colIndex(s,/案例\/材料/,1), claim=colIndex(s,/核心命题/,2), problem=colIndex(s,/问题定义/,3), cause=colIndex(s,/因果解释|归因/,4), values=colIndex(s,/价值基础/,5), evidence=colIndex(s,/证据类型与核验/,7), relation=colIndex(s,/竞争叙事关系/,9), status=colIndex(s,/事实状态与限制/,10);
return '<div class="narrative-case-board">'+(s.rows||[]).map((r,i)=>'<article class="narrative-case-card"><div class="narrative-case-kicker">案例拆解 '+String(i+1).padStart(2,'0')+'</div><h3>'+esc(r[title]||'叙事案例')+'</h3><div class="narrative-case-claim">'+esc(r[claim]||'')+'</div><div class="narrative-case-grid"><div><b>问题定义</b><p>'+esc(r[problem]||'')+'</p></div><div><b>因果解释</b><p>'+esc(r[cause]||'')+'</p></div><div><b>价值基础</b><p>'+esc(r[values]||'')+'</p></div><div><b>证据核验</b><p>'+sourceLinks(r[evidence]||'')+'</p></div></div><div class="narrative-case-relation"><b>竞争关系</b><p>'+esc(r[relation]||'')+'</p></div><div class="narrative-case-status"><b>事实状态与限制</b><p>'+esc(r[status]||'')+'</p></div>'+cardDetails(s,r,[title,claim,problem,cause,values,evidence,relation,status])+'</article>').join('')+'</div>';
}
function renderSentimentCollectionData(s){
const h=s.headers||[], rows=s.rows||[];
const idx={id:0,date:1,platform:2,type:3,result:4,observation:5,source:6,limit:7};
const metrics=[
{value:'27,700',label:'Facebook高互动帖子',period:'2025-06-24—2026-06-24'},
{value:'12.7M',label:'累计Reaction',period:'同一年度研究样本'},
{value:'2.2M',label:'累计评论',period:'同一年度研究样本'},
{value:'568',label:'TikTok视频分析样本',period:'Rappler / The Nerve研究'}
];
let out='<div class="sentiment-dashboard"><div class="sentiment-dashboard-intro"><div><span class="sentiment-kicker">公开研究数据 · 可追溯样本</span><h3>真实舆情收集结果</h3><p>以下记录来自公开社交聆听报告、研究机构对公开帖子/评论的分析,以及研究报告列举的单帖互动快照。没有公开的原始数值不做估算;聚合数据、单帖数据和定性发现分别标注。</p></div><span class="pill">20条记录</span></div>';
out+='<div class="sentiment-metric-grid">'+metrics.map(x=>'<article class="sentiment-metric"><strong>'+esc(x.value)+'</strong><span>'+esc(x.label)+'</span><small>'+esc(x.period)+'</small></article>').join('')+'</div>';
out+='<div class="sentiment-chart-grid"><section class="sentiment-chart"><h4>年度 Facebook Reaction 分布(2025—2026)</h4><p>Capstone-Intel报告公开的三类主要反应</p>'+[['Like',51.6],['Haha',24.4],['Love',16.1]].map(x=>'<div class="sentiment-bar-row"><div><span>'+x[0]+'</span><b>'+x[1]+'%</b></div><div class="sentiment-track"><i style="width:'+x[1]+'%"></i></div></div>').join('')+'<small>三项为报告公布的主要reaction类别,未覆盖全部类型;表情反应不能直接等同政治立场。</small></section>';
out+='<section class="sentiment-chart"><h4>2024年短窗口 Reaction 构成</h4><p>2024-06-18至06-25;2,323条帖子</p>'+[['Like',40],['Love',13],['Haha',16],['Wow',1],['Sad',20],['Angry',10]].map(x=>'<div class="sentiment-bar-row compact"><div><span>'+x[0]+'</span><b>'+x[1]+'%</b></div><div class="sentiment-track"><i style="width:'+x[1]+'%"></i></div></div>').join('')+'<small>此处为短窗口样本,不与年度数据混合计算。</small></section></div>';
out+='<div class="sentiment-record-head"><h4>可追溯的舆情样本与统计记录</h4><span>点击“完整记录与来源”查看字段及原始链接</span></div><div class="sentiment-record-grid">';
rows.forEach((r,i)=>{
const date=r[idx.date]||'日期见详情', platform=r[idx.platform]||'公开样本', type=r[idx.type]||'记录';
const title=String(platform).split(';')[0];
out+='<article class="sentiment-record-card"><div class="sentiment-record-top"><span class="sentiment-record-id">'+esc(r[idx.id]||('SD'+(i+1)))+'</span><span>'+esc(date)+'</span></div><h4>'+esc(title)+'</h4><div class="sentiment-record-type">'+esc(type)+'</div><p class="sentiment-result">'+esc(r[idx.result]||'')+'</p><div class="sentiment-observation"><b>叙事/情感观察</b><p>'+esc(r[idx.observation]||'')+'</p></div><div class="sentiment-source">'+(r[idx.source]?'<a href="'+esc(r[idx.source])+'" target="_blank" rel="noopener noreferrer">打开原始来源 ↗</a>':'来源未提供')+'</div><details class="record-more"><summary>查看完整记录与来源</summary>'+detailFields(s,r,[])+'</details></article>';
});
out+='</div><div class="sentiment-data-note"><b>数据使用边界</b><p>这些是公开报告所披露的真实观测数据,但不同研究的时间窗、平台、抽样框和互动定义不一致。它们可以作为专题的舆情基线和案例样本,不能拼接成统一的全菲律宾情绪比例,也不能据此断言某个叙事改变了公众态度。</p></div></div>';
return out;
}
function renderMonitoringMetrics(s){
const dimension=colIndex(s,/维度/,0), title=colIndex(s,/指标/,1), definition=colIndex(s,/操作定义|计算方式/,2), use=colIndex(s,/用途/,3), risk=colIndex(s,/主要误判风险/,4), review=colIndex(s,/建议复核/,5);
const groups={};(s.rows||[]).forEach(r=>{const k=r[dimension]||'其他';(groups[k]||(groups[k]=[])).push(r);});
return '<div class="monitoring-groups">'+Object.keys(groups).map((k,gi)=>'<section class="monitoring-group"><header><span>'+String(gi+1).padStart(2,'0')+'</span><h3>'+esc(k)+'</h3><small>'+groups[k].length+' 项指标</small></header><div class="monitoring-mini-grid">'+groups[k].map(r=>'<article class="monitoring-mini"><h4>'+esc(r[title]||'监测指标')+'</h4><p>'+esc(r[definition]||'')+'</p><div class="monitoring-use"><b>用途</b> '+esc(r[use]||'')+'</div><details class="record-more"><summary>误判风险与复核</summary><div class="record-fields"><div class="field"><div class="field-label">主要误判风险</div><div class="field-value">'+esc(r[risk]||'')+'</div></div><div class="field"><div class="field-label">建议复核</div><div class="field-value">'+esc(r[review]||'')+'</div></div></div></details></article>').join('')+'</div></section>').join('')+'</div>';
}
function renderTaxonomy(s){
const layer=colIndex(s,/标签层/,0), label=colIndex(s,/标签值/,1), definition=colIndex(s,/定义/,2), example=colIndex(s,/示例|说明/,3), caution=colIndex(s,/不可推断/,4);
const groups={};(s.rows||[]).forEach(r=>{const k=r[layer]||'其他';(groups[k]||(groups[k]=[])).push(r);});
return '<div class="taxonomy-board">'+Object.keys(groups).map((k,i)=>'<section class="taxonomy-group"><div class="taxonomy-group-head"><span>'+String(i+1).padStart(2,'0')+'</span><h3>'+esc(k)+'</h3><small>'+groups[k].length+' 个标签</small></div><div class="taxonomy-tags">'+groups[k].map(r=>'<article class="taxonomy-tag-card"><div class="taxonomy-tag-label">'+esc(r[label]||'标签')+'</div><p>'+esc(r[definition]||'')+'</p>'+(r[example]?'<div class="taxonomy-example">'+esc(r[example])+'</div>':'')+(r[caution]?'<div class="taxonomy-caution">'+esc(r[caution])+'</div>':'')+'</article>').join('')+'</div></section>').join('')+'</div>';
}
function renderWorkflowSteps(s){
const step=colIndex(s,/步骤/,0), task=colIndex(s,/任务/,1), standard=colIndex(s,/执行标准/,2), output=colIndex(s,/输出/,3), quality=colIndex(s,/质量控制/,4);
return '<div class="workflow-line">'+(s.rows||[]).map((r,i)=>'<article class="workflow-step"><div class="workflow-number">'+String(i+1).padStart(2,'0')+'</div><div class="workflow-body"><div class="workflow-title"><h3>'+esc(r[task]||'研究步骤')+'</h3><span>阶段 '+esc(r[step]||String(i+1))+'</span></div><p>'+esc(r[standard]||'')+'</p><div class="workflow-bottom"><div><b>阶段产出</b><p>'+esc(r[output]||'')+'</p></div><div><b>质量控制</b><p>'+esc(r[quality]||'')+'</p></div></div></div></article>').join('')+'</div>';
}
(function(){
const _render=render;
render=function(){
applyPageVisibility();
_render();
syncHeader();
const active=document.querySelector('.tab.active');
if(active)renderCustomModules(active.dataset.tab);
};
})();
/* ── 页面 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();render();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)};
})();
render();
@@ -0,0 +1,349 @@
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>菲律宾不做美国棋子叙事研究</title>
<style>
:root{--red:#7B1725;--red2:#941F30;--soft:#F8EAEC;--ink:#252327;--muted:#6D6870;--line:#E8E1E3;--bg:#F7F5F5}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif;line-height:1.58}
.topline{height:5px;background:var(--red)}.hero{background:#7B1725;color:#fff;padding:30px clamp(18px,4vw,54px) 28px}.hero-inner{max-width:1540px;margin:auto}.hero h1{font-size:clamp(26px,3vw,39px);line-height:1.28;margin:0 0 12px;font-weight:800}.hero p{max-width:1050px;margin:0;color:#fff;font-size:15px;line-height:1.85}.hero-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.hero-chip{border:1px solid #ffffff66;background:#ffffff12;padding:5px 11px;border-radius:6px;font-size:12px;color:#fff}
main{max-width:1540px;margin:auto;padding:16px clamp(12px,2vw,30px) 46px}.navwrap{position:sticky;top:0;z-index:20;background:#f7f5f5f5;backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:10px 0;margin-bottom:19px}.tabs{display:flex;gap:7px;overflow-x:auto;padding:2px 1px 5px}.tab,.btn{font:inherit;font-size:13px;font-weight:700;border:1px solid #ded5d7;background:#fff;color:#4b4245;border-radius:7px;padding:10px 13px;cursor:pointer;white-space:nowrap}.tab:hover,.btn:hover{border-color:#b96b76;color:var(--red)}.tab.active,.redbtn{background:var(--red);color:#fff;border-color:var(--red)}
.panel{display:none}.panel.active{display:block}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin:5px 0 17px}.section-head h2{font-size:24px;line-height:1.3;margin:0 0 7px}.section-head p{margin:0;color:var(--muted);font-size:14px;max-width:1000px}.pill{display:inline-flex;background:var(--soft);color:var(--red);border:1px solid #e8cdd1;border-radius:6px;padding:6px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:17px 0}.stat,.card,.table-card{background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 5px 20px #41111a0e}.stat{padding:17px}.num{font-size:29px;line-height:1.2;color:var(--red);font-weight:800}.label{font-size:13px;color:#625b60;margin-top:7px}.card{padding:19px;margin:14px 0}.card h3{font-size:17px;margin:0 0 11px}.card p{font-size:14px;color:#514b50;margin:7px 0}.module-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.module-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:10px;padding:16px;cursor:pointer;color:var(--ink)}.module-card:hover{border-color:#bd7a83;box-shadow:0 5px 20px #41111a0e}.module-card strong{font-size:15px;color:var(--red)}.module-card span{font-size:13px;color:#5d565b}.module-card small{font-size:11px;color:#91868b;margin-top:2px}
.note{border-left:4px solid var(--red);background:#f9eff0;padding:12px 14px;border-radius:0 7px 7px 0;font-size:13px;color:#554248;margin-top:12px}.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0 18px}.insight{display:flex;gap:9px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:9px;padding:12px}.insight b{color:var(--red);font-size:16px}.insight p{font-size:12.5px;color:#514a4f;margin:0}
.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 6px}.search{flex:1;min-width:240px;border:1px solid #dcd4d7;border-radius:8px;padding:11px 12px;font:inherit;font-size:13px;background:#fff;outline:none}.search:focus{border-color:#9d5360;box-shadow:0 0 0 3px #7b172514}.search-summary{font-size:12px;color:var(--muted);margin:5px 0 11px}
.table-card{margin:13px 0;overflow:hidden}.table-title{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px;font-weight:800;color:#352a2d}.count{font-size:12px;color:#83777c;font-weight:500;white-space:nowrap}.table-scroll{overflow:auto;max-height:65vh}table{border-collapse:separate;border-spacing:0;width:100%;min-width:780px;font-size:12.5px}thead th{position:sticky;top:0;z-index:2;background:#f5e8ea;color:#68202b;text-align:left;font-weight:800;border-bottom:1px solid #e3c9cd;padding:11px 12px;min-width:105px;max-width:320px}tbody td{border-bottom:1px solid #eee8ea;padding:11px 12px;vertical-align:top;min-width:95px;max-width:380px;white-space:pre-wrap;overflow-wrap:anywhere}tbody tr:nth-child(even){background:#fcf9f9}tbody tr:hover{background:#f8ecee}tbody tr:last-child td{border-bottom:0}a{color:#8b1e2d;overflow-wrap:anywhere}.small{font-size:11px;color:#82777b}.empty{display:none;padding:20px;text-align:center;color:#82777b;font-size:13px}.footer{border-top:1px solid var(--line);padding-top:18px;margin-top:28px;font-size:12px;color:#7d7478;line-height:1.8}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-cards{grid-template-columns:1fr}.insight-grid{grid-template-columns:1fr 1fr}.section-head{display:block}.pill{margin-top:10px;display:inline-flex}}@media(max-width:520px){.grid{gap:8px}.stat{padding:12px}.num{font-size:24px}.insight-grid{grid-template-columns:1fr}.toolbar{align-items:stretch}.search{min-width:100%;flex-basis:100%}.hero{padding-top:23px}}
:root{--red:#681927!important;--dark:#681927!important;--soft:#f5e8eb!important;--ink:#282326!important;--muted:#766b70!important;--line:#e8dfe2!important;--bg:#f6f3f4!important}
.hero{background:linear-gradient(118deg,#5e1522 0%,#762432 62%,#84313e 100%)!important}
.tab.active,.redbtn{background:#681927!important;border-color:#681927!important}
a{color:#7c2635!important}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.stat{position:relative;overflow:hidden;background:#fff;border:1px solid #e8dfe2;border-radius:11px;padding:17px;box-shadow:0 5px 22px #41111a0a}
.stat:after{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#7c2635}
.stat .num{font-size:29px;line-height:1.2;color:#681927;font-weight:850}.stat .label{font-size:13px;color:#5f5559;margin-top:7px}.stat .context{font-size:11px;color:#93858a;margin-top:7px}
.data-insights{display:grid;grid-template-columns:1.15fr 1fr;gap:14px;margin:14px 0}.chart-card{background:#fff;border:1px solid #e8dfe2;border-radius:11px;padding:18px}.chart-card h3{font-size:16px;margin:0 0 4px}.chart-card .sub{font-size:12px;color:#766b70;margin-bottom:17px}
.bar-row{margin:13px 0}.bar-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:6px}.bar-label b{color:#681927}.bar-track{height:9px;background:#f0e8ea;border-radius:99px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,#681927,#a34c5b);border-radius:99px}
.insight-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.insight-tile{background:#faf6f7;border:1px solid #eee2e5;border-radius:8px;padding:12px}.insight-tile b{display:block;font-size:18px;color:#681927;margin-bottom:3px}.insight-tile span{font-size:12px;color:#62575c}
.pathway{margin-top:14px}.pathway-intro{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:12px}.pathway-intro h3{font-size:18px;margin:0}.pathway-intro p{font-size:12px;color:#766b70;margin:0}
.stage{display:grid;grid-template-columns:210px 1fr;gap:14px;margin:11px 0;background:#fff;border:1px solid #e8dfe2;border-radius:11px;padding:14px}.stage-head{display:flex;gap:11px;align-items:flex-start;padding:8px 5px}.stage-no{display:flex;align-items:center;justify-content:center;flex:0 0 36px;height:36px;border-radius:8px;background:#681927;color:#fff;font-size:12px;font-weight:800}.stage-head h3{margin:0 0 5px;font-size:15px;color:#681927}.stage-head p{margin:0;color:#766b70;font-size:12px}.stage-modules{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.path-module{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #eadfe2;background:#fdfafb;border-radius:8px;padding:13px;cursor:pointer}.path-module:hover{border-color:#bd7a83;background:#fff}.path-title{font-size:14px;font-weight:800;color:#681927}.path-desc{font-size:12px;color:#665b60;margin-top:5px}.path-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;width:100%;margin-top:10px;font-size:10px;color:#8c7e83}.path-meta b{font-size:11px;color:#681927}
.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 17px}
.record-card{background:#fff;border:1px solid #e8dfe2;border-radius:10px;padding:14px;box-shadow:0 3px 13px #41111a08;min-width:0}
.record-top{display:flex;gap:8px;align-items:flex-start}.record-id{flex:0 0 auto;background:#f5e8eb;color:#681927;border:1px solid #e4cbd1;border-radius:5px;padding:3px 6px;font-size:10px;font-weight:800}
.record-card h4{margin:0;color:#392c31;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.record-excerpt{font-size:12.5px;color:#62585d;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.record-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.record-tag{font-size:10px;color:#7b3945;background:#fbf2f4;border:1px solid #f0dfe3;border-radius:4px;padding:3px 6px}
.record-more{margin-top:11px;border-top:1px solid #f0e8ea;padding-top:8px}.record-more summary{font-size:11px;color:#7c2635;cursor:pointer;font-weight:700;list-style:none}.record-more summary::-webkit-details-marker{display:none}.record-more summary:after{content:"+";float:right;font-size:14px}.record-more[open] summary:after{content:"−"}
.record-fields{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px}.field{padding:8px;background:#fcf9fa;border-radius:6px}.field-label{font-size:10px;font-weight:800;color:#8b6c74;margin-bottom:3px}.field-value{font-size:12px;color:#393338;overflow-wrap:anywhere;white-space:pre-wrap}.field-value a{display:inline-block;margin-right:5px}
.dataset{background:transparent;margin:12px 0;border:0}.dataset>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eee5e8;border:1px solid #e3d4d8;border-radius:8px;padding:13px 15px;cursor:pointer;color:#51232d;font-size:14px;font-weight:800}.dataset>summary::-webkit-details-marker{display:none}.dataset>summary:after{content:"+";font-size:18px;font-weight:400;color:#681927}.dataset[open]>summary:after{content:"−"}.dataset-count{font-size:11px;color:#7d6b71;font-weight:500;white-space:nowrap}
.search-summary{font-size:12px;color:#766b70;margin:6px 0 12px}.module-hero{border-color:#e8dfe2}.module-hero h2{color:#681927}.module-count strong{color:#681927}
@media(max-width:900px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.data-insights{grid-template-columns:1fr}.stage{grid-template-columns:1fr}.stage-modules{grid-template-columns:1fr}.record-grid{grid-template-columns:1fr}.findings{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.stat-grid{gap:8px}.stat{padding:12px}.stat .num{font-size:23px}.insight-list{grid-template-columns:1fr}.findings{grid-template-columns:1fr}.pathway-intro{display:block}.pathway-intro .pill{margin-top:8px}}
/* Distinct visual language by research topic */
#panel-m1 .section-head{background:#fbf7f8;border-left:5px solid #8b6b3e;padding:17px 18px;border-radius:8px}
#panel-m2 .section-head{background:#fbf7f8;border-left:5px solid #681927;padding:17px 18px;border-radius:8px}
#panel-m3 .section-head{background:#fbf7f8;border-left:5px solid #681927;padding:17px 18px;border-radius:8px}
#panel-m4 .section-head{background:#fbf7f8;border-left:5px solid #681927;padding:17px 18px;border-radius:8px}
#panel-m5 .section-head{background:#fbf7f8;border-left:5px solid #7c2635;padding:17px 18px;border-radius:8px}
#panel-m6 .section-head{background:#fbf7f8;border-left:5px solid #7c2635;padding:17px 18px;border-radius:8px}
#panel-m7 .section-head{background:#fbf7f8;border-left:5px solid #681927;padding:17px 18px;border-radius:8px}
#panel-m8 .section-head{background:#fbf7f8;border-left:5px solid #681927;padding:17px 18px;border-radius:8px}
#panel-m9 .section-head{background:#fbf7f8;border-left:5px solid #681927;padding:17px 18px;border-radius:8px}
#panel-m10 .section-head{background:#f7edef;border-left:5px solid #914754;padding:17px 18px;border-radius:8px}
.history-context{margin:15px 0 20px;background:#fff;border:1px solid #e6dcd7;border-radius:12px;overflow:hidden;box-shadow:0 4px 18px #33201808}
.history-context-head{padding:21px 22px;background:linear-gradient(120deg,#f4eee4,#fbf8f2);border-bottom:1px solid #e9dfd2}
.history-kicker{font-size:11px;font-weight:850;letter-spacing:.08em;color:#86643b;margin-bottom:6px}
.history-context-head h3{margin:0 0 9px;font-size:20px;color:#392e27}
.history-context-head p{margin:0;max-width:1100px;color:#63574d;font-size:13px;line-height:1.85}
.history-themes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.history-themes article{display:flex;gap:13px;padding:16px 18px;border-bottom:1px solid #f5e8eb}
.history-themes article:nth-child(odd){border-right:1px solid #f5e8eb}
.history-themes article>span{display:flex;align-items:center;justify-content:center;flex:0 0 30px;height:30px;background:#eee4d5;color:#681927;border-radius:7px;font-size:11px;font-weight:850}
.history-themes h4{font-size:14px;margin:1px 0 6px;color:#282326}
.history-themes p{font-size:12.5px;color:#675d54;margin:0;line-height:1.75}
.history-method-note{display:flex;gap:12px;padding:13px 18px;background:#faf7f1;font-size:12px;color:#655a50}
.history-method-note b{white-space:nowrap;color:#681927}
.history-timeline{margin:15px 0 22px}
.history-timeline-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:10px}
.history-timeline-title h3{font-size:17px;margin:0;color:#282326}
.history-timeline-title span{font-size:11px;color:#8a7c70}
.timeline-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.timeline-item{background:#fff;border:1px solid #e8dcd7;border-radius:9px;padding:14px;position:relative}
.timeline-item:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:#927044;border-radius:9px 9px 0 0}
.timeline-date{font-size:11px;font-weight:850;color:#896b43;margin-bottom:6px}
.timeline-item h4{font-size:13px;line-height:1.5;margin:0 0 7px;color:#3f332c}
.timeline-item p{font-size:12px;color:#675d55;margin:0 0 8px}
.timeline-item a{font-size:11px}
.timeline-records{padding:16px 14px 16px 10px}
.timeline-record{display:grid;grid-template-columns:43px 1fr;gap:12px;position:relative}
.timeline-record:not(:last-child) .timeline-spine:after{content:"";position:absolute;left:21px;top:33px;bottom:-3px;width:1px;background:#dfd0c5}
.timeline-spine{position:relative;display:flex;justify-content:center}
.timeline-spine span{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#f1e7d9;color:#7a5d38;font-size:10px;font-weight:850;z-index:1}
.timeline-record-main{padding:0 0 19px}
.timeline-record-main .timeline-date{margin:1px 0 4px}
.timeline-record-main h4{font-size:14px;margin:0 0 5px;color:#41352d}
.timeline-record-main p{font-size:12.5px;color:#655b53;margin:0 0 6px}
.timeline-relation{display:inline-block;font-size:10px;padding:3px 7px;background:#f7f1e8;color:#82613a;border-radius:4px}
.audience-intro{display:flex;align-items:flex-start;gap:18px;padding:16px 18px;margin:15px 0;background:#fbf7f8;border:1px solid #d9e6e6;border-radius:10px}
.audience-intro>div{flex:0 0 210px}.audience-kicker{font-size:10px;letter-spacing:.08em;font-weight:850;color:#681927}.audience-intro h3{font-size:16px;margin:4px 0 0;color:#681927}.audience-intro p{font-size:12.5px;color:#53676a;margin:0;line-height:1.8}
.audience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 18px}
.audience-card{background:#fff;border:1px solid #dce7e7;border-radius:11px;padding:16px;box-shadow:0 4px 16px #234b4f08;min-width:0}
.audience-card-head{display:flex;gap:11px;align-items:flex-start}
.audience-number{flex:0 0 34px;height:34px;display:flex;align-items:center;justify-content:center;background:#e5efef;color:#681927;border-radius:8px;font-size:11px;font-weight:850}
.audience-card h3{font-size:15px;color:#681927;margin:1px 0 6px}
.audience-card-head p{font-size:12px;color:#667679;margin:0;line-height:1.7}
.audience-focus{display:grid;grid-template-columns:1fr;gap:8px;margin-top:13px}
.audience-focus-block{background:#f7fafa;border:1px solid #e7efef;border-radius:7px;padding:10px}
.audience-focus-block p{font-size:12px;color:#4f6265;margin:5px 0 0;line-height:1.75}
.audience-tags{font-size:11px;color:#577276;line-height:1.7;margin:9px 0 3px}
.audience-detail{border-top:1px solid #e7eeee;margin-top:10px;padding-top:9px}
.audience-detail>summary{cursor:pointer;list-style:none;color:#681927;font-size:12px;font-weight:800}
.audience-detail>summary::-webkit-details-marker{display:none}
.audience-detail>summary:after{content:"展开 +";float:right;font-size:11px}
.audience-detail[open]>summary:after{content:"收起 −"}
#panel-m2 .claim-record{border-left:3px solid #7b2635}
#panel-m2 .claim-record .record-id{background:#f5e8eb;color:#681927}
#panel-m4 .narrative-record{border-top:3px solid #681927}
#panel-m5 .platform-record{border-top:3px solid #7c2635}
#panel-m6 .incident-record{border-left:3px solid #7c2635}
#panel-m7 .evaluation-record{border-top:3px solid #681927}
#panel-m8 .interest-record{border-left:3px solid #681927}
#panel-m9 .coding-record{border-top:3px solid #681927}
#panel-m10 .monitoring-record{border-left:3px solid #914754}
#panel-m2 .dataset>summary{background:#fbf7f8;color:#681927}
#panel-m3 .dataset>summary{background:#fbf7f8;color:#315c61}
#panel-m4 .dataset>summary{background:#fbf7f8;color:#63496b}
#panel-m5 .dataset>summary{background:#fbf7f8;color:#3d6176}
#panel-m6 .dataset>summary{background:#fbf7f8;color:#874d39}
#panel-m7 .dataset>summary{background:#fbf7f8;color:#476446}
#panel-m8 .dataset>summary{background:#fbf7f8;color:#756235}
#panel-m9 .dataset>summary{background:#fbf7f8;color:#5c5881}
#panel-m10 .dataset>summary{background:#f7edef;color:#793c47}
@media(max-width:900px){.timeline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-themes{grid-template-columns:1fr}.history-themes article:nth-child(odd){border-right:0}.audience-grid{grid-template-columns:1fr}.audience-intro{display:block}.audience-intro>div{margin-bottom:8px}}
@media(max-width:560px){.timeline-grid{grid-template-columns:1fr}.history-context-head{padding:17px}.history-themes article{padding:13px}.history-method-note{display:block}.history-method-note b{display:block;margin-bottom:4px}.module-count{display:none}}
/* V5: a single red-white palette; differentiate by information structure, not hue. */
:root{--red:#681927!important;--red2:#7c2635!important;--wine:#681927!important;--wine2:#7c2635!important;--wine3:#a34c5b!important;--soft:#fbf7f8!important;--rose:#fbf7f8!important;--ink:#282326!important;--muted:#766b70!important;--line:#e8dfe2!important;--bg:#f7f5f5!important}
.tab.active,.redbtn,.darkbtn,.stage-no{background:#681927!important;border-color:#681927!important;color:#fff!important}
a,.text-link,.path-title,.module-card strong{color:#681927!important}
#panel-m2 .dataset>summary,#panel-m3 .dataset>summary,#panel-m4 .dataset>summary,#panel-m5 .dataset>summary,#panel-m6 .dataset>summary,#panel-m7 .dataset>summary,#panel-m8 .dataset>summary,#panel-m9 .dataset>summary,#panel-m10 .dataset>summary{background:#f5e8eb!important;color:#681927!important}
#panel-m2 .claim-record,#panel-m4 .narrative-record,#panel-m5 .platform-record,#panel-m6 .incident-record,#panel-m7 .evaluation-record,#panel-m8 .interest-record,#panel-m9 .coding-record,#panel-m10 .monitoring-record{border-top:2px solid #7c2635!important;border-left:1px solid #e8dfe2!important}
.audience-card,.audience-number,.audience-card h3,.audience-card-head p,.audience-focus-block,.audience-tags{border-color:#e8dfe2!important;color:inherit!important;background-color:#fff!important}
.audience-number{background:#f5e8eb!important;color:#681927!important}
.audience-narratives{display:grid;gap:7px;margin:14px 0 12px}
.audience-narrative{display:flex;gap:9px;align-items:flex-start;padding:10px 11px;background:#fbf7f8;border-left:3px solid #7c2635;border-radius:0 6px 6px 0}
.audience-narrative p{margin:0;font-size:12.5px;color:#4f4549;line-height:1.65}
.narrative-bullet{font-size:10px;color:#7c2635;font-weight:800;padding-top:3px}
.audience-attitude{padding:10px 11px;margin:10px 0;background:#fff;border:1px solid #e8dfe2;border-radius:7px}
.audience-attitude .field-label{display:block;font-size:11px;font-weight:800;color:#681927;margin-bottom:4px}
.audience-attitude p{font-size:12px;color:#62575c;margin:0}
.overview-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin:4px 0 18px}
.overview-heading h2{font-size:27px;line-height:1.3;margin:5px 0 8px;color:#30272a}
.overview-heading p{font-size:14px;color:#6d6870;margin:0;max-width:950px}
.overview-kicker,.feature-kicker{font-size:10px;letter-spacing:.12em;font-weight:850;color:#7c2635}
.stat-grid.narrative-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.stat-grid.narrative-stats .stat{border:1px solid #e8dfe2;border-radius:11px;background:#fff}
.stat-grid.narrative-stats .stat .num{color:#681927}
.overview-narrative-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
.overview-feature{background:#fff;border:1px solid #e8dfe2;border-radius:11px;padding:19px;box-shadow:0 5px 20px #41111a0a}
.feature-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.feature-head h3{font-size:17px;margin:4px 0 0;color:#33282c}
.feature-index{font-size:11px;color:#a18b91;font-weight:700}
.feature-intro{font-size:12.5px;color:#70656a;margin:10px 0 15px}
.frame-cloud{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.frame-cloud span{display:flex;align-items:center;min-height:38px;background:#fbf7f8;border:1px solid #fbf7f8;border-radius:6px;padding:8px 10px;font-size:12px;color:#5b3c43}
.text-link{border:0;background:transparent;padding:0;margin-top:15px;font-size:12px;font-weight:800;cursor:pointer}
.decomposition-flow{display:grid;gap:7px}
.decomposition-flow>div{display:flex;align-items:center;gap:10px;border:1px solid #fbf7f8;background:#fbf7f8;padding:8px 10px;border-radius:6px}
.decomposition-flow b{flex:0 0 28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:5px;background:#681927;color:#fff;font-size:10px}
.decomposition-flow strong,.decomposition-flow small{display:block}.decomposition-flow strong{font-size:12px;color:#433338}.decomposition-flow small{font-size:11px;color:#82767b;margin-top:2px}
.overview-question-card h3{margin:4px 0 13px}
.question-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.question-grid>div{background:#fbf7f8;border:1px solid #fbf7f8;border-radius:7px;padding:12px}
.question-grid b{font-size:12px;color:#681927}.question-grid p{font-size:12px;margin:6px 0 0;color:#6c6065}
.claim-list,.narrative-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:12px 0}
.claim-card,.narrative-frame-card,.platform-stat-card,.channel-card,.social-sample,.incident-card,.audit-card,.evaluation-step,.evaluation-case,.method-card,.interest-card,.baseline-card,.decomp-step,.codebook-card,.narrative-case-card,.monitoring-mini,.taxonomy-group,.workflow-step{background:#fff;border:1px solid #e8dfe2;border-radius:9px;box-shadow:0 3px 12px #41111a08;min-width:0}
.claim-card{padding:15px;border-left:3px solid #7c2635}
.claim-card-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:9px}
.claim-id,.claim-type{font-size:10px;border-radius:4px;padding:4px 7px;background:#fbf7f8;color:#681927}.claim-type{font-weight:700}
.claim-card h3{font-size:14px;line-height:1.55;margin:0 0 9px;color:#352b2f}.claim-evidence{font-size:12px;color:#62575c;line-height:1.7;margin:0 0 10px}
.narrative-frame-card{padding:16px;border-top:3px solid #681927}
.frame-card-head{display:flex;align-items:center;gap:9px}.frame-no{display:flex;width:30px;height:30px;align-items:center;justify-content:center;border-radius:6px;background:#fbf7f8;color:#681927;font-size:10px;font-weight:850}
.frame-card-head h3{font-size:15px;margin:0}.frame-claim{font-size:12.5px;line-height:1.7;color:#5e5358;margin:12px 0}
.frame-lanes{display:grid;grid-template-columns:1fr 1fr;gap:8px}.frame-lanes>div,.frame-check{background:#fbf7f8;border:1px solid #fbf7f8;border-radius:6px;padding:10px}
.frame-lanes b,.frame-check b{font-size:11px;color:#681927}.frame-lanes p,.frame-check p{font-size:11.5px;color:#61565b;margin:5px 0 0;line-height:1.65}.frame-check{margin-top:8px}
.platform-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.platform-stat-card{padding:14px;border-top:3px solid #681927}.platform-stat-top{display:flex;justify-content:space-between;font-size:10px;color:#8b7a80}.platform-stat-index{color:#a28c92}
.platform-stat-card h3{font-size:13px;margin:8px 0 5px}.platform-stat-value{font-size:24px;font-weight:850;color:#681927;line-height:1.25}.platform-stat-card>p{font-size:11.5px;color:#6b6065;margin:8px 0}.platform-stat-use{font-size:11px;color:#7a6b70;border-top:1px solid #fbf7f8;padding-top:8px}
.channel-board,.incident-board,.evaluation-chain,.workflow-line{display:grid;gap:10px;margin:12px 0}
.channel-card{display:grid;grid-template-columns:42px 1fr;gap:12px;padding:15px}.channel-number{width:34px;height:34px;border-radius:7px;background:#681927;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:850}
.channel-main h3{font-size:15px;margin:0 0 5px}.channel-function{font-size:12px;color:#62575c;margin:0 0 10px}
.channel-block,.channel-risk{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:8px 0;border-top:1px solid #fbf7f8}.channel-block b,.channel-risk b{font-size:11px;color:#681927}.channel-block p,.channel-risk p{font-size:12px;color:#62575c;margin:0}.channel-risk{background:#fbf7f8;padding:9px;border-radius:6px;margin-top:6px}
.social-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:12px 0}.social-sample{padding:15px}.social-sample-meta{display:flex;justify-content:space-between;gap:8px;color:#7c2635;font-size:10px}.social-sample h3{font-size:14px;line-height:1.55;margin:10px 0}.social-sample>p{font-size:12px;color:#62575c;line-height:1.7}.social-frame{font-size:11px;background:#fbf7f8;color:#681927;border-radius:5px;padding:7px;margin:9px 0}.social-sample-foot{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#8a7a80}
.incident-card{display:grid;grid-template-columns:95px 1fr;gap:14px;padding:15px}.incident-marker{display:flex;flex-direction:column;gap:7px;align-items:flex-start}.incident-marker span{font-size:11px;font-weight:850;background:#681927;color:#fff;border-radius:6px;padding:6px 8px}.incident-marker small{font-size:10px;color:#8a7a80}.incident-title-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.incident-title-row h3{font-size:14px;margin:0}.incident-status{font-size:10px;color:#681927;background:#fbf7f8;border-radius:5px;padding:4px 6px}.incident-content>p{font-size:12px;color:#62575c;line-height:1.7}.incident-metric{display:grid;grid-template-columns:110px 1fr;gap:8px;background:#fbf7f8;padding:9px;border-radius:6px;font-size:11px}.incident-metric b{color:#681927}
.audit-grid,.evaluation-case-grid,.method-board,.interest-map,.baseline-grid,.codebook-grid,.narrative-case-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:12px 0}
.audit-card,.evaluation-case,.method-card,.interest-card,.baseline-card,.codebook-card,.narrative-case-card{padding:15px}
.audit-card-top,.interest-card-head,.codebook-card-head{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;font-weight:800;color:#681927}
.audit-card h3,.evaluation-case h3,.method-card h3,.interest-card h3,.baseline-card h3,.codebook-card h3,.narrative-case-card h3{font-size:14px;line-height:1.5;margin:8px 0;color:#352b2f}
.audit-method,.audit-two-col>div,.evaluation-columns>div,.case-columns>div,.method-block,.method-proof,.method-risk,.interest-gain,.interest-risk,.interest-measure,.narrative-case-grid>div{background:#fbf7f8;border:1px solid #fbf7f8;border-radius:6px;padding:9px;margin-top:7px}
.audit-method b,.audit-two-col b,.evaluation-columns b,.case-columns b,.method-block b,.method-proof b,.method-risk b,.interest-gain b,.interest-risk b,.interest-measure b,.narrative-case-grid b{font-size:11px;color:#681927}
.audit-method p,.audit-two-col p,.evaluation-columns p,.case-columns p,.method-block p,.method-proof p,.method-risk p,.interest-gain p,.interest-risk p,.interest-measure p,.narrative-case-grid p{font-size:11.5px;color:#62575c;line-height:1.65;margin:5px 0 0}
.audit-two-col,.evaluation-columns,.case-columns,.interest-balance,.narrative-case-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.evaluation-step{display:grid;grid-template-columns:42px 1fr;gap:12px;padding:14px}.evaluation-step-no{display:flex;width:34px;height:34px;align-items:center;justify-content:center;background:#681927;color:#fff;border-radius:7px;font-weight:850;font-size:11px}.evaluation-step-title h3{font-size:14px;margin:0 0 4px}.evaluation-step-title p{font-size:12px;color:#62575c;margin:0}.evaluation-caution{font-size:11px;color:#67575c;background:#fbf7f8;padding:9px;border-radius:6px;margin-top:8px}.evaluation-caution b{color:#681927}
.case-index,.narrative-case-kicker{font-size:10px;color:#7c2635;font-weight:850}.case-object{font-size:12px;color:#62575c}.case-fact,.case-method,.case-caveat,.narrative-case-claim,.narrative-case-relation,.narrative-case-status{background:#fbf7f8;padding:10px;border-radius:6px;margin-top:8px;font-size:12px;color:#62575c}.case-fact b,.case-method b,.case-caveat b,.narrative-case-relation b,.narrative-case-status b{color:#681927;font-size:11px}.case-fact p,.case-method p,.case-caveat p,.narrative-case-relation p,.narrative-case-status p{margin:5px 0 0;line-height:1.65}
.interest-card-head{justify-content:flex-start}.interest-card-head span,.codebook-card-head span{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#fbf7f8;border-radius:5px}.interest-question{font-size:12px;color:#62575c}.interest-gain,.interest-risk{margin-top:0}.interest-measure{margin-top:8px}.interest-relation{font-size:11px;color:#78686e;margin-top:8px;border-left:2px solid #7c2635;padding-left:8px}
.baseline-card{border-top:3px solid #681927}.baseline-period{font-size:10px;color:#8b7a80}.baseline-value{font-size:21px;color:#681927;font-weight:850;margin:8px 0}.baseline-card>p,.baseline-use{font-size:11.5px;color:#62575c;line-height:1.65}.baseline-use{border-top:1px solid #fbf7f8;padding-top:8px}
.decomp-board{display:grid;gap:10px;margin:12px 0}.decomp-step{display:grid;grid-template-columns:38px 1fr;gap:12px;padding:14px}.decomp-index{display:flex;width:30px;height:30px;align-items:center;justify-content:center;background:#681927;color:#fff;border-radius:6px;font-size:10px;font-weight:850}.decomp-main h3{font-size:14px;margin:0}.decomp-core{font-size:12px;color:#62575c;line-height:1.7}.decomp-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.decomp-grid>div{background:#fbf7f8;border:1px solid #fbf7f8;border-radius:6px;padding:9px}.decomp-grid b{font-size:11px;color:#681927}.decomp-grid p{font-size:11.5px;color:#62575c;line-height:1.65;margin:5px 0 0}
.codebook-card{padding:14px}.codebook-card-head{justify-content:flex-start}.codebook-card h3{margin:0}.codebook-values{font-size:11px;font-weight:700;color:#681927;background:#fbf7f8;padding:8px;border-radius:5px;margin:9px 0}.codebook-card>p{font-size:12px;color:#62575c;line-height:1.7}.codebook-example,.codebook-caution{font-size:11px;background:#fbf7f8;padding:9px;border-radius:5px;margin-top:7px;color:#62575c}.codebook-example b{color:#681927}.codebook-example p{margin:4px 0 0}
.narrative-case-card{padding:15px;border-top:3px solid #681927}.narrative-case-claim{font-size:12px;line-height:1.7}.narrative-case-grid{margin-top:8px}
.monitoring-groups{display:grid;gap:13px;margin:12px 0}.monitoring-group{background:#fff;border:1px solid #e8dfe2;border-radius:9px;padding:13px}.monitoring-group>header{display:flex;align-items:center;gap:9px;border-bottom:1px solid #fbf7f8;padding-bottom:10px;margin-bottom:10px}.monitoring-group>header span{background:#681927;color:#fff;border-radius:5px;padding:5px 7px;font-size:10px}.monitoring-group>header h3{font-size:14px;margin:0;color:#681927}.monitoring-group>header small{margin-left:auto;color:#8c7b81;font-size:10px}.monitoring-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.monitoring-mini{padding:12px;box-shadow:none}.monitoring-mini h4{font-size:12px;margin:0 0 7px}.monitoring-mini>p,.monitoring-use{font-size:11px;line-height:1.65;color:#62575c}.monitoring-use{background:#fbf7f8;padding:7px;border-radius:5px;margin-top:7px}.monitoring-use b{color:#681927}
.taxonomy-board{display:grid;gap:12px;margin:12px 0}.taxonomy-group{padding:14px}.taxonomy-group-head{display:flex;align-items:center;gap:9px;border-bottom:1px solid #fbf7f8;padding-bottom:10px;margin-bottom:10px}.taxonomy-group-head>span{display:flex;width:28px;height:28px;align-items:center;justify-content:center;background:#681927;color:#fff;border-radius:5px;font-size:10px}.taxonomy-group-head h3{font-size:14px;margin:0;color:#681927}.taxonomy-group-head small{margin-left:auto;font-size:10px;color:#8c7b81}.taxonomy-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.taxonomy-tag-card{border:1px solid #fbf7f8;border-radius:6px;padding:10px;background:#fcf9fa}.taxonomy-tag-label{display:inline-block;background:#fbf7f8;color:#681927;padding:4px 7px;border-radius:4px;font-size:11px;font-weight:800}.taxonomy-tag-card p{font-size:11.5px;color:#62575c;line-height:1.65}.taxonomy-example,.taxonomy-caution{font-size:10.5px;color:#766b70;border-top:1px solid #fbf7f8;padding-top:6px;margin-top:6px}
.workflow-step{display:grid;grid-template-columns:42px 1fr;gap:12px;padding:14px}.workflow-number{display:flex;width:34px;height:34px;align-items:center;justify-content:center;background:#681927;color:#fff;border-radius:7px;font-size:11px;font-weight:850}.workflow-title{display:flex;justify-content:space-between;gap:10px;align-items:center}.workflow-title h3{font-size:14px;margin:0}.workflow-title span{font-size:10px;color:#681927;background:#fbf7f8;border-radius:5px;padding:4px 6px}.workflow-body>p{font-size:12px;color:#62575c;line-height:1.7}.workflow-bottom{display:grid;grid-template-columns:1fr 1fr;gap:8px}.workflow-bottom>div{background:#fbf7f8;padding:9px;border-radius:6px}.workflow-bottom b{font-size:11px;color:#681927}.workflow-bottom p{font-size:11.5px;color:#62575c;line-height:1.65;margin:5px 0 0}
@media(max-width:900px){.stat-grid.narrative-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-narrative-grid{grid-template-columns:1fr}.question-grid{grid-template-columns:1fr 1fr}.platform-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage{grid-template-columns:1fr}.stage-modules{grid-template-columns:1fr}.claim-list,.narrative-matrix,.audit-grid,.evaluation-case-grid,.method-board,.interest-map,.baseline-grid,.codebook-grid,.narrative-case-board{grid-template-columns:1fr}}
@media(max-width:560px){.overview-heading{display:block}.overview-heading .pill{display:inline-flex;margin-top:10px}.stat-grid.narrative-stats{gap:8px}.stat-grid.narrative-stats .stat{padding:12px}.stat-grid.narrative-stats .num{font-size:23px}.frame-cloud,.frame-lanes,.audit-two-col,.evaluation-columns,.case-columns,.interest-balance,.narrative-case-grid,.decomp-grid,.monitoring-mini-grid,.taxonomy-tags,.workflow-bottom{grid-template-columns:1fr}.social-feed{grid-template-columns:1fr}.platform-stat-grid{grid-template-columns:1fr}.incident-card,.channel-card,.evaluation-step,.decomp-step,.workflow-step{grid-template-columns:1fr}.incident-title-row{display:block}.incident-status{display:inline-block;margin-top:6px}.channel-block,.channel-risk{grid-template-columns:1fr}.question-grid{grid-template-columns:1fr}}
/* V6: unified red-white palette and evidence-first social-listening dashboard */
:root{--wine:#681927;--wine2:#7c2635;--wine3:#9a4855;--rose:#f5e8eb;--bg:#f8f6f6;--line:#e8dfe2}
.hero{background:linear-gradient(118deg,#5b1420 0%,#681927 58%,#7c2635 100%)}
.tab.active,.darkbtn,.redbtn,.stage-no{background:#681927!important;border-color:#681927!important;color:#fff!important}
.path-title,.path-meta b,.module-hero h2,.module-count strong,.section-head h2,.module-card strong{color:#681927!important}
.insight,.finding-card,.record-card,.audience-card,.narrative-frame-card,.platform-stat-card,.channel-card,.audit-card,.evaluation-step,.evaluation-case,.interest-card,.baseline-card,.decomp-step,.codebook-card,.narrative-case-card,.monitoring-mini,.taxonomy-tag-card,.workflow-step{background:#fff!important}
.record-id,.record-tag,.pill,.dataset>summary,.audience-number,.claim-id,.claim-type,.case-index,.frame-no{background:#f5e8eb!important;color:#681927!important;border-color:#e8cdd1!important}
.sentiment-dashboard{margin:10px 0 20px}
.sentiment-dashboard-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;background:#fff;border:1px solid #e8dfe2;border-radius:11px;padding:18px;margin-bottom:12px}
.sentiment-kicker{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.08em;color:#7c2635;margin-bottom:5px}
.sentiment-dashboard-intro h3{font-size:19px;color:#681927;margin:0 0 6px}
.sentiment-dashboard-intro p{font-size:13px;color:#62575c;margin:0;max-width:900px}
.sentiment-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.sentiment-metric{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #e8dfe2;border-top:3px solid #681927;border-radius:9px;padding:15px}
.sentiment-metric strong{font-size:27px;color:#681927;line-height:1.15}
.sentiment-metric span{font-size:12px;font-weight:700;color:#44383d}
.sentiment-metric small{font-size:10px;color:#8a7a80}
.sentiment-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 20px}
.sentiment-chart{background:#fff;border:1px solid #e8dfe2;border-radius:10px;padding:17px}
.sentiment-chart h4{font-size:15px;color:#681927;margin:0 0 3px}
.sentiment-chart>p{font-size:11px;color:#8a7a80;margin:0 0 12px}
.sentiment-bar-row{margin:11px 0}
.sentiment-bar-row>div:first-child{display:flex;justify-content:space-between;font-size:12px;color:#4f4449;margin-bottom:5px}
.sentiment-bar-row b{color:#681927}
.sentiment-track{height:8px;border-radius:20px;background:#f2e9eb;overflow:hidden}
.sentiment-track i{display:block;height:100%;background:linear-gradient(90deg,#681927,#a34c5b);border-radius:20px}
.sentiment-bar-row.compact{margin:7px 0}
.sentiment-bar-row.compact>div:first-child{font-size:11px}
.sentiment-chart>small{display:block;margin-top:10px;font-size:10px;line-height:1.6;color:#85787d}
.sentiment-record-head{display:flex;justify-content:space-between;gap:12px;align-items:end;margin:20px 0 10px}
.sentiment-record-head h4{font-size:17px;color:#681927;margin:0}
.sentiment-record-head span{font-size:11px;color:#8a7a80}
.sentiment-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sentiment-record-card{background:#fff;border:1px solid #e8dfe2;border-radius:10px;padding:15px;min-width:0;box-shadow:0 3px 14px #41111a08}
.sentiment-record-top{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:#8a7a80;margin-bottom:8px}
.sentiment-record-id{display:inline-block;background:#f5e8eb;color:#681927;border-radius:4px;padding:3px 6px;font-weight:800}
.sentiment-record-card h4{font-size:14px;line-height:1.45;color:#352b2f;margin:0 0 7px}
.sentiment-record-type{display:inline-block;background:#fbf7f8;color:#7c2635;border:1px solid #eee1e4;border-radius:4px;padding:3px 6px;font-size:10px;margin-bottom:8px}
.sentiment-result{font-size:12px;line-height:1.65;color:#4f4449;margin:0 0 10px}
.sentiment-observation{border-left:3px solid #9a4855;background:#fbf7f8;padding:8px 10px;margin-bottom:9px}
.sentiment-observation b{font-size:10px;color:#681927}.sentiment-observation p{font-size:11px;color:#62575c;margin:3px 0 0;line-height:1.6}
.sentiment-source{font-size:11px;margin:8px 0}.sentiment-data-note{margin-top:15px;padding:13px 15px;background:#f8eff1;border-left:4px solid #681927;border-radius:0 7px 7px 0}
.sentiment-data-note b{font-size:12px;color:#681927}.sentiment-data-note p{font-size:12px;line-height:1.7;color:#62575c;margin:5px 0 0}
@media(max-width:850px){.sentiment-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sentiment-chart-grid{grid-template-columns:1fr}.sentiment-record-grid{grid-template-columns:1fr}.sentiment-dashboard-intro{display:block}.sentiment-dashboard-intro .pill{margin-top:10px;display:inline-flex}}
/* ── 页面 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><div class="topline"></div>
<header class="hero"><div class="hero-inner"><h1>菲律宾不做美国棋子叙事研究</h1>
<p>围绕菲美同盟、南海安全、战略自主与经济利益,梳理历史制度、受众认知、竞争叙事、平台传播和舆情变化。研究以公开资料为基础,区分可核验事实、政策解释与尚待证实的战略意图判断。</p>
<div class="hero-meta"><span class="hero-chip">十个研究模块</span><span class="hero-chip">公开资料与证据审计</span><span class="hero-chip">可检索、可导出</span><span class="hero-chip">离线独立页面</span></div></div></header>
<main><div class="navwrap"><nav class="tabs"><button class="tab active" data-tab="overview">专题总览</button><button class="tab" data-tab="m1">历史记忆与制度背景</button><button class="tab" data-tab="m2">叙事命题</button><button class="tab" data-tab="m3">菲律宾受众研究</button><button class="tab" data-tab="m4">竞争叙事研究</button><button class="tab" data-tab="m5">传播与平台机制</button><button class="tab" data-tab="m6">影响活动与信息真实性</button><button class="tab" data-tab="m7">传播效果与政策评估</button><button class="tab" data-tab="m8">菲律宾国家利益分析</button><button class="tab" data-tab="m9">叙事拆解与编码</button><button class="tab" data-tab="m10">舆情检测与分析流程</button></nav></div>
<section class="panel active" id="panel-overview">
<div class="overview-heading"><div><span class="overview-kicker">叙事结构 · 竞争框架 · 证据状态</span><h2>从一句口号,拆解为可研究的叙事体系</h2><p>围绕“菲律宾不做美国棋子”,识别核心命题、竞争解释、价值诉求与传播线索;所有框架均作为研究对象,而非预设结论。</p></div><span class="pill">叙事研究总览</span></div>
<div class="stat-grid narrative-stats">
<div class="stat"><div class="num">32</div><div class="label">叙事命题</div><div class="context">基地安排、同盟义务、援助条件、风险与战略自主</div></div>
<div class="stat"><div class="num">10</div><div class="label">竞争叙事框架</div><div class="context">从战略自主、同盟威慑到经济务实与信息透明</div></div>
<div class="stat"><div class="num">11</div><div class="label">叙事拆解要素</div><div class="context">核心命题、因果解释、价值基础、隐喻、证据与事实状态</div></div>
<div class="stat"><div class="num">16</div><div class="label">舆情检测指标</div><div class="context">内容规模、立场、来源质量、事实核验与传播趋势</div></div>
</div>
<div class="overview-narrative-grid">
<article class="overview-feature competitive-feature"><div class="feature-head"><div><span class="feature-kicker">COMPETING FRAMES</span><h3>十种竞争叙事框架</h3></div><span class="feature-index">01 / 10</span></div>
<p class="feature-intro">同一事件可能被不同主体赋予不同解释;框架之间既可能冲突,也可能在特定议题上重合。</p>
<div class="frame-cloud"><span>战略自主</span><span>同盟威慑</span><span>主权与国际法</span><span>经济务实</span><span>反基地与反殖民记忆</span><span>和平降级</span><span>对华威胁与反胁迫</span><span>“被当作棋子”框架</span><span>信息透明与反虚假信息</span><span>伙伴多元化</span></div>
<button class="text-link" data-open="m4">查看竞争叙事矩阵 <b>→</b></button></article>
<article class="overview-feature decomposition-feature"><div class="feature-head"><div><span class="feature-kicker">NARRATIVE DECOMPOSITION</span><h3>核心叙事拆解路径</h3></div><span class="feature-index">02 / 06</span></div>
<p class="feature-intro">将宽泛的政治表达拆成可以分别编码、核验和比较的研究单元。</p>
<div class="decomposition-flow">
<div><b>01</b><span><strong>核心命题</strong><small>菲律宾是否被当作战略工具?</small></span></div>
<div><b>02</b><span><strong>问题定义</strong><small>权力、风险与成本是否不对称?</small></span></div>
<div><b>03</b><span><strong>因果与动机归因</strong><small>政策目标与行动之间有何证据?</small></span></div>
<div><b>04</b><span><strong>价值与政策主张</strong><small>主权、和平、发展与监督如何权衡?</small></span></div>
<div><b>05</b><span><strong>证据与事实状态</strong><small>哪些可核验,哪些仍属解释或预测?</small></span></div></div>
<button class="text-link" data-open="m9">查看叙事拆解与编码 <b>→</b></button></article></div>
<div class="card overview-question-card"><div><span class="feature-kicker">RESEARCH QUESTIONS</span><h3>本专题的四个关键辨析</h3></div><div class="question-grid">
<div><b>同盟 ≠ 自动失去自主</b><p>区分合作安排、决策权、监督机制与政策依赖。</p></div>
<div><b>安全收益 ≠ 没有风险</b><p>分别检验威慑、地方影响与危机升级等不同结果。</p></div>
<div><b>援助并存 ≠ 条件捆绑</b><p>逐项目核验合同、资金用途、条件与实际交付。</p></div>
<div><b>高互动 ≠ 公众认同</b><p>结合抽样调查、原始来源与跨平台内容分析。</p></div></div></div>
<div class="pathway"><div class="pathway-intro"><div><h3>研究路径</h3><p>按“背景—命题—受众—传播—评估—监测”推进,可直接进入对应专题。</p></div><span class="pill">10个专题 · 5个研究阶段</span></div><div class="stage"><div class="stage-head"><span class="stage-no">01</span><div><h3>背景与命题</h3></div></div><div class="stage-modules"><button class="path-module" data-open="m1"><span class="path-title">历史记忆与制度背景</span><span class="path-desc">梳理基地历史、条约制度与主权争议。</span><span class="path-meta">进入专题 <b>→</b></span></button><button class="path-module" data-open="m2"><span class="path-title">叙事命题</span><span class="path-desc">将“棋子”、不平等、风险与援助条件拆成可核验主张。</span><span class="path-meta">进入专题 <b>→</b></span></button></div></div><div class="stage"><div class="stage-head"><span class="stage-no">02</span><div><h3>社会认知与竞争解释</h3></div></div><div class="stage-modules"><button class="path-module" data-open="m3"><span class="path-title">菲律宾受众研究</span><span class="path-desc">比较不同受众的叙事、态度与证据缺口。</span><span class="path-meta">进入专题 <b>→</b></span></button><button class="path-module" data-open="m4"><span class="path-title">竞争叙事研究</span><span class="path-desc">对照战略自主、同盟威慑、国际法与经济务实等框架。</span><span class="path-meta">进入专题 <b>→</b></span></button></div></div><div class="stage"><div class="stage-head"><span class="stage-no">03</span><div><h3>传播与真实性</h3></div></div><div class="stage-modules"><button class="path-module" data-open="m5"><span class="path-title">传播与平台机制</span><span class="path-desc">分析平台使用、公开样本和内容流动。</span><span class="path-meta">进入专题 <b>→</b></span></button><button class="path-module" data-open="m6"><span class="path-title">影响活动与信息真实性</span><span class="path-desc">区分事实错误、协调行为与主体归属。</span><span class="path-meta">进入专题 <b>→</b></span></button></div></div><div class="stage"><div class="stage-head"><span class="stage-no">04</span><div><h3>效果与国家利益</h3></div></div><div class="stage-modules"><button class="path-module" data-open="m7"><span class="path-title">传播效果与政策评估</span><span class="path-desc">评估产出、结果、因果关系及权利保障。</span><span class="path-meta">进入专题 <b>→</b></span></button><button class="path-module" data-open="m8"><span class="path-title">菲律宾国家利益分析</span><span class="path-desc">比较安全、经济、民生与战略自主。</span><span class="path-meta">进入专题 <b>→</b></span></button></div></div><div class="stage"><div class="stage-head"><span class="stage-no">05</span><div><h3>编码与持续监测</h3></div></div><div class="stage-modules"><button class="path-module" data-open="m9"><span class="path-title">叙事拆解与编码</span><span class="path-desc">将叙事转化为统一编码与可复核的分析单元。</span><span class="path-meta">进入专题 <b>→</b></span></button><button class="path-module" data-open="m10"><span class="path-title">舆情检测与分析流程</span><span class="path-desc">持续监测主题、立场、来源质量与趋势。</span><span class="path-meta">进入专题 <b>→</b></span></button></div></div></div>
<div class="note overview-method-note">统计口径:32条叙事命题、10种竞争叙事框架、11个叙事拆解要素和16项舆情检测指标来自当前专题资料库的结构化记录;它们表示已整理的研究单元数量,不代表真实舆论中的发生频率或受众认同程度。</div></section>
<section class="panel" id="panel-m1"><div class="section-head"><div><h2>历史记忆与制度背景</h2><p>梳理菲律宾殖民记忆、基地制度、共同防御条约、VFA、EDCA及关键历史争议,区分历史事实与当代解释。</p></div><span class="pill">2 个资料专题 · 29 条记录</span></div><div class="insight-grid"><div class="insight"><b>•</b><p>1991年基地条约争议与1992年美军撤出,是理解主权和外国军事存在争议的重要历史案例。</p></div><div class="insight"><b>•</b><p>MDT、VFA与EDCA的法律功能不同,应分别研究同盟义务、人员访问和约定地点使用。</p></div><div class="insight"><b>•</b><p>EDCA司法争议应同时阅读多数意见和异议意见。</p></div></div>
<div class="history-context">
<div class="history-context-head">
<div class="history-kicker">历史脉络与制度背景</div>
<h3>从殖民记忆、基地撤出到当代防务合作</h3>
<p>菲律宾对外国军事存在的讨论,形成于殖民统治记忆、冷战安全安排、国内宪政程序与当代南海争端的交汇处。历史背景能解释相关议题为何具有政治敏感性,但不能直接替代对当代公众态度或美国具体战略意图的实证研究。</p>
</div>
<div class="history-themes">
<article><span>01</span><div><h4>殖民记忆与独立自主</h4><p>1898—1946年的美国统治及菲律宾独立,为反殖民记忆和主权话语提供历史背景。不能由历史经历直接推断今天所有菲律宾人持相同立场。</p></div></article>
<article><span>02</span><div><h4>基地安排与国内政治</h4><p>1947年基地协定建立冷战时期的军事设施安排。1991年菲律宾参议院拒绝延续基地条约,1992年美军撤出主要基地,成为主权、议会决策与外国军事存在争议的重要节点。</p></div></article>
<article><span>03</span><div><h4>同盟制度的再构建</h4><p>1951年共同防御条约(MDT)、1998年签署并于1999年生效的访问部队协定(VFA),以及2014年签署的EDCA,分别处理不同的安全合作与人员访问问题,不应混称为同一类“基地协议”。</p></div></article>
<article><span>04</span><div><h4>司法审查与南海争端</h4><p>2016年菲律宾最高法院审查EDCA合宪性;同年南海仲裁庭作出裁决。两者分别涉及国内宪法程序与国际海洋法,构成当代叙事中经常被并置、但法律性质不同的背景。</p></div></article>
<article><span>05</span><div><h4>政策调整与地点扩展</h4><p>菲律宾曾在2020—2021年启动、暂停并撤回VFA终止通知;2023年美菲宣布新增四个EDCA地点,令军事合作、地方咨询、威慑与危机升级风险再次成为公共讨论焦点。</p></div></article>
</div>
<div class="history-method-note"><b>研究提示</b><span>将“历史记忆”“法律制度”“当代政策效果”和“战略意图归因”分别编码。历史事件可以构成叙事资源,但不能单独证明某项当代政策必然损害菲律宾利益。</span></div>
</div>
<div class="history-timeline"><div class="history-timeline-title"><h3>关键制度节点</h3><span>基于专题时间线资料整理</span></div><div class="timeline-grid"><article class="timeline-item"><div class="timeline-date">1898—1946</div><h4>美国统治与菲律宾独立</h4><p>菲律宾经历美国统治并于1946年独立;可作为殖民记忆背景,不能据此推断当代公众对美立场。</p></article><article class="timeline-item"><div class="timeline-date">1947-03-14</div><h4>美菲军事基地协定</h4><p>美国国务院历史背景资料记载,1947年协定使美国在菲律宾维持Clark、Subic等主要设施。</p><a href="https://1997-2001.state.gov/background_notes/philippines_0899_bgn.html" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">1951-08-30;1952-08-27生效</div><h4>共同防御条约(MDT)</h4><p>联合国条约数据库记载,条约于1951年签署、1952年生效。</p><a href="https://treaties.un.org/Pages/showDetails.aspx?objid=080000028014df2a" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">1991-09-16</div><h4>菲律宾参议院拒绝基地条约</h4><p>美国国务院历史资料记载,参议院拒绝基地条约,随后美军撤离。</p><a href="https://1997-2001.state.gov/background_notes/philippines_0899_bgn.html" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">1992-11-24</div><h4>美军撤出主要基地</h4><p>美国国务院历史资料记载,最后一批美军于1992年11月离开;部分基地资产转交菲律宾并转为民用。</p><a href="https://1997-2001.state.gov/background_notes/philippines_0899_bgn.html" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">1998-02-10签署;1999-06-01生效</div><h4>访问部队协定(VFA)</h4><p>VFA为获菲律宾政府批准活动而临时赴菲的美国人员规定相关待遇和法律框架。</p><a href="https://lawphil.net/international/treaties/vfa_1998.html" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">2014-04-28签署;2014-06-25生效</div><h4>加强防务合作协议(EDCA)</h4><p>美国国务院条约页面记载EDCA于2014年签署并于同年生效。</p><a href="https://2021-2025.state.gov/14-625/" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">2016-01-12</div><h4>菲律宾最高法院审理EDCA合宪性</h4><p>Saguisag案审查EDCA合宪性,判决页包含多数意见及法官单独/异议意见。</p><a href="https://lawphil.net/judjuris/juri2016/jan2016/gr_212426_2016.html" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">2016-07-12</div><h4>南海仲裁裁决</h4><p>仲裁庭作出裁决,涉及《联合国海洋法公约》下的海洋权利等法律问题。</p><a href="https://pca-cpa.org/en/cases/7/" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">2020—2021</div><h4>VFA终止通知及撤回</h4><p>菲律宾曾通知终止VFA,随后暂停终止程序,并于2021年撤回终止通知。</p><a href="https://www.everycrsreport.com/reports/R47055.html" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">2023-02-01</div><h4>宣布新增四个EDCA地点</h4><p>美菲宣布计划新增四个地点,官方声明强调训练、互操作性及人道主义救灾用途。</p><a href="https://www.defense.gov/News/Releases/Release/Article/3285566/philippines-us-announce-four-new-edca-sites/" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article><article class="timeline-item"><div class="timeline-date">2023-04-03</div><h4>公布新增EDCA地点</h4><p>地点包括Naval Base Camilo Osias、Camp Melchor Dela Cruz、Balabac Island和Lal-lo Airport。</p><a href="https://www.defense.gov/News/Releases/Release/Article/3349257/philippines-us-announce-locations-of-four-new-edca-sites/" target="_blank" rel="noopener noreferrer">查看原始来源 ↗</a></article></div></div><div class="toolbar"><input class="search" type="search" data-filter-module="m1" placeholder="搜索本模块全部数据:关键词、日期、标题、来源……"><button class="btn" data-clear-module="m1">清除搜索</button><button class="btn redbtn" data-export-module="m1">导出本模块 CSV</button></div><div class="search-summary" id="summary-m1">显示本模块全部记录</div><div id="data-m1"></Line truncated
<div class="audience-intro">
<div><span class="audience-kicker">受众分层观察</span><h3>同一议题,不同利益位置与信息环境</h3></div>
<p>以下受众画像用于组织研究问题,不是对群体政治态度的预设。每类受众均列出可能出现的叙事、需要检验的态度维度与证据缺口;具体判断应以调查、原始声明和可核验材料为准。</p>
</div>
<div class="toolbar"><input class="search" type="search" data-filter-module="m3" placeholder="搜索本模块全部数据:关键词、日期、标题、来源……"><button class="btn" data-clear-module="m3">清除搜索</button><button class="btn redbtn" data-export-module="m3">导出本模块 CSV</button></div><div class="search-summary" id="summary-m3">显示本模块全部记录</div><div id="data-m3"></div></section><section class="panel" id="panel-m4"><div class="section-head"><div><h2>竞争叙事研究</h2><p>并列分析战略自主、同盟威慑、国际法、经济务实、反基地、和平降级、对华威胁和信息透明等框架。</p></div><span class="pill">3 个资料专题 · 32 条记录</span></div><div class="insight-grid"><div class="insight"><b>•</b><p>竞争框架包括战略自主、同盟威慑、国际法、经济务实、反基地、和平降级、对华威胁和信息透明。</p></div><div class="insight"><b>•</b><p>战略自主不必然等于反美、亲华或退出同盟。</p></div><div class="insight"><b>•</b><p>“棋子”隐喻可被不同主体用于批评不同国家,需识别原文指向。</p></div></div><div class="toolbar"><input class="search" type="search" data-filter-module="m4" placeholder="搜索本模块全部数据:关键词、日期、标题、来源……"><button class="btn" data-clear-module="m4">清除搜索</button><button class="btn redbtn" data-export-module="m4">导出本模块 CSV</button></div><div class="search-summary" id="summary-m4">显示本模块全部记录</div><div id="data-m4"></div></section><section class="panel" id="panel-m5"><div class="section-head"><div><h2>传播与平台机制</h2><p>呈现菲律宾新闻平台使用、公开讨论样本、平台机制矩阵及跨平台传播链采集字段。</p></div><span class="pill">5 个资料专题 · 65 条记录</span></div><div class="insight-grid"><div class="insight"><b>•</b><p>2026年新闻使用调查中,Facebook是常见新闻渠道,YouTube、TikTok和Messenger也有显著新闻使用。</p></div><div class="insight"><b>•</b><p>社交媒体身份数、广告潜在触达、月活跃用户和新闻使用比例不可互换。</p></div><div class="insight"><b>•</b><p>传播链应保留原始URL、发布时间、采集时间、引用来源和互动快照。</p></div></div><div class="toolbar"><input class="search" type="search" data-filter-module="m5" placeholder="搜索本模块全部数据:关键词、日期、标题、来源……"><button class="btn" data-clear-module="m5">清除搜索</button><button class="btn redbtn" data-export-module="m5">导出本模块 CSV</button></div><div class="search-summary" id="summary-m5">显示本模块全部记录</div><div id="data-m5"></div></section><section class="panel" id="panel-m6"><div class="section-head"><div><h2>影响活动与信息真实性</h2><p>区分内容真伪、账号异常、协调传播和主体归属,对各方信息活动采用相同证据标准。</p></div><span class="pill">3 个资料专题 · 21 条记录</span></div><div class="insight-grid"><div class="insight"><b>•</b><p>公开案例包括TikTok菲律宾选举期间的隐蔽影响网络清理、X账号异常分析,以及美国疫苗信息活动新闻调查。</p></div><div class="insight"><b>•</b><p>内容真伪、账号真实性、协调行为和主体归属是不同判断层级。</p></div><div class="insight"><b>•</b><p>政治立场相似、同步讨论或互动量高,单独都不能证明境外操纵。</p></div></div><div class="toolbar"><input class="search" type="search" data-filter-module="m6" placeholder="搜索本模块全部数据:关键词、日期、标题、来源……"><button class="btn" data-clear-module="m6">清除搜索</button><button class="btn redbtn" data-export-module="m6">导出本模块 CSV</button></div><div class="search-summary" id="summary-m6">显示本模块全部记录</div><div id="data-m6"></div></section><section class="panel" id="panel-m7"><div class="section-head"><div><h2>传播效果与政策评估</h2><p>建立投入—活动—产出—结果—公共影响评估链,明确基线、混杂因素、因果识别和权利保障。</p></div><span class="pill">3 个资料专题 · 23 条记录</span></div><div class="insight-grid"><div class="insight"><b>•</b><p>评估链条应区分投入、活动、产出、短期结果、中期结果和公共影响。</p></div><div class="insight"><b>•</b><p>事实理解、来源识别、错误主张复发及申诉/误标率,比单纯点赞量更适合检验治理质量。</p></div><div class="insight"><b>•</b><p>事件前后变化不自动证明因果,需要可比样本和混杂因素控制。</p></div></div><div class="toolbar"><input class="search" type="search" data-filter-module="m7" placeholder="搜索本模块全部数据:关键词、日期、标题、来源……"><button class="btn" data-clear-module="m7">清除搜索</button><buttoLine truncated
<div class="footer">研究范围:公开资料与专题讨论整理。页面用于研究、比较和证据审计,不预设叙事真伪或菲律宾公众立场。数据可能受来源时间、平台访问权限、民调题目和统计口径影响。<br>专题名称:菲律宾不做美国棋子叙事研究 · 页面版本 V4.0</div></main>
<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>