/* Shared system bar, rendered in the HTML before each independent application. */
.geoai-system-bar, .geoai-system-bar * { box-sizing:border-box; }
.geoai-system-bar { position:relative; z-index:100; width:100%; min-height:78px; flex:none; margin:0; color:#24384f; background:#fff; border-bottom:1px solid #e3eaf2; font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; }
.geoai-system-inner { width:min(1456px,calc(100% - 80px)); height:77px; margin:auto; display:flex; align-items:center; gap:34px; }
.geoai-system-brand { display:inline-flex; align-items:baseline; gap:7px; flex:none; margin-right:auto; color:#172b49!important; font-size:22px; font-weight:750; text-decoration:none!important; white-space:nowrap; }
.geoai-system-brand strong { color:#1855bb; font-weight:800; }
.geoai-system-brand span { font-weight:750; }
.geoai-system-links { display:flex; align-items:center; gap:30px; margin:0; padding:0; background:none; border:0; }
.geoai-system-links a, .geoai-system-account { color:#33445c!important; font-size:15px; font-weight:600; text-decoration:none!important; white-space:nowrap; }
.geoai-system-links a:hover, .geoai-system-account:hover { color:#1354c9!important; }
.geoai-system-account { margin-left:4px; padding-left:24px; border-left:1px solid #dfe7ef; }
.geoai-system-toggle { display:none; margin-left:auto; padding:8px 13px; border:1px solid #d4e0ed; border-radius:8px; background:#fff; color:#263d57; font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.geoai-system-mobile[hidden] { display:none!important; }
.geoai-system-mobile { position:absolute; z-index:101; top:100%; left:0; right:0; display:grid; gap:0; padding:8px 18px 14px; background:#fff; border-bottom:1px solid #dfe7ef; box-shadow:0 18px 30px #17314f1c; }
.geoai-system-mobile a { display:block; padding:12px 5px; color:#33445c!important; font-size:15px; font-weight:600; text-decoration:none!important; }
.geoai-system-mobile a:hover { color:#1354c9!important; }
.geoai-system-bar a:focus-visible, .geoai-system-bar button:focus-visible { outline:3px solid #78afff; outline-offset:3px; }

/* Existing application controls form the second layer below the system bar. */
.geoai-system-bar[data-app="knowledge"] ~ .site-nav { position:relative!important; inset:auto!important; height:62px; background:#fff; backdrop-filter:none; }
.geoai-system-bar[data-app="knowledge"] ~ .site-header { position:relative!important; top:auto!important; background:#fff; backdrop-filter:none; }
.geoai-system-bar[data-app="knowledge"] ~ main .hero { padding-top:0!important; }
.geoai-system-bar[data-app="knowledge"] ~ .site-nav .portal-return,
.geoai-system-bar[data-app="knowledge"] ~ .site-header .portal-link { display:none!important; }
.geoai-system-bar[data-app="suxiao"] ~ .page-loading { top:134px; }
.geoai-system-bar[data-app="suxiao"] ~ #stage { height:calc(100dvh - 134px); }
.geoai-system-bar[data-app="course"] ~ .sidebar,
.geoai-system-bar[data-app="geolens"] ~ .side { top:var(--geoai-system-visible-height,78px)!important; }
.geoai-system-bar[data-app="course"] ~ .main .topbar,
.geoai-system-bar[data-app="geolens"] ~ .main .topbar { position:relative!important; top:auto!important; }
.geoai-system-bar[data-app="paper"] ~ header,
.geoai-system-bar[data-app="paper"] ~ .steps,
.geoai-system-bar[data-app="questions"] ~ .topbar { position:relative!important; top:auto!important; }
.geoai-system-bar[data-app="paper"] ~ header .hd-in a[href="/account/"] { display:none!important; }
.geoai-system-bar[data-app="geolens"] ~ .side .brand .sub { display:none!important; }
.geoai-system-bar[data-app="ai-toolbox"] ~ #site-header { position:relative!important; top:auto!important; }
.geoai-system-bar[data-app="ai-toolbox"] ~ #site-header .site-header { position:relative!important; top:auto!important; }
.geoai-system-bar[data-app="ai-toolbox"] ~ #site-header .mobile-nav.open { position:absolute; inset:100% 0 auto!important; z-index:30; width:100%; }

@media (max-width:900px) {
  .geoai-system-bar { min-height:68px; }
  .geoai-system-inner { width:calc(100% - 36px); height:67px; gap:12px; }
  .geoai-system-brand { font-size:18px; }
  .geoai-system-links, .geoai-system-account { display:none!important; }
  .geoai-system-toggle { display:block; }
  .geoai-system-bar[data-app="suxiao"] ~ .page-loading { top:124px; }
  .geoai-system-bar[data-app="suxiao"] ~ #stage { height:calc(100dvh - 124px); }
}
@media print { .geoai-system-bar { display:none!important; } }
