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 @@
{"meta": {"title": "日本西南一线自卫队及关联群体生态数据库", "subtitle": "围绕陆上自卫队西南部署链、空海自与海保支撑链、驻日美军同盟链、地方政府、居民、反基地与支持部署群体的公开资料研究页面", "version": "3.0", "generated_date": "2026-06-30", "language": "zh-CN", "primary_subject": "日本西南一线自卫队及其关联群体", "scope": ["冲绳本岛", "宫古岛", "石垣岛", "与那国岛", "奄美大岛", "九州/山口受入地"], "data_note": "本数据库依据 skill 文件框架和前期补充资料整理,定位为公开资料研究、政策分析、地方社会与舆情分析,不包含基地内部布局、实时部署、战术参数、具体人员隐私或可用于攻击/破坏/规避防护的细节。", "safety_boundary": "只展示公开组织、公开地区层级、地方社会影响、叙事竞争、民防疏散、风险沟通与来源审查。涉及敏感细节时转向宏观组织、公共政策、居民保护和社会韧性分析。"}, "dashboard": {"stats": {"一线部署层": 4, "自卫队/海保/美军节点": 11, "关联群体矩阵": 6, "行为体": 16, "重点地区": 6, "事件案例": 16, "叙事类型": 10, "触发机制": 12, "风险类别": 8}, "core_assessment": "日本西南一线自卫队及关联群体不是单一军事组织,而是由东京中央政府、防卫省、日美同盟、自卫队、海保、驻日美军、冲绳县、市町村、居民、商户、自卫队家属、反基地网络、支持部署群体和地方媒体共同构成的复合生态。部署权主要在东京,战略压力来自日美同盟,落地阻力在地方自治体,舆论爆点在居民生活,放大器在地方媒体。", "research_chain": ["国家安全战略与日美同盟", "防卫省与陆海空自卫队组织结构", "西南一线公开部署地区与装备功能", "地方政府、港口机场、民防行政协调", "居民、自卫队家属、商户、学校、医院、旅游业、农渔业", "反基地/和平运动网络与支持部署群体", "涉华涉台叙事竞争与地方媒体扩散", "接受边界、反弹红线与行动触发机制", "未来趋势、风险指标与来源可信度审查"], "core_conflicts": [{"title": "东京部署权 vs 地方自治权", "description": "防卫省和中央政府以西南防卫、台湾有事、尖阁周边紧张为依据推动部署;地方政府和居民则围绕住民投票、说明会、港口机场、避难、补偿与地方自治提出要求。"}, {"title": "防卫空白填补 vs 冲绳战场化焦虑", "description": "支持派强调中国活动、国境离岛、防卫空白和抑止力;反对派强调冲绳战记忆、基地负担、导弹与弹药库导致再次成为战场。"}, {"title": "军事化常态化 vs 民生风险具体化", "description": "驻屯地、导弹、防空、电子战、港口机场、疏散计划把抽象战略问题转化为水源、旅游、学校、医院、老人儿童避难等生活问题。"}, {"title": "基地经济收益 vs 社会长期成本", "description": "自卫队常驻带来人口、消费、公共工程和财政资源,但也带来旅游形象、土地、环境、租金、社区分裂和危机风险定价。"}], "main_keywords": ["日本西南一线自卫队", "第15旅团/第15师团", "宫古警备队", "八重山警备队", "与那国沿岸监视队", "西南航空方面队", "第5航空群", "第11管区海上保安本部", "驻日美军冲绳基地", "台湾有事", "冲绳战场化", "先岛避难", "住民投票", "弹药库", "防卫空白"]}, "deployment_layers": [{"id": "layer_jgsdf_island_chain", "name": "陆上自卫队西南岛链部署层", "focus": "从与那国、石垣、宫古、奄美到冲绳本岛,形成以警备、沿岸监视、防空、地对舰、防灾与民防协作为公开功能的前沿部署链。", "nodes": ["第15旅团/未来第15师团", "与那国沿岸监视队", "八重山警备队", "宫古警备队", "奄美警备队", "第7地对舰导弹联队", "西部方面队支撑体系"], "associated_groups": ["防卫省", "冲绳防卫局", "地方市町村", "居民与自卫队家属", "反基地团体", "支持部署群体"], "societal_focus": ["驻屯地建设", "弹药库争议", "住民投票", "地方说明会", "灾害派遣形象", "防卫与生活风险并存"], "risk_level": "高"}, {"id": "layer_asdf_naha_air_defense", "name": "航空自卫队西南空防层", "focus": "以西南航空方面队、那霸基地、第9航空团、西南航空警戒管制团和西南高射群为公开节点,体现西南空域警戒、防空、拦截压力和地方基地负担。", "nodes": ["西南航空方面队", "第9航空团", "那霸基地", "西南航空警戒管制团", "西南高射群"], "associated_groups": ["航空自卫队", "那霸地方社会", "冲绳县政府", "地方媒体", "日美同盟安全圈"], "societal_focus": ["那霸空域压力", "航空噪音", "日美Line truncated
@@ -0,0 +1,899 @@
{
"说明": "字段显示目录:值级隐藏(隐藏即 data.json 各条目该键清空,全部渲染路径生效)。",
"fields": [
{
"label": "title",
"pages": [
"总览:自卫队生态主轴",
"事件时间线",
"舆论叙事",
"民防疏散",
"边界触发风险",
"来源审查"
],
"description": "总览:自卫队生态主轴 数据字段(title,出现 51 条)",
"keys": [
"title"
],
"custom": false
},
{
"label": "description",
"pages": [
"总览:自卫队生态主轴"
],
"description": "总览:自卫队生态主轴 数据字段(description,出现 4 条)",
"keys": [
"description"
],
"custom": false
},
{
"label": "id",
"pages": [
"总览:自卫队生态主轴",
"一线自卫队部署链",
"关联群体矩阵",
"地区节点",
"事件时间线",
"舆论叙事",
"民防疏散",
"经济社会",
"边界触发风险",
"来源审查"
],
"description": "总览:自卫队生态主轴 数据字段(id,出现 140 条)",
"keys": [
"id"
],
"custom": false
},
{
"label": "name",
"pages": [
"总览:自卫队生态主轴",
"一线自卫队部署链",
"关联群体矩阵",
"地区节点",
"舆论叙事",
"边界触发风险",
"来源审查"
],
"description": "总览:自卫队生态主轴 数据字段(name,出现 57 条)",
"keys": [
"name"
],
"custom": false
},
{
"label": "focus",
"pages": [
"总览:自卫队生态主轴",
"一线自卫队部署链"
],
"description": "总览:自卫队生态主轴 数据字段(focus,出现 8 条)",
"keys": [
"focus"
],
"custom": false
},
{
"label": "nodes",
"pages": [
"总览:自卫队生态主轴",
"一线自卫队部署链"
],
"description": "总览:自卫队生态主轴 数据字段(nodes,出现 8 条)",
"keys": [
"nodes"
],
"custom": false
},
{
"label": "associated_groups",
"pages": [
"总览:自卫队生态主轴",
"一线自卫队部署链",
"地区节点"
],
"description": "总览:自卫队生态主轴 数据字段(associated_groups,出现 25 条)",
"keys": [
"associated_groups"
],
"custom": false
},
{
"label": "societal_focus",
"pages": [
"总览:自卫队生态主轴",
"一线自卫队部署链"
],
"description": "总览:自卫队生态主轴 数据字段(societal_focus,出现 8 条)",
"keys": [
"societal_focus"
],
"custom": false
},
{
"label": "risk_level",
"pages": [
"总览:自卫队生态主轴",
"一线自卫队部署链",
"关联群体矩阵",
"地区节点",
"事件时间线",
"舆论叙事",
"民防疏散",
"经济社会",
"边界触发风险"
],
"description": "总览:自卫队生态主轴 数据字段(risk_level,出现 98 条)",
"keys": [
"risk_level"
],
"custom": false
},
{
"label": "category",
"pages": [
"总览:自卫队生态主轴",
"关联群体矩阵",
"舆论叙事",
"边界触发风险"
],
"description": "总览:自卫队生态主轴 数据字段(category,出现 30 条)",
"keys": [
"category"
],
"custom": false
},
{
"label": "groups",
"pages": [
"总览:自卫队生态主轴",
"关联群体矩阵"
],
"description": "总览:自卫队生态主轴 数据字段(groups,出现 12 条)",
"keys": [
"groups"
],
"custom": false
},
{
"label": "position",
"pages": [
"总览:自卫队生态主轴",
"关联群体矩阵"
],
"description": "总览:自卫队生态主轴 数据字段(position,出现 12 条)",
"keys": [
"position"
],
"custom": false
},
{
"label": "main_pressure",
"pages": [
"总览:自卫队生态主轴",
"关联群体矩阵"
],
"description": "总览:自卫队生态主轴 数据字段(main_pressure,出现 12 条)",
"keys": [
"main_pressure"
],
"custom": false
},
{
"label": "accepted_language",
"pages": [
"总览:自卫队生态主轴",
"关联群体矩阵"
],
"description": "总览:自卫队生态主轴 数据字段(accepted_language,出现 12 条)",
"keys": [
"accepted_language"
],
"custom": false
},
{
"label": "red_lines",
"pages": [
"总览:自卫队生态主轴",
"关联群体矩阵",
"边界触发风险"
],
"description": "总览:自卫队生态主轴 数据字段(red_lines,出现 19 条)",
"keys": [
"red_lines"
],
"custom": false
},
{
"label": "name_jp",
"pages": [
"一线自卫队部署链",
"地区节点"
],
"description": "一线自卫队部署链 数据字段(name_jp,出现 17 条)",
"keys": [
"name_jp"
],
"custom": false
},
{
"label": "force_type",
"pages": [
"一线自卫队部署链"
],
"description": "一线自卫队部署链 数据字段(force_type,出现 11 条)",
"keys": [
"force_type"
],
"custom": false
},
{
"label": "region",
"pages": [
"一线自卫队部署链",
"关联群体矩阵",
"事件时间线",
"经济社会"
],
"description": "一线自卫队部署链 数据字段(region,出现 48 条)",
"keys": [
"region"
],
"custom": false
},
{
"label": "frontline_role",
"pages": [
"一线自卫队部署链"
],
"description": "一线自卫队部署链 数据字段(frontline_role,出现 11 条)",
"keys": [
"frontline_role"
],
"custom": false
},
{
"label": "public_units",
"pages": [
"一线自卫队部署链"
],
"description": "一线自卫队部署链 数据字段(public_units,出现 11 条)",
"keys": [
"public_units"
],
"custom": false
},
{
"label": "social_issues",
"pages": [
"一线自卫队部署链"
],
"description": "一线自卫队部署链 数据字段(social_issues,出现 11 条)",
"keys": [
"social_issues"
],
"custom": false
},
{
"label": "narrative_tags",
"pages": [
"一线自卫队部署链",
"关联群体矩阵",
"事件时间线"
],
"description": "一线自卫队部署链 数据字段(narrative_tags,出现 43 条)",
"keys": [
"narrative_tags"
],
"custom": false
},
{
"label": "detail_level",
"pages": [
"一线自卫队部署链"
],
"description": "一线自卫队部署链 数据字段(detail_level,出现 11 条)",
"keys": [
"detail_level"
],
"custom": false
},
{
"label": "type",
"pages": [
"关联群体矩阵",
"地区节点",
"事件时间线",
"经济社会",
"来源审查"
],
"description": "关联群体矩阵 数据字段(type,出现 50 条)",
"keys": [
"type"
],
"custom": false
},
{
"label": "role",
"pages": [
"关联群体矩阵"
],
"description": "关联群体矩阵 数据字段(role,出现 16 条)",
"keys": [
"role"
],
"custom": false
},
{
"label": "relation_to_sdf",
"pages": [
"关联群体矩阵"
],
"description": "关联群体矩阵 数据字段(relation_to_sdf,出现 16 条)",
"keys": [
"relation_to_sdf"
],
"custom": false
},
{
"label": "stance",
"pages": [
"关联群体矩阵"
],
"description": "关联群体矩阵 数据字段(stance,出现 16 条)",
"keys": [
"stance"
],
"custom": false
},
{
"label": "related_issues",
"pages": [
"关联群体矩阵"
],
"description": "关联群体矩阵 数据字段(related_issues,出现 16 条)",
"keys": [
"related_issues"
],
"custom": false
},
{
"label": "risk_notes",
"pages": [
"关联群体矩阵"
],
"description": "关联群体矩阵 数据字段(risk_notes,出现 16 条)",
"keys": [
"risk_notes"
],
"custom": false
},
{
"label": "prefecture",
"pages": [
"地区节点"
],
"description": "地区节点 数据字段(prefecture,出现 6 条)",
"keys": [
"prefecture"
],
"custom": false
},
{
"label": "frontline_sdf_nodes",
"pages": [
"地区节点"
],
"description": "地区节点 数据字段(frontline_sdf_nodes,出现 6 条)",
"keys": [
"frontline_sdf_nodes"
],
"custom": false
},
{
"label": "main_issues",
"pages": [
"地区节点"
],
"description": "地区节点 数据字段(main_issues,出现 6 条)",
"keys": [
"main_issues"
],
"custom": false
},
{
"label": "social_profile",
"pages": [
"地区节点"
],
"description": "地区节点 数据字段(social_profile,出现 6 条)",
"keys": [
"social_profile"
],
"custom": false
},
{
"label": "date",
"pages": [
"事件时间线"
],
"description": "事件时间线 数据字段(date,出现 16 条)",
"keys": [
"date"
],
"custom": false
},
{
"label": "summary",
"pages": [
"事件时间线",
"来源审查"
],
"description": "事件时间线 数据字段(summary,出现 26 条)",
"keys": [
"summary"
],
"custom": false
},
{
"label": "sdf_relevance",
"pages": [
"事件时间线",
"舆论叙事",
"民防疏散",
"经济社会",
"边界触发风险"
],
"description": "事件时间线 数据字段(sdf_relevance,出现 33 条)",
"keys": [
"sdf_relevance"
],
"custom": false
},
{
"label": "actors",
"pages": [
"事件时间线"
],
"description": "事件时间线 数据字段(actors,出现 16 条)",
"keys": [
"actors"
],
"custom": false
},
{
"label": "local_response",
"pages": [
"事件时间线"
],
"description": "事件时间线 数据字段(local_response,出现 16 条)",
"keys": [
"local_response"
],
"custom": false
},
{
"label": "impact",
"pages": [
"事件时间线"
],
"description": "事件时间线 数据字段(impact,出现 16 条)",
"keys": [
"impact"
],
"custom": false
},
{
"label": "speaker_types",
"pages": [
"舆论叙事"
],
"description": "舆论叙事 数据字段(speaker_types,出现 10 条)",
"keys": [
"speaker_types"
],
"custom": false
},
{
"label": "core_claim",
"pages": [
"舆论叙事"
],
"description": "舆论叙事 数据字段(core_claim,出现 10 条)",
"keys": [
"core_claim"
],
"custom": false
},
{
"label": "sdf_link",
"pages": [
"舆论叙事"
],
"description": "舆论叙事 数据字段(sdf_link,出现 10 条)",
"keys": [
"sdf_link"
],
"custom": false
},
{
"label": "keywords",
"pages": [
"舆论叙事"
],
"description": "舆论叙事 数据字段(keywords,出现 14 条)",
"keys": [
"keywords"
],
"custom": false
},
{
"label": "target_audience",
"pages": [
"舆论叙事"
],
"description": "舆论叙事 数据字段(target_audience,出现 10 条)",
"keys": [
"target_audience"
],
"custom": false
},
{
"label": "counter_narrative",
"pages": [
"舆论叙事"
],
"description": "舆论叙事 数据字段(counter_narrative,出现 10 条)",
"keys": [
"counter_narrative"
],
"custom": false
},
{
"label": "media_type",
"pages": [
"舆论叙事"
],
"description": "舆论叙事 数据字段(media_type,出现 4 条)",
"keys": [
"media_type"
],
"custom": false
},
{
"label": "frame",
"pages": [
"舆论叙事"
],
"description": "舆论叙事 数据字段(frame,出现 4 条)",
"keys": [
"frame"
],
"custom": false
},
{
"label": "watch_points",
"pages": [
"舆论叙事"
],
"description": "舆论叙事 数据字段(watch_points,出现 4 条)",
"keys": [
"watch_points"
],
"custom": false
},
{
"label": "confidence",
"pages": [
"舆论叙事",
"来源审查"
],
"description": "舆论叙事 数据字段(confidence,出现 11 条)",
"keys": [
"confidence"
],
"custom": false
},
{
"label": "source_regions",
"pages": [
"民防疏散"
],
"description": "民防疏散 数据字段(source_regions,出现 3 条)",
"keys": [
"source_regions"
],
"custom": false
},
{
"label": "estimated_people",
"pages": [
"民防疏散"
],
"description": "民防疏散 数据字段(estimated_people,出现 3 条)",
"keys": [
"estimated_people"
],
"custom": false
},
{
"label": "receiving_regions",
"pages": [
"民防疏散"
],
"description": "民防疏散 数据字段(receiving_regions,出现 3 条)",
"keys": [
"receiving_regions"
],
"custom": false
},
{
"label": "transport_modes",
"pages": [
"民防疏散"
],
"description": "民防疏散 数据字段(transport_modes,出现 3 条)",
"keys": [
"transport_modes"
],
"custom": false
},
{
"label": "key_bottlenecks",
"pages": [
"民防疏散"
],
"description": "民防疏散 数据字段(key_bottlenecks,出现 3 条)",
"keys": [
"key_bottlenecks"
],
"custom": false
},
{
"label": "controversies",
"pages": [
"民防疏散"
],
"description": "民防疏散 数据字段(controversies,出现 3 条)",
"keys": [
"controversies"
],
"custom": false
},
{
"label": "benefits",
"pages": [
"经济社会"
],
"description": "经济社会 数据字段(benefits,出现 5 条)",
"keys": [
"benefits"
],
"custom": false
},
{
"label": "costs_or_risks",
"pages": [
"经济社会"
],
"description": "经济社会 数据字段(costs_or_risks,出现 5 条)",
"keys": [
"costs_or_risks"
],
"custom": false
},
{
"label": "analysis_note",
"pages": [
"经济社会"
],
"description": "经济社会 数据字段(analysis_note,出现 5 条)",
"keys": [
"analysis_note"
],
"custom": false
},
{
"label": "indicator",
"pages": [
"经济社会"
],
"description": "经济社会 数据字段(indicator,出现 4 条)",
"keys": [
"indicator"
],
"custom": false
},
{
"label": "group",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(group,出现 7 条)",
"keys": [
"group"
],
"custom": false
},
{
"label": "acceptable",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(acceptable,出现 7 条)",
"keys": [
"acceptable"
],
"custom": false
},
{
"label": "sdf_focus",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(sdf_focus,出现 19 条)",
"keys": [
"sdf_focus"
],
"custom": false
},
{
"label": "trigger",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(trigger,出现 12 条)",
"keys": [
"trigger"
],
"custom": false
},
{
"label": "affected_groups",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(affected_groups,出现 12 条)",
"keys": [
"affected_groups"
],
"custom": false
},
{
"label": "likely_actions",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(likely_actions,出现 12 条)",
"keys": [
"likely_actions"
],
"custom": false
},
{
"label": "watch_indicators",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(watch_indicators,出现 12 条)",
"keys": [
"watch_indicators"
],
"custom": false
},
{
"label": "steps",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(steps,出现 5 条)",
"keys": [
"steps"
],
"custom": false
},
{
"label": "risk_points",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(risk_points,出现 5 条)",
"keys": [
"risk_points"
],
"custom": false
},
{
"label": "affected_regions",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(affected_regions,出现 8 条)",
"keys": [
"affected_regions"
],
"custom": false
},
{
"label": "trigger_indicators",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(trigger_indicators,出现 8 条)",
"keys": [
"trigger_indicators"
],
"custom": false
},
{
"label": "likely_effects",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(likely_effects,出现 8 条)",
"keys": [
"likely_effects"
],
"custom": false
},
{
"label": "monitoring_keywords",
"pages": [
"边界触发风险"
],
"description": "边界触发风险 数据字段(monitoring_keywords,出现 8 条)",
"keys": [
"monitoring_keywords"
],
"custom": false
},
{
"label": "use",
"pages": [
"来源审查"
],
"description": "来源审查 数据字段(use,出现 7 条)",
"keys": [
"use"
],
"custom": false
},
{
"label": "from",
"pages": [
"来源审查"
],
"description": "来源审查 数据字段(from,出现 10 条)",
"keys": [
"from"
],
"custom": false
},
{
"label": "to",
"pages": [
"来源审查"
],
"description": "来源审查 数据字段(to,出现 10 条)",
"keys": [
"to"
],
"custom": false
},
{
"label": "relation",
"pages": [
"来源审查"
],
"description": "来源审查 数据字段(relation,出现 10 条)",
"keys": [
"relation"
],
"custom": false
}
]
}
@@ -0,0 +1,52 @@
{
"系统": {
"名称": "日本西南一线自卫队及关联群体生态数据库",
"说明": "本页以“自卫队西南一线部署链”为核心对象,串联陆上自卫队、航空自卫队、海上自卫队、海上保安厅、驻日美军、地方政府、居民、反基地网络、支持部署群体、媒体舆论、民防疏散和风险触发机制。",
"版本": "3.0"
},
"页面": [
{
"编号": "overview",
"名称": "总览:自卫队生态主轴"
},
{
"编号": "frontline",
"名称": "一线自卫队部署链"
},
{
"编号": "ecology",
"名称": "关联群体矩阵"
},
{
"编号": "regions",
"名称": "地区节点"
},
{
"编号": "events",
"名称": "事件时间线"
},
{
"编号": "narratives",
"名称": "舆论叙事"
},
{
"编号": "evacuation",
"名称": "民防疏散"
},
{
"编号": "economy",
"名称": "经济社会"
},
{
"编号": "risks",
"名称": "边界触发风险"
},
{
"编号": "sources",
"名称": "来源审查"
}
],
"交互规则": {
"默认展示": "overview"
}
}
@@ -0,0 +1,229 @@
/* no.22 页面运行时(结构化模板)。
* 由 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 renderTabs(){
const tabs=document.getElementById('tabs');
tabs.innerHTML=visibleTabs().map(t=>`<button class="tab ${t.id===activeTab?'active':''}" data-tab="${t.id}">${esc(t.label)}</button>`).join('');
}
function refillFilters(){
const sel=document.getElementById('collectionFilter');
while(sel.options.length>1)sel.remove(1);
collections.forEach(c=>{ const o=document.createElement('option'); o.value=c; o.textContent=labels[c]||c; sel.appendChild(o); });
}
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 .subtitle');if(sub&&sys['说明'])sub.textContent=String(sys['说明']);
}
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 class="section-title">'+esc(m['标题']||'自定义模块')+'</h2>'+m.html;
host.appendChild(sec);
});
}
function applyPageVisibility(){
if(pageHidden(activeTab)){const first=visibleTabs()[0];if(first)activeTab=first.id}
}
let activeTab = 'overview';
let query = '';
let collectionFilter = 'all';
let riskFilter = 'all';
const collections = ['deployment_layers','group_ecology','units','actors','regions','events','narratives','media','evacuation','economy','acceptance_boundaries','triggers','influence_chains','risks','sources','relations'];
const labels = {
deployment_layers:'部署层', group_ecology:'群体矩阵', units:'单位节点', actors:'行为体', regions:'地区', events:'事件', narratives:'叙事', media:'媒体', evacuation:'民防', economy:'经济', acceptance_boundaries:'边界', triggers:'触发', influence_chains:'链条', risks:'风险', sources:'来源', relations:'关系'
};
const fieldLabels = {
id:'ID', name:'名称', name_jp:'日文名称', title:'标题', subtitle:'副标题', type:'类型', category:'类别', region:'地区', prefecture:'都道府县', force_type:'所属系统', frontline_role:'一线角色', focus:'核心定位', role:'角色', relation_to_sdf:'与西南一线自卫队的关系', stance:'立场', summary:'摘要', description:'说明', core_claim:'核心主张', sdf_link:'与自卫队部署链关系', sdf_relevance:'与西南一线自卫队关系', societal_focus:'地方社会关注', social_issues:'社会争议', associated_groups:'关联群体', public_units:'公开单位/节点', public_role:'公开任务', frontline_sdf_nodes:'一线自卫队节点', main_issues:'核心议题', social_profile:'地方社会画像', local_response:'地方反应', narrative_tags:'叙事标签', keywords:'关键词', target_audience:'目标受众', counter_narrative:'反向叙事', risk_level:'风险等级', affected_regions:'影响地区', trigger_indicators:'触发指标', likely_effects:'可能影响', monitoring_keywords:'监测关键词', watch_indicators:'观察指标', likely_actions:'可能行动', affected_groups:'影响群体', acceptable:'可接受表达', red_lines:'反弹红线', steps:'链条步骤', risk_points:'风险点', benefits:'收益/正向影响', costs_or_risks:'成本或风险', analysis_note:'分析说明', source_regions:'避难来源地', receiving_regions:'受入地', transport_modes:'交通/输送方式', key_bottlenecks:'关键瓶颈', controversies:'争议点', confidence:'可信度', use:'用途', relation:'关系', from:'来源节点', to:'目标节点', date:'时间', actors:'关联主体', impact:'影响', detail_level:'资料层级', nodes:'节点', groups:'群体', position:'定位', main_pressure:'主要压力', accepted_language:'可接受话语', red_lines:'反弹红线', media_type:'媒体类型', frame:'报道/传播框架', watch_points:'观察点', indicator:'指标', estimated_people:'估算人数', amount_jpy:'金额(日元)', fiscal_year:'财年', related_facility:'关联设施', trigger:'触发事件', collection:'数据类型'
};
const detailMap = new Map();
function indexDetails(){
detailMap.clear();
collections.forEach(c=>{ (DATA[c]||[]).forEach(item=>{ item.collection=c; detailMap.set(item.id || c+'_'+Math.random(), item); }); });
}
function itemText(item){ return JSON.stringify(item).toLowerCase(); }
function riskMatch(item){ if(riskFilter==='all') return true; return String(item.risk_level||'').includes(riskFilter); }
function collectionMatch(c){ return collectionFilter==='all' || c===collectionFilter; }
function queryMatch(item){ if(!query) return true; return itemText(item).includes(query.toLowerCase()); }
function filtered(c){ return (DATA[c]||[]).filter(item=>collectionMatch(c)&&riskMatch(item)&&queryMatch(item)); }
function allFilteredFor(collectionList){ return collectionList.some(c=>filtered(c).length>0) || (!query && collectionFilter==='all' && riskFilter==='all'); }
function esc(s){ return String(s??'').replace(/[&<>"']/g,m=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#039;'}[m])); }
function riskBadge(level){ if(!level) return ''; let cls=String(level).includes('高')?'red':String(level).includes('中')?'gold':'green'; return `<span class="badge ${cls} tag" data-search="${esc(level)}">风险:${esc(level)}</span>`; }
function badges(arr, cls=''){ if(!arr) return ''; if(!Array.isArray(arr)) arr=[arr]; return `<div class="badges">${arr.slice(0,12).map(x=>`<span class="badge ${cls} tag" data-search="${esc(x)}">${esc(x)}</span>`).join('')}</div>`; }
function card(item, opts={}){
const title = item.name || item.title || item.category || item.group || item.trigger || item.id;
const sub = item.name_jp || item.type || item.force_type || item.region || item.category || labels[item.collection] || '';
const text = item.frontline_role || item.focus || item.summary || item.role || item.position || item.core_claim || item.description || item.analysis_note || item.sdf_relevance || '';
const tags = item.narrative_tags || item.keywords || item.associated_groups || item.main_issues || item.nodes || [];
return `<article class="card ${opts.feature?'feature':''}">
<div class="badges"><span class="badge green">${esc(labels[item.collection]||item.collection||'数据')}</span>${riskBadge(item.risk_level)}</div>
<h3>${esc(title)}</h3>
${sub?`<div class="jp">${esc(sub)}</div>`:''}
<div class="summary">${esc(text).slice(0,220)}${text.length>220?'……':''}</div>
${badges(tags)}
<button class="detail-btn" data-detail-id="${esc(item.id)}">查看详情</button>
</article>`;
}
function sectionHead(title, hint){ return `<div class="section-head"><h2>${esc(title)}</h2><div class="hint">${esc(hint||'点击卡片查看完整字段')}</div></div>`; }
function renderStats(){ return `<div class="stats">${Object.entries(DATA.dashboard.stats).map(([k,v])=>`<div class="stat"><b>${esc(v)}</b><span>${esc(k)}</span></div>`).join('')}</div>`; }
function renderOverview(){
const layers=filtered('deployment_layers'); const eco=filtered('group_ecology');
return sectionHead('总览:以“日本西南一线自卫队及关联群体”为主轴','首页突出部署链和群体生态') +
renderStats()+
`<div class="chain"><h3>核心判断</h3><p class="summary">${esc(DATA.dashboard.core_assessment)}</p><div class="notice">研究链条:${DATA.dashboard.research_chain.map(x=>`<span class="badge tag" data-search="${esc(x)}">${esc(x)}</span>`).join(' ')}</div></div>`+
`<div class="grid four">${DATA.dashboard.core_conflicts.map((x,i)=>`<article class="card feature"><span class="badge red">核心矛盾 ${i+1}</span><h3>${esc(x.title)}</h3><div class="summary">${esc(x.description)}</div></article>`).join('')}</div>`+
sectionHead('西南一线部署层','从陆自岛链到空海自、海保和驻日美军同盟链')+
`<div class="grid two">${layers.map(x=>card(x,{feature:true})).join('') || empty()}</div>`+
sectionHead('关联群体矩阵','展示自卫队部署如何连接地方政府、居民、反基地和支持派')+
`<div class="grid three">${eco.map(x=>card(x)).join('') || empty()}</div>`;
}
function renderFrontline(){
const layers=filtered('deployment_layers'); const units=filtered('units');
return sectionHead('一线自卫队部署链','重点展示日本西南一线自卫队、海保和同盟关联节点')+
`<div class="grid two">${layers.map(x=>card(x,{feature:true})).join('') || empty()}</div>`+
sectionHead('单位/节点资料卡','公开资料层级,不展示敏感细节')+
`<div class="grid">${units.map(x=>card(x)).join('') || empty()}</div>`;
}
function renderEcology(){
return sectionHead('关联群体矩阵','围绕西南一线自卫队形成的复合生态')+
`<div class="grid two">${filtered('group_ecology').map(x=>card(x,{feature:true})).join('') || empty()}</div>`+
sectionHead('行为体图谱','中央、地方、自卫队、海保、美军、居民、媒体、运动组织')+
`<div class="grid">${filtered('actors').map(x=>card(x)).join('') || empty()}</div>`;
}
function renderRegions(){ return sectionHead('地区节点','冲绳、宫古、石垣、与那国、奄美、九州/山口')+`<div class="grid">${filtered('regions').map(x=>card(x,{feature:true})).join('') || empty()}</div>`; }
function renderEvents(){
const items=filtered('events').sort((a,b)=>String(a.date).localeCompare(String(b.date)));
return sectionHead('事件时间线','部署、公投、说明会、抗议、民防和舆论触发事件')+`<div class="timeline">${items.map(x=>`<div class="time-item"><div class="time-date">${esc(x.date)}</div><div class="time-card"><div class="badges"><span class="badge green">${esc(x.region)}</span><span class="badge gold">${esc(x.type)}</span>${riskBadge(x.risk_level)}</div><h3>${esc(x.title)}</h3><div class="summary">${esc(x.summary)}</div>${badges(x.narrative_tags)}<button class="detail-btn" data-detail-id="${esc(x.id)}">查看详情</button></div></div>`).join('') || empty()}</div>`;
}
function renderNarratives(){ return sectionHead('舆论叙事','围绕西南一线自卫队的解释权竞争')+`<div class="grid">${filtered('narratives').map(x=>card(x,{feature:true})).join('') || empty()}</div>`+sectionHead('媒体与平台','地方媒体、全国媒体、社交平台和国际媒体')+`<div class="grid two">${filtered('media').map(x=>card(x)).join('') || empty()}</div>`; }
function renderEvacuation(){ return sectionHead('民防疏散','先岛避难把自卫队部署生态扩展到国民保护和全国受入体系')+`<div class="grid">${filtered('evacuation').map(x=>card(x,{feature:true})).join('') || empty()}</div>`; }
function renderEconomy(){ return sectionHead('经济社会影响','基地经济、旅游、渔业、公共工程与社会成本并列展示')+`<div class="grid">${filtered('economy').map(x=>card(x,{feature:true})).join('') || empty()}</div>`; }
function renderRisks(){
return sectionHead('接受边界','不同关联群体的可接受表达与反弹红线')+`<div class="grid">${filtered('acceptance_boundaries').map(x=>card(x)).join('') || empty()}</div>`+
sectionHead('触发机制','哪些事件会让沉默观望转为公开行动')+`<div class="grid">${filtered('triggers').map(x=>card(x,{feature:true})).join('') || empty()}</div>`+
sectionHead('影响链条','从东京决策到地方社会、媒体和民防的传导链')+`<div>${filtered('influence_chains').map(chain=>`<div class="chain"><h3>${esc(chain.name)}</h3><div class="summary">${esc(chain.sdf_relevance||'')}</div><div class="chain-steps">${(chain.steps||[]).map(s=>`<span class="step">${esc(s)}</span>`).join('')}</div><button class="detail-btn" data-detail-id="${esc(chain.id)}">查看详情</button></div>`).join('') || empty()}</div>`+
sectionHead('风险监测','风险等级、触发指标、影响地区和关键词')+`<div class="grid">${filtered('risks').map(x=>card(x)).join('') || empty()}</div>`;
}
function renderSources(){ return sectionHead('来源审查','区分官方资料、地方媒体、社交平台和内部框架')+`<div class="grid">${filtered('sources').map(x=>card(x)).join('') || empty()}</div>`+sectionHead('关系索引','跨表关联线索')+`<div class="grid two">${filtered('relations').map(x=>card({...x,id:x.from+'_'+x.to, collection:'relations', title:x.relation, summary:x.from+' → '+x.to, risk_level:''})).join('') || empty()}</div>`; }
function empty(){ return '<div class="empty">没有匹配结果。可尝试清空搜索或切换筛选条件。</div>'; }
function render(){
document.querySelectorAll('.tab').forEach(b=>b.classList.toggle('active',b.dataset.tab===activeTab));
const content=document.getElementById('content');
const renderers={overview:renderOverview,frontline:renderFrontline,ecology:renderEcology,regions:renderRegions,events:renderEvents,narratives:renderNarratives,evacuation:renderEvacuation,economy:renderEconomy,risks:renderRisks,sources:renderSources};
content.innerHTML=(renderers[activeTab]||renderOverview)();
}
function setup(){
indexDetails();
const tabs=document.getElementById('tabs');
renderTabs();
refillFilters();
tabs.addEventListener('click',e=>{ const b=e.target.closest('[data-tab]'); if(b){if(pageHidden(b.dataset.tab))return;activeTab=b.dataset.tab; render();} });
document.getElementById('searchInput').addEventListener('input',e=>{ query=e.target.value.trim(); render(); });
document.getElementById('collectionFilter').addEventListener('change',e=>{ collectionFilter=e.target.value; render(); });
document.getElementById('riskFilter').addEventListener('change',e=>{ riskFilter=e.target.value; render(); });
document.getElementById('clearBtn').addEventListener('click',()=>{ query=''; collectionFilter='all'; riskFilter='all'; document.getElementById('searchInput').value=''; document.getElementById('collectionFilter').value='all'; document.getElementById('riskFilter').value='all'; render(); });
document.body.addEventListener('click',e=>{
const d=e.target.closest('[data-detail-id]'); if(d){ openModal(d.dataset.detailId); return; }
const s=e.target.closest('[data-search]'); if(s){ query=s.dataset.search; document.getElementById('searchInput').value=query; render(); window.scrollTo({top:0,behavior:'smooth'}); }
});
document.getElementById('closeModal').addEventListener('click',closeModal);
document.getElementById('modalWrap').addEventListener('click',e=>{ if(e.target.id==='modalWrap') closeModal(); });
document.addEventListener('keydown',e=>{ if(e.key==='Escape') closeModal(); });
render();
}
function openModal(id){
let item=detailMap.get(id);
if(!item){
// relations rendered with synthetic ids
item=[...detailMap.values()].find(x=>(x.from+'_'+x.to)===id) || null;
}
if(!item) return;
const title=item.name||item.title||item.category||item.group||item.trigger||item.relation||item.id;
const subtitle=[labels[item.collection], item.name_jp, item.type, item.force_type, item.region, item.category].filter(Boolean).slice(0,4).join(' · ');
document.getElementById('modalTitle').textContent=title;
document.getElementById('modalSubtitle').textContent=subtitle;
document.getElementById('modalBody').innerHTML=renderFields(item);
document.getElementById('modalWrap').classList.add('show');
document.getElementById('modalWrap').setAttribute('aria-hidden','false');
}
function closeModal(){ document.getElementById('modalWrap').classList.remove('show'); document.getElementById('modalWrap').setAttribute('aria-hidden','true'); }
function renderFields(obj){
const skip=new Set(['collection']);
return Object.entries(obj).filter(([k,v])=>!skip.has(k)&&v!==undefined&&v!==null&&v!==''&&!(Array.isArray(v)&&v.length===0)).map(([k,v])=>`<div class="field"><div class="label">${esc(fieldLabels[k]||k)}</div><div class="value">${renderValue(v)}</div></div>`).join('');
}
function renderValue(v){
if(Array.isArray(v)){
if(v.every(x=>typeof x==='string'||typeof x==='number')) return `<div class="badges">${v.map(x=>`<span class="badge tag" data-search="${esc(x)}">${esc(x)}</span>`).join('')}</div>`;
return `<div class="mini-grid">${v.map(x=>`<div class="mini-card">${renderValue(x)}</div>`).join('')}</div>`;
}
if(typeof v==='object'){
return `<div class="mini-grid">${Object.entries(v).map(([k,val])=>`<div class="mini-card"><b>${esc(fieldLabels[k]||k)}:</b><br>${renderValue(val)}</div>`).join('')}</div>`;
}
const str=String(v);
if(str.length>120) return `<p>${esc(str)}</p>`;
return esc(str);
}
(function(){
const _render=render;
render=function(){
applyPageVisibility();
renderTabs();
_render();
syncHeader();
renderCustomModules(activeTab);
};
})();
/* ── 页面 JSON 编辑器 ── */
(function(){
"use strict";
function clone(v){return JSON.parse(JSON.stringify(v))}
function draftsToData(d){var o={};Object.keys(d).forEach(function(k){if(k!=='__manifest__')o[k]=d[k]});return o}
function replaceInPlace(t,s){Object.keys(t).forEach(function(k){delete t[k]});Object.keys(s).forEach(function(k){t[k]=s[k]})}
function buildDrafts(data,manifest){var o={__manifest__:clone(manifest)};Object.keys(data).forEach(function(k){o[k]=clone(data[k])});return o}
const initialData=clone(DATA),initialManifest=clone(MANIFEST);
const overlay=document.getElementById('editorOverlay');
if(!overlay)return;
const fingerprint=(function(){let h=2166136261;const s=JSON.stringify(initialData)+'|'+JSON.stringify(initialManifest);for(let i=0;i<s.length;i++){h^=s.charCodeAt(i);h=Math.imul(h,16777619)}return (h>>>0).toString(36)})();
const storageKey='structured-page-data-v1:'+fingerprint;
function readLS(k){try{return window.localStorage?window.localStorage.getItem(k):null}catch(x){return null}}
function writeLS(k,v){try{if(window.localStorage)window.localStorage.setItem(k,v)}catch(x){}}
function removeLS(k){try{if(window.localStorage)window.localStorage.removeItem(k)}catch(x){}}
(function(){const cached=readLS(storageKey);if(!cached)return;try{const parsed=JSON.parse(cached);if(parsed&&typeof parsed==='object'&&parsed.data&&typeof parsed.data==='object'){replaceInPlace(DATA,parsed.data);if(parsed.manifest&&typeof parsed.manifest==='object')replaceInPlace(MANIFEST,parsed.manifest)}}catch(x){}})();
const labels={};(MANIFEST['页面']||[]).forEach(p=>{if(p&&p['编号'])labels[p['编号']]=p['名称']||p['编号']});
const modules=Object.keys(DATA).concat(['__manifest__']);
let active=modules[0]||'__manifest__';
let drafts=buildDrafts(DATA,MANIFEST);
function moduleTitle(k){return k==='__manifest__'?'系统设置(MANIFEST)':(labels[k]||k)}
const tabsEl=document.getElementById('editorTabs'),editor=document.getElementById('jsonEditor'),statusEl=document.getElementById('jsonStatus'),titleEl=document.getElementById('editorModuleTitle');
function setStatus(ok,msg){statusEl.textContent=msg;statusEl.className='json-status '+(ok?'valid':'invalid')}
function readEditor(){try{const p=JSON.parse(editor.value);if(!p||typeof p!=='object')throw new Error('模块必须是 JSON 对象或数组');setStatus(true,'JSON 有效');return p}catch(x){setStatus(false,'JSON 无效:'+x.message);return null}}
function saveActiveDraft(){const p=readEditor();if(!p)return false;drafts[active]=p;return true}
function loadEditor(){titleEl.textContent=moduleTitle(active);editor.value=JSON.stringify(drafts[active],null,2);setStatus(true,'JSON 有效')}
function renderEditorTabs(){tabsEl.innerHTML='';modules.forEach(function(key){const b=document.createElement('button');b.type='button';b.className='editor-tab'+(key===active?' active':'');b.innerHTML='<b>'+esc(moduleTitle(key))+'</b><small>'+(key==='__manifest__'?'manifest.json':key)+'</small>';b.onclick=function(){if(key===active||!saveActiveDraft())return;active=key;renderEditorTabs();loadEditor()};tabsEl.appendChild(b)})}
function closeEditor(){overlay.style.display='none'}
function applyToPage(){if(!saveActiveDraft()){setStatus(false,'存在无效模块');return}replaceInPlace(DATA,draftsToData(drafts));replaceInPlace(MANIFEST,drafts.__manifest__);closeEditor();indexDetails();refillFilters();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)};
})();
setup();
@@ -0,0 +1,154 @@
<!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{
--bg:#7b1018; --bg2:#4f0a12; --paper:#fffaf3; --paper2:#fff4e8; --ink:#251618; --muted:#765d5f;
--line:#ead7c2; --red:#9f1d2b; --red2:#c83a42; --gold:#c8912b; --green:#24735a; --orange:#b76523;
--shadow:0 18px 42px rgba(45,0,8,.24); --radius:18px;
}
*{box-sizing:border-box}
body{margin:0;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:var(--ink);background:radial-gradient(circle at top left,#b82a32 0,#7b1018 38%,#4b0710 100%);}
.page{max-width:1440px;margin:0 auto;padding:26px 22px 60px}
.hero{background:linear-gradient(135deg,rgba(255,250,243,.98),rgba(255,239,220,.94));border:1px solid rgba(255,255,255,.55);border-radius:26px;padding:28px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;right:-80px;top:-70px;width:280px;height:280px;border-radius:50%;background:rgba(200,58,66,.11)}
.eyebrow{display:inline-flex;gap:8px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 12px;color:var(--red);font-weight:800;font-size:13px}
.hero h1{margin:14px 0 10px;font-size:34px;letter-spacing:-.5px;line-height:1.15}
.subtitle{font-size:16px;line-height:1.8;color:var(--muted);max-width:1060px}
.focus-strip{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;margin-top:18px}
.focus-card{background:rgba(255,255,255,.76);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.focus-card strong{display:block;color:var(--red);margin-bottom:8px}
.focus-card p{margin:0;line-height:1.65;color:#5c4345;font-size:14px}
.toolbar{position:sticky;top:0;z-index:20;margin-top:16px;background:rgba(79,10,18,.92);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.16);border-radius:20px;padding:12px;box-shadow:0 12px 25px rgba(0,0,0,.16)}
.search-row{display:grid;grid-template-columns:1.4fr 220px 180px 110px;gap:10px}
input,select,button{font:inherit}
input,select{width:100%;border:1px solid rgba(255,255,255,.28);background:#fffaf3;border-radius:12px;padding:11px 12px;outline:none;color:var(--ink)}
button{border:0;border-radius:12px;padding:10px 14px;cursor:pointer;font-weight:800;transition:.16s transform,.16s box-shadow,.16s background}
button:hover{transform:translateY(-1px)}
.clear-btn{background:#fff;color:var(--red)}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.tab{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.22);padding:10px 12px;border-radius:999px}
.tab.active{background:#fff;color:var(--red);box-shadow:0 8px 16px rgba(0,0,0,.15)}
main{margin-top:18px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 14px;color:#fff}
.section-head h2{margin:0;font-size:24px}
.section-head .hint{font-size:14px;opacity:.85}
.stats{display:grid;grid-template-columns:repeat(9,minmax(110px,1fr));gap:10px;margin-bottom:16px}
.stat{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:14px;text-align:center;box-shadow:0 8px 18px rgba(0,0,0,.08)}
.stat b{font-size:24px;color:var(--red)}
.stat span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:0 10px 22px rgba(45,0,8,.14);display:flex;flex-direction:column;gap:10px;min-height:210px}
.card.feature{background:linear-gradient(180deg,#fffaf3,#fff0df);border-color:#e4c39f}
.card h3{margin:0;font-size:18px;line-height:1.35;color:#321b1d}
.jp{font-size:12px;color:var(--muted)}
.summary{font-size:14px;line-height:1.65;color:#5f4749}
.badges{display:flex;flex-wrap:wrap;gap:6px}
.badge{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 8px;font-size:12px;color:#5f4548}
.badge.red{background:#fff0f1;color:var(--red);border-color:#efc4c8}
.badge.gold{background:#fff7e7;color:#8b5d08;border-color:#edd49a}
.badge.green{background:#eaf8f1;color:var(--green);border-color:#bee4d3}
.tag{cursor:pointer}
.detail-btn{margin-top:auto;align-self:flex-start;background:var(--red);color:white;box-shadow:0 9px 16px rgba(159,29,43,.22)}
.detail-btn.secondary{background:#fff;color:var(--red);border:1px solid #ecc6ca}
.timeline{display:flex;flex-direction:column;gap:12px}
.time-item{display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:stretch}
.time-date{background:var(--red);color:#fff;border-radius:16px;padding:14px;text-align:center;font-weight:900;box-shadow:0 8px 18px rgba(0,0,0,.12)}
.time-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:15px;box-shadow:0 8px 20px rgba(45,0,8,.13)}
.chain{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:14px}
.chain-steps{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.chain-steps .step{background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 10px;font-size:13px}
.empty{background:var(--paper);border:1px dashed var(--line);border-radius:18px;padding:28px;text-align:center;color:var(--muted)}
.modal-wrap{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:60;background:rgba(20,0,4,.68);padding:24px}
.modal-wrap.show{display:flex}
.modal{width:min(980px,96vw);max-height:88vh;overflow:auto;background:var(--paper);border-radius:24px;border:1px solid #fff;box-shadow:0 30px 90px rgba(0,0,0,.4)}
.modal-head{position:sticky;top:0;background:linear-gradient(135deg,#9f1d2b,#6e0d18);color:white;padding:20px 22px;z-index:2}
.modal-head h2{margin:0 38px 4px 0;font-size:24px}
.modal-head p{margin:0;opacity:.88;line-height:1.6}
.close{position:absolute;right:14px;top:14px;border:1px solid rgba(255,255,255,.5);background:rgba(255,255,255,.16);color:white;width:36px;height:36px;border-radius:50%;padding:0}
.modal-body{padding:18px 22px 24px}
.field{border-bottom:1px solid var(--line);padding:12px 0}
.field:last-child{border-bottom:0}
.field .label{font-weight:900;color:var(--red);margin-bottom:8px}
.field .value{line-height:1.75;color:#493336}
.mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mini-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}
.mini-card b{color:var(--red)}
.notice{background:#fff7e7;border:1px solid #efd6a4;border-radius:16px;padding:14px;color:#6a470c;line-height:1.7;margin:12px 0}
.footer-note{margin-top:18px;background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:18px;padding:16px;line-height:1.75}
@media(max-width:1100px){.grid,.grid.two,.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(3,1fr)}.focus-strip{grid-template-columns:1fr}.search-row{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.page{padding:16px 12px 40px}.hero h1{font-size:26px}.grid,.grid.two,.grid.four{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.search-row{grid-template-columns:1fr}.time-item{grid-template-columns:1fr}.mini-grid{grid-template-columns:1fr}}
/* ── 页面 JSON 编辑器 ── */
.editor-fab{position:fixed;right:18px;bottom:26px;z-index:60;background:#7c1d24;color:#fff;border:0;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.3)}.editor-fab:hover{transform:rotate(30deg)}.editor-fab svg{width:22px;height:22px;display:block}
.editor-overlay{z-index:80}
.editor-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1080px,94vw);height:min(680px,88vh);background:#fff;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.editor-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #e5e7eb}.editor-head h2{margin:0;font-size:16px;flex:1}.editor-head .editor-note{font-size:12px;color:#667085;margin-right:8px}
.editor-body{display:flex;flex:1;min-height:0}
.editor-tabs{width:210px;border-right:1px solid #e5e7eb;overflow:auto;padding:10px 8px;display:flex;flex-direction:column;gap:4px}
.editor-tab{border:0;background:transparent;text-align:left;padding:9px 11px;border-radius:8px;cursor:pointer;color:#667085}.editor-tab b{display:block;font-size:13px;color:#1e2329}.editor-tab small{font-size:10px;opacity:.75}.editor-tab:hover{background:#f4f6f8}.editor-tab.active{background:#f7ecec}.editor-tab.active b{color:#7c1d24}
.editor-pane{flex:1;display:flex;flex-direction:column;min-width:0;padding:14px 16px;gap:10px}
.editor-title-row{display:flex;align-items:center;justify-content:space-between}.editor-title-row b{font-size:14px}
.json-status{font-size:12px;padding:3px 10px;border-radius:999px}.json-status.valid{background:#e8f5ef;color:#14804a}.json-status.invalid{background:#fdecec;color:#b4232d}
.json-editor{flex:1;width:100%;resize:none;border:1px solid #e5e7eb;border-radius:10px;padding:13px;font:13px/1.6 ui-monospace,Consolas,monospace;color:#1e2329;background:#f8fafc;outline:0;tab-size:2}
.editor-actions{display:flex;gap:8px;flex-wrap:wrap}
.editor-hint{margin:0;font-size:11px;color:#8a94a3}
</style>
</head>
<body>
<div class="page">
<section class="hero">
<span class="eyebrow">公开资料研究 · 日本西南一线自卫队及关联群体</span>
<h1>日本西南一线自卫队及关联群体生态数据库</h1>
<div class="subtitle">本页以“自卫队西南一线部署链”为核心对象,串联陆上自卫队、航空自卫队、海上自卫队、海上保安厅、驻日美军、地方政府、居民、反基地网络、支持部署群体、媒体舆论、民防疏散和风险触发机制。</div>
<div class="focus-strip">
<div class="focus-card"><strong>核心对象</strong><p>第15旅团/未来第15师团、与那国沿岸监视队、宫古警备队、八重山警备队、奄美警备队、西南航空方面队、第5航空群和第11管区海保。</p></div>
<div class="focus-card"><strong>关联群体</strong><p>地方政府、居民、自卫队家属、渔民、旅游业者、商户、反基地和平网络、支持部署保守派和媒体平台。</p></div>
<div class="focus-card"><strong>研究边界</strong><p>只做公开资料层级的组织生态、地方社会、舆论叙事和风险沟通研究,不展示敏感军事细节。</p></div>
</div>
</section>
<section class="toolbar">
<div class="search-row">
<input id="searchInput" placeholder="搜索:第15旅团、宫古警备队、八重山警备队、与那国、弹药库、台湾有事、先岛避难……" />
<select id="collectionFilter"><option value="all">全部数据类型</option></select>
<select id="riskFilter"><option value="all">全部风险等级</option><option value="高">高</option><option value="中高">中高</option><option value="中">中</option></select>
<button class="clear-btn" id="clearBtn">重置</button>
</div>
<div class="tabs" id="tabs"></div>
</section>
<main id="content"></main>
<div class="footer-note"><b>资料边界:</b>本页面为公开资料研究数据库,不包含基地内部布局、实时部署、战术参数、具体人员隐私或任何可用于攻击、破坏、规避防护、定向操控的信息。复杂字段通过弹框展示,点击“查看详情”可展开。</div>
</div>
<div class="modal-wrap" id="modalWrap" aria-hidden="true">
<div class="modal" role="dialog" aria-modal="true">
<div class="modal-head"><button class="close" id="closeModal">×</button><h2 id="modalTitle"></h2><p id="modalSubtitle"></p></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>