:root {
  color-scheme: light;
  --brand-blue: #365abd;
  --brand-blue-strong: #28499e;
  --brand-blue-soft: #edf2ff;
  --brand-pink: #e24585;
  --brand-pink-strong: #c83270;
  --brand-pink-soft: #fff0f6;
  --ink: #182033;
  --muted: #6f7889;
  --muted-light: #9aa3b2;
  --line: #e5eaf2;
  --page: #f6f8fc;
  --surface: #fdfefe;
  --surface-soft: #f9fbff;
  --radius: 9px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); scroll-behavior: auto; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin-top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: .65rem 1rem; color: #f8faff; background: var(--brand-blue-strong); border-radius: 7px; }
.skip-link:focus { top: 1rem; }

.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100dvh; }
html.embedded .app-shell { display: block; }
html.embedded .sidebar,
html.embedded .sidebar-mask,
html.embedded .mobile-menu { display: none !important; }
html.embedded .workspace,
html.embedded .main-content { min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 0 14px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 14px; }
.wordmark { color: var(--brand-blue); font-size: 1.28rem; font-weight: 850; letter-spacing: -.045em; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #4e596d; background: transparent; border: 0; border-radius: 7px; font-size: .86rem; }
.icon-button:hover { color: var(--brand-blue); background: var(--brand-blue-soft); }
.sidebar-collapse { font-size: 1.2rem; }

.sidebar-search { position: relative; display: flex; align-items: center; height: 40px; margin: 0 0 16px; padding: 0 11px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.search-glyph { position: relative; width: 12px; height: 12px; flex: 0 0 auto; margin-right: 8px; border: 1.6px solid #7d8798; border-radius: 50%; }
.search-glyph::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 5px; height: 1.6px; background: #7d8798; transform: rotate(45deg); transform-origin: left; }
.sidebar-search input { min-width: 0; height: 100%; flex: 1; padding: 0 8px 0 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .84rem; }
.sidebar-search input::placeholder { color: #8892a3; }
.sidebar-search:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(54, 90, 189, .11); }
.search-submit { position: relative; display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; padding: 0; background: transparent; border: 0; border-radius: 6px; }
.search-submit:hover { background: var(--brand-blue-soft); }
.search-submit span { position: relative; display: block; width: 14px; height: 14px; border: 1.8px solid #68758a; border-radius: 50%; }
.search-submit span::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.8px; background: #68758a; border-radius: 2px; transform: rotate(45deg); transform-origin: left center; }
kbd { color: #8e97a7; font-family: inherit; font-size: .58rem; font-weight: 700; }

.side-navigation { display: grid; gap: 3px; }
.nav-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; min-height: 42px; padding: 0 11px; color: #3d4658; background: transparent; border: 0; border-radius: 8px; text-align: left; }
.nav-item:hover { color: var(--brand-blue); background: #f5f7fc; }
.nav-item.active { color: var(--brand-blue); background: var(--brand-blue-soft); }
.nav-item b { font-size: .86rem; font-weight: 600; }
.nav-symbol { display: inline-grid; place-items: center; width: 22px; height: 22px; color: #6c7688; border: 1px solid #aeb6c4; border-radius: 5px; font-size: .64rem; font-weight: 800; }
.nav-item.active .nav-symbol { color: #f8faff; background: var(--brand-blue); border-color: var(--brand-blue); }
.nav-item i { font-style: normal; }
.sidebar-foot { display: grid; gap: 3px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sidebar-foot .nav-item { text-decoration: none; }
.sidebar-foot .shelved-entry { display: none !important; }
.sidebar-user { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 6px; padding: 9px 8px; background: #f7f9fd; border-radius: 8px; }
.sidebar-user > span { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: linear-gradient(145deg, var(--brand-blue), var(--brand-pink)); border-radius: 8px; font-size: .62rem; font-weight: 800; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .68rem; }.sidebar-user small { margin-top: 2px; color: var(--muted); font-size: .56rem; }
.sidebar-user button { padding: 4px 6px; color: #8b4650; background: transparent; border: 0; border-radius: 5px; font-size: .58rem; cursor: pointer; }.sidebar-user button:hover { background: #fff0f3; }
.sidebar-user-actions { display: flex; align-items: center; gap: 2px; }
.sidebar-user-actions #sidebar-password { color: var(--brand-blue); }
.sidebar-user-actions #sidebar-password:hover { background: var(--brand-blue-soft); }

.password-dialog { width: min(430px, calc(100vw - 28px)); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid #d9e1ef; border-radius: 14px; box-shadow: 0 24px 70px rgba(27, 42, 75, .2); }
.password-dialog::backdrop { background: rgba(25, 34, 52, .38); backdrop-filter: blur(2px); }
.password-dialog:not([open]) { display: none; }
.password-dialog form { display: grid; gap: 14px; padding: 24px; }
.password-dialog header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.password-dialog header span { display: block; margin-bottom: 4px; color: var(--brand-pink); font-size: .62rem; font-weight: 800; }
.password-dialog h2 { margin: 0; font-size: 1.22rem; }
.password-dialog > form > p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.password-dialog label { display: grid; gap: 7px; color: #39455a; font-size: .72rem; font-weight: 700; }
.password-dialog input { width: 100%; height: 42px; padding: 0 11px; color: var(--ink); background: #fbfcff; border: 1px solid var(--line); border-radius: 8px; outline: 0; }
.password-dialog input:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(54, 90, 189, .09); }
.password-dialog .password-dialog-error { padding: 9px 11px; color: #b3263d; background: #fff1f3; border-radius: 7px; }
.password-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.password-dialog footer button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 7px; font-size: .72rem; font-weight: 700; }
.password-dialog footer button:first-child { color: #586377; background: #eef1f6; }
.password-dialog footer .password-dialog-submit { color: #fff; background: var(--brand-blue); }
.nav-item.subtle { color: #576174; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 23px; background: rgba(253, 254, 254, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #697386; font-size: .82rem; }
.breadcrumb strong { color: #273145; }
.breadcrumb i { color: #a3abb8; font-style: normal; }
.home-glyph { font-size: 1rem; }
.mobile-menu { display: none; }
.mobile-menu-floating { position: fixed; top: 10px; left: 10px; z-index: 25; background: rgba(253, 254, 254, .94); border: 1px solid var(--line); box-shadow: 0 5px 14px rgba(36, 51, 84, .1); }
.account-actions { display: flex; align-items: center; gap: 5px; }
.account-divider { width: 1px; height: 22px; margin: 0 7px; background: var(--line); }
.account { display: flex; align-items: center; gap: 7px; padding: 3px 4px; color: #333d50; background: transparent; border: 0; border-radius: 7px; }
.account:hover { background: #f3f6fb; }
.account b { font-size: .8rem; font-weight: 600; }
.account i { color: #6e788a; font-style: normal; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; color: #f8faff; background: linear-gradient(145deg, var(--brand-blue), var(--brand-pink)); border: 2px solid #eef1f6; border-radius: 50%; font-size: .65rem; font-weight: 800; }

.main-content { width: 100%; margin: 0; padding: 20px 28px 36px; }
body:not(.center-open):not(.article-open) { overflow: hidden; }
body:not(.center-open):not(.article-open) .app-shell,
body:not(.center-open):not(.article-open) .workspace { height: 100dvh; min-height: 0; overflow: hidden; }
body:not(.center-open):not(.article-open) .main-content { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding-bottom: 0; overflow: hidden; }
.home-fixed-panel { flex: 0 0 auto; }
.home-scroll-content { min-height: 0; margin-right: -28px; padding-right: 28px; padding-bottom: 36px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.hero-banner { position: relative; min-height: 150px; overflow: hidden; background: linear-gradient(100deg, #eaf0ff 0%, #dce7ff 58%, #edf2ff 100%); border-radius: 14px; }
.banner-ring { position: absolute; width: 96px; height: 96px; border: 13px solid rgba(54, 90, 189, .1); border-radius: 50%; }
.ring-left { top: 13px; left: -69px; }
.ring-right { right: -36px; bottom: -52px; width: 118px; height: 118px; }
.banner-grid { position: absolute; top: 22px; left: 42%; width: 72px; height: 32px; opacity: .6; background-image: radial-gradient(circle, rgba(54, 90, 189, .34) 1.2px, transparent 1.2px); background-size: 10px 10px; }
.office-illustration { position: absolute; right: 15%; bottom: 0; width: 370px; height: 112px; transform: scale(1.2); transform-origin: center bottom; }
.monitor { position: absolute; right: 118px; bottom: 20px; width: 122px; height: 75px; background: #f8faff; border: 5px solid var(--brand-blue); border-radius: 6px; box-shadow: 0 8px 16px rgba(54, 90, 189, .13); }
.monitor::before { content: ""; position: absolute; left: 50%; bottom: -19px; width: 7px; height: 16px; background: var(--brand-blue); transform: translateX(-50%); }
.monitor::after { content: ""; position: absolute; left: 50%; bottom: -23px; width: 42px; height: 5px; background: var(--brand-blue); border-radius: 5px; transform: translateX(-50%); }
.screen-lines { padding: 13px 12px; }
.screen-lines i { display: block; height: 4px; margin-bottom: 7px; background: rgba(54, 90, 189, .18); border-radius: 3px; }
.screen-lines i:first-child { width: 70%; background: rgba(226, 69, 133, .36); }
.screen-lines i:nth-child(2) { width: 88%; }
.screen-lines i:nth-child(3) { width: 56%; }
.binders { position: absolute; right: 5px; bottom: 11px; display: flex; gap: 5px; align-items: flex-end; }
.binders i { position: relative; display: block; width: 23px; height: 69px; background: linear-gradient(90deg, var(--brand-blue-strong), var(--brand-blue)); border-radius: 3px 3px 0 0; box-shadow: 0 5px 9px rgba(54, 90, 189, .12); }
.binders i:nth-child(2) { height: 64px; }
.binders i:nth-child(3) { height: 71px; background: linear-gradient(90deg, var(--brand-pink-strong), var(--brand-pink)); }
.binders i::after { content: ""; position: absolute; top: 13px; left: 5px; width: 13px; height: 22px; background: rgba(253, 254, 254, .86); border-radius: 2px; }
.books { position: absolute; left: 42px; bottom: 7px; width: 92px; height: 22px; }
.books i, .books b { position: absolute; display: block; width: 82px; height: 8px; background: var(--brand-blue); border-radius: 2px; transform: skewX(-18deg); }
.books i { bottom: 0; left: 0; }
.books b { bottom: 10px; left: 10px; background: var(--brand-pink); }
.plant { position: absolute; left: 65px; bottom: 27px; width: 48px; height: 67px; }
.plant span { position: absolute; left: 10px; bottom: 0; width: 30px; height: 26px; background: #f8faff; border: 2px solid rgba(54, 90, 189, .24); clip-path: polygon(8% 0, 92% 0, 78% 100%, 22% 100%); }
.plant::after { content: ""; position: absolute; left: 24px; bottom: 25px; width: 2px; height: 35px; background: var(--brand-blue); }
.plant i, .plant b, .plant em { position: absolute; z-index: 2; width: 21px; height: 12px; background: var(--brand-blue); border-radius: 80% 10% 80% 10%; }
.plant i { top: 10px; left: 3px; transform: rotate(25deg); }
.plant b { top: 2px; left: 24px; transform: rotate(145deg); }
.plant em { top: 26px; left: 27px; background: var(--brand-pink); transform: rotate(155deg); }

.page-intro { padding: 15px 0 15px; }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 7px; padding: 4px 10px; color: var(--brand-blue-strong); background: var(--brand-blue-soft); border-radius: 6px; font-size: .74rem; font-weight: 700; }
.verified-badge b { display: inline-grid; place-items: center; width: 14px; height: 14px; color: #f8faff; background: var(--brand-blue); border-radius: 4px; font-size: .56rem; }
.page-intro h1 { margin-bottom: 6px; font-size: clamp(1.8rem, 2.4vw, 2.35rem); line-height: 1.15; letter-spacing: -.035em; }
.page-intro p { margin-bottom: 0; color: #667185; font-size: .88rem; }

.welcome-panel { display: grid; grid-template-columns: 38px 1fr 24px; gap: 13px; align-items: center; min-height: 72px; padding: 12px 15px; background: linear-gradient(90deg, rgba(54, 90, 189, .055), rgba(226, 69, 133, .025)); border: 1px solid #dce5fa; border-radius: var(--radius); }
.welcome-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #f8faff; background: var(--brand-blue); border-radius: 50%; font-size: .66rem; font-weight: 800; }
.welcome-panel strong { display: block; margin-bottom: 3px; font-size: .86rem; }
.welcome-panel p { margin-bottom: 0; color: #697488; font-size: .76rem; line-height: 1.5; }
.sync-status { display: block; margin-top: 4px; color: var(--brand-blue-strong); font-size: .66rem; font-weight: 700; }
.plain-close { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; color: #798395; background: transparent; border: 0; border-radius: 5px; }
.plain-close:hover { color: var(--brand-pink); background: var(--brand-pink-soft); }

.search-results { margin-top: 11px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-pink); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(45, 68, 116, .06); }
.search-results-head { display: flex; align-items: flex-start; justify-content: space-between; }
.search-results-head span { color: var(--brand-pink); font-size: .6rem; font-weight: 800; }
.search-results-head h2 { margin: 3px 0 0; font-size: .92rem; }
.search-answer { margin: 10px 0 6px; padding: 10px 12px; color: #39455a; background: var(--brand-blue-soft); border-radius: 7px; font-size: .69rem; line-height: 1.55; }
.search-result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.search-result { display: flex; align-items: center; justify-content: space-between; width: 100%; min-width: 0; padding: 9px 10px; color: inherit; background: #fbfcff; border: 1px solid var(--line); border-radius: 7px; text-align: left; }
.search-result:hover { border-color: rgba(54, 90, 189, .45); background: var(--brand-blue-soft); }
.search-result div { min-width: 0; }
.search-result strong { display: block; overflow: hidden; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { display: block; margin-top: 2px; color: var(--muted); font-size: .59rem; }
.search-result span { flex: 0 0 auto; padding: 2px 5px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 4px; font-size: .55rem; }
.search-empty { grid-column: 1 / -1; padding: 18px; color: var(--muted); text-align: center; font-size: .7rem; }
.search-results.is-loading .search-answer, .search-results.is-loading .search-result-list { opacity: .45; }

.quick-entry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.department-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-card { display: grid; grid-template-columns: 38px 1fr 20px; gap: 11px; align-items: center; min-height: 76px; padding: 12px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.quick-card:hover { border-color: rgba(54, 90, 189, .42); box-shadow: 0 7px 16px rgba(54, 90, 189, .07); transform: translateY(-1px); }
.quick-card:active, .department-card:active, .nav-item:active { transform: translateY(1px) scale(.99); }
.quick-icon, .department-icon, .panel-icon { display: grid; place-items: center; font-weight: 800; }
.quick-icon { width: 36px; height: 36px; color: #f8faff; border-radius: 8px; font-size: .72rem; }
.blue { background: var(--brand-blue); }
.pink { background: var(--brand-pink); }
.quick-card strong { display: block; margin-bottom: 3px; font-size: .84rem; }
.quick-card small { display: block; overflow: hidden; color: #7b8495; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.quick-card > i { color: #738096; font-style: normal; }

.department-section { margin-top: 19px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.section-title-row h2 { margin-bottom: 0; font-size: 1rem; }
.text-action { padding: 0; color: var(--brand-blue); background: transparent; border: 0; font-size: .74rem; font-weight: 700; }
.department-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.department-card { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; min-height: 72px; padding: 11px 13px; color: var(--ink); background: #f9fbff; border: 1px solid #e8ecf4; border-radius: var(--radius); text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.department-card:hover, .department-card.active { border-color: var(--brand-blue); box-shadow: 0 6px 15px rgba(54, 90, 189, .07); }
.department-card.featured { background: linear-gradient(135deg, rgba(54, 90, 189, .07), rgba(226, 69, 133, .055)); }
.department-icon { width: 40px; height: 40px; color: #f8faff; border-radius: 8px; font-size: .72rem; }
.department-card strong { display: block; margin-bottom: 3px; font-size: .82rem; }
.department-card small { display: block; color: #818a9b; font-size: .68rem; line-height: 1.4; }

.document-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.document-panel { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.document-panel > header { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; }
.document-panel > header div { display: flex; align-items: center; gap: 7px; }
.document-panel > header h2 { margin-bottom: 0; font-size: .9rem; }
.document-panel > header > span { color: var(--muted-light); font-size: .68rem; }
.panel-icon { width: 24px; height: 24px; color: #f8faff; border-radius: 6px; font-size: .58rem; }
.document-list { padding: 1px 16px 7px; }
.document-row { display: grid; grid-template-columns: 23px minmax(0, 1fr) 74px 110px; gap: 10px; align-items: center; width: 100%; min-height: 38px; padding: 0; color: #485266; background: transparent; border: 0; text-align: left; font-size: .75rem; }
.document-row:hover { color: var(--brand-blue); background: #fbfcff; }
.document-row + .document-row { border-top: 1px solid #f0f2f7; }
.file-mark { display: grid; place-items: center; width: 14px; height: 16px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 3px; font-size: .46rem; font-weight: 800; }
.document-row strong { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.document-row span { overflow: hidden; color: #8a93a3; text-overflow: ellipsis; white-space: nowrap; }
.popular-list { margin: 0; padding: 1px 16px 7px; list-style: none; counter-reset: ranking; }
.popular-list li { counter-increment: ranking; display: grid; grid-template-columns: 23px minmax(0, 1fr) 64px; gap: 9px; align-items: center; min-height: 38px; color: #485266; font-size: .75rem; }
.popular-list li + li { border-top: 1px solid #f0f2f7; }
.popular-list li::before { content: counter(ranking); display: grid; place-items: center; width: 16px; height: 16px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 4px; font-size: .5rem; font-weight: 800; }
.popular-list li:nth-child(1)::before, .popular-list li:nth-child(2)::before { color: #f8faff; background: var(--brand-pink); }
.popular-button { display: grid; grid-column: 2 / -1; grid-template-columns: minmax(0, 1fr) 80px; gap: 9px; align-items: center; width: 100%; min-height: 37px; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; }
.popular-button:hover { color: var(--brand-blue); }
.popular-button strong { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.popular-button span { color: #8a93a3; text-align: right; }
.panel-empty { margin: 8px 0 14px; color: var(--muted); font-size: .72rem; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 42px; padding: 0 16px; color: var(--brand-blue); background: #fbfcff; border: 0; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 700; }
.panel-footer:hover { background: var(--brand-blue-soft); }

body.center-open .main-content > :not(.center-view) { display: none !important; }
.center-view { min-height: calc(100dvh - 56px); }
body.center-open .center-view { display: block; }
.center-sticky-panel { --center-sticky-offset: 20px; position: sticky; top: var(--center-sticky-offset); z-index: 14; padding-bottom: 10px; background: var(--page); box-shadow: none; }
.center-sticky-panel::before { position: absolute; right: 0; bottom: 100%; left: 0; height: var(--center-sticky-offset); background: var(--page); content: ""; pointer-events: none; }
.center-header { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px 28px 26px; background: linear-gradient(118deg, #edf2ff 0%, #f8faff 55%, #fff1f7 100%); border: 1px solid #dfe6f4; border-radius: 16px; }
.center-view:has(.center-subview-heading:not([hidden])) .center-header { display: none; }
.center-heading { display: flex; align-items: center; gap: 18px; min-width: 0; }
.center-symbol { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto; color: #fff; background: linear-gradient(145deg, var(--brand-blue), var(--brand-pink)); border-radius: 15px; box-shadow: 0 10px 24px rgba(54, 90, 189, .18); font-size: 1.15rem; font-weight: 850; }
.center-eyebrow { display: block; margin-bottom: 5px; color: var(--brand-blue); font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.center-header h1 { margin: 0 0 7px; font-size: clamp(1.75rem, 2.7vw, 2.35rem); letter-spacing: -.035em; }
.center-header p { max-width: 620px; margin: 0; color: #667185; font-size: .84rem; line-height: 1.6; }
.center-home { flex: 0 0 auto; padding: 8px 12px; color: var(--brand-blue); background: rgba(255, 255, 255, .72); border: 1px solid #dbe3f4; border-radius: 8px; font-size: .75rem; font-weight: 700; }
.center-home:hover { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }
.center-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.center-search { position: relative; display: flex; align-items: center; width: min(440px, 100%); height: 42px; padding: 0 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.center-search:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(54, 90, 189, .09); }
.center-search > span { position: relative; width: 13px; height: 13px; flex: 0 0 auto; margin-right: 10px; border: 1.7px solid #788397; border-radius: 50%; }
.center-search > span::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.7px; background: #788397; transform: rotate(45deg); }
.center-search input { width: 100%; min-width: 0; height: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .82rem; }
.center-count { margin: 0; color: var(--muted); font-size: .74rem; }
.center-categories { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 2px; }
.center-category { flex: 0 0 auto; padding: 7px 12px; color: #586377; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; }
.center-category:hover, .center-category.active { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }
.center-document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.center-document-card { position: relative; display: flex; flex-direction: column; min-height: 210px; padding: 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.center-document-card:hover { border-color: rgba(54, 90, 189, .48); box-shadow: 0 12px 26px rgba(44, 66, 112, .08); transform: translateY(-2px); }
.center-document-type { align-self: flex-start; margin-bottom: 15px; padding: 4px 7px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 5px; font-size: .62rem; font-weight: 700; }
.center-document-card strong { margin-bottom: 8px; font-size: .94rem; line-height: 1.45; }
.center-document-card p { display: -webkit-box; overflow: hidden; margin: 0 0 16px; color: #747e90; font-size: .73rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.center-document-card small { margin-top: auto; color: #929aaa; font-size: .65rem; }
.center-document-card i { margin-top: 12px; color: var(--brand-blue); font-size: .69rem; font-style: normal; font-weight: 700; }
.center-document-card.has-cover { min-height: 0; }
.center-document-cover { display: block; width: 100%; aspect-ratio: 3 / 2; margin: 2px 0 14px; object-fit: cover; object-position: center top; background: #f2f5fb; border: 1px solid var(--line); border-radius: 8px; }
.center-empty { margin-top: 18px; padding: 62px 24px; color: var(--muted); background: var(--surface); border: 1px dashed #cfd7e6; border-radius: 12px; text-align: center; }
.center-empty-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 12px; font-weight: 800; }
.center-empty h2 { margin-bottom: 8px; color: var(--ink); font-size: 1rem; }
.center-empty p { max-width: 580px; margin: 0 auto 18px; font-size: .75rem; line-height: 1.65; }
.center-empty button { padding: 8px 13px; color: var(--brand-blue); background: var(--brand-blue-soft); border: 0; border-radius: 7px; font-size: .72rem; font-weight: 700; }
.center-subview-heading { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.center-subview-heading[hidden] { display: none !important; }
.center-subview-heading > button { flex: 0 0 auto; padding: 7px 10px; color: var(--brand-blue); background: var(--brand-blue-soft); border: 0; border-radius: 7px; font-size: .71rem; font-weight: 700; }
.center-subview-heading span { display: block; margin-bottom: 3px; color: var(--brand-pink); font-size: .6rem; font-weight: 800; }
.center-subview-heading h2 { margin: 0 0 3px; font-size: 1rem; }
.center-subview-heading p { margin: 0; color: var(--muted); font-size: .7rem; }
.center-view.is-package-index .center-toolbar,
.center-view.is-package-index .center-categories { display: none; }
.center-view.is-package-index .center-document-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.research-package-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 82px; padding: 14px; color: var(--ink); background: #f9fbff; border: 1px solid #e3e8f1; border-radius: 10px; text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.research-package-card:hover { border-color: rgba(226, 69, 133, .55); box-shadow: 0 9px 20px rgba(54, 90, 189, .08); transform: translateY(-1px); }
.research-package-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--brand-pink); border-radius: 8px; font-size: .74rem; font-weight: 800; }
.research-package-copy { min-width: 0; }
.research-package-copy strong { display: block; overflow: hidden; margin-bottom: 4px; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.research-package-copy small { display: block; overflow: hidden; color: #7f899b; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.research-package-card > i { padding: 3px 6px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 5px; font-size: .61rem; font-style: normal; font-weight: 700; }
.center-view.is-placeholder .center-toolbar,
.center-view.is-placeholder .center-categories,
.center-view.is-placeholder .center-document-grid { display: none; }
.center-view.is-placeholder .center-empty { margin-top: 20px; }

body.article-open .main-content > :not(.article-view) { display: none !important; }
body.article-open { overflow: auto; }
body.article-open .main-content { height: auto; min-height: 100dvh; padding-bottom: 20px; overflow: visible; }
.article-view { --article-pad-top: 18px; --article-pad-x: clamp(18px, 4vw, 54px); display: none; max-width: 980px; min-height: calc(100dvh - 40px); margin: 0 auto; padding: var(--article-pad-top) var(--article-pad-x) 0; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(36, 51, 84, .06); }
body.article-open .article-view { display: block; }
.article-sticky-header { --article-sticky-offset: 21px; position: sticky; top: var(--article-sticky-offset); z-index: 12; flex: 0 0 auto; margin: calc(var(--article-pad-top) * -1) calc(var(--article-pad-x) * -1) 0; padding: var(--article-pad-top) var(--article-pad-x) 0; background: rgba(253, 254, 254, .98); border-radius: 11px 11px 0 0; box-shadow: none; backdrop-filter: blur(12px); }
.article-sticky-header::before { position: absolute; right: 0; bottom: 100%; left: 0; height: var(--article-sticky-offset); background: var(--page); content: ""; pointer-events: none; }
.article-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-actions { display: flex; align-items: center; gap: 8px; }
.article-back, .article-source, .article-edit { padding: 7px 11px; color: var(--brand-blue); background: var(--brand-blue-soft); border: 0; border-radius: 7px; font-size: .75rem; font-weight: 700; text-decoration: none; }
.article-back:hover, .article-source:hover, .article-edit:hover { color: #fff; background: var(--brand-blue); }
.article-header { padding: 12px 0 20px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin-bottom: 8px; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.22; letter-spacing: -.03em; }
.article-header p { margin: 0; color: var(--muted); font-size: .78rem; }
.article-warning, .sync-warning { margin: 18px 0; padding: 12px 14px; color: #7a3f00; background: #fff7e8; border: 1px solid #f1d5a3; border-radius: 8px; font-size: .78rem; line-height: 1.6; }
.article-body { min-height: 0; padding: 18px 0 56px; overflow: visible; color: #273145; font-size: .92rem; line-height: 1.72; overflow-wrap: anywhere; }
.article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { margin: 1.7em 0 .65em; color: #182033; line-height: 1.35; }
.article-body h2 { padding-bottom: .35em; border-bottom: 1px solid var(--line); font-size: 1.45rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body p { margin: .72em 0; }
.article-body .align-center { text-align: center; }
.article-body .align-right { text-align: right; }
.article-body a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { display: block; max-width: 100%; height: auto; margin-right: auto; margin-left: auto; border-radius: 6px; }
.article-body img.image-previewable { cursor: zoom-in; transition: filter .16s ease, box-shadow .16s ease; }
.article-body img.image-previewable:hover { filter: brightness(.97); box-shadow: 0 0 0 3px rgba(54, 90, 189, .13); }
.article-body img.image-previewable:focus-visible { outline: 3px solid rgba(54, 90, 189, .45); outline-offset: 3px; }
.article-body figure { margin: 1.35rem 0; }
.article-body .feishu-image { width: min(var(--feishu-image-width, 100%), 100%); max-width: 100%; }
.article-body .feishu-image > img { width: 100%; object-fit: contain; }
.article-body .feishu-image.align-left { margin-right: auto; }
.article-body .feishu-image.align-center { margin-right: auto; margin-left: auto; }
.article-body .feishu-image.align-right { margin-left: auto; }
.article-body .feishu-image figcaption { margin-top: 8px; color: #596579; font-size: .78rem; font-weight: 500; line-height: 1.5; text-align: center; }
.article-body .feishu-list { margin: .32em 0; padding-left: 1.55em; }
.article-body .feishu-list + .feishu-list { margin-top: -.18em; }
.article-body .feishu-list .feishu-list { margin: .28em 0 0; }
.article-body .feishu-list li { padding-left: .15em; }
.article-body blockquote { margin: 1rem 0; padding: .6rem 1rem; color: #4e596d; background: #f7f9fd; border-left: 4px solid var(--brand-blue); }
.article-body .feishu-quote-container { padding: .35rem 1rem; background: transparent; border-left: 3px solid #c8ced9; }
.article-body .feishu-quote-container > :first-child { margin-top: .2em; }
.article-body .feishu-quote-container > :last-child { margin-bottom: .2em; }
.article-body pre { overflow-x: auto; padding: 14px; color: #eef3ff; background: #202b43; border-radius: 8px; }
.article-body code { padding: .12em .35em; color: #9f285c; background: var(--brand-pink-soft); border-radius: 4px; font-family: Consolas, monospace; }
.article-body pre code { padding: 0; color: inherit; background: transparent; }
.article-body .callout, .embed-placeholder { margin: 1rem 0; padding: 12px 14px; background: var(--brand-blue-soft); border: 1px solid #d9e3fb; border-radius: 8px; }
.article-body .callout { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: start; }
.article-body .callout > p { grid-column: 1 / -1; min-width: 0; }
.article-body .callout-icon { font-size: 1rem; line-height: 1.7; }
.article-body .callout-body > :first-child { margin-top: 0; }
.article-body .callout-body > :last-child { margin-bottom: 0; }
.article-body .callout-color-1 { background: #fff1f0; border-color: #ffccc7; }
.article-body .callout-color-2 { background: #fff7e8; border-color: #f6d6a8; }
.article-body .callout-color-3 { background: #fffbe6; border-color: #f4e4a3; }
.article-body .callout-color-4 { background: #eef9f1; border-color: #bfe3c8; }
.article-body .callout-color-5 { background: #eef4ff; border-color: #ccdaf7; }
.article-body .callout-color-6 { background: #f5f0ff; border-color: #d9ccf5; }
.article-body .callout-color-7 { background: #f4f5f7; border-color: #d7dbe2; }
.article-body .feishu-grid { display: grid; gap: 16px; align-items: start; margin: 1rem 0; }
.article-body .feishu-grid-column { display: flex; min-width: 0; flex-direction: column; gap: 10px; align-items: stretch; padding: 2px 0; }
.article-body .feishu-grid-column > p, .article-body .feishu-grid-column > figure { margin-top: 0; margin-bottom: 0; }
.article-body .feishu-grid-column > figure { align-self: center; }
.article-body .feishu-grid-column > .grid-file-row { align-self: center; }
.article-body .feishu-grid-column > .grid-caption { margin-top: -2px; color: #596579; font-size: .82rem; font-weight: 650; line-height: 1.5; text-align: center; }
.article-body .feishu-embed-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: center; }
.article-body .feishu-embed-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--brand-blue); background: #fff; border: 1px solid #d9e3fb; border-radius: 7px; font-size: .68rem; font-weight: 800; }
.article-body .feishu-embed-card strong, .article-body .feishu-embed-card small { display: block; }
.article-body .feishu-embed-card small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.article-body .feishu-embed-card > a { font-size: .72rem; font-weight: 700; white-space: nowrap; }
.article-body .feishu-sheet-block { margin: 1.15rem 0; overflow: hidden; background: #fff; border: 1px solid #d9e3f3; border-radius: 10px; }
.article-body .feishu-sheet-block > header { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px 14px; background: #eef4ff; border-bottom: 1px solid #d9e3f3; }
.article-body .feishu-sheet-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #2f66c9; background: #fff; border: 1px solid #cfdbef; border-radius: 7px; font-size: .72rem; font-weight: 800; }
.article-body .feishu-sheet-block header strong, .article-body .feishu-sheet-block header small { display: block; }
.article-body .feishu-sheet-block header small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.article-body .feishu-sheet-download { font-size: .7rem; white-space: nowrap; }
.article-body .feishu-sheet-source { font-size: .72rem; font-weight: 700; white-space: nowrap; }
.article-body .feishu-sheet-scroll { margin: 0; }
.article-body .feishu-sheet-table { width: max-content; min-width: 100%; table-layout: auto; }
.article-body .feishu-sheet-table th { color: #253553; background: #f6f8fc; font-weight: 700; }
.article-body .feishu-sheet-table td, .article-body .feishu-sheet-table th { min-width: 130px; padding: 10px 12px; font-size: .76rem; line-height: 1.55; }
.article-body .feishu-sheet-empty { margin: 0; padding: 18px; color: var(--muted); }
.article-body .feishu-text-color-1 { color: #d83931; }
.article-body .feishu-text-color-3 { color: #b77900; }
.article-body .feishu-text-color-5 { color: #245bdb; }
.article-body .feishu-text-color-7 { color: #646a73; }
.article-body .feishu-text-bg-3 { padding: .08em .18em; background: #fff2cc; border-radius: 3px; }
.article-body .feishu-text-bg-8 { padding: .08em .18em; background: #e7f4ff; border-radius: 3px; }
.article-body .feishu-text-bg-10 { padding: .08em .18em; background: #f2e9ff; border-radius: 3px; }
.article-body .file-card { display: inline-flex; gap: 8px; align-items: center; max-width: 100%; padding: 9px 12px; text-decoration: none; background: var(--brand-blue-soft); border: 1px solid #d9e3fb; border-radius: 7px; }
.article-body .file-card > span { grid-row: 1 / 3; padding: 3px 6px; color: #315ec0; background: #fff; border-radius: 4px; font-size: .66rem; font-weight: 800; }
.article-body .file-card > strong, .article-body .file-card > small { grid-column: 2; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-body .file-card > small { color: var(--muted); font-size: .68rem; }
.article-body .inline-video { width: min(100%, 920px); margin: 1.1rem 0; }
.article-body .inline-video video { display: block; width: 100%; max-height: 72vh; background: #101827; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(31, 54, 104, .1); }
.article-body .inline-video figcaption { margin-top: 8px; color: var(--muted); font-size: .76rem; text-align: center; }
.article-body .mention { color: var(--brand-blue-strong); background: var(--brand-blue-soft); border-radius: 4px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1rem 0; overscroll-behavior-x: contain; scrollbar-color: #8c96a8 #edf1f7; scrollbar-width: thin; }
.table-scroll::-webkit-scrollbar { height: 10px; }
.table-scroll::-webkit-scrollbar-track { background: #edf1f7; border-radius: 999px; }
.table-scroll::-webkit-scrollbar-thumb { background: #8c96a8; border: 2px solid #edf1f7; border-radius: 999px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: #6f7a8d; }
.table-floating-scrollbar[hidden] { display: none !important; }
.table-floating-scrollbar { position: fixed; bottom: 8px; z-index: 90; height: 18px; overflow-x: auto; overflow-y: hidden; background: #edf1f7; border: 1px solid #d3d9e4; border-radius: 8px; box-shadow: 0 5px 18px rgba(30, 44, 72, .22); scrollbar-color: #7f899c #edf1f7; scrollbar-width: auto; }
.table-floating-scrollbar > div { height: 1px; }
.table-floating-scrollbar::-webkit-scrollbar { height: 16px; }
.table-floating-scrollbar::-webkit-scrollbar-track { background: #edf1f7; border-radius: 8px; }
.table-floating-scrollbar::-webkit-scrollbar-thumb { background: #7f899c; border: 3px solid #edf1f7; border-radius: 999px; }
.table-floating-scrollbar::-webkit-scrollbar-thumb:hover { background: #626d81; }
.article-body table { width: max-content; min-width: 100%; border-collapse: collapse; table-layout: auto; }
.article-body td, .article-body th { min-width: 120px; padding: 9px 11px; vertical-align: top; white-space: nowrap; background: #fff; border: 1px solid #dfe3eb; }
.article-body td p:first-child { margin-top: 0; }
.article-body td p:last-child { margin-bottom: 0; }
.article-body .patent-table-scroll { position: relative; max-height: none; overflow-x: auto; overflow-y: hidden; border: 1px solid #dfe3eb; border-radius: 8px; }
.article-body .patent-table { margin: -1px; min-width: calc(100% + 2px); }
.article-body .patent-table th,
.article-body .patent-table td { vertical-align: middle; text-align: center; }
.article-body .patent-table tr:first-child > th,
.article-body .patent-table tr:first-child > td { color: #182033; background: #f6f8fc; box-shadow: 0 2px 0 #cfd7e6; font-weight: 700; }
.article-body .patent-table td img,
.article-body .patent-table td figure { margin-right: auto; margin-left: auto; }

.sidebar-mask { position: fixed; inset: 0; z-index: 29; background: rgba(24, 32, 51, .35); }

body.image-viewer-open { overflow: hidden; }
.image-viewer[hidden] { display: none !important; }
.image-viewer { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff; background: rgba(17, 21, 31, .94); backdrop-filter: blur(8px); user-select: none; }
.image-viewer-topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 10px 18px 10px 24px; background: linear-gradient(180deg, rgba(8, 11, 18, .72), transparent); }
.image-viewer-info { min-width: 0; }
.image-viewer-info strong { display: block; overflow: hidden; max-width: min(60vw, 760px); font-size: .88rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer-info span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .62); font-size: .7rem; }
.image-viewer-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.image-viewer-action { display: inline-grid; place-items: center; min-height: 36px; padding: 0 13px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; font-size: .75rem; text-decoration: none; }
.image-viewer-action:hover { background: rgba(255, 255, 255, .2); }
.image-viewer-close { width: 38px; padding: 0; font-size: 1.65rem; font-weight: 300; line-height: 1; }
.image-viewer-stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; cursor: default; }
.image-viewer-stage.is-zoomed { cursor: grab; }
.image-viewer-stage.is-dragging { cursor: grabbing; }
.image-viewer-stage > img { display: block; width: auto; height: auto; max-width: calc(100vw - 150px); max-height: calc(100dvh - 170px); border-radius: 3px; box-shadow: 0 18px 60px rgba(0, 0, 0, .42); transform: translate3d(0, 0, 0) scale(1); transform-origin: center; transition: transform .14s ease; will-change: transform; }
.image-viewer-stage.is-dragging > img { transition: none; }
.image-viewer-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 58px; padding: 0; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; font-size: 2.25rem; font-weight: 300; line-height: 1; transform: translateY(-50%); }
.image-viewer-nav:hover { background: rgba(255, 255, 255, .22); }
.image-viewer-nav:disabled { visibility: hidden; }
.image-viewer-previous { left: 22px; }
.image-viewer-next { right: 22px; }
.image-viewer-toolbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 4px; width: max-content; max-width: calc(100vw - 28px); margin: 12px auto 18px; padding: 6px; background: rgba(38, 43, 56, .9); border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.image-viewer-toolbar button { min-width: 36px; height: 34px; padding: 0 10px; color: #fff; background: transparent; border: 0; border-radius: 7px; font-size: .78rem; }
.image-viewer-toolbar button:hover { background: rgba(255, 255, 255, .13); }
.image-viewer-toolbar button:disabled { color: rgba(255, 255, 255, .32); cursor: default; }
.image-viewer-toolbar output { min-width: 56px; color: rgba(255, 255, 255, .84); font-size: .72rem; text-align: center; }
.image-viewer-toolbar span { width: 1px; height: 20px; margin: 0 3px; background: rgba(255, 255, 255, .16); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

@media (max-width: 1050px) {
  .quick-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .department-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .office-illustration { right: 7%; transform: scale(.9); transform-origin: right bottom; }
  .center-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .center-view.is-package-index .center-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; z-index: 30; width: 226px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 12px 0 30px rgba(36, 51, 84, .13); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .account-actions > .icon-button, .account-divider, .account b { display: none; }
  .main-content { padding: 12px 14px 22px; }
  body:not(.center-open):not(.article-open) .main-content { padding-bottom: 0; }
  .home-scroll-content { margin-right: -14px; padding-right: 14px; padding-bottom: 22px; }
  .hero-banner { min-height: 102px; }
  .office-illustration { right: -30px; opacity: .85; transform: scale(.75); transform-origin: right bottom; }
  .document-overview { grid-template-columns: 1fr; gap: 11px; }
  .search-result-list { grid-template-columns: 1fr; }
  .center-header { padding: 22px 20px; }
  .center-sticky-panel { --center-sticky-offset: 12px; }
  .center-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .center-subview-heading { align-items: flex-start; flex-direction: column; }
  body.article-open .main-content { padding-bottom: 12px; }
  .article-view { --article-pad-top: 16px; --article-pad-x: 18px; min-height: calc(100dvh - 24px); padding: var(--article-pad-top) var(--article-pad-x) 0; border-radius: 10px; }
  .article-sticky-header { --article-sticky-offset: 13px; }
  .article-body { padding-bottom: 38px; }
  .article-body .feishu-grid { grid-template-columns: 1fr !important; gap: 18px; }
  .article-body .feishu-embed-card { grid-template-columns: 32px minmax(0, 1fr); }
  .article-body .feishu-embed-card > a { grid-column: 2; }
  .article-body .feishu-sheet-block > header { grid-template-columns: 34px minmax(0, 1fr); }
  .article-body .feishu-sheet-download, .article-body .feishu-sheet-source { grid-column: 2; justify-self: start; white-space: normal; }
  .image-viewer-topbar { min-height: 56px; padding: 8px 10px 8px 14px; }
  .image-viewer-info strong { max-width: 48vw; }
  .image-viewer-stage > img { max-width: calc(100vw - 30px); max-height: calc(100dvh - 150px); }
  .image-viewer-nav { width: 38px; height: 48px; background: rgba(12, 16, 25, .52); }
  .image-viewer-previous { left: 8px; }
  .image-viewer-next { right: 8px; }
  .image-viewer-toolbar { margin-bottom: 10px; }
}

@media (max-width: 520px) {
  .quick-entry, .department-grid { grid-template-columns: 1fr; }
  .office-illustration { right: -76px; opacity: .62; }
  .document-row { grid-template-columns: 19px minmax(0, 1fr) 55px; }
  .document-row span:nth-of-type(2) { display: none; }
  .center-header { flex-direction: column; gap: 18px; }
  .center-heading { align-items: flex-start; }
  .center-symbol { width: 48px; height: 48px; border-radius: 12px; }
  .center-home { width: 100%; }
  .center-document-grid { grid-template-columns: 1fr; }
  .center-document-card { min-height: 188px; }
  .research-package-card { width: 100%; }
  .center-view.is-package-index .center-document-grid { grid-template-columns: 1fr; }
}

/* Standalone knowledge portal home layout */
html.knowledge-standalone body:not(.center-open):not(.article-open) {
  overflow: auto;
}

html.knowledge-standalone body:not(.center-open):not(.article-open) .app-shell,
html.knowledge-standalone body:not(.center-open):not(.article-open) .workspace {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

html.knowledge-standalone body:not(.center-open):not(.article-open) .main-content {
  display: flex;
  width: 100%;
  max-width: 1440px;
  height: auto;
  min-height: 100dvh;
  margin-inline: auto;
  padding: 32px clamp(24px, 3vw, 48px) 64px;
  overflow: visible;
}

html.knowledge-standalone .home-fixed-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 16px;
}

html.knowledge-standalone .hero-banner,
html.knowledge-standalone .page-intro {
  grid-row: 1;
  grid-column: 1;
}

html.knowledge-standalone .hero-banner {
  min-height: 184px;
  border: 1px solid rgba(54, 90, 189, .08);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(47, 74, 135, .08);
}

html.knowledge-standalone .page-intro {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 58%;
  padding: 30px clamp(30px, 4.2vw, 62px);
}

html.knowledge-standalone .page-intro h1 {
  max-width: 13ch;
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
}

html.knowledge-standalone .page-intro p {
  max-width: 52ch;
  color: #5f6d84;
  font-size: .9rem;
  line-height: 1.7;
}

html.knowledge-standalone .office-illustration {
  right: 6%;
  width: 390px;
  transform: scale(1.06);
}

html.knowledge-standalone .welcome-panel {
  grid-row: 2;
  grid-column: 1;
  min-height: 64px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .72);
  border-color: #dfe6f3;
}

html.knowledge-standalone .home-scroll-content {
  min-height: auto;
  margin-right: 0;
  padding-right: 0;
  padding-bottom: 0;
  overflow: visible;
}

html.knowledge-standalone .department-entry {
  gap: 14px;
  margin-top: 24px;
}

html.knowledge-standalone .quick-card {
  min-height: 74px;
  padding: 13px 15px;
  border-color: #e1e7f0;
}

html.knowledge-standalone .quick-card:hover {
  box-shadow: 0 10px 24px rgba(48, 72, 126, .09);
}

html.knowledge-standalone .document-overview {
  gap: 16px;
  margin-top: 24px;
}

html.knowledge-standalone .document-panel {
  border-color: #e1e7f0;
  box-shadow: 0 10px 28px rgba(48, 72, 126, .05);
}

@media (max-width: 1050px) {
  html.knowledge-standalone .main-content {
    padding-inline: 24px;
  }

  html.knowledge-standalone .page-intro {
    width: 68%;
    padding-inline: 34px;
  }

  html.knowledge-standalone .office-illustration {
    right: 1%;
    opacity: .78;
    transform: scale(.9);
  }

  html.knowledge-standalone .department-entry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html.knowledge-standalone body:not(.center-open):not(.article-open) .main-content {
    padding: 16px 14px 40px;
  }

  html.knowledge-standalone .home-fixed-panel {
    row-gap: 12px;
  }

  html.knowledge-standalone .hero-banner {
    min-height: 196px;
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(47, 74, 135, .07);
  }

  html.knowledge-standalone .page-intro {
    width: 100%;
    padding: 28px 22px;
  }

  html.knowledge-standalone .page-intro h1 {
    max-width: 12ch;
    font-size: clamp(1.85rem, 9vw, 2.3rem);
  }

  html.knowledge-standalone .page-intro p {
    max-width: 29ch;
    font-size: .82rem;
  }

  html.knowledge-standalone .office-illustration {
    right: -88px;
    opacity: .2;
    transform: scale(.82);
  }

  html.knowledge-standalone .welcome-panel {
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    gap: 10px;
  }

  html.knowledge-standalone .welcome-panel p {
    line-height: 1.55;
  }

  html.knowledge-standalone .department-entry {
    gap: 10px;
    margin-top: 18px;
  }

  html.knowledge-standalone .document-overview {
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  html.knowledge-standalone .department-entry {
    grid-template-columns: 1fr;
  }
}

/* Standalone knowledge portal inner layout */
html.knowledge-standalone body.center-open,
html.knowledge-standalone body.article-open {
  overflow: auto;
  background: #f5f7fb;
}

html.knowledge-standalone body.center-open .app-shell,
html.knowledge-standalone body.center-open .workspace,
html.knowledge-standalone body.article-open .app-shell,
html.knowledge-standalone body.article-open .workspace {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

html.knowledge-standalone body.center-open .main-content {
  width: 100%;
  max-width: 1360px;
  min-height: 100dvh;
  margin-inline: auto;
  padding: 32px clamp(24px, 3vw, 48px) 64px;
}

html.knowledge-standalone .center-view {
  min-height: calc(100dvh - 96px);
}

html.knowledge-standalone .center-header {
  gap: 18px;
  padding: 24px 28px 28px;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(47, 74, 135, .07);
}

html.knowledge-standalone .center-toolbar {
  margin-top: 24px;
  padding: 0 0 18px;
}

html.knowledge-standalone .center-search {
  width: min(480px, 100%);
}

html.knowledge-standalone .center-categories {
  gap: 10px;
  padding-top: 16px;
}

html.knowledge-standalone .center-document-grid,
html.knowledge-standalone .center-view.is-package-index .center-document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

html.knowledge-standalone .center-document-card {
  min-height: 196px;
  padding: 18px;
  border-color: #e1e7f0;
  border-radius: 13px;
  box-shadow: 0 9px 24px rgba(48, 72, 126, .045);
}

html.knowledge-standalone .research-package-card {
  min-height: 90px;
  padding: 16px;
  background: rgba(255, 255, 255, .8);
  border-color: #e1e7f0;
  border-radius: 12px;
}

html.knowledge-standalone .center-subview-heading {
  margin-top: 0;
  padding: 16px 18px;
  border-color: #e1e7f0;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(48, 72, 126, .04);
}

html.knowledge-standalone body.article-open .main-content {
  width: 100%;
  max-width: 1120px;
  min-height: 100dvh;
  margin-inline: auto;
  padding: 28px clamp(24px, 3vw, 40px) 64px;
}

html.knowledge-standalone .article-view {
  --article-pad-top: 22px;
  --article-pad-x: clamp(26px, 4.5vw, 60px);
  max-width: 980px;
  min-height: calc(100dvh - 92px);
  border-color: #e1e7f0;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(42, 62, 105, .08);
}

html.knowledge-standalone .article-sticky-header {
  --article-sticky-offset: 28px;
  border-radius: 15px 15px 0 0;
}

html.knowledge-standalone .article-header {
  padding-top: 18px;
  padding-bottom: 24px;
}

html.knowledge-standalone .article-body {
  padding-top: 24px;
  padding-bottom: 64px;
  font-size: .95rem;
  line-height: 1.78;
}

@media (max-width: 1050px) {
  html.knowledge-standalone body.center-open .main-content {
    padding-inline: 24px;
  }

  html.knowledge-standalone .center-document-grid,
  html.knowledge-standalone .center-view.is-package-index .center-document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html.knowledge-standalone body.center-open .main-content,
  html.knowledge-standalone body.article-open .main-content {
    padding: 16px 14px 40px;
  }

  html.knowledge-standalone .center-header {
    padding: 20px;
    border-radius: 13px;
  }

  html.knowledge-standalone .center-document-grid,
  html.knowledge-standalone .center-view.is-package-index .center-document-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  html.knowledge-standalone .center-document-card {
    min-height: 188px;
  }

  html.knowledge-standalone .article-view {
    --article-pad-top: 18px;
    --article-pad-x: 20px;
    min-height: calc(100dvh - 56px);
    border-radius: 12px;
  }

  html.knowledge-standalone .article-sticky-header {
    --article-sticky-offset: 16px;
    border-radius: 11px 11px 0 0;
  }

  html.knowledge-standalone .article-body {
    padding-top: 20px;
    padding-bottom: 44px;
    font-size: .92rem;
  }
}

/* Standalone portal: full-height navigation and content workspace. */
html.knowledge-standalone .app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

html.knowledge-standalone .sidebar {
  position: sticky;
  top: 0;
  width: 240px;
  height: 100dvh;
  padding: 0 14px 14px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #e1e7f0;
  box-shadow: none;
}

html.knowledge-standalone .sidebar-head {
  height: 48px;
  min-height: 48px;
}

html.knowledge-standalone .sidebar-search {
  min-height: 40px;
  margin-bottom: 14px;
}

html.knowledge-standalone .sidebar .department-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  margin: 0;
}

html.knowledge-standalone .sidebar .department-entry .nav-item {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  color: #263856;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
  transform: none;
}

html.knowledge-standalone .sidebar .department-entry .nav-item:hover,
html.knowledge-standalone .sidebar .department-entry .nav-item.active {
  color: #28499e;
  background: #edf2ff;
  transform: none;
}

html.knowledge-standalone .sidebar .department-entry .nav-item strong,
html.knowledge-standalone .sidebar .department-entry .nav-item b {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
}

html.knowledge-standalone .sidebar .department-entry .nav-item small {
  display: none;
}

html.knowledge-standalone .sidebar .department-entry .quick-icon,
html.knowledge-standalone .sidebar .department-entry .nav-symbol {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #365abd;
  background: #fff;
  border: 1px solid #cbd6eb;
  border-radius: 5px;
  font-size: .62rem;
  font-weight: 800;
}

html.knowledge-standalone .sidebar .department-entry .nav-item.active .quick-icon,
html.knowledge-standalone .sidebar .department-entry .nav-item.active .nav-symbol {
  color: #fff;
  background: #365abd;
  border-color: #365abd;
}

html.knowledge-standalone .sidebar-foot .shelved-entry:not([hidden]) {
  display: grid !important;
}

html.knowledge-standalone .sidebar-foot {
  border-top: 0;
}

html.knowledge-standalone .sidebar-user {
  display: none;
}

html.knowledge-standalone body:not(.center-open):not(.article-open) .main-content {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100dvh;
  margin: 0;
  padding: 14px 28px 42px;
  overflow: visible;
}

html.knowledge-standalone .home-fixed-panel {
  display: grid;
}

html.knowledge-standalone .hero-banner {
  min-height: 150px;
  border-radius: 15px;
  box-shadow: none;
}

html.knowledge-standalone .page-intro {
  position: relative;
  align-self: center;
  width: min(62%, 720px);
  padding: 18px 38px;
}

html.knowledge-standalone .page-intro h1 {
  max-width: none;
  margin-bottom: 5px;
  font-size: clamp(2rem, 2.5vw, 2.5rem);
  line-height: 1.2;
}

html.knowledge-standalone .page-intro p {
  max-width: none;
  font-size: .88rem;
}

html.knowledge-standalone .welcome-panel {
  display: none;
}

html.knowledge-standalone .knowledge-assistant-home {
  margin-top: 16px;
  margin-inline: -8px;
  width: calc(100% + 16px);
}

html.knowledge-standalone .document-overview {
  margin-top: 16px;
}

html.knowledge-standalone body.center-open .main-content,
html.knowledge-standalone body.article-open .main-content {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 28px 48px;
}

html.knowledge-standalone body.article-open .article-view {
  margin-inline: auto;
}

@media (max-width: 760px) {
  html.knowledge-standalone .knowledge-assistant-home {
    margin-inline: 0;
    width: 100%;
  }

  html.knowledge-standalone .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  html.knowledge-standalone .sidebar {
    position: fixed;
    left: 0;
    z-index: 30;
    width: 226px;
    transform: translateX(-105%);
    box-shadow: 12px 0 30px rgba(36, 51, 84, .13);
  }
  html.knowledge-standalone .sidebar.open {
    transform: translateX(0);
  }
  html.knowledge-standalone body:not(.center-open):not(.article-open) .main-content,
  html.knowledge-standalone body.center-open .main-content,
  html.knowledge-standalone body.article-open .main-content {
    padding: 16px 14px 40px;
  }
  html.knowledge-standalone .page-intro h1 {
    font-size: clamp(1.85rem, 9vw, 2.3rem);
  }
}

[hidden] {
  display: none !important;
}
