:root{--ink:#2e2922;--muted:#786b58;--paper:#f7f1e4;--paper-deep:#efe5d2;--gold:#b08a4f;--red:#8e2f2f;--red-bright:#b03a2e;--line:#d8c7a8;--ning:#b03a2e;--rong:#8e2f2f;--shi:#2c6e9b;--xue:#6b5b95;--lin:#2e7d6b;--servant:#7a6a58;--other:#9a7b3f;--shadow:0 10px 30px #4934181f}*{box-sizing:border-box}html{scroll-behavior:smooth}body{color:var(--ink);background:radial-gradient(circle at 20% 0,#fffaecf2,#0000 34rem),radial-gradient(circle at 100% 10%,#e9d5b28c,#0000 30rem),linear-gradient(#fbf7ef 0%,#f3ebdb 100%);margin:0;font-family:Songti SC,Noto Serif CJK SC,Source Han Serif SC,STSong,serif;line-height:1.75}a{color:var(--red);text-decoration:none}a:hover{color:var(--red-bright);text-decoration:underline}.hero{color:#fdf8ec;background:radial-gradient(circle at 78% 18%,#dcb77438,#0000 22rem),linear-gradient(120deg,#3a1f1c 0%,#5b2b25 48%,#2f1a18 100%);border-bottom:4px double #c7a565;padding:54px 24px 42px;position:relative;overflow:hidden}.hero:before,.hero:after{content:"";pointer-events:none;border:1px solid #daba7e59;border-radius:50%;position:absolute}.hero:before{width:420px;height:420px;top:-180px;right:-120px}.hero:after{width:280px;height:280px;top:-110px;right:40px}.hero-inner{max-width:1160px;margin:0 auto;position:relative}.kicker{color:#d9bf8c;letter-spacing:.35em;margin:0 0 10px;font-size:13px}.hero h1{letter-spacing:.18em;text-shadow:0 3px 18px #00000059;margin:0;font-size:clamp(34px,6vw,60px);font-weight:700}.hero-sub{color:#eee0c8;max-width:760px;margin:18px 0 0;font-size:15px;line-height:1.9}.hero-actions{flex-wrap:wrap;gap:12px;margin-top:24px;display:flex}.hero-actions a{color:#f8e9cc;border:1px solid #debe84b8;border-radius:999px;padding:7px 18px;font-size:13px;text-decoration:none;transition:background .18s,color .18s}.hero-actions a:hover{color:#3a1f1c;background:#d9b97e;text-decoration:none}.page{width:min(1240px,100% - 32px);margin:-18px auto 40px}.graph-panel,.index-panel{border:1px solid var(--line);box-shadow:var(--shadow);background:linear-gradient(#fffcf5f7,#f9f3e8f7);border-radius:10px;margin-top:30px;padding:26px;position:relative}.panel-heading{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 28px;margin-bottom:14px;display:flex}.panel-heading h2{color:#5a2b24;letter-spacing:.12em;margin:0;font-size:24px}.panel-note,.search-count{color:var(--muted);margin:4px 0 0;font-size:12.5px}.graph-tools{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.search-box{color:var(--muted);gap:4px;font-size:12px;display:grid}.search-box input{width:min(300px,56vw);color:var(--ink);font:inherit;background:#fffdf8;border:1px solid #cbb892;border-radius:999px;outline:none;padding:8px 12px;font-size:13px;transition:border-color .15s,box-shadow .15s}.search-box input:focus{border-color:var(--gold);box-shadow:0 0 0 3px #b08a4f29}.reset-button{cursor:pointer;color:#6b4c22;font:inherit;background:#fffaf0;border:1px solid #c3a267;border-radius:999px;padding:8px 16px;font-size:13px}.reset-button:hover{color:#fff;background:#b08a4f}.legend{color:#6f6250;background:#fffcf5b3;border:1px dashed #d6c3a0;border-radius:8px;flex-wrap:wrap;gap:8px 18px;padding:10px 14px;font-size:12px;display:flex}.legend span{align-items:center;gap:5px;display:inline-flex}.dot{border-radius:50%;width:9px;height:9px;display:inline-block}.dot-ning{background:var(--ning)}.dot-rong{background:var(--rong)}.dot-shi{background:var(--shi)}.dot-xue{background:var(--xue)}.dot-lin{background:var(--lin)}.dot-servant{background:var(--servant)}.dot-other{background:var(--other)}.legend-line i{border-top:2px solid #9a7440;width:26px;height:0;display:inline-block}.legend-line-marriage i{border-top:2px dashed #b03a2e}.legend-line-servant i{border-top:2px dotted #7a6a58}.detail-panel{border-left:4px solid var(--red);background:#fffaf0;border-radius:0 8px 8px 0;min-height:66px;margin:16px 0 8px;padding:14px 18px}.detail-placeholder{color:var(--muted);margin:0;font-size:13px}.detail-head{flex-wrap:wrap;align-items:baseline;gap:8px 14px;display:flex}.detail-head strong{color:#5a2b24;letter-spacing:.08em;font-size:22px}.detail-head .detail-role{color:var(--muted);font-size:13px}.detail-house{color:#8a6428;background:#f3e7cf;border:1px solid #d5bc8c;border-radius:999px;padding:1px 8px;font-size:11px;display:inline-block}.detail-desc{color:#4d4032;margin:8px 0 0;font-size:13.5px}.detail-relations{color:var(--muted);margin:8px 0 0;font-size:13px}.detail-relations a{margin-right:4px}.relation-chip{color:#5d4a31;background:#f5ebd8;border:1px solid #e0ceb0;border-radius:999px;margin:3px 6px 3px 0;padding:2px 9px;font-size:12px;text-decoration:none;display:inline-block}.relation-chip:hover{background:#ead8b8;text-decoration:none}.relation-chip small{color:#967f5e;margin-left:4px}.graph-scroll{background:linear-gradient(90deg,#fffcf5a6,#faf4e8a6),repeating-linear-gradient(0deg,#0000 0 39px,#b08a4f0f 39px 40px);border-radius:8px;padding:8px 0 2px;overflow-x:auto}#relationGraph{width:100%;min-width:1040px;height:auto;display:block}.graph-edge{fill:none;stroke:#a88a5f;stroke-width:1.15px;opacity:.46;transition:opacity .15s,stroke .15s}.graph-edge.edge-marriage{stroke:#b03a2e;stroke-dasharray:5 4}.graph-edge.edge-servant{stroke:#7a6a58;stroke-dasharray:1.5 4}.graph-edge.edge-other{stroke:#9a7b3f}.graph-edge.is-active{opacity:.95;stroke-width:2.1px}.graph-edge-label{fill:#8a7050;text-anchor:middle;paint-order:stroke;stroke:#fbf6ea;stroke-width:3px;stroke-linejoin:round;opacity:.6;pointer-events:none;font-size:9px}.graph-edge-label.is-active{opacity:1;fill:#6d3a24;font-weight:700}.graph-node{cursor:pointer;transition:opacity .15s}.graph-node rect{stroke:#ffffffbf;stroke-width:1.2px;rx:7;filter:drop-shadow(0 2px 3px #462d142e);transition:stroke .15s,stroke-width .15s}.graph-node text{fill:#fff8e8;text-anchor:middle;dominant-baseline:middle;pointer-events:none;letter-spacing:.03em;font-size:12px;font-weight:700}.graph-node.group-ning rect{fill:var(--ning)}.graph-node.group-rong rect{fill:var(--rong)}.graph-node.group-shi rect{fill:var(--shi)}.graph-node.group-xue rect{fill:var(--xue)}.graph-node.group-lin rect{fill:var(--lin)}.graph-node.group-servant rect{fill:var(--servant)}.graph-node.group-other rect{fill:var(--other)}.graph-node:hover rect{stroke:#f5d18b;stroke-width:2.4px}.graph-node.is-selected rect{stroke:#ffdf9a;stroke-width:3.2px;filter:drop-shadow(0 0 9px #ffcd64e6)}.graph-node.is-related rect{stroke:#f2c66f;stroke-width:2px}.graph-node.is-dimmed{opacity:.2}.section-house{border-top:1px solid #ddccb0;margin-top:28px;padding-top:18px}.section-house:first-child{border-top:0;margin-top:0;padding-top:0}.house-title{color:#5a2b24;letter-spacing:.1em;align-items:baseline;gap:10px;margin:0 0 12px;font-size:19px;display:flex}.house-title small{color:#9a8769;letter-spacing:0;font-size:12px;font-weight:400}.card-grid{grid-template-columns:repeat(auto-fill,minmax(238px,1fr));gap:12px;display:grid}.person-card{cursor:pointer;background:linear-gradient(#fffdf8,#faf3e5);border:1px solid #ddccb0;border-radius:8px;padding:13px 15px 12px;transition:transform .15s,box-shadow .15s,border-color .15s;position:relative;box-shadow:0 2px 6px #503c1e0d}.person-card:hover{border-color:#c3a267;transform:translateY(-2px);box-shadow:0 8px 18px #503c1e1f}.person-card.is-selected{border-color:#b03a2e;box-shadow:0 0 0 2px #b03a2e29,0 10px 22px #503c1e24}.person-card.is-hidden{display:none}.person-card h3{color:#4c241f;letter-spacing:.08em;justify-content:space-between;align-items:baseline;gap:8px;margin:0;font-size:18px;display:flex}.person-card h3 a{color:inherit}.person-card .card-role{color:#8a7050;margin:3px 0 0;font-size:12px}.person-card .card-desc{color:#5b4d3b;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:7px 0 0;font-size:12.5px;line-height:1.7;display:-webkit-box;overflow:hidden}.person-card .card-relations{color:#8b7657;white-space:nowrap;text-overflow:ellipsis;margin-top:8px;font-size:11.5px;overflow:hidden}.person-card .card-relations span+span:before{content:" · ";color:#c0ab8a}.no-results{color:var(--muted);text-align:center;border:1px dashed #d6c3a0;border-radius:8px;padding:20px;font-size:13px}.page-footer{color:#8a7a63;text-align:center;border-top:1px solid #d8c7a8;padding:26px 20px 38px;font-size:12px}.page-footer p{margin:4px 0}.noscript{color:#6f6250;background:#fffaf0;border:1px solid #d6c3a0;border-radius:8px;width:min(900px,100% - 32px);margin:20px auto;padding:14px 18px}@media (width<=760px){.hero{padding:40px 18px 34px}.page{width:calc(100% - 20px);margin-top:-10px}.graph-panel,.index-panel{padding:18px 14px}.panel-heading{align-items:flex-start}.search-box input{width:min(260px,70vw)}#relationGraph{min-width:980px}.card-grid{grid-template-columns:1fr}}.static-fallback{color:#4d4032;padding:4px 2px 12px;font-size:13px}.static-note{color:#786b58;background:#fbf6ea;border-left:3px solid #b08a4f;margin:0 0 12px;padding:8px 12px}.static-fallback h3{color:#5a2b24;letter-spacing:.08em;margin:18px 0 6px;font-size:17px}.static-fallback ul{margin:0;padding-left:1.4em}.static-fallback li{margin:3px 0;line-height:1.75}.static-fallback strong{color:#4c241f}
