:root{--bg:#f4f6fa;--ink:#202b3c;--muted:#7890ad;--line:#dfe5ee;--blue:#1769cf;--link:#0865d4;--white:#fff}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.7 "Microsoft YaHei","Microsoft JhengHei",Arial,sans-serif}
.topbar{height:64px;background:#fff;border-bottom:1px solid #dce3ec}
.topbar-inner{max-width:1420px;height:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 18px}
.brand{font-size:21px;font-weight:bold;color:#1c2e49;text-decoration:none}
.topnav{display:flex;align-items:center;gap:28px}
.topnav a{color:#52708f;text-decoration:none}
.topnav a:hover{color:var(--blue)}
.bug-feedback{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.ticket-badge{display:inline-block;padding:1px 7px;border-radius:12px;background:#e43737;color:#fff;font-size:11px;line-height:20px;font-weight:700}
.page{max-width:1420px;margin:0 auto;padding:20px 18px 40px}
.toolbar{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.search{display:flex;width:650px;max-width:100%}
.search input{height:48px;flex:1;border:1px solid #cbd7e6;border-radius:6px 0 0 6px;background:#fff;padding:0 14px;color:#28384e;font-size:14px;outline:none}
.search input:focus{border-color:#8bb8ee}
.search button{width:70px;height:48px;border:0;border-radius:0 6px 6px 0;background:#176bd0;color:#fff;font-weight:bold;font-size:15px;cursor:pointer}
.member-summary{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 7px;min-width:0;max-width:100%;color:#8396ad;font-size:12px}
.member-summary>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.member-summary b{font-weight:normal;color:#246bba}
.member-divider{color:#c1cbd7}
.toolbar .search,.search input{min-width:0}
.doc-layout{display:flex;align-items:stretch;min-height:700px;background:var(--white);border:1px solid #dbe3ed}
.sidebar{width:345px;flex:0 0 345px;border-right:1px solid #d8e1ec;padding:16px 0;position:relative}
.side-title{font-size:13px;font-weight:bold;color:#607995;padding:0 20px 12px}
.tree-row{min-height:30px;display:flex;align-items:center;gap:6px;padding:3px 12px 3px 8px;color:var(--link);text-decoration:none;margin:1px 12px;border-radius:4px}
.tree-row:hover{background:#f1f6fd}
.tree-scroll{max-height:calc(100vh - 290px);min-height:240px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.tree-category>summary{cursor:pointer;list-style:none;user-select:none}
.tree-category>summary::-webkit-details-marker{display:none}
.folder-link{display:flex;align-items:center;gap:6px;min-width:0;flex:1;color:var(--link);text-decoration:none}
.folder-link:hover{color:#0c5fca}
.tree-toggle{width:12px;flex:0 0 12px;text-align:center;color:#947127;font-size:12px;font-family:Arial,sans-serif}
.tree-toggle::before{content:'+'}
.tree-category[open]>.tree-row .tree-toggle::before{content:'−'}
.folder{position:relative;width:15px;height:10px;flex:0 0 15px;background:linear-gradient(#f7dc8b,#d5a633);border:1px solid #c49531;border-radius:1px}
.folder::before{content:'';position:absolute;left:-1px;top:-4px;width:7px;height:3px;border:1px solid #c49531;border-bottom:0;background:#f7dc8b}
.tree-label{min-width:0;overflow-wrap:anywhere}
.tree-row em{font-style:normal;color:#9aaabd;font-size:12px;margin-left:auto}
.tree-list{list-style:none;margin:0;padding:0}
.tree-children{list-style:none;margin:0 0 4px 18px;padding:0}
.tree-article{display:flex;align-items:flex-start;gap:6px;margin:1px 12px;padding:3px 7px 3px 8px;border-radius:3px;color:#18395f;text-decoration:none;font-size:13px;line-height:21px}
.tree-article:hover{background:#edf4fc;color:var(--link)}
.tree-article.active{background:#dceafa;color:#0c5fca;font-weight:bold}
.tree-row:focus-visible,.tree-article:focus-visible{outline:2px solid #1769cf;outline-offset:-2px}
.paper{position:relative;display:inline-block;width:16px;height:14px;flex:0 0 16px;margin-top:3px;border:1px solid #98afd0;background:linear-gradient(135deg,#fff,#e6effc)}
.paper::after{content:'';position:absolute;right:1px;top:1px;width:4px;height:4px;border-left:1px solid #b3c7e1;border-bottom:1px solid #b3c7e1}
.tree-search-status{padding:4px 20px 10px;color:#71859e;font-size:12px;overflow-wrap:anywhere}
.tree-search-status a{color:var(--link);white-space:nowrap}
.tree-empty{padding:6px 12px;color:#8996a7;font-size:13px}
.side-foot{margin:18px 20px 0;color:#b0bccb;font-size:12px}
.side-foot small{font-size:11px}
.content{flex:1;min-width:0;padding:20px 28px 60px;background:#fff}
.content-meta{color:#6f88a5;font-size:13px;margin-bottom:18px}
.article{max-width:100%;padding:0 0 30px}
.article h1{font-size:28px;line-height:1.35;color:#111d31;margin:0 0 22px}
.article-body{font-size:15px;line-height:2;color:#202a39;overflow:auto}
.article-body img{max-width:100%;height:auto}
.article-body table{max-width:100%;border-collapse:collapse}
.article-body td,.article-body th{border:1px solid #dbe2eb;padding:7px}
.article-body pre{background:#f2f5f8;padding:14px;border-radius:4px;overflow:auto;line-height:1.6}
.article-body a{color:#1769d1}
.home-panel{padding:30px 56px 48px;min-height:560px}
.home-panel h1{font-size:24px;line-height:1.4;color:#18283d;margin:0 0 8px}
.home-intro{color:#6f88a5;font-size:14px;margin:0 0 20px}
.home-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.home-card{display:flex;align-items:center;min-height:62px;padding:10px;color:#173b69;text-decoration:none;border:1px solid #d9e2ee;border-radius:4px;background:#fff;line-height:1.5}
.home-card:hover{border-color:#77a9e4;background:#f6faff;color:#0865d4}
.category-count{color:#91a2b5;padding:0 0 10px;border-bottom:1px solid #e8edf3}
.category-articles{margin-top:0}
.category-article{display:block;padding:12px 4px;border-bottom:1px solid #e8edf3;color:#173b69;text-decoration:none}
.category-article:hover{background:#f5f8fc}
.category-article b{display:block;font-size:15px;color:#162c49}
.category-article span{display:block;margin-top:3px;color:#6f88a5;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.empty{margin:0;padding:18px 20px;border:1px solid #f0ca76;border-radius:8px;background:#fff9e9;color:#3e4b5c;font-size:16px;line-height:1.7}
footer{text-align:center;color:#a2afbf;padding:16px;font-size:12px}
@media(max-width:1100px){.home-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.topbar-inner{padding:0 14px}.topnav{gap:12px;font-size:13px}.page{padding:10px}.toolbar{height:auto;padding:10px 0 16px;align-items:flex-start;flex-direction:column}.member-summary{align-self:flex-end}.sidebar{width:230px;flex-basis:230px}.content{padding:18px 16px 50px}.home-panel{padding:24px 22px 40px}}
@media(max-width:560px){.brand{font-size:17px}.topnav{gap:8px}.topbar{height:auto;min-height:64px}.topbar-inner{min-height:64px;flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}.topnav{margin-left:auto}.doc-layout{display:block}.sidebar{width:100%;border-right:0;border-bottom:1px solid #d8e1ec;min-height:0}.tree-scroll{min-height:120px;max-height:45vh}.side-foot{display:none}.content{min-height:500px}.home-cards{grid-template-columns:1fr}}
.user-chip{display:inline-flex;align-items:center;gap:5px;color:#52708f;white-space:nowrap}.user-chip img{width:24px;height:24px;border-radius:50%;object-fit:cover;vertical-align:middle}
 .account-menu{position:relative;display:inline-block;color:#52708f}.account-menu summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary img{width:30px;height:30px;border-radius:50%;object-fit:cover}.account-dropdown{position:absolute;right:0;top:38px;z-index:50;min-width:130px;padding:6px;background:#fff;border:1px solid #e1e8f0;border-radius:8px;box-shadow:0 10px 25px #1d3b5b22}.account-dropdown a{display:block!important;padding:8px 12px;color:#3d5875!important;text-decoration:none;white-space:nowrap}.account-dropdown a:hover{background:#eef5ff;border-radius:5px}.profile-page{max-width:650px;margin:42px auto;padding:0 18px}.profile-card{background:#fff;border:1px solid #e1e8f0;border-radius:12px;padding:28px;box-shadow:0 10px 30px #1d3b5b0b}.profile-card h1{margin:0 0 20px;color:#18283d}.profile-card h2{font-size:18px;color:#243b57}.profile-avatar{display:flex;align-items:center;gap:14px;margin:18px 0}.profile-avatar img{width:72px;height:72px;border-radius:50%;object-fit:cover}.profile-avatar b,.profile-avatar small{display:block}.profile-avatar small{color:#8290a2;margin-top:4px}.profile-form{display:flex;flex-direction:column;gap:12px}.profile-form input{padding:10px;border:1px solid #d5dfeb;border-radius:6px;font:inherit}.profile-form label{color:#536b88}.profile-card hr{border:0;border-top:1px solid #e5eaf1;margin:26px 0}.profile-card .primary-button{width:max-content;border:0;border-radius:7px;background:#246bfe;color:#fff;padding:10px 20px;font-weight:bold;cursor:pointer}.profile-card .ticket-notice{margin-bottom:12px;padding:10px 13px;border-radius:7px;background:#eaf4ff;color:#1a64c7}.profile-card .ticket-notice.error{background:#fff0f0;color:#bd3e3e}

.account-dropdown{width:max-content;max-width:calc(100vw - 32px)}
.account-dropdown .account-username{max-width:240px;padding:8px 12px;margin-bottom:4px;border-bottom:1px solid #e5eaf1;color:#243b57;font-size:14px;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere}

.topnav .auth-link{font-weight:700}
.login-required-dialog{width:360px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);margin:auto;padding:26px;border:1px solid #dfe5ee;border-radius:12px;background:#fff;color:#243b57;box-shadow:0 18px 60px #15243d33;overflow:auto}
.login-required-dialog::backdrop{background:#15243d66}
.login-required-dialog h2{margin:0 0 12px;font-size:20px;line-height:1.5}
.login-required-dialog p{margin:0 0 24px;color:#536b88}
.login-required-actions{display:flex;justify-content:flex-end;gap:10px}
.login-required-actions button,.login-required-actions a{padding:8px 16px;border:1px solid #d5dfeb;border-radius:6px;background:#fff;color:#536b88;font:inherit;line-height:1.5;text-decoration:none;cursor:pointer}
.login-required-actions a{background:#1769cf;border-color:#1769cf;color:#fff}
.login-required-actions button:hover{background:#f1f6fd}
.login-required-actions a:hover{background:#105bbb}
