sync update from LAN repo (source dhk-1 @ fc974e93)
This commit is contained in:
1 parent
a1fa13a238
commit
e2fea6a801
432 files changed
+68707
-2270
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
{"project":{"title":"日本涉台介入风险叙事专题研究系统","subtitle":"围绕“介入战争日本祸及自身”叙事的事件、人物、组织、制度、地方、媒体、经济与民意数据库","version":"1.0","language":"zh-CN","last_updated":"2026-06-30","description":"本数据用于展示日本方向涉台介入风险叙事中的事件、人物、组织、制度、地方、媒体、经济、民意与竞争叙事。"},"tabs":[{"id":"overview","name":"总览仪表盘","dataset":null,"description":"展示专题总风险、叙事分布、热点地区、重点人物和最新事件。"},{"id":"timeline","name":"事件时间线","dataset":"events_timeline","description":"展示2014年以来日本涉台安全政策、政要表态、地方避难和中日冲突节点。"},{"id":"actors_orgs","name":"人物组织","dataset":["actors_japan","organizations"],"description":"展示日本政府、政党、地方政治、专家、媒体和社会组织。"},{"id":"security_laws","name":"法律制度","dataset":"security_laws","description":"展示存立危机、重要影响、国民保护、日美安保等制度路径。"},{"id":"local_frontline","name":"地方前线","dataset":"local_frontline","description":"展示冲绳、先岛、石垣、宫古、与那国、九州、山口等地方风险。"},{"id":"antiwar_networks","name":"反战护宪网络","dataset":"antiwar_networks","description":"展示九条之会、日弁连、冲绳和平运动、地方反导弹组织和工会网络。"},{"id":"conservative_backlash","name":"保守反弹","dataset":"conservative_backlash","description":"展示威慑、防卫、中国认知战、台湾伙伴等竞争叙事。"},{"id":"media_platform","name":"媒体平台","dataset":"media_platform_samples","description":"展示全国媒体、地方媒体、YouTube、X、Yahoo、note等传播样本。"},{"id":"economic_spillover","name":"经济外溢","dataset":"economic_spillover","description":"展示旅游、航空、半导体、供应链、出口管制等风险。"},{"id":"public_opinion","name":"民意受众","dataset":"public_opinion_youth","description":"展示台湾有事、防卫费、修宪、青年、都市无党派和冲绳地方态度。"},{"id":"japan_taiwan","name":"日台关系","dataset":"japan_taiwan_relations","description":"展示日台实务窗口、亲台议员网络、地方交流、半导体合作和智库推演。"},{"id":"corpus_keywords","name":"语料词库","dataset":"source_corpus_keywords","description":"展示原始语料来源、日文关键词、平台监测词和证据状态。"}],"dashboard":{"summary_cards":[{"title":"核心叙事","value":"介入战争日本祸及自身","description":"围绕日本涉台介入可能引发战争卷入、地方牺牲、经济反制和社会撕裂的风险叙事。"},{"title":"数据条目","value":"164","description":"覆盖事件、人物、组织、制度、地方、媒体、经济、民意和日台关系。"},{"title":"高风险地区","value":"冲绳、先岛、九州","description":"冲绳本岛、石垣、宫古、与那国、九州和山口是地方风险最集中的区域。"},{"title":"核心法律入口","value":"存立危机事态","description":"台湾有事是否触发日本集体自卫权,是舆论和国会争议核心。"},{"title":"主要竞争叙事","value":"威慑才能防止战争","description":"保守派和安保界常用威慑、防卫、中国威胁等逻辑反击反介入叙事。"},{"title":"总体风险","value":"86 / 100","description":"综合政治触发、地方影响、经济外溢、媒体扩散和反弹强度评估。"}],"narrative_distribution":[{"label":"地方牺牲","count":38},{"label":"护宪反战","count":22},{"label":"威慑防战","count":20},{"label":"经济代价","count":18},{"label":"中性解释","count":17},{"label":"台湾伙伴","count":15},{"label":"战争卷入","count":12},{"label":"专业治理","count":12},{"label":"中国胁迫","count":6},{"label":"中国威胁","count":4}],"hotspots":[{"location":"日本","count":42},{"location":"东京","count":15},{"location":"冲绳","count":12},{"location":"日本全国","count":9},{"location":"宫古岛","count":5},{"location":"华盛顿","count":4},{"location":"与那国","count":4},{"location":"石垣","count":3},{"location":"九州/山口","count":3},{"location":"熊本","count":3},{"location":"先岛/九州/山口","count":2},{"location":"中日之间","count":2}],"top_risks":[{"id":"E016","title_cn":"高市早苗称台湾有事可能构成存立危机事态","category":"首相表态","summary":"高市早苗在国会答辩中将台湾有事与存立危机事态直接相连。","detail":"该事件将保守派长期话语推入首相级官方争议,是本数据库最高风险政治触发点之一。反介入派围绕其构建“首相让日本卷入战争”的批评;保守派则解释为守护和平的威慑表态。","risk_score":99,"risk_level":"极高","narrative_direction":"war_entanglement"Line truncated
|
||||
+480
@@ -0,0 +1,480 @@
|
||||
{
|
||||
"说明": "字段显示目录:值级隐藏(隐藏即 data.json 各条目该键清空,全部渲染路径生效)。",
|
||||
"fields": [
|
||||
{
|
||||
"label": "id",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(id,出现 186 条)",
|
||||
"keys": [
|
||||
"id"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "name",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(name,出现 12 条)",
|
||||
"keys": [
|
||||
"name"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "dataset",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(dataset,出现 12 条)",
|
||||
"keys": [
|
||||
"dataset"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "description",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(description,出现 18 条)",
|
||||
"keys": [
|
||||
"description"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "title",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(title,出现 6 条)",
|
||||
"keys": [
|
||||
"title"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "value",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(value,出现 6 条)",
|
||||
"keys": [
|
||||
"value"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "label",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(label,出现 10 条)",
|
||||
"keys": [
|
||||
"label"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "count",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(count,出现 22 条)",
|
||||
"keys": [
|
||||
"count"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "location",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(location,出现 186 条)",
|
||||
"keys": [
|
||||
"location"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "title_cn",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(title_cn,出现 174 条)",
|
||||
"keys": [
|
||||
"title_cn"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "category",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(category,出现 174 条)",
|
||||
"keys": [
|
||||
"category"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "summary",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(summary,出现 174 条)",
|
||||
"keys": [
|
||||
"summary"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "detail",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(detail,出现 174 条)",
|
||||
"keys": [
|
||||
"detail"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "risk_score",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(risk_score,出现 174 条)",
|
||||
"keys": [
|
||||
"risk_score"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "risk_level",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(risk_level,出现 174 条)",
|
||||
"keys": [
|
||||
"risk_level"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "narrative_direction",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(narrative_direction,出现 174 条)",
|
||||
"keys": [
|
||||
"narrative_direction"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "narrative_label",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(narrative_label,出现 174 条)",
|
||||
"keys": [
|
||||
"narrative_label"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "date",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(date,出现 174 条)",
|
||||
"keys": [
|
||||
"date"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "tags",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(tags,出现 174 条)",
|
||||
"keys": [
|
||||
"tags"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "evidence_status",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(evidence_status,出现 174 条)",
|
||||
"keys": [
|
||||
"evidence_status"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "confidence_level",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"事件时间线",
|
||||
"人物组织",
|
||||
"法律制度",
|
||||
"地方前线",
|
||||
"反战护宪网络",
|
||||
"保守反弹",
|
||||
"媒体平台",
|
||||
"经济外溢",
|
||||
"民意受众",
|
||||
"日台关系",
|
||||
"语料词库"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(confidence_level,出现 174 条)",
|
||||
"keys": [
|
||||
"confidence_level"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "role",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"人物组织"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(role,出现 17 条)",
|
||||
"keys": [
|
||||
"role"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "stance",
|
||||
"pages": [
|
||||
"总览仪表盘",
|
||||
"人物组织"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(stance,出现 17 条)",
|
||||
"keys": [
|
||||
"stance"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "metrics",
|
||||
"pages": [
|
||||
"民意受众"
|
||||
],
|
||||
"description": "民意受众 数据字段(metrics,出现 2 条)",
|
||||
"keys": [
|
||||
"metrics"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "group",
|
||||
"pages": [
|
||||
"语料词库"
|
||||
],
|
||||
"description": "语料词库 数据字段(group,出现 4 条)",
|
||||
"keys": [
|
||||
"group"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "terms",
|
||||
"pages": [
|
||||
"语料词库"
|
||||
],
|
||||
"description": "语料词库 数据字段(terms,出现 4 条)",
|
||||
"keys": [
|
||||
"terms"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "range",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(range,出现 5 条)",
|
||||
"keys": [
|
||||
"range"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "level",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(level,出现 5 条)",
|
||||
"keys": [
|
||||
"level"
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
{
|
||||
"label": "meaning",
|
||||
"pages": [
|
||||
"总览仪表盘"
|
||||
],
|
||||
"description": "总览仪表盘 数据字段(meaning,出现 5 条)",
|
||||
"keys": [
|
||||
"meaning"
|
||||
],
|
||||
"custom": false
|
||||
}
|
||||
]
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"系统": {
|
||||
"名称": "日本涉台介入风险叙事专题研究系统",
|
||||
"说明": "围绕“介入战争日本祸及自身”叙事的事件、人物、组织、制度、地方、媒体、经济与民意数据库",
|
||||
"版本": "1.0"
|
||||
},
|
||||
"页面": [
|
||||
{
|
||||
"编号": "overview",
|
||||
"名称": "总览仪表盘"
|
||||
},
|
||||
{
|
||||
"编号": "timeline",
|
||||
"名称": "事件时间线"
|
||||
},
|
||||
{
|
||||
"编号": "actors_orgs",
|
||||
"名称": "人物组织"
|
||||
},
|
||||
{
|
||||
"编号": "security_laws",
|
||||
"名称": "法律制度"
|
||||
},
|
||||
{
|
||||
"编号": "local_frontline",
|
||||
"名称": "地方前线"
|
||||
},
|
||||
{
|
||||
"编号": "antiwar_networks",
|
||||
"名称": "反战护宪网络"
|
||||
},
|
||||
{
|
||||
"编号": "conservative_backlash",
|
||||
"名称": "保守反弹"
|
||||
},
|
||||
{
|
||||
"编号": "media_platform",
|
||||
"名称": "媒体平台"
|
||||
},
|
||||
{
|
||||
"编号": "economic_spillover",
|
||||
"名称": "经济外溢"
|
||||
},
|
||||
{
|
||||
"编号": "public_opinion",
|
||||
"名称": "民意受众"
|
||||
},
|
||||
{
|
||||
"编号": "japan_taiwan",
|
||||
"名称": "日台关系"
|
||||
},
|
||||
{
|
||||
"编号": "corpus_keywords",
|
||||
"名称": "语料词库"
|
||||
}
|
||||
],
|
||||
"交互规则": {
|
||||
"默认展示": "overview"
|
||||
}
|
||||
}
|
||||
+226
@@ -0,0 +1,226 @@
|
||||
/* no.no.24 页面运行时(结构化模板)。
|
||||
* 由 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 (DATA.tabs||[]).filter(t=>!pageHidden(t.id))}
|
||||
function esc(s){return String(s??'').replace(/[&<>"']/g,m=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[m]));}
|
||||
function syncHeader(){
|
||||
const sys=(MANIFEST['系统']||{});
|
||||
const h1=document.querySelector('.hero h1');
|
||||
if(sys['名称']){document.title=String(sys['名称']);if(h1)h1.textContent=String(sys['名称'])}
|
||||
const sub=document.querySelector('.hero .subtitle');
|
||||
if(sub&&sys['说明'])sub.textContent=String(sys['说明']);
|
||||
const pills=document.querySelectorAll('.hero-meta .pill');
|
||||
const project=DATA.project||{};
|
||||
if(pills[0]&&project.version)pills[0].textContent='版本:'+project.version;
|
||||
if(pills[1]&&project.last_updated)pills[1].textContent='更新:'+project.last_updated;
|
||||
}
|
||||
function renderCustomModules(pageId){
|
||||
const host=document.getElementById('content');
|
||||
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(){
|
||||
const list=visibleTabs();
|
||||
if(!state.activeTab||pageHidden(state.activeTab)||!list.some(t=>t.id===state.activeTab)){
|
||||
if(list[0])state.activeTab=list[0].id;
|
||||
}
|
||||
}
|
||||
function refillNarrative(){
|
||||
const sel=document.getElementById('narrativeFilter');
|
||||
if(!sel)return;
|
||||
const current=sel.value;
|
||||
sel.innerHTML='<option value="">全部叙事方向</option>';
|
||||
Object.values(DATA.narrative_labels||{}).forEach(label=>{
|
||||
const opt=document.createElement('option');
|
||||
opt.value=label; opt.textContent=label; sel.appendChild(opt);
|
||||
});
|
||||
if([...sel.options].some(o=>o.value===current))sel.value=current;
|
||||
}
|
||||
|
||||
const state = { activeTab: 'overview' };
|
||||
|
||||
const tabsEl = document.getElementById('tabs');
|
||||
const contentEl = document.getElementById('content');
|
||||
const qEl = document.getElementById('q');
|
||||
const narrativeEl = document.getElementById('narrativeFilter');
|
||||
const riskEl = document.getElementById('riskFilter');
|
||||
const evidenceEl = document.getElementById('evidenceFilter');
|
||||
|
||||
function init() {
|
||||
applyPageVisibility();
|
||||
refillNarrative();
|
||||
renderTabs();
|
||||
render();
|
||||
[qEl, narrativeEl, riskEl, evidenceEl].forEach(el => el.addEventListener('input', render));
|
||||
}
|
||||
|
||||
function renderTabs() {
|
||||
tabsEl.innerHTML = '';
|
||||
visibleTabs().forEach(t => {
|
||||
const btn = document.createElement('button');
|
||||
btn.className = 'tab-btn' + (state.activeTab === t.id ? ' active' : '');
|
||||
btn.textContent = t.name;
|
||||
btn.onclick = () => { if(pageHidden(t.id))return; state.activeTab = t.id; qEl.value=''; render(); };
|
||||
tabsEl.appendChild(btn);
|
||||
});
|
||||
}
|
||||
|
||||
function getActiveTab() { return DATA.tabs.find(t => t.id === state.activeTab) || visibleTabs()[0]; }
|
||||
function getItems(tab) {
|
||||
if (!tab || !tab.dataset) return [];
|
||||
if (Array.isArray(tab.dataset)) return tab.dataset.flatMap(k => DATA.datasets[k] || []);
|
||||
return DATA.datasets[tab.dataset] || [];
|
||||
}
|
||||
function textOf(x) {
|
||||
return [x.id, x.title_cn, x.category, x.summary, x.detail, x.location, x.narrative_label, ...(x.tags||[])].join(' ').toLowerCase();
|
||||
}
|
||||
function filtered(items) {
|
||||
const q = qEl.value.trim().toLowerCase();
|
||||
const n = narrativeEl.value;
|
||||
const r = riskEl.value;
|
||||
const e = evidenceEl.value;
|
||||
return items.filter(x => (!q || textOf(x).includes(q)) && (!n || x.narrative_label === n) && (!r || x.risk_level === r) && (!e || x.evidence_status === e));
|
||||
}
|
||||
function riskClass(level) { return level === '极高' ? 'xh' : level === '高' ? 'h' : 'm'; }
|
||||
|
||||
function render() {
|
||||
const tab = getActiveTab();
|
||||
if (state.activeTab === 'overview') return renderOverview();
|
||||
const items = filtered(getItems(tab));
|
||||
const keywordBlock = state.activeTab === 'corpus_keywords' ? renderKeywords() : '';
|
||||
contentEl.innerHTML = `
|
||||
<div class="tab-head">
|
||||
<div><h2 class="tab-title">${tab.name}</h2><p class="tab-desc">${tab.description}</p></div>
|
||||
<div class="count-badge">${items.length} 条</div>
|
||||
</div>
|
||||
${items.length ? `<div class="cards">${items.map(card).join('')}</div>` : '<div class="empty">没有符合当前筛选条件的数据。</div>'}
|
||||
${keywordBlock}
|
||||
`;
|
||||
}
|
||||
|
||||
function renderOverview() {
|
||||
const d = DATA.dashboard;
|
||||
const maxNarr = Math.max(...d.narrative_distribution.map(x => x.count));
|
||||
const maxHot = Math.max(...d.hotspots.map(x => x.count));
|
||||
contentEl.innerHTML = `
|
||||
<div class="tab-head">
|
||||
<div><h2 class="tab-title">总览仪表盘</h2><p class="tab-desc">展示专题总风险、叙事分布、热点地区、重点人物和最新事件。可通过上方搜索框对全库进行粗略检索。</p></div>
|
||||
<div class="count-badge">${Object.values(DATA.datasets).filter(Array.isArray).flat().length - DATA.datasets.keywords.length} 条</div>
|
||||
</div>
|
||||
<div class="summary-grid">${d.summary_cards.map(c => `<div class="summary-card"><h3>${c.title}</h3><div class="value">${c.value}</div><p>${c.description}</p></div>`).join('')}</div>
|
||||
<div class="overview-grid">
|
||||
<div class="box"><h3>叙事分布</h3>${d.narrative_distribution.map(x => `<div class="bar-row"><span>${x.label}</span><div class="bar"><span style="width:${Math.max(8, x.count/maxNarr*100)}%"></span></div><b>${x.count}</b></div>`).join('')}</div>
|
||||
<div class="box"><h3>热点地区</h3>${d.hotspots.slice(0,10).map(x => `<div class="bar-row"><span>${x.location}</span><div class="bar"><span style="width:${Math.max(8, x.count/maxHot*100)}%"></span></div><b>${x.count}</b></div>`).join('')}</div>
|
||||
</div>
|
||||
<div class="overview-grid">
|
||||
<div class="box"><h3>高风险条目</h3><div class="risk-list">${d.top_risks.slice(0,6).map(x => `<div class="risk-mini" onclick="openModalById('${x.id}')"><strong>${x.title_cn}</strong><br><span>${x.category} · 风险 ${x.risk_score} · ${x.narrative_label}</span></div>`).join('')}</div></div>
|
||||
<div class="box"><h3>主要风险驱动</h3><div class="meta">${d.risk_drivers.map(x => `<span class="tag">${x}</span>`).join('')}</div><div class="section"><h3>页面使用建议</h3><p>先从“事件时间线”定位触发节点,再到“法律制度”查看制度路径;涉及地方影响时进入“地方前线”和“反战护宪网络”;涉及传播扩散时进入“媒体平台”;涉及成本量化时进入“经济外溢”和“民意受众”。</p></div></div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
function card(x) {
|
||||
return `<article class="card">
|
||||
<div class="card-top"><span class="card-id">${x.id}</span><span class="risk ${riskClass(x.risk_level)}">${x.risk_level} · ${x.risk_score}</span></div>
|
||||
<h3>${x.title_cn}</h3>
|
||||
<div class="meta"><span class="tag">${x.category}</span><span class="tag">${x.narrative_label}</span><span class="tag">${x.location || '—'}</span></div>
|
||||
<p>${x.summary}</p>
|
||||
<div class="meta">${(x.tags || []).slice(0,4).map(t => `<span class="tag">${t}</span>`).join('')}</div>
|
||||
<div class="card-footer"><span class="evidence">证据:${x.evidence_status} · 可信度${x.confidence_level}</span><button class="btn" onclick="openModalById('${x.id}')">查看详情</button></div>
|
||||
</article>`;
|
||||
}
|
||||
|
||||
function renderKeywords() {
|
||||
return `<div class="keyword-wrap">${DATA.datasets.keywords.map(g => `<div class="keyword-group"><h3>${g.group}</h3>${g.terms.map(t => `<span class="kw">${t}</span>`).join('')}</div>`).join('')}</div>`;
|
||||
}
|
||||
|
||||
function allItems() { return Object.entries(DATA.datasets).filter(([k]) => k !== 'keywords').flatMap(([k,v]) => Array.isArray(v) ? v : []); }
|
||||
function openModalById(id) { const x = allItems().find(i => i.id === id); if (x) openModal(x); }
|
||||
function openModal(x) {
|
||||
document.getElementById('modalMeta').textContent = `${x.id} · ${x.category} · ${x.narrative_label}`;
|
||||
document.getElementById('modalTitle').textContent = x.title_cn;
|
||||
const metrics = x.metrics ? `<div class="section"><h3>关键指标</h3><p>${Object.entries(x.metrics).map(([k,v]) => `${k}:${v}`).join(';')}</p></div>` : '';
|
||||
document.getElementById('modalBody').innerHTML = `
|
||||
<div class="detail-grid">
|
||||
<div class="detail-cell"><span>风险等级</span><strong>${x.risk_level} · ${x.risk_score}</strong></div>
|
||||
<div class="detail-cell"><span>叙事方向</span><strong>${x.narrative_label}</strong></div>
|
||||
<div class="detail-cell"><span>时间</span><strong>${x.date || '持续'}</strong></div>
|
||||
<div class="detail-cell"><span>地点</span><strong>${x.location || '—'}</strong></div>
|
||||
<div class="detail-cell"><span>证据状态</span><strong>${x.evidence_status}</strong></div>
|
||||
<div class="detail-cell"><span>可信度</span><strong>${x.confidence_level}</strong></div>
|
||||
<div class="detail-cell"><span>类别</span><strong>${x.category}</strong></div>
|
||||
<div class="detail-cell"><span>编号</span><strong>${x.id}</strong></div>
|
||||
</div>
|
||||
<div class="section"><h3>摘要</h3><p>${x.summary}</p></div>
|
||||
<div class="section"><h3>详情解读</h3><p>${x.detail}</p></div>
|
||||
${metrics}
|
||||
<div class="section"><h3>关联标签</h3><p>${(x.tags || []).map(t => `#${t}`).join(' ')}</p></div>
|
||||
<div class="section"><h3>展示建议</h3><p>该条目可与同类事件、相关人物组织、地方节点、法律制度和媒体平台样本联动。若用于二级页面,建议补充时间线、争议双方观点、原始语料和平台传播样本。</p></div>
|
||||
`;
|
||||
document.getElementById('modalBackdrop').classList.add('open');
|
||||
}
|
||||
function closeModal() { document.getElementById('modalBackdrop').classList.remove('open'); }
|
||||
function backdropClose(e) { if (e.target.id === 'modalBackdrop') closeModal(); }
|
||||
window.addEventListener('keydown', e => { if(e.key === 'Escape') closeModal(); });
|
||||
(function(){
|
||||
const _render=render;
|
||||
render=function(){
|
||||
applyPageVisibility();
|
||||
renderTabs();
|
||||
_render();
|
||||
syncHeader();
|
||||
renderCustomModules(state.activeTab);
|
||||
};
|
||||
})();
|
||||
/* ── 页面 JSON 编辑器 ── */
|
||||
(function(){
|
||||
"use strict";
|
||||
function clone(v){return JSON.parse(JSON.stringify(v))}
|
||||
function draftsToData(d){var o={};Object.keys(d).forEach(function(k){if(k!=='__manifest__')o[k]=d[k]});return o}
|
||||
function replaceInPlace(t,s){Object.keys(t).forEach(function(k){delete t[k]});Object.keys(s).forEach(function(k){t[k]=s[k]})}
|
||||
function buildDrafts(data,manifest){var o={__manifest__:clone(manifest)};Object.keys(data).forEach(function(k){o[k]=clone(data[k])});return o}
|
||||
const initialData=clone(DATA),initialManifest=clone(MANIFEST);
|
||||
const overlay=document.getElementById('editorOverlay');
|
||||
if(!overlay)return;
|
||||
const fingerprint=(function(){let h=2166136261;const s=JSON.stringify(initialData)+'|'+JSON.stringify(initialManifest);for(let i=0;i<s.length;i++){h^=s.charCodeAt(i);h=Math.imul(h,16777619)}return (h>>>0).toString(36)})();
|
||||
const storageKey='structured-page-data-v1:'+fingerprint;
|
||||
function readLS(k){try{return window.localStorage?window.localStorage.getItem(k):null}catch(x){return null}}
|
||||
function writeLS(k,v){try{if(window.localStorage)window.localStorage.setItem(k,v)}catch(x){}}
|
||||
function removeLS(k){try{if(window.localStorage)window.localStorage.removeItem(k)}catch(x){}}
|
||||
(function(){const cached=readLS(storageKey);if(!cached)return;try{const parsed=JSON.parse(cached);if(parsed&&typeof parsed==='object'&&parsed.data&&typeof parsed.data==='object'){replaceInPlace(DATA,parsed.data);if(parsed.manifest&&typeof parsed.manifest==='object')replaceInPlace(MANIFEST,parsed.manifest)}}catch(x){}})();
|
||||
const labels={};(MANIFEST['页面']||[]).forEach(p=>{if(p&&p['编号'])labels[p['编号']]=p['名称']||p['编号']});
|
||||
const modules=Object.keys(DATA).concat(['__manifest__']);
|
||||
let active=modules[0]||'__manifest__';
|
||||
let drafts=buildDrafts(DATA,MANIFEST);
|
||||
function moduleTitle(k){return k==='__manifest__'?'系统设置(MANIFEST)':(labels[k]||k)}
|
||||
const tabsEl=document.getElementById('editorTabs'),editor=document.getElementById('jsonEditor'),statusEl=document.getElementById('jsonStatus'),titleEl=document.getElementById('editorModuleTitle');
|
||||
function setStatus(ok,msg){statusEl.textContent=msg;statusEl.className='json-status '+(ok?'valid':'invalid')}
|
||||
function readEditor(){try{const p=JSON.parse(editor.value);if(!p||typeof p!=='object')throw new Error('模块必须是 JSON 对象或数组');setStatus(true,'JSON 有效');return p}catch(x){setStatus(false,'JSON 无效:'+x.message);return null}}
|
||||
function saveActiveDraft(){const p=readEditor();if(!p)return false;drafts[active]=p;return true}
|
||||
function loadEditor(){titleEl.textContent=moduleTitle(active);editor.value=JSON.stringify(drafts[active],null,2);setStatus(true,'JSON 有效')}
|
||||
function renderEditorTabs(){tabsEl.innerHTML='';modules.forEach(function(key){const b=document.createElement('button');b.type='button';b.className='editor-tab'+(key===active?' active':'');b.innerHTML='<b>'+esc(moduleTitle(key))+'</b><small>'+(key==='__manifest__'?'manifest.json':key)+'</small>';b.onclick=function(){if(key===active||!saveActiveDraft())return;active=key;renderEditorTabs();loadEditor()};tabsEl.appendChild(b)})}
|
||||
function closeEditor(){overlay.style.display='none'}
|
||||
function applyToPage(){if(!saveActiveDraft()){setStatus(false,'存在无效模块');return}replaceInPlace(DATA,draftsToData(drafts));replaceInPlace(MANIFEST,drafts.__manifest__);closeEditor();refillNarrative();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)};
|
||||
})();
|
||||
init();
|
||||
+281
@@ -0,0 +1,281 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>日本涉台介入风险叙事专题研究系统</title>
|
||||
<style>
|
||||
:root {
|
||||
--bg: #8f1f25;
|
||||
--bg2: #b8323a;
|
||||
--panel: #fff7f3;
|
||||
--card: #ffffff;
|
||||
--ink: #241616;
|
||||
--muted: #76605d;
|
||||
--line: rgba(120, 29, 35, .18);
|
||||
--red: #b7202e;
|
||||
--red-dark: #7b121b;
|
||||
--gold: #f3c969;
|
||||
--soft: #fff2eb;
|
||||
--green: #18724d;
|
||||
--orange: #b35b13;
|
||||
--blue: #275b91;
|
||||
--shadow: 0 18px 50px rgba(58, 9, 15, .18);
|
||||
--radius: 18px;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
|
||||
background: radial-gradient(circle at 20% 0%, #d94c4c 0, transparent 24%), linear-gradient(140deg, var(--bg), #641018 70%);
|
||||
color: var(--ink);
|
||||
min-height: 100vh;
|
||||
}
|
||||
.app { max-width: 1480px; margin: 0 auto; padding: 28px; }
|
||||
.hero {
|
||||
color: #fff;
|
||||
padding: 24px 26px 22px;
|
||||
border: 1px solid rgba(255,255,255,.18);
|
||||
background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 26px;
|
||||
box-shadow: var(--shadow);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hero::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 420px; height: 420px;
|
||||
border: 1px solid rgba(255,255,255,.12);
|
||||
border-radius: 50%;
|
||||
right: -160px; top: -220px;
|
||||
}
|
||||
.eyebrow { font-size: 13px; letter-spacing: .18em; opacity: .86; margin-bottom: 9px; }
|
||||
h1 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.15; }
|
||||
.subtitle { max-width: 920px; margin-top: 12px; color: rgba(255,255,255,.88); line-height: 1.75; }
|
||||
.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
|
||||
.pill { display:inline-flex; align-items:center; gap:6px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.18); font-size: 13px; }
|
||||
|
||||
.toolbar {
|
||||
margin: 20px 0 14px;
|
||||
background: var(--panel);
|
||||
border-radius: 22px;
|
||||
padding: 14px;
|
||||
display: grid;
|
||||
grid-template-columns: 1.6fr .85fr .75fr .75fr;
|
||||
gap: 12px;
|
||||
box-shadow: var(--shadow);
|
||||
border: 1px solid rgba(255,255,255,.42);
|
||||
}
|
||||
input, select {
|
||||
width: 100%;
|
||||
border: 1px solid var(--line);
|
||||
background: #fff;
|
||||
border-radius: 14px;
|
||||
padding: 12px 13px;
|
||||
font-size: 14px;
|
||||
color: var(--ink);
|
||||
outline: none;
|
||||
}
|
||||
input:focus, select:focus { border-color: rgba(183,32,46,.56); box-shadow: 0 0 0 3px rgba(183,32,46,.1); }
|
||||
.tabs {
|
||||
display: flex; flex-wrap: wrap; gap: 9px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.tab-btn {
|
||||
border: 0;
|
||||
background: rgba(255,255,255,.18);
|
||||
color: #fff;
|
||||
border: 1px solid rgba(255,255,255,.2);
|
||||
padding: 10px 13px;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
transition: .18s ease;
|
||||
}
|
||||
.tab-btn.active { background: #fff; color: var(--red-dark); box-shadow: 0 10px 26px rgba(0,0,0,.13); }
|
||||
.tab-btn:hover { transform: translateY(-1px); }
|
||||
|
||||
.panel {
|
||||
background: var(--panel);
|
||||
border-radius: 26px;
|
||||
padding: 20px;
|
||||
box-shadow: var(--shadow);
|
||||
border: 1px solid rgba(255,255,255,.44);
|
||||
min-height: 520px;
|
||||
}
|
||||
.tab-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:16px; }
|
||||
.tab-title { margin: 0; font-size: 25px; color: var(--red-dark); }
|
||||
.tab-desc { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
|
||||
.count-badge { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; background:#fff; color: var(--red-dark); border:1px solid var(--line); font-weight:800; }
|
||||
|
||||
.summary-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
|
||||
.summary-card {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 18px;
|
||||
padding: 18px;
|
||||
min-height: 144px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.summary-card::after { content:""; position:absolute; right:-38px; top:-42px; width: 110px; height:110px; border-radius:50%; background: rgba(183,32,46,.08); }
|
||||
.summary-card h3 { margin:0 0 8px; color:var(--red-dark); font-size:15px; }
|
||||
.summary-card .value { font-size: 25px; font-weight: 900; margin-bottom: 9px; color: #2b1114; }
|
||||
.summary-card p { margin:0; color:var(--muted); line-height: 1.62; font-size: 14px; }
|
||||
|
||||
.overview-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-top: 14px; }
|
||||
.box { background:#fff; border:1px solid var(--line); border-radius:18px; padding:16px; }
|
||||
.box h3 { margin:0 0 12px; color: var(--red-dark); }
|
||||
.bar-row { display:grid; grid-template-columns: 105px 1fr 36px; align-items:center; gap:8px; margin: 9px 0; font-size:13px; color: var(--muted); }
|
||||
.bar { height: 10px; border-radius: 999px; background: #f4ded8; overflow: hidden; }
|
||||
.bar > span { display:block; height:100%; border-radius:999px; background: linear-gradient(90deg, var(--red), var(--gold)); }
|
||||
.risk-list { display:grid; gap:10px; }
|
||||
.risk-mini { border:1px solid var(--line); border-radius:14px; padding:11px; background:#fffdfb; cursor:pointer; }
|
||||
.risk-mini strong { color: var(--red-dark); }
|
||||
|
||||
.cards { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
|
||||
.card {
|
||||
background: #fff;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 18px;
|
||||
padding: 16px;
|
||||
display:flex; flex-direction:column; gap: 10px;
|
||||
min-height: 248px;
|
||||
transition: .18s ease;
|
||||
}
|
||||
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(94, 20, 24, .12); }
|
||||
.card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
|
||||
.card-id { font-size:12px; color:#fff; background: var(--red-dark); border-radius:999px; padding:4px 8px; font-weight: 800; }
|
||||
.risk { font-size:12px; border-radius:999px; padding:5px 8px; font-weight: 800; white-space: nowrap; }
|
||||
.risk.xh { background: #ffe1de; color:#9b111c; }
|
||||
.risk.h { background: #fff0d5; color:#9a4e00; }
|
||||
.risk.m { background: #e9f2ff; color:#24527d; }
|
||||
.card h3 { margin:0; color:var(--red-dark); font-size:17px; line-height:1.35; }
|
||||
.meta { display:flex; gap:6px; flex-wrap:wrap; }
|
||||
.tag { font-size:12px; color:var(--red-dark); background: var(--soft); border:1px solid rgba(183,32,46,.15); border-radius:999px; padding:4px 8px; }
|
||||
.card p { margin:0; color:var(--muted); line-height: 1.62; font-size: 14px; }
|
||||
.card-footer { margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:12px; }
|
||||
.evidence { font-size:12px; color:#5e4d49; }
|
||||
.btn {
|
||||
background: var(--red);
|
||||
color:#fff;
|
||||
border:0;
|
||||
border-radius:12px;
|
||||
padding:9px 12px;
|
||||
cursor:pointer;
|
||||
font-weight:800;
|
||||
box-shadow: 0 8px 18px rgba(183,32,46,.22);
|
||||
}
|
||||
.btn.secondary { background:#fff; color:var(--red-dark); border:1px solid var(--line); box-shadow:none; }
|
||||
.empty { padding: 38px; text-align:center; color:var(--muted); background:#fff; border:1px dashed var(--line); border-radius:18px; }
|
||||
|
||||
.keyword-wrap { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; margin-top:16px; }
|
||||
.keyword-group { background:#fff; border:1px solid var(--line); border-radius:18px; padding:15px; }
|
||||
.keyword-group h3 { margin:0 0 10px; color: var(--red-dark); }
|
||||
.kw { display:inline-block; margin:5px; padding:7px 10px; background:var(--soft); border:1px solid rgba(183,32,46,.18); color:var(--red-dark); border-radius:999px; font-size:13px; }
|
||||
|
||||
.modal-backdrop { display:none; position:fixed; inset:0; background:rgba(45, 7, 10, .62); z-index:1000; padding: 28px; overflow:auto; }
|
||||
.modal-backdrop.open { display:block; }
|
||||
.modal { max-width: 980px; margin: 0 auto; background:#fffaf7; border-radius: 24px; border:1px solid rgba(255,255,255,.45); box-shadow: 0 30px 90px rgba(0,0,0,.34); overflow:hidden; }
|
||||
.modal-head { background: linear-gradient(135deg, var(--red-dark), var(--red)); color:#fff; padding: 20px 22px; display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
|
||||
.modal-head h2 { margin:0; font-size:24px; }
|
||||
.close { background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.25); color:#fff; border-radius:12px; font-size:22px; cursor:pointer; width:42px; height:38px; }
|
||||
.modal-body { padding: 20px 22px 24px; }
|
||||
.detail-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:10px; margin-bottom:16px; }
|
||||
.detail-cell { background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px; }
|
||||
.detail-cell span { display:block; font-size:12px; color:var(--muted); margin-bottom:4px; }
|
||||
.detail-cell strong { color:var(--red-dark); }
|
||||
.section { background:#fff; border:1px solid var(--line); border-radius:16px; padding:15px; margin:12px 0; }
|
||||
.section h3 { margin:0 0 8px; color:var(--red-dark); }
|
||||
.section p { margin:0; line-height:1.8; color:#3b2929; }
|
||||
|
||||
.footer-note { color:rgba(255,255,255,.78); text-align:center; padding: 16px 0 4px; font-size:13px; }
|
||||
@media (max-width: 1100px) {
|
||||
.toolbar { grid-template-columns: 1fr 1fr; }
|
||||
.summary-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.overview-grid { grid-template-columns: 1fr; }
|
||||
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.app { padding: 14px; }
|
||||
.toolbar { grid-template-columns: 1fr; }
|
||||
.summary-grid, .cards, .keyword-wrap { grid-template-columns: 1fr; }
|
||||
.tab-head { flex-direction:column; }
|
||||
.detail-grid { grid-template-columns: 1fr; }
|
||||
.modal-backdrop { padding: 12px; }
|
||||
}
|
||||
/* ── 页面 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="app">
|
||||
<header class="hero">
|
||||
<div class="eyebrow">NARRATIVE RISK MONITORING DATABASE</div>
|
||||
<h1>日本涉台介入风险叙事专题研究系统</h1>
|
||||
<div class="subtitle">围绕“介入战争日本祸及自身”叙事的事件、人物、组织、制度、地方、媒体、经济与民意数据库</div>
|
||||
<div class="hero-meta">
|
||||
<span class="pill">版本:1.0</span>
|
||||
<span class="pill">更新:2026-06-30</span>
|
||||
<span class="pill">离线可用 · 内嵌数据</span>
|
||||
<span class="pill">Tab切换 · 搜索筛选 · 弹框详情</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="toolbar">
|
||||
<input id="q" placeholder="搜索关键词:高市、先岛、存立危机、冲绳、旅游、认知战……" />
|
||||
<select id="narrativeFilter"><option value="">全部叙事方向</option></select>
|
||||
<select id="riskFilter"><option value="">全部风险等级</option><option value="极高">极高</option><option value="高">高</option><option value="中">中</option><option value="中低">中低</option><option value="低">低</option></select>
|
||||
<select id="evidenceFilter"><option value="">全部证据状态</option><option value="已核实">已核实</option><option value="持续更新">持续更新</option><option value="待采集">待采集</option></select>
|
||||
</section>
|
||||
|
||||
<nav class="tabs" id="tabs"></nav>
|
||||
<main class="panel" id="content"></main>
|
||||
<div class="footer-note">本页面为研究型结构化展示,不替代原始文件核验;高风险条目应回溯国会记录、政府文件、机构公告和媒体原文。</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-backdrop" id="modalBackdrop" onclick="backdropClose(event)">
|
||||
<div class="modal" role="dialog" aria-modal="true">
|
||||
<div class="modal-head">
|
||||
<div>
|
||||
<div id="modalMeta" class="eyebrow"></div>
|
||||
<h2 id="modalTitle"></h2>
|
||||
</div>
|
||||
<button class="close" onclick="closeModal()">×</button>
|
||||
</div>
|
||||
<div class="modal-body" id="modalBody"></div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" id="openEditor" class="editor-fab" aria-label="JSON 编辑器" title="页面 JSON 编辑器"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg></button>
|
||||
<div id="editorOverlay" class="editor-overlay" style="display:none"><div class="editor-modal">
|
||||
<header class="editor-head"><h2>页面 JSON 编辑器</h2><span class="editor-note">按模块编辑,应用后即时重渲染;修改保存在浏览器本地,不回写服务器</span><button type="button" id="closeEditor" style="border:0;background:none;font-size:14px;cursor:pointer">关闭</button></header>
|
||||
<div class="editor-body">
|
||||
<nav id="editorTabs" class="editor-tabs"></nav>
|
||||
<div class="editor-pane">
|
||||
<div class="editor-title-row"><b id="editorModuleTitle"></b><span id="jsonStatus" class="json-status valid">JSON 有效</span></div>
|
||||
<textarea id="jsonEditor" class="json-editor" spellcheck="false" aria-label="当前模块 JSON"></textarea>
|
||||
<div class="editor-actions"><button type="button" id="applyJson" style="background:#7c1d24;color:#fff;border:0;border-radius:6px;padding:7px 14px;cursor:pointer">应用到页面</button><button type="button" id="resetJson" style="border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:7px 14px;cursor:pointer">恢复默认数据</button><button type="button" id="copyJson" style="border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:7px 14px;cursor:pointer">复制完整 JSON</button><button type="button" id="downloadJson" style="border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:7px 14px;cursor:pointer">下载 JSON</button></div>
|
||||
<p class="editor-hint">模块 = 页面数据(DATA)的顶层键,另附「系统设置」编辑 MANIFEST;沙箱预览无法使用本地缓存时,修改仅当次会话有效。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
<script type="application/json" id="structured-data">__PAGE_DATA__</script>
|
||||
<script type="application/json" id="structured-manifest">__PAGE_MANIFEST__</script>
|
||||
<script type="application/json" id="structured-fields">__PAGE_FIELDS__</script>
|
||||
<script>__PAGE_RUNTIME__</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user