/* 戴安澜关系网络 · 第五军关系图 / 家庭关系网 */
#fa5-root #fa5RelNodes{position:absolute;inset:0;z-index:5;pointer-events:none}
#fa5-root .fa5-node{pointer-events:auto}
#fa5-root .fa5-note{margin-top:10px;font-size:10.5px;letter-spacing:.5px;color:#9a8870;line-height:1.7}
#fa5-root{margin:0 0 22px;padding:18px;border:1px solid rgba(216,188,122,.26);border-radius:4px;background:linear-gradient(180deg,rgba(28,22,16,.86),rgba(12,9,7,.92));box-shadow:inset 0 0 40px rgba(0,0,0,.42)}
.fa5-switch{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px}
#modalAdmin .admin-tabs{flex-wrap:wrap}
.fa5-admin-links{display:flex;flex-wrap:wrap;gap:8px}
.fa5-switch .fa5-sw{appearance:none;cursor:pointer;padding:8px 15px;border:1px solid rgba(216,188,122,.38);background:rgba(20,16,12,.92)!important;color:#e2bf63!important;font-family:var(--serif,serif);font-size:12px;letter-spacing:.1em;transition:.2s}
.fa5-switch .fa5-sw:hover{border-color:#e2bf63}
.fa5-switch .fa5-sw.is-on{background:#8e2b23!important;border-color:#8e2b23!important;color:#fbf3e4!important}
.fa5-sw-note{margin-left:auto;color:rgba(232,221,201,.5);font-size:10px}
.fa5-root .fa5-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:14px;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid rgba(216,188,122,.2)}
.fa5-root .fa5-head h3{margin:0;font-family:"Songti SC","SimSun",serif;font-size:19px;letter-spacing:3px;color:#f0e4cc}
.fa5-root .fa5-head .mono{font-size:9px;letter-spacing:2px;color:rgba(226,204,156,.6)}
.fa5-root .fa5-head .fa5-sub{margin-left:auto;font-size:10.5px;color:rgba(232,221,201,.55)}
@media(max-width:1040px){.fa5-sw-note{margin-left:0;width:100%}#fa5-root{padding:12px}}
.fa5-surface {
  position: relative;
  border: 1px solid rgba(216,188,122,.32);
  background:
    radial-gradient(120% 100% at 50% 42%, rgba(120,96,64,.5) 0%, rgba(44,35,26,.64) 58%, rgba(10,8,6,.8) 100%),
    repeating-linear-gradient(0deg, rgba(214,188,132,.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(214,188,132,.035) 0 1px, transparent 1px 34px),
    #1D1711;
  box-shadow: inset 0 0 46px rgba(0,0,0,.36), 0 8px 24px rgba(0,0,0,.18);
}
.fa5-surface::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(70% 60% at 50% 48%, transparent 40%, rgba(0,0,0,.5) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.13) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .5;
}
.fa5-deco { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fa5-deco::before, .fa5-deco::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(216,188,122,.2); }
.fa5-deco::after { inset: 21px; border-style: dashed; border-color: rgba(216,188,122,.1); }
.fa5-br { position: absolute; width: 18px; height: 18px; z-index: 3; pointer-events: none; border-color: rgba(232,210,160,.5); border-style: solid; }
.fa5-br.a { left: 12px; top: 12px; border-width: 2px 0 0 2px; }
.fa5-br.b { right: 12px; top: 12px; border-width: 2px 2px 0 0; }
.fa5-br.c { left: 12px; bottom: 12px; border-width: 0 0 2px 2px; }
.fa5-br.d { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; }
.fa5-compass {
  position: absolute; right: 34px; bottom: 30px; z-index: 3; width: 74px; height: 74px; pointer-events: none;
  border-radius: 50%; border: 1px solid rgba(226,204,156,.4);
  background: radial-gradient(circle, rgba(20,16,12,.85), rgba(20,16,12,.3));
  display: grid; place-items: center;
}
.fa5-compass::before, .fa5-compass::after { content: ''; position: absolute; background: rgba(226,204,156,.26); }
.fa5-compass::before { width: 1px; height: 100%; }
.fa5-compass::after { width: 100%; height: 1px; }
.fa5-compass i { font-style: normal; font-family: "Songti SC", serif; font-size: 21px; color: #E8C774; z-index: 1; text-shadow: 0 0 8px rgba(232,199,116,.4); }
.fa5-compass em { position: absolute; font-style: normal; font-size: 9px; color: rgba(226,204,156,.7); z-index: 1; }
.fa5-compass em.n { top: 2px; } .fa5-compass em.s { bottom: 2px; }
.fa5-compass em.e { right: 3px; } .fa5-compass em.w { left: 3px; }
.fa5-compass.mini { width: 46px; height: 46px; right: 26px; bottom: 22px; opacity: .72; }
.fa5-compass.mini i { font-size: 14px; }
.fa5-compass.mini em { font-size: 7px; }
.fa5-scale { position: absolute; left: 34px; bottom: 34px; z-index: 3; pointer-events: none; font: 9px/1 "Songti SC", serif; color: rgba(226,204,156,.62); letter-spacing: 1px; }
.fa5-scale b { display: block; width: 96px; height: 7px; margin-top: 4px; border: 1px solid rgba(226,204,156,.55); border-top: 0; background: repeating-linear-gradient(90deg, rgba(226,204,156,.6) 0 1px, transparent 1px 24px); }
.fa5-title { position: absolute; left: 34px; top: 32px; z-index: 3; pointer-events: none; font-family: "Songti SC", serif; font-size: 12px; letter-spacing: 3px; color: rgba(240,224,186,.82); text-shadow: 0 2px 8px #000; }
.fa5-title small { display: block; font: 8px/1.6 sans-serif; letter-spacing: 2px; color: rgba(226,204,156,.44); margin-top: 3px; }

/* ======================== 人物关系网（沙盘雷达） ======================== */
.fa5-wrap { display: grid; grid-template-columns: minmax(0,1fr) 328px; gap: 20px; align-items: stretch; }
.fa5-stage {
  min-height: 560px; border-radius: 4px; overflow: hidden;
}
.fa5-stage::after {
  content: '第五军关系图 · 戴安澜'; position: absolute; left: 30px; top: 26px; z-index: 4;
  font-family: "Songti SC", serif; font-size: 10px; letter-spacing: 3px; color: rgba(232,221,201,.5); pointer-events: none;
}
.fa5-stage[data-network="family"]::after{content:'家庭关系网 · 戴安澜'}
.fa5-radar { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .55; }
.fa5-radar i { position: absolute; left: 50%; top: 50%; border: 1px dashed rgba(216,188,122,.26); border-radius: 50%; transform: translate(-50%,-50%); }
.fa5-radar i:nth-child(1) { width: 26%; height: 32%; }
.fa5-radar i:nth-child(2) { width: 52%; height: 64%; }
.fa5-radar i:nth-child(3) { width: 78%; height: 94%; }
.fa5-radar::before, .fa5-radar::after { content: ''; position: absolute; background: rgba(216,188,122,.16); }
.fa5-radar::before { left: 50%; top: 4%; bottom: 4%; width: 1px; }
.fa5-radar::after { top: 50%; left: 4%; right: 4%; height: 1px; }
.fa5-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
.fa5-svg path.link { fill: none; stroke: rgba(216,188,122,.32); stroke-width: .42; transition: opacity .28s, stroke .28s, stroke-width .28s; }
.fa5-svg path.link.peer { stroke: rgba(192,73,47,.42); stroke-dasharray: 1.2 1.5; stroke-width: .36; }
.fa5-svg path.link.hi { stroke: #E2BF63; stroke-width: .9; opacity: 1; stroke-dasharray: 3 2.4; animation: fa5LinkFlow 1.6s linear infinite; }
.fa5-svg path.link.peer.hi { stroke: #F07A5A; stroke-width: .8; }
.fa5-svg path.link.dim { opacity: .12; }
@keyframes fa5LinkFlow { to { stroke-dashoffset: -22; } }
.fa5-node {
  position: absolute; z-index: 5; transform: translate(-50%,-50%); width: 92px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 0; background: none; cursor: pointer; padding: 0; font-family: inherit;
  transition: opacity .28s;
}
.fa5-node.dim { opacity: .24; }
.fa5-node .face {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Songti SC", serif; font-size: 20px; color: #FBF3E4;
  background: radial-gradient(circle at 38% 32%, #7A5738, #332116 74%);
  border: 1.5px solid #B99A56; box-shadow: 0 3px 12px rgba(0,0,0,.46);
  transition: transform .25s, box-shadow .25s; overflow: hidden; position: relative;
}
.fa5-node .face img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.fa5-node .face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); }
.fa5-node:hover .face, .fa5-node.on .face { transform: scale(1.12); }
.fa5-node.core .face, .fa5-node.on .face {
  width: 64px; height: 64px; font-size: 27px;
  background: radial-gradient(circle at 38% 32%, #A84632, #4A140D 74%);
  border: 2px solid #EFDCA4; box-shadow: 0 0 0 4px rgba(226,191,99,.16), 0 6px 20px rgba(0,0,0,.5);
}
.fa5-node.core { width: 112px; }
.fa5-node .nm { font-size: 12px; font-weight: 600; letter-spacing: .6px; color: #F5E9D2; text-align: center; line-height: 1.25; white-space: nowrap; text-shadow: 0 1px 4px #000; }
.fa5-node .rl { font-size: 9px; color: rgba(232,221,201,.6); text-align: center; line-height: 1.25; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.fa5-node .pin { position: absolute; top: -4px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: #E8C774; box-shadow: 0 0 7px #E8C774; opacity: 0; transition: opacity .3s; }
.fa5-node.on .pin { opacity: 1; animation: fa5PinBlink 1.5s ease-in-out infinite; }
@keyframes fa5PinBlink { 50% { opacity: .25; } }
.fa5-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 10.5px; color: #8A7350; }
.fa5-legend { color: rgba(232,221,201,.55); }
.fa5-legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid #E2BF63; vertical-align: 3px; margin-right: 5px; }
.fa5-legend i.peer { border-top: 2px dashed #F07A5A; }

/* 红警式人物档案面板 */
.fa5-card {
  border: 1px solid rgba(216,188,122,.32); border-radius: 4px; min-height: 560px;
  background:
    linear-gradient(180deg, rgba(40,30,20,.96), rgba(15,12,9,.97)),
    repeating-linear-gradient(0deg, rgba(216,188,122,.025) 0 1px, transparent 1px 4px);
  box-shadow: inset 0 0 34px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.24);
  overflow-y: auto; max-height: 620px; color: #E9DCC2;
}
.dos-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(216,188,122,.28); background: linear-gradient(90deg, rgba(142,43,35,.62), rgba(142,43,35,.04)); font: 10px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 2px; color: #F5E9D2; }
.dos-top b { font-weight: 600; }
.dos-top i { font-style: normal; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #E8C774; box-shadow: 0 0 7px #E8C774; margin-right: 6px; animation: fa5PinBlink 2s ease-in-out infinite; }
.dos-portrait { position: relative; margin: 14px 14px 0; height: 188px; border: 1px solid rgba(216,188,122,.44); overflow: hidden; background: #100C09; }
.dos-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; filter: sepia(.16) contrast(1.06) saturate(.9); }
.dos-portrait::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px), linear-gradient(0deg, rgba(12,9,7,.75), transparent 46%); }
.dos-portrait .dos-corner { position: absolute; z-index: 2; width: 15px; height: 15px; border: solid #E8C774; }
.dos-portrait .c1 { left: 5px; top: 5px; border-width: 2px 0 0 2px; }
.dos-portrait .c2 { right: 5px; top: 5px; border-width: 2px 2px 0 0; }
.dos-portrait .c3 { left: 5px; bottom: 5px; border-width: 0 0 2px 2px; }
.dos-portrait .c4 { right: 5px; bottom: 5px; border-width: 0 2px 2px 0; }
.dos-portrait .ph { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8px; text-align: center; font: 11px "Songti SC", serif; letter-spacing: 2px; color: rgba(245,233,210,.8); text-shadow: 0 1px 4px #000; }
.dos-gal-label { margin: 9px 14px 0; font: 9px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1.6px; color: #C39A32; opacity: .9; }
.dos-gallery { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 14px 0; }
.dos-gallery img { width: 58px; height: 58px; object-fit: cover; object-position: center 24%; border: 1px solid rgba(216,188,122,.35); filter: sepia(.2) contrast(1.05); cursor: zoom-in; transition: border-color .2s; }
.dos-gallery img:hover { border-color: #E8C774; }
.dos-name { padding: 12px 14px 0; display: flex; align-items: baseline; gap: 9px; }
.dos-name h4 { font-family: "Songti SC", serif; font-size: 24px; margin: 0; letter-spacing: 3px; color: #FBF3E4; }
.dos-name span { font: 9px ui-monospace, monospace; color: #C39A32; letter-spacing: 1px; }
.dos-role { margin: 5px 14px 0; font-size: 11px; line-height: 1.6; color: #E2BF63; }
.dos-meta { margin: 5px 14px 0; font: 10px ui-monospace, monospace; letter-spacing: .6px; color: rgba(232,221,201,.56); }
.dos-stats { display: grid; gap: 6px; margin: 12px 14px 0; padding: 10px; border: 1px solid rgba(216,188,122,.18); background: rgba(0,0,0,.25); }
.dos-stats div { display: flex; align-items: center; gap: 7px; font: 9px ui-monospace, monospace; letter-spacing: 1px; color: rgba(232,221,201,.65); }
.dos-stats div span:first-child { width: 34px; flex: none; }
.dos-stats b { flex: 1; height: 5px; background: rgba(232,221,201,.1); position: relative; overflow: hidden; }
.dos-stats b i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #8E2B23, #E2BF63); box-shadow: 0 0 6px rgba(226,191,99,.5); }
.dos-stats em { font-style: normal; width: 22px; text-align: right; color: #E2BF63; }
.dos-sec { margin: 15px 14px 7px; padding-bottom: 5px; border-bottom: 1px solid rgba(216,188,122,.24); font: 10px ui-monospace, monospace; letter-spacing: 2px; color: #E2BF63; }
.dos-bio { margin: 0 14px; font-size: 11.5px; line-height: 1.85; color: rgba(232,221,201,.78); }
.dos-tl { margin: 0 14px; }
.dos-tl .tl-item { position: relative; padding: 0 0 9px 15px; border-left: 1px solid rgba(216,188,122,.3); margin-left: 4px; font-size: 11px; line-height: 1.6; color: rgba(232,221,201,.75); }
.dos-tl .tl-item::before { content: ''; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #E2BF63; box-shadow: 0 0 0 2px #17110E; }
.dos-tl .tl-item b { color: #E48B76; margin-right: 6px; font: 10px ui-monospace, monospace; }
.dos-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 14px 6px; }
.dos-tags em { font-style: normal; font-size: 9.5px; letter-spacing: .5px; padding: 3px 7px; border-radius: 2px; background: rgba(226,191,99,.1); color: #E2BF63; border: 1px solid rgba(226,191,99,.26); }
.dos-rels { margin: 0 14px 14px; }
.dos-rels .fa5-item { padding: 7px 9px; margin-bottom: 5px; border-left: 2px solid #E2BF63; background: rgba(226,191,99,.07); cursor: pointer; transition: .18s; }
.dos-rels .fa5-item.peer { border-left-color: #F07A5A; background: rgba(192,73,47,.09); }
.dos-rels .fa5-item:hover { background: rgba(226,191,99,.16); transform: translateX(2px); }
.dos-rels .fa5-item b { display: block; font-size: 11.5px; color: #F5E9D2; }
.dos-rels .fa5-item span { font-size: 10px; color: rgba(232,221,201,.62); line-height: 1.5; }
.dos-hint { margin: 0 14px 14px; font: 9px ui-monospace, monospace; letter-spacing: 1px; color: rgba(232,221,201,.36); }

@media (max-width: 1040px) {
  .fa5-wrap { grid-template-columns: 1fr; }
  .fa5-stage, .fa5-card { min-height: 470px; }
  .fa5-card { max-height: none; }
}