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 @@
{"metadata": {"title": "台湾陆军机动打击部队公开资料专题库", "subtitle": "联合兵种旅、联合兵种营、装备现代化与人员生态", "version": "v1.0", "language": "zh-CN", "scope": "公开资料研究、专题展示、结构化分析", "safety_note": "本数据集仅整理公开、宏观、非操作性资料;不包含实时部署、精确坐标、营区细节、车号、油弹水电节点、通信频率、战备规律或可用于现实攻击的战术信息。", "recommended_tabs": ["总览", "七旅画像", "联兵改革", "装备现代化", "人员生态", "能力压力矩阵", "资料边界"]}, "overview": {"summary_cards": [{"标题": "研究对象", "数值": "7个联合兵种旅", "说明": "原4个装甲旅与3个机械化步兵旅,2026年起统一更衔为联合兵种旅。"}, {"标题": "核心主题", "数值": "旅 / 营 / 装备 / 人员", "说明": "重点展示七旅画像、联兵旅/营改革、装备现代化、人员生态和制度压力。"}, {"标题": "资料层级", "数值": "A-D四级", "说明": "官方、主流媒体、智库期刊、社群线索分级管理。"}, {"标题": "展示原则", "数值": "公开 / 宏观 / 可核验", "说明": "保留研究价值,同时避免输出可操作军事敏感信息。"}], "研究边界": ["可展示:番号、原性质、隶属军团方向、队名传统、历史沿革、公开演训、公开装备类型、制度性压力。", "可展示:联合兵种营改革逻辑、火力连/监侦排/反甲排/迫炮排等公开概念、联络官机制、装备现代化趋势。", "不展示:精确营区坐标、实时驻地、车辆具体分配、车组个人信息、油弹储量、通信频率、战备规律、攻击路径。"], "建议页面结构": ["顶部仪表盘:显示7个旅、3个方向、主要装备类别、资料可信度和安全边界。", "横向Tab:总览、七旅画像、联兵改革、装备现代化、人员生态、能力压力矩阵、资料边界。", "详情弹框:用中文字段、分组卡片、标签和来源说明展示,不直接弹出原始JSON。"]}, "brigades": [{"番号": "联合兵种第542旅", "队名": "迅雷部队", "原性质": "原陆军装甲第542旅", "隶属方向": "第六军团 / 北部方向", "研究定位": "北部装甲传统单位;旧式战车与联兵营改革结合样本。", "历史源流": ["公开队史称,其源流可追溯至装甲兵第2师。", "后经历装甲独立第2旅、装甲独立第13旅、独立第42旅等阶段。", "1998年“精实案”后编成陆军装甲第542旅;2026年更衔为联合兵种第542旅。"], "传统符号": ["“迅雷”强调装甲兵快速机动、步战炮协同和装甲突击传统。", "公开队史中三角形队徽被解释为步、战、炮协同作战象征。"], "公开组织重点": ["可按旅部、联合兵种营、炮兵、通资、工兵、保修、后勤支援等模块展示。", "不展示营区、连队驻地、车辆具体数量或实时部署。"], "装备画像": ["公开训练报道可见CM11战车、装步车辆、营外战备训练等素材。", "适合作为旧式战车、装甲传统、联兵营改革过渡的展示样本。"], "演训线索": ["公开报道曾涉及联兵营作战计划演练。", "可归入战力保存、反击、再整补、战备训练等宏观课目。"], "人员生态关注": ["战车车组、保修士官、通信人员、后勤人员的复合压力。", "旧平台保修与新式联兵营训练叠加。"], "制度压力": ["旧式战车平台延寿压力。", "联兵营改革后多兵种协同训练压力。", "基层士官与保修专业人员压力。"], "数据缺口": ["联兵营完整公开编成不足。", "无人机、反无人机和联络官训练公开资料不足。", "M1A2T是否全面替换旧式战车不能自行推断。"], "标签": ["北部", "装甲传统", "迅雷", "CM11", "联兵营改革"], "来源提示": ["国防部公开队史", "陆军公开新闻", "公开媒体报道"]}, {"番号": "联合兵种第584旅", "队名": "登步部队", "原性质": "原陆军装甲第584旅", "隶属方向": "第六军团 / 北部方向", "研究定位": "北部重装甲现代化核心样本;M1A2T换装关联度高。", "历史源流": ["公开队史将其前身与陆军219师、登步岛战役传统相连。", "队史叙事强调从步枪部队发展为装甲劲旅。", "2026年更衔后成为联合兵种第584旅。"], "传统符号": ["“登步”来自登步岛战役历史记忆。", "该传统是其队史教育、荣誉叙事和部队识别的重要来源。"], "公开组织重点": ["适合展示为北部重装甲现代化核心样本。", "只展示旅级和营级公开结构,不细化到实时连队部署。"], "装备画像": ["与M1A2T换装主题高度关联。", "M1A2T交付后需要接装训练、射击验证、维修保障、重拖救济等配套。"], "演训线索": ["可补充接装训练、换装训练、成军典礼、战备训练、Line truncated
@@ -0,0 +1,95 @@
{
"说明": "字段显示目录:值级隐藏 + 详情行渲染开关。",
"fields": [
{
"label": "原性质",
"pages": [
"七旅画像"
],
"description": "详情字段(原性质)",
"keys": [
"原性质"
],
"custom": false
},
{
"label": "定位",
"pages": [
"七旅画像"
],
"description": "详情字段(研究定位)",
"keys": [
"研究定位"
],
"custom": false
},
{
"label": "公开状态",
"pages": [
"装备现代化"
],
"description": "详情字段(公开状态)",
"keys": [
"公开状态"
],
"custom": false
},
{
"label": "现代化意义",
"pages": [
"装备现代化"
],
"description": "详情字段(现代化意义)",
"keys": [
"现代化意义"
],
"custom": false
},
{
"label": "能力画像",
"pages": [
"capability_pressure_matrix"
],
"description": "详情字段(能力画像)",
"keys": [
"能力画像"
],
"custom": false
},
{
"label": "制度压力",
"pages": [
"七旅画像",
"capability_pressure_matrix",
"装备现代化"
],
"description": "详情字段(制度压力)",
"keys": [
"制度压力"
],
"custom": false
},
{
"label": "隶属方向",
"pages": [
"七旅画像"
],
"description": "详情字段(隶属方向)",
"keys": [
"隶属方向"
],
"custom": false
},
{
"label": "研究定位",
"pages": [
"七旅画像"
],
"description": "详情字段(研究定位)",
"keys": [
"研究定位"
],
"custom": false
}
]
}
@@ -0,0 +1,37 @@
{
"系统": {
"名称": "台湾陆军机动打击部队公开资料专题库",
"副标题": "联合兵种旅、联合兵种营、装备现代化与人员生态",
"版本": "v1.0",
"说明": "公开资料研究、专题展示、结构化分析"
},
"页面": [
{
"编号": "overview",
"名称": "总览"
},
{
"编号": "brigades",
"名称": "七旅画像"
},
{
"编号": "reform",
"名称": "联兵改革"
},
{
"编号": "equipment",
"名称": "装备现代化"
},
{
"编号": "personnel",
"名称": "人员生态"
},
{
"编号": "matrix",
"名称": "能力压力矩阵"
}
],
"交互规则": {
"默认展示": "overview"
}
}
@@ -0,0 +1,363 @@
/* no.3 页面运行时(结构化模板)。
* 由 template_fill.compose_structured 内联进骨架的运行时注入点。
* 数据从骨架 JSON 元素读取:DATA / MANIFEST / FIELDS。 */
const DATA=JSON.parse((document.getElementById("structured-data")||{textContent:"{}"}).textContent);
const MANIFEST=JSON.parse((document.getElementById("structured-manifest")||{textContent:"{}"}).textContent);
const FIELDS=(function(){try{var v=JSON.parse((document.getElementById("structured-fields")||{textContent:"[]"}).textContent);return Array.isArray(v)?v:((v&&v.fields)||[])}catch(x){return []}})();
;
const tabConfig = (MANIFEST['页面'] || []).map(function (p) { return [p['编号'], p['名称'], !!p['隐藏']]; });
function F(label){return !(((MANIFEST||{})['字段显示']||{})[label]===false)}
function escapeHtml(v){
return String(v ?? '').replace(/[&<>"']/g, s => ({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[s]));
}
function listHtml(arr){
if(!arr || !arr.length) return '<p>暂无公开资料。</p>';
return '<ul class="list">' + arr.map(x=>'<li>'+escapeHtml(x)+'</li>').join('') + '</ul>';
}
function pills(arr, gray=false){
if(!arr || !arr.length) return '';
return '<div class="pill-row">' + arr.map(t=>'<span class="pill '+(gray?'gray':'')+'">'+escapeHtml(t)+'</span>').join('') + '</div>';
}
function matchText(item, q){
if(!q) return true;
return JSON.stringify(item).toLowerCase().includes(q.toLowerCase());
}
function renderTabs(){
const wrap = document.getElementById('tabbar');
wrap.innerHTML = '';
tabConfig.filter(cfg => !cfg[2]).forEach(([id,label],idx)=>{
const btn = document.createElement('button');
btn.className = 'tab-btn' + (idx===0 ? ' active' : '');
btn.textContent = label;
btn.onclick = () => switchTab(id, btn);
wrap.appendChild(btn);
});
}
function switchTab(id, btn){
const cfg = tabConfig.find(c => c[0] === id);
if (cfg && cfg[2]) return;
document.querySelectorAll('.tab-btn').forEach(b=>b.classList.remove('active'));
btn.classList.add('active');
document.querySelectorAll('.panel').forEach(p=>p.classList.remove('active'));
document.getElementById('panel-'+id).classList.add('active');
window.scrollTo({top:0, behavior:'smooth'});
}
function jumpToSearch(){
const active = document.querySelector('.panel.active');
const box = active.querySelector('.search');
if(box){ box.focus(); box.scrollIntoView({behavior:'smooth', block:'center'}); }
else {
document.querySelector('[data-tab="brigades"]')?.click();
}
}
document.getElementById('globalSearch').addEventListener('input', e=>{
const q = e.target.value;
const activeId = document.querySelector('.panel.active')?.id || '';
['brigadeSearch','equipSearch','roleSearch','matrixSearch'].forEach(id=>{
const box = document.getElementById(id);
if(box && activeId.includes(id.replace('Search','').replace('equip','equipment').replace('role','personnel'))) {
box.value = q;
box.dispatchEvent(new Event('input'));
}
});
});
function pageTitle(title, desc, actions=''){
return `<div class="page-title"><div><h2>${title}</h2><p>${desc}</p></div><div class="page-actions">${actions}</div></div>`;
}
function renderOverview(){
const p = document.getElementById('panel-overview');
const stats = [
['联兵旅档案', DATA.brigades.length, '七个联合兵种旅'],
['装备平台', DATA.equipment.length, '装备与支撑能力'],
['人员类型', DATA.personnel.人员结构.length, '军官、士官、志愿役等'],
['岗位生态', DATA.personnel.典型岗位生态.length, '典型岗位群'],
['压力维度', DATA.capability_pressure_matrix.length, '能力—制度压力矩阵'],
['改革节点', DATA.reform.改革时间线.length, '联兵改革时间线']
];
p.innerHTML = `
${pageTitle('全库态势总览','结构化JSON用于检索、筛选和关联;正文内容作为详情页面主要内容源,尽量保留知识深度。',
'<button class="outline-btn" onclick="openSafety()">安全边界</button><button class="solid-btn" onclick="switchTo(\'brigades\')">进入七旅画像</button>')}
<div class="stat-row">
${stats.map(s=>`<div class="stat-card"><div class="stat-label">${escapeHtml(s[0])}</div><div class="stat-value">${escapeHtml(s[1])}</div><div class="stat-note">${escapeHtml(s[2])}</div></div>`).join('')}
</div>
<div class="section-title"><h3>专题入口</h3><span>详情默认采用中文业务字段展示</span></div>
<div class="grid-3">
<div class="topic-card" onclick="switchTo('brigades')"><div class="icon-box">旅</div><h4>七旅画像</h4><p>逐旅查看番号、队名、历史源流、装备画像、人员生态、制度压力和数据缺口。</p>${pills(['完整单位档案'])}</div>
<div class="topic-card" onclick="switchTo('reform')"><div class="icon-box">改</div><h4>联兵改革</h4><p>展示联合兵种旅/营改革时间线、战车型/机步型联兵营模型和火力连结构。</p>${pills(['改革时间线','联兵营模型'])}</div>
<div class="topic-card" onclick="switchTo('equipment')"><div class="icon-box">装</div><h4>装备现代化</h4><p>结构化关联M1A2T、CM34、炮兵、反甲、防空、无人机、救济与重拖装备。</p>${pills(['装备数据库'])}</div>
<div class="topic-card" onclick="switchTo('personnel')"><div class="icon-box">人</div><h4>人员生态</h4><p>按照军官、士官、志愿役、义务役、后备、技术支援和典型岗位群整理。</p>${pills(['岗位生态','人力压力'])}</div>
<div class="topic-card" onclick="switchTo('matrix')"><div class="icon-box">矩</div><h4>能力压力矩阵</h4><p>从火力、机动、防护、情报、指挥、后勤、人力、后备、采购、地方关系分析。</p>${pills(['能力画像','观察指标'])}</div>
<div class="topic-card" onclick="openSafety()"><div class="icon-box">界</div><h4>研究边界说明</h4><p>不再作为独立栏目,仅保留为弹框说明,用于提示公开资料和安全展示规则。</p>${pills(['非操作性','公开资料'])}</div>
</div>
<div class="section-title"><h3>七个联兵旅速览</h3><span>点击卡片详情查看二级档案</span></div>
<div class="grid-3">
${DATA.brigades.map((b,i)=>brigadeCard(b,i)).join('')}
</div>
`;
}
function switchTo(id){
const idx = tabConfig.findIndex(x=>x[0]===id);
if(idx>=0) document.querySelectorAll('.tab-btn')[idx].click();
}
function brigadeCard(b,i){
return `<div class="card">
<div class="card-head">
<div><h4>${escapeHtml(b.番号)}</h4><p>${escapeHtml(b.队名)}|${escapeHtml(b.隶属方向)}</p></div>
<button class="detail-btn" onclick="openBrigade(${i})">详情</button>
</div>
<p>${F("原性质") ? `<b>原性质:</b>${escapeHtml(b.原性质)}` : ""}</p>
<p>${F("定位") ? `<b>定位:</b>${escapeHtml(b.研究定位)}` : ""}</p>
${pills(b.标签)}
</div>`;
}
function renderBrigades(){
const p = document.getElementById('panel-brigades');
p.innerHTML = `
${pageTitle('七个联兵旅逐旅画像','以公开资料整理单位番号、队名传统、历史源流、装备画像、人员生态、制度压力和数据缺口。')}
<div class="toolbar">
<input class="search" id="brigadeSearch" placeholder="搜索番号、队名、方向、装备、制度压力……">
<select class="select" id="brigadeDirection"><option value="">全部方向</option><option value="北部">北部 / 第六军团</option><option value="中部">中部 / 第十军团</option><option value="南部">南部 / 第八军团</option></select>
<select class="select" id="brigadeType"><option value="">全部原性质</option><option value="装甲">原装甲旅</option><option value="机械化步兵">原机械化步兵旅</option></select>
</div>
<div class="grid-3" id="brigadeList"></div>
`;
const update = ()=>{
const q = document.getElementById('brigadeSearch').value;
const dir = document.getElementById('brigadeDirection').value;
const typ = document.getElementById('brigadeType').value;
const list = DATA.brigades.filter(b=>matchText(b,q)&&(!dir||b.隶属方向.includes(dir))&&(!typ||b.原性质.includes(typ)));
document.getElementById('brigadeList').innerHTML = list.length ? list.map(b=>brigadeCard(b,DATA.brigades.indexOf(b))).join('') : '<div class="empty">没有匹配结果。</div>';
};
['brigadeSearch','brigadeDirection','brigadeType'].forEach(id=>document.getElementById(id).addEventListener(id==='brigadeSearch'?'input':'change',update));
update();
}
function renderReform(){
const r = DATA.reform;
document.getElementById('panel-reform').innerHTML = `
${pageTitle('联合兵种旅 / 营改革数据','围绕改革逻辑、时间线、联兵营模型、火力连结构和观察指标进行结构化展示。')}
<div class="grid-2">
<div class="card"><h4>${escapeHtml(r.改革概述.名称)}</h4><p>${escapeHtml(r.改革概述.核心逻辑)}</p><p><b>展示重点:</b>${escapeHtml(r.改革概述.展示重点)}</p></div>
<div class="card"><h4>核心变化</h4>${listHtml(r.关键变化)}</div>
</div>
<div class="section-title"><h3>改革时间线</h3><span>以公开资料为线索</span></div>
<div class="timeline">${r.改革时间线.map(x=>`<div class="time-item"><div class="time-label">${escapeHtml(x.时间)}|${escapeHtml(x.节点)}</div><p>${escapeHtml(x.说明)}</p>${pills([x.资料等级],true)}</div>`).join('')}</div>
<div class="section-title"><h3>联兵营公开模型</h3><span>战车型 / 机步型 / 火力连</span></div>
<div class="grid-3">${r.联兵营模型.map(m=>`<div class="card"><h4>${escapeHtml(m.类型)}</h4><p>${F("功能定位") ? `<b>功能定位:</b>${escapeHtml(m.功能定位)}` : ""}</p>${pills(m.基本构成)}<p>${F("展示提示") ? `<b>展示提示:</b>${escapeHtml(m.展示提示)}` : ""}</p></div>`).join('')}</div>
<div class="section-title"><h3>主要争议与观察指标</h3><span>制度性压力,不做战术推演</span></div>
<div class="table-wrap"><table><thead><tr><th>议题</th><th>观察指标</th></tr></thead><tbody>${r.主要争议与观察指标.map(x=>`<tr><td><b>${escapeHtml(x.议题)}</b></td><td>${pills(x.观察指标,true)}</td></tr>`).join('')}</tbody></table></div>
`;
}
function equipCard(e,i){
return `<div class="card">
<div class="card-head">
<div><h4>${escapeHtml(e.装备名称)}</h4><p>${escapeHtml(e.类别)}|${escapeHtml(e.来源类型)}</p></div>
<button class="detail-btn" onclick="openEquipment(${i})">详情</button>
</div>
<p>${F("公开状态") ? `<b>公开状态:</b>${escapeHtml(e.公开状态)}` : ""}</p>
<p>${F("现代化意义") ? `<b>现代化意义:</b>${escapeHtml(e.现代化意义)}` : ""}</p>
${pills(e.标签)}
</div>`;
}
function renderEquipment(){
const cats = [...new Set(DATA.equipment.map(e=>e.类别))];
const p = document.getElementById('panel-equipment');
p.innerHTML = `
${pageTitle('装备现代化数据库','按装备类别、来源类型、主要用途、训练需求、后勤需求、关联人员和制度压力组织。')}
<div class="toolbar">
<input class="search" id="equipSearch" placeholder="搜索装备、用途、训练需求、关联人员、制度压力……">
<select class="select" id="equipCategory"><option value="">全部类别</option>${cats.map(c=>`<option>${escapeHtml(c)}</option>`).join('')}</select>
<select class="select" id="equipSource"><option value="">全部来源</option><option value="美国军售">美国军售</option><option value="台湾国产">台湾国产</option><option value="既有">既有/旧式</option><option value="改革">改革配套</option></select>
</div>
<div class="grid-3" id="equipmentList"></div>
<div class="section-title"><h3>装备数据库总表</h3><span>便于导出与二次入库</span></div>
<div class="table-wrap"><table><thead><tr><th>装备</th><th>类别</th><th>主要用途</th><th>训练需求</th><th>后勤需求</th><th>制度压力</th></tr></thead><tbody id="equipTable"></tbody></table></div>
`;
const update = ()=>{
const q = document.getElementById('equipSearch').value;
const cat = document.getElementById('equipCategory').value;
const src = document.getElementById('equipSource').value;
const list = DATA.equipment.filter(e=>matchText(e,q)&&(!cat||e.类别===cat)&&(!src||e.来源类型.includes(src)||(src==='既有'&&(e.来源类型.includes('既有')||e.来源类型.includes('旧式')))||(src==='改革'&&e.来源类型.includes('改革'))));
document.getElementById('equipmentList').innerHTML = list.length ? list.map(e=>equipCard(e,DATA.equipment.indexOf(e))).join('') : '<div class="empty">没有匹配结果。</div>';
document.getElementById('equipTable').innerHTML = list.map(e=>`<tr><td><b>${escapeHtml(e.装备名称)}</b></td><td>${escapeHtml(e.类别)}</td><td>${(e.主要用途||[]).map(escapeHtml).join('、')}</td><td>${(e.训练需求||[]).map(escapeHtml).join('、')}</td><td>${(e.后勤需求||[]).map(escapeHtml).join('、')}</td><td>${(e.制度压力||[]).map(escapeHtml).join('、')}</td></tr>`).join('');
};
['equipSearch','equipCategory','equipSource'].forEach(id=>document.getElementById(id).addEventListener(id==='equipSearch'?'input':'change',update));
update();
}
function renderPersonnel(){
const p = document.getElementById('panel-personnel');
p.innerHTML = `
${pageTitle('人员生态数据','从人员结构、背景议题和典型岗位群三个层次展示军官、士官、志愿役、义务役、后备与技术支援。')}
<div class="section-title"><h3>人员结构分层</h3><span>角色与制度压力</span></div>
<div class="grid-3">${DATA.personnel.人员结构.map(x=>`<div class="card"><h4>${escapeHtml(x.人员类型)}</h4><p>${escapeHtml(x.角色)}</p><p><b>展示字段</b></p>${pills(x.展示字段,true)}<p><b>制度压力</b></p>${pills(x.制度压力)}</div>`).join('')}</div>
<div class="section-title"><h3>人力背景议题</h3><span>公开制度与趋势层面</span></div>
<div class="grid-2">${DATA.personnel.人力背景议题.map(x=>`<div class="card"><h4>${escapeHtml(x.议题)}</h4><p>${F("公开背景") ? `<b>公开背景:</b>${escapeHtml(x.公开背景)}` : ""}</p><p>${F("对联兵旅影响") ? `<b>对联兵旅影响:</b>${escapeHtml(x.对联兵旅影响)}` : ""}</p>${pills(x.标签)}</div>`).join('')}</div>
<div class="section-title"><h3>典型岗位生态</h3><span>岗位职责、压力来源与关联装备</span></div>
<div class="toolbar"><input class="search" id="roleSearch" placeholder="搜索岗位、装备、职责或压力来源……"></div>
<div class="grid-3" id="roleList"></div>
`;
const update = ()=>{
const q = document.getElementById('roleSearch').value;
const list = DATA.personnel.典型岗位生态.filter(x=>matchText(x,q));
document.getElementById('roleList').innerHTML = list.length ? list.map(x=>`<div class="card"><h4>${escapeHtml(x.岗位群)}</h4><p><b>主要职责</b></p>${listHtml(x.主要职责)}<p><b>压力来源</b></p>${listHtml(x.压力来源)}<p><b>关联装备:</b>${(x.关联装备||[]).map(escapeHtml).join('、')}</p>${pills(x.标签)}</div>`).join('') : '<div class="empty">没有匹配结果。</div>';
};
document.getElementById('roleSearch').addEventListener('input',update);
update();
}
function renderMatrix(){
const p = document.getElementById('panel-matrix');
p.innerHTML = `
${pageTitle('能力—制度压力矩阵','将火力、机动、防护、情报、指挥、后勤、人力、后备、采购和地方关系转化为可观察指标。')}
<div class="toolbar"><input class="search" id="matrixSearch" placeholder="搜索火力、机动、后勤、人力、采购、地方关系等……"></div>
<div class="grid-2" id="matrixGrid"></div>
<div class="section-title"><h3>矩阵总表</h3><span>能力画像 × 制度压力 × 观察指标</span></div>
<div class="table-wrap"><table><thead><tr><th>维度</th><th>能力画像</th><th>制度压力</th><th>观察指标</th></tr></thead><tbody id="matrixTable"></tbody></table></div>
`;
const update = ()=>{
const q = document.getElementById('matrixSearch').value;
const list = DATA.capability_pressure_matrix.filter(x=>matchText(x,q));
document.getElementById('matrixGrid').innerHTML = list.length ? list.map(x=>`<div class="card"><h4>${escapeHtml(x.维度)}</h4><p>${F("能力画像") ? `<b>能力画像:</b>${escapeHtml(x.能力画像)}` : ""}</p><p>${F("制度压力") ? `<b>制度压力:</b>${escapeHtml(x.制度压力)}` : ""}</p>${pills(x.观察指标)}</div>`).join('') : '<div class="empty">没有匹配结果。</div>';
document.getElementById('matrixTable').innerHTML = list.map(x=>`<tr><td><b>${escapeHtml(x.维度)}</b></td><td>${escapeHtml(x.能力画像)}</td><td>${escapeHtml(x.制度压力)}</td><td>${pills(x.观察指标,true)}</td></tr>`).join('');
};
document.getElementById('matrixSearch').addEventListener('input',update);
update();
}
function openBrigade(i){
const b = DATA.brigades[i];
document.getElementById('modalBadge').textContent = b.队名 + '|' + b.原性质;
document.getElementById('modalTitle').textContent = b.番号;
document.getElementById('modalBody').innerHTML = `
<div class="detail-grid">
<div class="detail-box"><h5>基础信息</h5><p>${F("隶属方向") ? `<b>隶属方向:</b>${escapeHtml(b.隶属方向)}` : ""}</p><p>${F("研究定位") ? `<b>研究定位:</b>${escapeHtml(b.研究定位)}` : ""}</p>${pills(b.标签)}</div>
<div class="detail-box"><h5>传统符号</h5>${listHtml(b.传统符号)}</div>
<div class="detail-box full"><h5>历史源流</h5>${listHtml(b.历史源流)}</div>
<div class="detail-box"><h5>公开组织重点</h5>${listHtml(b.公开组织重点)}</div>
<div class="detail-box"><h5>装备画像</h5>${listHtml(b.装备画像)}</div>
<div class="detail-box"><h5>演训 / 地方线索</h5>${listHtml(b.演训线索 || b.地方关系 || [])}</div>
<div class="detail-box"><h5>人员生态关注</h5>${listHtml(b.人员生态关注)}</div>
<div class="detail-box"><h5>制度压力</h5>${listHtml(b.制度压力)}</div>
<div class="detail-box"><h5>数据缺口</h5>${listHtml(b.数据缺口)}</div>
<div class="detail-box"><h5>来源提示</h5>${pills(b.来源提示,true)}</div>
</div>`;
showModal();
}
function openEquipment(i){
const e = DATA.equipment[i];
document.getElementById('modalBadge').textContent = e.类别 + '|' + e.来源类型;
document.getElementById('modalTitle').textContent = e.装备名称;
document.getElementById('modalBody').innerHTML = `
<div class="detail-grid">
<div class="detail-box full"><h5>公开状态</h5><p>${escapeHtml(e.公开状态)}</p></div>
<div class="detail-box"><h5>主要用途</h5>${listHtml(e.主要用途)}</div>
<div class="detail-box"><h5>现代化意义</h5><p>${escapeHtml(e.现代化意义)}</p></div>
<div class="detail-box"><h5>训练需求</h5>${listHtml(e.训练需求)}</div>
<div class="detail-box"><h5>后勤需求</h5>${listHtml(e.后勤需求)}</div>
<div class="detail-box"><h5>关联人员</h5>${pills(e.关联人员,true)}</div>
<div class="detail-box"><h5>制度压力</h5>${listHtml(e.制度压力)}</div>
<div class="detail-box"><h5>关联单位</h5>${pills(e.关联单位,true)}</div>
<div class="detail-box"><h5>标签</h5>${pills(e.标签)}</div>
</div>`;
showModal();
}
function openSafety(){
document.getElementById('modalBadge').textContent = '说明|公开资料与展示边界';
document.getElementById('modalTitle').textContent = '研究边界说明';
document.getElementById('modalBody').innerHTML = `
<div class="detail-grid">
<div class="detail-box"><h5>可展示内容</h5>${listHtml(DATA.overview.研究边界.slice(0,2))}</div>
<div class="detail-box"><h5>必须排除或模糊化</h5>${listHtml(DATA.overview.研究边界.slice(2))}</div>
<div class="detail-box full"><h5>资料分级</h5><p>资料可按官方、主流媒体、智库期刊、社群线索分级。页面不再单独设置“资料边界”栏目,但保留该说明弹框,便于后续入库时统一口径。</p></div>
</div>`;
showModal();
}
function showModal(){document.getElementById('modalMask').classList.add('show')}
function closeModal(){document.getElementById('modalMask').classList.remove('show')}
document.getElementById('modalMask').addEventListener('click',e=>{if(e.target.id==='modalMask')closeModal()});
document.addEventListener('keydown',e=>{if(e.key==='Escape')closeModal()});
syncHeader();
applyPageVisibility();
renderTabs();
renderOverview();
renderBrigades();
renderReform();
renderEquipment();
renderPersonnel();
renderMatrix();
renderCustomModules();
/* ── 页头同步(MANIFEST.系统 → title/h1) ── */
function syncHeader(){
var sys=(MANIFEST||{})['系统']||{};
if(sys['名称']){document.title=String(sys['名称']);var h1=document.querySelector('.page-header h1,header h1,.brand h1,h1');if(h1)h1.textContent=String(sys['名称'])}
}
/* ── 页面可见性(隐藏分类: tab 按钮与 panel 隐藏) ── */
function applyPageVisibility(){
(MANIFEST['页面']||[]).forEach(function(p){
if(p&&p['隐藏']===true&&p['编号']){
var b=document.querySelector('.tab-btn[data-panel="'+p['编号']+'"]');if(b)b.style.display='none';
var s=document.getElementById('panel-'+p['编号']);if(s)s.style.display='none';
}
});
}
/* ── 自定义模块(MANIFEST.自定义模块 挂到对应页面底部) ── */
function renderCustomModules(){
var list=((MANIFEST||{})['自定义模块']||[]).filter(function(m){return m&&m['页面']&&m.html});
list.forEach(function(m){
var host=document.getElementById('panel-'+m['页面']);
if(!host)return;
var wrap=document.createElement('section');
wrap.className='custom-module';
wrap.style.margin='18px 0';
wrap.innerHTML='<h3>'+escapeHtml(m['标题']||'自定义模块')+'</h3>'+m.html;
host.appendChild(wrap);
});
}
/* ── 页面 JSON 编辑器 ── */
(function(){
"use strict";
var escFn=(typeof esc==='function')?esc:function(v){return String(v==null?'':v)};
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}
var initialData=clone(DATA),initialManifest=clone(MANIFEST);
var overlay=document.getElementById('editorOverlay');
if(!overlay)return;
var fingerprint=(function(){var h=2166136261,s=JSON.stringify(initialData)+'|'+JSON.stringify(initialManifest);for(var i=0;i<s.length;i++){h^=s.charCodeAt(i);h=Math.imul(h,16777619)}return (h>>>0).toString(36)})();
var 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(){var cached=readLS(storageKey);if(!cached)return;try{var 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){}})();
var labels={};(MANIFEST['页面']||[]).forEach(function(p){if(p&&p['编号'])labels[p['编号']]=p['名称']||p['编号']});
var modules=Object.keys(DATA).concat(['__manifest__']);
var active=modules[0]||'__manifest__';
var drafts=buildDrafts(DATA,MANIFEST);
function moduleTitle(k){return k==='__manifest__'?'系统设置(MANIFEST)':(labels[k]||k)}
var 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{var 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(){var 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 renderTabs(){tabsEl.innerHTML='';modules.forEach(function(key){var b=document.createElement('button');b.type='button';b.className='editor-tab'+(key===active?' active':'');b.innerHTML='<b>'+escFn(moduleTitle(key))+'</b><small>'+(key==='__manifest__'?'manifest.json':key)+'</small>';b.onclick=function(){if(key===active||!saveActiveDraft())return;active=key;renderTabs();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();syncHeader();applyPageVisibility();renderTabs();renderOverview();renderBrigades();renderReform();renderEquipment();renderPersonnel();renderMatrix();renderCustomModules();writeLS(storageKey,JSON.stringify({data:DATA,manifest:MANIFEST}))}
function legacyCopy(text){var 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__';renderTabs();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);renderTabs();loadEditor();setStatus(true,'已恢复默认数据,点击「应用到页面」生效')};
document.getElementById('copyJson').onclick=function(){if(!saveActiveDraft())return;var 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;var blob=new Blob([JSON.stringify({data:draftsToData(drafts),manifest:drafts.__manifest__},null,2)],{type:'application/json;charset=utf-8'});var link=document.createElement('a');link.href=URL.createObjectURL(blob);link.download='page-data.json';link.click();setTimeout(function(){URL.revokeObjectURL(link.href)},1000)};
})();
@@ -0,0 +1,643 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>台湾陆军机动打击部队知识数据展示平台</title>
<style>
:root {
--red-900:#8f1020;
--red-800:#a51324;
--red-700:#bf1f2f;
--red-600:#d12b3b;
--red-soft:#fff1f2;
--red-soft-2:#fde7e9;
--ink:#17202a;
--text:#263241;
--muted:#667085;
--muted-2:#8a94a6;
--line:#e3e7ee;
--bg:#f4f7fb;
--card:#ffffff;
--shadow:0 8px 24px rgba(16, 24, 40, .06);
--shadow-2:0 18px 55px rgba(16, 24, 40, .14);
--radius:16px;
}
*{box-sizing:border-box}
body{
margin:0;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif;
color:var(--ink);
background:
radial-gradient(circle at 20% 5%, rgba(191,31,47,.08), transparent 30%),
linear-gradient(180deg,#f8fafc 0%, var(--bg) 240px, var(--bg) 100%);
}
.app-header{
height:104px;
background:linear-gradient(135deg,var(--red-900),var(--red-800) 54%,var(--red-700));
color:#fff;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 36px;
box-shadow:0 8px 24px rgba(143,16,32,.22);
position:sticky;
top:0;
z-index:20;
}
.brand{
display:flex;
align-items:center;
gap:18px;
min-width:420px;
}
.logo{
width:58px;
height:58px;
border:2px solid rgba(255,255,255,.8);
border-radius:18px;
display:grid;
place-items:center;
font-size:28px;
font-weight:900;
box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
}
.brand h1{
margin:0;
font-size:28px;
line-height:1.1;
font-weight:900;
letter-spacing:-.03em;
}
.brand p{
margin:7px 0 0;
font-size:14px;
color:rgba(255,255,255,.78);
font-weight:600;
}
.header-actions{
display:flex;
align-items:center;
gap:12px;
min-width:420px;
justify-content:flex-end;
}
.global-search{
width:min(520px,42vw);
height:58px;
border:1px solid rgba(255,255,255,.24);
background:rgba(255,255,255,.13);
border-radius:14px;
color:#fff;
padding:0 48px 0 18px;
outline:none;
font-size:16px;
font-weight:700;
}
.global-search::placeholder{color:rgba(255,255,255,.72)}
.search-wrap{position:relative}
.search-icon{
position:absolute;
right:17px;
top:50%;
transform:translateY(-50%);
color:#fff;
opacity:.88;
font-size:20px;
}
.ai-btn{
height:58px;
border:0;
border-radius:14px;
padding:0 22px;
background:#fff;
color:var(--red-800);
font-weight:900;
font-size:17px;
cursor:pointer;
box-shadow:0 8px 22px rgba(0,0,0,.12);
white-space:nowrap;
}
.tabbar-wrap{
background:#fff;
border-bottom:1px solid var(--line);
position:sticky;
top:104px;
z-index:15;
}
.tabbar{
display:flex;
align-items:center;
gap:0;
padding:0 36px;
overflow-x:auto;
}
.tab-btn{
position:relative;
border:0;
background:transparent;
color:#344054;
height:72px;
padding:0 23px;
font-size:17px;
font-weight:900;
cursor:pointer;
white-space:nowrap;
}
.tab-btn:hover{color:var(--red-800)}
.tab-btn.active{color:var(--red-800)}
.tab-btn.active::after{
content:"";
position:absolute;
left:18px;
right:18px;
bottom:0;
height:4px;
border-radius:4px 4px 0 0;
background:var(--red-700);
}
main{
padding:32px 36px 58px;
max-width:1800px;
margin:0 auto;
}
.panel{display:none}
.panel.active{display:block}
.page-title{
display:flex;
align-items:flex-end;
justify-content:space-between;
gap:20px;
margin:0 0 26px;
}
.page-title h2{
margin:0;
font-size:30px;
letter-spacing:-.03em;
}
.page-title p{
margin:12px 0 0;
color:#667085;
font-size:17px;
line-height:1.6;
}
.page-actions{
display:flex;
gap:12px;
flex-wrap:wrap;
}
.outline-btn,.solid-btn{
height:54px;
border-radius:12px;
padding:0 22px;
font-size:16px;
font-weight:900;
cursor:pointer;
}
.outline-btn{
background:#fff;
color:var(--red-800);
border:1px solid rgba(191,31,47,.32);
}
.solid-btn{
background:var(--red-800);
color:#fff;
border:1px solid var(--red-800);
box-shadow:0 10px 22px rgba(191,31,47,.18);
}
.stat-row{
display:grid;
grid-template-columns:repeat(6,minmax(210px,1fr));
gap:20px;
overflow-x:auto;
padding-bottom:4px;
}
.stat-card{
min-height:158px;
background:#fff;
border:1px solid var(--line);
border-radius:16px;
padding:26px 24px 22px;
position:relative;
box-shadow:var(--shadow);
overflow:hidden;
}
.stat-card::before{
content:"";
position:absolute;
left:0;right:0;top:0;
height:6px;
background:linear-gradient(90deg,var(--red-800),var(--red-600));
}
.stat-label{
color:#667085;
font-weight:800;
font-size:15px;
}
.stat-value{
margin-top:12px;
font-size:42px;
font-weight:950;
letter-spacing:-.04em;
color:#1d2430;
}
.stat-note{
margin-top:8px;
color:#98a2b3;
font-size:14px;
}
.section-title{
margin:34px 0 16px;
display:flex;
justify-content:space-between;
align-items:flex-end;
gap:14px;
}
.section-title h3{
margin:0;
font-size:23px;
}
.section-title span{
color:#667085;
font-size:14px;
}
.grid-3{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:22px;
}
.grid-2{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:22px;
}
.grid-4{
display:grid;
grid-template-columns:repeat(4,minmax(0,1fr));
gap:22px;
}
.topic-card,.card{
background:#fff;
border:1px solid var(--line);
border-radius:18px;
box-shadow:var(--shadow);
padding:26px;
position:relative;
overflow:hidden;
}
.topic-card::after{
content:"";
position:absolute;
right:-34px;
top:-48px;
width:150px;
height:150px;
border-radius:50%;
background:rgba(191,31,47,.08);
}
.icon-box{
width:54px;
height:54px;
display:grid;
place-items:center;
border-radius:12px;
background:var(--red-700);
color:#fff;
font-size:24px;
font-weight:950;
margin-bottom:20px;
}
.topic-card h4,.card h4{
margin:0;
font-size:21px;
letter-spacing:-.02em;
}
.topic-card p,.card p{
color:#667085;
line-height:1.72;
margin:14px 0 0;
font-size:15px;
}
.pill-row{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-top:18px;
}
.pill{
display:inline-flex;
align-items:center;
border-radius:999px;
padding:7px 11px;
background:var(--red-soft);
color:var(--red-800);
border:1px solid rgba(191,31,47,.08);
font-size:13px;
font-weight:900;
}
.pill.gray{
background:#f2f4f7;
color:#667085;
border-color:#eaecf0;
}
.card-head{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:14px;
margin-bottom:12px;
}
.detail-btn{
border:1px solid rgba(191,31,47,.25);
background:#fff;
color:var(--red-800);
border-radius:10px;
padding:8px 12px;
font-weight:900;
cursor:pointer;
white-space:nowrap;
}
.detail-btn:hover{background:var(--red-soft)}
.toolbar{
display:flex;
flex-wrap:wrap;
gap:12px;
margin:0 0 18px;
}
.search,.select{
height:48px;
border:1px solid var(--line);
border-radius:12px;
background:#fff;
padding:0 14px;
font-size:15px;
outline:none;
color:#263241;
}
.search{flex:1;min-width:260px}
.search:focus,.select:focus{
border-color:rgba(191,31,47,.55);
box-shadow:0 0 0 4px rgba(191,31,47,.08);
}
.table-wrap{
overflow:auto;
background:#fff;
border:1px solid var(--line);
border-radius:18px;
box-shadow:var(--shadow);
}
table{
width:100%;
min-width:980px;
border-collapse:collapse;
}
th,td{
padding:16px 18px;
border-bottom:1px solid var(--line);
vertical-align:top;
text-align:left;
line-height:1.68;
font-size:14px;
}
th{
background:#fbfcfe;
color:#475467;
font-size:13px;
font-weight:900;
position:sticky;
top:0;
}
tbody tr:hover td{background:#fff7f8}
.timeline{
display:grid;
gap:16px;
}
.time-item{
background:#fff;
border:1px solid var(--line);
border-left:6px solid var(--red-700);
border-radius:16px;
padding:20px 22px;
box-shadow:var(--shadow);
}
.time-label{
color:var(--red-800);
font-size:15px;
font-weight:950;
margin-bottom:6px;
}
.list{
margin:12px 0 0;
padding-left:19px;
color:#667085;
line-height:1.75;
font-size:14px;
}
.empty{
grid-column:1/-1;
padding:32px;
text-align:center;
color:#667085;
border:1px dashed var(--line);
border-radius:16px;
background:#fff;
}
.safety-card{
margin-top:20px;
background:#fff;
border:1px solid #fed6d9;
border-radius:16px;
padding:18px 20px;
color:#5f2730;
line-height:1.75;
}
.modal-mask{
position:fixed;
inset:0;
background:rgba(15,23,42,.55);
display:none;
align-items:center;
justify-content:center;
z-index:100;
padding:24px;
}
.modal-mask.show{display:flex}
.modal{
width:min(1120px,96vw);
max-height:88vh;
overflow:auto;
background:#fff;
border-radius:22px;
box-shadow:var(--shadow-2);
}
.modal-head{
position:sticky;
top:0;
z-index:2;
background:#fff;
border-bottom:1px solid var(--line);
padding:22px 26px;
display:flex;
justify-content:space-between;
gap:18px;
align-items:flex-start;
}
.modal-kicker{
display:inline-flex;
padding:7px 12px;
border-radius:999px;
color:var(--red-800);
background:var(--red-soft);
font-size:13px;
font-weight:900;
margin-bottom:10px;
}
.modal-title{
margin:0;
font-size:27px;
letter-spacing:-.03em;
}
.close{
width:40px;
height:40px;
border:0;
border-radius:12px;
color:#fff;
background:var(--red-800);
font-size:26px;
line-height:1;
cursor:pointer;
}
.modal-body{
padding:24px 26px 30px;
}
.detail-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:16px;
}
.detail-box{
border:1px solid var(--line);
background:#fff;
border-radius:16px;
padding:18px;
}
.detail-box.full{grid-column:1/-1}
.detail-box h5{
margin:0 0 12px;
font-size:16px;
color:var(--red-800);
}
.detail-box p{
margin:0;
color:#667085;
line-height:1.75;
}
.detail-box ul{
margin:0;
padding-left:18px;
color:#667085;
line-height:1.75;
}
.footer-note{
color:#667085;
line-height:1.75;
font-size:13px;
margin-top:22px;
}
@media(max-width:1320px){
.stat-row{grid-template-columns:repeat(3,minmax(210px,1fr));}
.grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}
.grid-3{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:880px){
.app-header{height:auto;position:relative;flex-direction:column;align-items:flex-start;padding:22px;gap:16px}
.brand,.header-actions{min-width:0;width:100%}
.global-search{width:100%}
.tabbar-wrap{top:0;position:sticky}
.tabbar{padding:0 18px}
main{padding:24px 18px 44px}
.page-title{flex-direction:column;align-items:flex-start}
.stat-row,.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
.detail-grid{grid-template-columns:1fr}
}
/* ── 页面 JSON 编辑器 ── */
.editor-fab{position:fixed;right:18px;bottom:26px;z-index:60;background:#8b1a1a;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:absolute;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:#8b1a1a}
.editor-pane{flex:1;display:flex;flex-direction:column;min-width:0;padding:14px 16px;gap:10px}
.editor-title-row{display:flex;align-items:center;justify-content:space-between}.editor-title-row b{font-size:14px}
.json-status{font-size:12px;padding:3px 10px;border-radius:999px}.json-status.valid{background:#e8f5ef;color:#14804a}.json-status.invalid{background:#fdecec;color:#b4232d}
.json-editor{flex:1;width:100%;resize:none;border:1px solid #e5e7eb;border-radius:10px;padding:13px;font:13px/1.6 ui-monospace,Consolas,monospace;color:#1e2329;background:#f8fafc;outline:0;tab-size:2}
.editor-actions{display:flex;gap:8px;flex-wrap:wrap}
.editor-hint{margin:0;font-size:11px;color:#8a94a3}
</style>
</head>
<body>
<header class="app-header">
<div class="brand">
<div class="logo">陆</div>
<div>
<h1>台湾陆军机动打击部队知识数据展示平台</h1>
<p>结构化数据检索 + 单位档案 + 装备体系 + 人员生态</p>
</div>
</div>
<div class="header-actions">
<div class="search-wrap">
<input id="globalSearch" class="global-search" placeholder="查询单位、装备、人员、改革或来源">
<span class="search-icon">⌕</span>
</div>
<button class="ai-btn" onclick="jumpToSearch()">交互查询</button>
</div>
</header>
<nav class="tabbar-wrap">
<div class="tabbar" id="tabbar"></div>
</nav>
<main>
<section id="panel-overview" class="panel active"></section>
<section id="panel-brigades" class="panel"></section>
<section id="panel-reform" class="panel"></section>
<section id="panel-equipment" class="panel"></section>
<section id="panel-personnel" class="panel"></section>
<section id="panel-matrix" class="panel"></section>
</main>
<div class="modal-mask" id="modalMask">
<div class="modal">
<div class="modal-head">
<div>
<div class="modal-kicker" id="modalBadge">详情</div>
<h2 class="modal-title" 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="modal-mask 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:#8b1a1a;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>