:root{color-scheme:light;--page:#f7f8f4;--paper:#fff;--ink:#243c31;--muted:#7c867e;--green:#315a48;--border:#e6eae3;--line:#cbd4c9;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:var(--page);color:var(--ink);-webkit-font-smoothing:antialiased}
button,input{font:inherit}
a{color:inherit}
.site-account{display:flex;gap:18px;justify-content:flex-end;align-items:center;font-size:13px;min-width:0;margin-left:20px}.site-account a{text-decoration:none}.site-account a:hover{text-decoration:underline}
.site-user{display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:0;max-width:360px}.site-user-name{font-weight:600;overflow-wrap:anywhere;max-width:100%}.site-user-roles{font-size:11px;color:#6c7e69;text-align:right;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){.site-account{gap:12px;margin-left:12px;font-size:12px}.site-user{max-width:150px}.site-user-roles{font-size:10px}.site-header .brand{flex-shrink:0}}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
.site-header{min-height:94px;max-width:1520px;width:100%;padding:16px 48px;margin:0 auto;display:flex;flex-shrink:0;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:23px;font-weight:700;letter-spacing:-.7px}
.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--green);border-radius:13px;color:white}
.brand-mark svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linejoin:round}
.brand-description{display:block;font-size:10px;letter-spacing:1.4px;font-weight:400;color:var(--muted);margin-top:4px}
.header-tag{display:flex;align-items:center;gap:7px;color:#5b7061;font-size:12px;border:1px solid #dce5d9;background:#eef2e9;border-radius:30px;padding:8px 13px}
.header-tag span{height:5px;width:5px;border-radius:50%;background:#6d8e68}
main{max-width:1520px;width:100%;flex:1;padding:0 48px;margin:0 auto}
.introduction{padding:44px 0 36px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.eyebrow{font-size:11px;letter-spacing:3px;color:#87957c;margin:0 0 15px}
h1{font-family:"Songti SC","STSong","SimSun",serif;font-size:34px;letter-spacing:1px;line-height:1.45;font-weight:600;margin:0}
.introduction-copy{color:var(--muted);font-size:13px;line-height:1.8;margin:14px 0 0}
.reference-note{display:flex;align-items:center;gap:13px;padding-right:8px;font-size:11px;line-height:1.9;color:#8b938a;flex-shrink:0}
.reference-note svg{width:35px;height:35px;stroke:#9aa891;stroke-width:1.1;fill:none}
.reference-note strong{color:#62735d;font-size:12px;font-weight:500}
.tree-panel{background:var(--paper);border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:0 7px 26px #263c2f04}
.tree-toolbar{padding:24px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--border)}
h2{font-size:17px;font-weight:600;margin:0;display:flex;align-items:center;gap:10px}
.small-label{font-size:10px;font-weight:400;letter-spacing:.5px;color:#7e8d71;background:#f0f3eb;padding:4px 7px;border-radius:4px}
.tree-title-group>p{color:#91988f;font-size:11px;letter-spacing:1px;margin:9px 0 0}
.gender-selector{border:0;padding:0;margin:0;display:flex;align-items:center;gap:13px}
.gender-selector legend{float:left;margin:11px 13px 0 0;padding:0;color:#7c867e;font-size:11px}
.segmented-control{display:flex;background:#f3f5f0;border:1px solid #e9ece5;border-radius:9px;padding:3px;gap:3px}
.segmented-control label{position:relative;display:block;cursor:pointer}
.segmented-control input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.segmented-control span{display:block;padding:8px 19px;border-radius:6px;min-width:64px;text-align:center;color:#838c82;font-size:12px;transition:background .15s,color .15s}
.segmented-control input:checked+span{background:white;color:var(--green);font-weight:600;box-shadow:0 1px 5px #253f3020}
.segmented-control input:focus-visible+span{outline:2px solid var(--green);outline-offset:2px}
.tree-reading-note{padding:14px 30px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fdfefb;font-size:11px;color:#8b9586}
.tree-reading-note p{display:flex;align-items:center;gap:8px;margin:0;line-height:1.6}
.focus-dot{width:6px;height:6px;flex-shrink:0;border-radius:2px;background:var(--green)}
.scroll-hint{color:#9aa392;white-space:nowrap}
.scroll-hint span{font-size:16px}
.tree-layout{display:flex;background:#fcfdfb}
.generation-rail{width:82px;flex-shrink:0;position:relative;border-right:1px solid #ecf0e8;background:#fafcf7;height:640px}
.generation{position:absolute;left:0;right:0;text-align:center;transform:translateY(-50%);color:#6d7d67;line-height:1.8}
.generation span{font-size:11px;letter-spacing:1px}
.generation small{display:block;color:#a0aa98;font-size:9px;letter-spacing:.2px}
.generation-grandparents{top:80px}.generation-parents{top:236px}.generation-self{top:392px}.generation-children{top:548px}
.generation-self{color:var(--green)}
.tree-viewport{min-width:0;flex:1;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#ced8c7 #f5f8f0;background-image:radial-gradient(#dce3d5 1px,transparent 1px);background-size:18px 18px}
.tree-viewport:focus-visible{outline:2px solid #879c74;outline-offset:-2px}
.tree-viewport::-webkit-scrollbar{height:7px}.tree-viewport::-webkit-scrollbar-track{background:#f5f8f0}.tree-viewport::-webkit-scrollbar-thumb{background:#ced8c7;border-radius:5px}
.tree-world{position:relative;width:1260px;height:640px;isolation:isolate}
.generation-guide{position:absolute;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#e8ede2 12%,#e8ede2 88%,transparent);z-index:-1}
.guide-grandparents{top:80px}.guide-parents{top:236px}.guide-self{top:392px}.guide-children{top:548px}
.relationship-lines{position:absolute;inset:0;width:1260px;height:640px;overflow:visible}
.parent-line,.spouse-line{fill:none;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.parent-line{stroke:var(--line)}.spouse-line{stroke:#8ba589;stroke-width:2}
.relationship-junction{fill:#8ba589;stroke:#fcfdfb;stroke-width:1.6}
.person-card{width:150px;height:84px;position:absolute;background:#fff;border:1px solid #dfe6d9;border-radius:12px;display:flex;align-items:center;gap:10px;padding:12px;box-shadow:0 4px 10px #34422d05}
.person-symbol{width:27px;height:27px;flex-shrink:0;fill:none;stroke:#8e9f82;stroke-width:1.3;stroke-linecap:round}
.person-card h3{font-size:18px;line-height:1.4;letter-spacing:1px;margin:0;font-weight:500;white-space:nowrap}
.person-card p{font-size:9px;line-height:1.6;color:#98a08f;white-space:nowrap;margin:5px 0 0}
.person-card-self{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 6px 18px #315a4830}
.person-card-self .person-symbol{stroke:#d3e1cf}.person-card-self h3{font-size:23px;letter-spacing:3px}.person-card-self p{color:#c1d0bc}
.tree-footer{border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 30px;background:#fff}
.legend{display:flex;gap:22px;align-items:center;color:#8a9384;font-size:10px;flex-wrap:wrap}
.legend span{display:inline-flex;align-items:center;gap:7px}
.legend i{display:inline-block;width:22px;height:0;border-top:2px solid var(--line)}
.legend .legend-spouse{border-color:#8ba589}.legend .legend-self{border:0;width:8px;height:8px;border-radius:2px;background:var(--green)}
#reference-status{font-size:10px;color:#929b8b;line-height:1.8;margin:0;text-align:right}
.page-note{text-align:center;font-size:11px;color:#9aa28f;margin:20px 0 28px;line-height:1.9}
.site-footer{max-width:1520px;width:100%;padding:22px 48px 28px;margin:0 auto;border-top:1px solid var(--border);display:flex;flex-shrink:0;justify-content:space-between;color:#a1aa98;font-size:10px;letter-spacing:.5px}
.noscript-note{padding:16px;background:#fff8e8;border:1px solid #efdfb4;border-radius:8px;color:#78623b}
@media(min-width:1600px){.introduction{padding-top:52px;padding-bottom:42px}h1{font-size:38px}}
@media(max-width:900px){.site-header{padding:14px 24px;min-height:82px}main{padding:0 24px}.introduction{padding:32px 0 28px}.reference-note{display:none}h1{font-size:29px}.tree-toolbar{padding:20px}.tree-reading-note{padding:12px 20px}.tree-reading-note>p:first-child{font-size:10px}.tree-footer{padding:15px 20px}.legend{gap:14px}.generation-rail{width:68px}.site-footer{padding:20px 24px}.tree-title-group>p{font-size:10px;letter-spacing:.4px}.gender-selector legend{margin-right:9px}.segmented-control span{padding:8px 13px;min-width:54px}}
@media(max-width:600px){.site-header{min-height:74px;padding:12px 18px}.brand{font-size:21px;gap:10px}.brand-mark{width:38px;height:38px;border-radius:11px}.brand-mark svg{width:24px;height:24px}.brand-description{font-size:9px;letter-spacing:1px}.header-tag{font-size:10px;padding:7px 10px}main{padding:0 14px}.introduction{padding:30px 4px 26px}h1{font-size:25px;letter-spacing:.5px;line-height:1.6}.eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:10px}.introduction-copy{font-size:11px;margin-top:10px;max-width:300px}.tree-panel{border-radius:13px}.tree-toolbar{padding:18px 16px;align-items:flex-start;flex-direction:column;gap:17px}.tree-title-group>p{margin-top:8px}h2{font-size:16px}.gender-selector{width:100%;justify-content:space-between}.gender-selector legend{margin-top:11px;font-size:11px}.segmented-control span{padding:8px 24px;min-width:76px}.tree-reading-note{padding:11px 14px;align-items:flex-start;flex-direction:column;gap:3px}.scroll-hint{font-size:9px;margin-left:14px!important}.generation-rail{width:55px}.generation span{font-size:9px;letter-spacing:0}.generation small{font-size:8px}.tree-footer{align-items:flex-start;flex-direction:column;gap:11px;padding:15px}.legend{font-size:9px;gap:19px}#reference-status{text-align:left;font-size:10px}.page-note{font-size:10px;margin:17px 8px 25px}.site-footer{padding:20px 18px 24px;font-size:9px;gap:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
