/* Shared shell for the homepage, public directories and member pages. */
.topbar:has(.header-member){background:#05273b;color:#dff7ff;font:14px/1.4 system-ui,"Microsoft YaHei",sans-serif}
.topbar .topbar-inner:has(.header-member){width:min(1320px,calc(100% - 40px));margin:auto;min-height:38px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:0}
.topbar .header-member{color:#f7cd63;font-weight:700;white-space:nowrap;text-underline-offset:3px}
.topbar .member-links{display:flex;flex:none;align-items:center;gap:14px;margin:0}
.site-header.global-header{position:sticky;top:0;background:#fff;border-bottom:1px solid #dbe7ed;line-height:1.5;font-family:system-ui,"Microsoft YaHei",sans-serif}
.global-header .container.nav{margin-inline:auto}
.global-header .brand img.legacy-brand{display:block;width:clamp(134px,13vw,178px);height:auto;max-width:none}
.global-header a{color:inherit;text-decoration:none}
.global-header button{font-family:inherit}
.global-header a:focus-visible,.global-header button:focus-visible,.header-member:focus-visible{outline:3px solid #ad7919;outline-offset:2px}
.global-header .nav-actions .nav-cta{display:inline-flex;align-items:center;justify-content:center}
.global-header{z-index:200}
.global-header .nav{width:min(1320px,calc(100% - 40px));min-height:74px;display:flex;align-items:center;gap:16px}
.global-header .brand{flex:0 0 auto}
.global-header .nav-links{position:static;display:flex;align-items:center;gap:0;margin-left:auto;color:var(--navy,#062f47);font-size:14px;font-weight:750;white-space:nowrap}
.global-header .nav-direct,.global-header .nav-main-link{min-height:44px;display:inline-flex;align-items:center;padding:10px 7px;border-radius:9px}
.global-header .nav-direct:hover,.global-header .nav-main-link:hover,.global-header .nav-direct:focus-visible,.global-header .nav-main-link:focus-visible,.global-header .nav-direct[aria-current="page"],.global-header .nav-item.is-current>.nav-main-link{color:var(--gold-dark,#7a4b00);background:var(--gold-soft,#fff6d9)}
.global-header .nav-item{position:relative;display:flex;align-items:center}
.global-header .submenu-toggle{width:44px;height:44px;display:inline-grid;place-items:center;margin-left:-9px;padding:0;border:0;border-radius:9px;color:var(--navy,#062f47);background:transparent;cursor:pointer}
.global-header .submenu-toggle:hover,.global-header .submenu-toggle:focus-visible,.global-header .nav-item.is-open>.submenu-toggle{color:var(--gold-dark,#7a4b00);background:var(--gold-soft,#fff6d9)}
.global-header .submenu-toggle-icon{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s ease}
.global-header .nav-item.is-open>.submenu-toggle .submenu-toggle-icon{transform:translateY(2px) rotate(225deg)}
.global-header .submenu{position:absolute;top:calc(100% + 10px);left:0;z-index:220;width:580px;max-width:calc(100vw - 40px);padding:20px;border:1px solid var(--line,#d8e7ec);border-radius:16px;background:#fff;box-shadow:0 20px 50px rgba(6,47,71,.18);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease;white-space:normal}
.global-header .submenu:before{content:"";position:absolute;top:-12px;right:0;left:0;height:14px}
.global-header .submenu-master{left:50%;width:760px;transform:translate(-50%,8px)}
.global-header .submenu-overseas{left:auto;right:0;width:620px}
.global-header .submenu-publication{left:auto;right:0;width:590px}
.global-header .nav-item:not(.suppress-hover):hover>.submenu,.global-header .nav-item.is-open>.submenu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.global-header .nav-item:not(.suppress-hover):hover>.submenu-master,.global-header .nav-item.is-open>.submenu-master{transform:translate(-50%,0)}
.global-header .submenu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px;padding-bottom:13px;border-bottom:1px solid var(--line,#d8e7ec)}
.global-header .submenu-head strong{display:block;color:var(--navy,#062f47);font-size:17px}
.global-header .submenu-head span{color:var(--muted,#607985);font-size:13px;font-weight:500}
.global-header .submenu-all{flex:0 0 auto;color:var(--gold-dark,#7a4b00)!important;font-size:13px;font-weight:800}
.global-header .submenu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.global-header .submenu-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.global-header .submenu-group{min-width:0}
.global-header .submenu-label{display:block;margin-bottom:7px;color:var(--gold-dark,#7a4b00);font-size:12px;font-weight:900;letter-spacing:.06em}
.global-header .submenu-group a{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border-radius:9px;color:var(--ink,#17364a);line-height:1.35;font-weight:700}
.global-header .submenu-group a:hover,.global-header .submenu-group a:focus-visible,.global-header .submenu-group a[aria-current="page"]{color:var(--gold-dark,#7a4b00);background:var(--gold-soft,#fff6d9)}
.global-header .submenu-note{display:block;color:var(--muted,#607985);font-size:12px;font-weight:500}
.global-header .nav-actions{flex:0 0 auto;display:flex;align-items:center}
.global-header .nav-cta{min-height:44px;padding:9px 14px;border:1px solid #dfa019;border-radius:11px;color:var(--navy,#062f47);background:var(--gold,#f4b62a);box-shadow:0 10px 26px rgba(180,116,0,.2);font-size:14px;font-weight:850}
.global-header .nav-cta:hover{background:#e4a621;transform:translateY(-1px)}
.global-header .menu-toggle{min-width:48px;min-height:44px;display:none;align-items:center;justify-content:center;gap:8px;padding:8px 11px;border:1px solid var(--line,#d8e7ec);border-radius:10px;color:var(--navy,#062f47);background:#fff;font-weight:800;cursor:pointer}
.global-header .menu-icon{position:relative;width:18px;height:12px;border-top:2px solid currentColor;border-bottom:2px solid currentColor}
.global-header .menu-icon:after{content:"";position:absolute;top:4px;left:0;width:18px;border-top:2px solid currentColor}
.global-header .mobile-nav-cta{display:none}

@media(max-width:1120px){
  body.nav-open{overflow:hidden}
  .global-header .nav{position:relative;min-height:68px}
  .global-header .menu-toggle{display:inline-flex;margin-left:auto;order:3}
  .global-header .nav-actions{order:2}
  .global-header .nav-links{position:absolute;top:100%;right:0;left:0;z-index:230;display:none;max-height:calc(100vh - 88px);margin:0;padding:12px 14px 18px;overflow-y:auto;border:1px solid var(--line,#d8e7ec);border-top:3px solid var(--gold,#f4b62a);border-radius:0 0 16px 16px;background:#fff;box-shadow:0 22px 48px rgba(6,47,71,.18);white-space:normal}
  .global-header .nav-links.open{display:flex;align-items:stretch;flex-direction:column}
  .global-header .nav-direct{width:100%;padding:11px 10px;border-bottom:1px solid #edf3f5;border-radius:8px}
  .global-header .nav-item{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 48px;border-bottom:1px solid #edf3f5}
  .global-header .nav-main-link{width:100%;padding:11px 10px}
  .global-header .submenu-toggle{width:48px;margin:0}
  .global-header .submenu{position:static!important;grid-column:1/-1;display:none!important;width:auto!important;max-width:none!important;margin:0 0 12px;padding:15px;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;border-radius:12px;background:#f7fbfc;box-shadow:none;transition:none}
  .global-header .submenu:before{display:none}
  .global-header .nav-item.is-open>.submenu{display:block!important}
  .global-header .submenu-grid,.global-header .submenu-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .global-header .mobile-nav-cta{min-height:46px;display:flex;align-items:center;justify-content:center;margin-top:12px;border:1px solid #dfa019;border-radius:10px;color:var(--navy,#062f47);background:var(--gold,#f4b62a);font-weight:850}
}

@media(max-width:700px){
  .global-header .nav{width:min(100% - 28px,1320px);gap:8px}
  .global-header .brand{font-size:18px}
  .global-header .brand-mark{width:36px;height:36px}
  .global-header .nav-actions{display:none}
  .global-header .menu-toggle-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .global-header .submenu-grid,.global-header .submenu-grid-3{grid-template-columns:1fr;gap:13px}
  .global-header .submenu-head{flex-direction:column;gap:5px}
}

@media(max-width:700px){
  .topbar .topbar-inner:has(.header-member),.global-header .container.nav{width:calc(100% - 32px)}
  .topbar .topbar-inner:has(.header-member){min-height:32px;font-size:12px}
  .topbar .topbar-inner>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .global-header .brand img.legacy-brand{width:132px}
}
