:root {
  --portal-frame-width: min(1440px, calc(100% - 80px));
}

.portal-filters { position: absolute; pointer-events: none; }
.portal-brand, .portal-nav {
  color: white;
  font: 16px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.portal-brand { background: #101d45 url("header-background.jpg") center / cover no-repeat; }
.portal-brand > .portal-width, .portal-nav > .portal-width {
  width: var(--portal-frame-width);
  max-width: none;
  margin: 0 auto;
}
.portal-brand > .portal-width { min-height: 102px; display: flex; align-items: center; gap: 28px; }
.portal-brand .portal-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: white;
  text-decoration: none;
}
.portal-logo img { width: 73px; height: 55px; object-fit: contain; filter: url(#portal-reverse); }
.portal-logo > span { display: grid; gap: 3px; }
.portal-logo b { font-size: 29px; line-height: 1.25; letter-spacing: 3px; }
.portal-logo small { color: #d7e3f7; font: 10px/1.5 Arial, sans-serif; letter-spacing: 2px; }
.portal-brand .brand-desc {
  border-left: 1px solid #ffffff44;
  padding-left: 25px;
  color: #d3e0f4;
  font-size: 12px;
}
.portal-brand .portal-search {
  display: flex;
  align-items: center;
  height: 39px;
  margin: 0 0 0 auto;
  padding: 0 12px 0 16px;
  border: 1px solid #ffffff56;
  border-radius: 5px;
  background: #ffffff12;
}
.portal-search input {
  width: 155px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: white;
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.portal-search input::placeholder { color: #e4ecfa; }
.portal-search button {
  display: grid;
  place-items: center;
  padding: 5px;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}
.portal-brand .member-link[data-pc-login] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 210px;
  margin-left: -8px;
  min-width: 0;
  color: white;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}
.portal-brand [data-member-label] { overflow: hidden; text-overflow: ellipsis; font-size: inherit; }
.portal-brand .portal-member-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
}
.portal-brand .portal-member-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-brand .portal-search svg, .portal-brand .portal-member-avatar svg {
  display: block;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-nav {
  background: linear-gradient(180deg, #285482, #1b355c);
  box-shadow: 0 2px 7px #1027471c;
}
.portal-nav > .portal-width { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.portal-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 49px;
  padding: 0 8px;
  border-bottom: 3px solid transparent;
  color: white;
  font-size: 16px;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
}
.portal-nav a:hover, .portal-nav a:focus-visible { color: white; background: #ffffff12; }
.portal-nav a[aria-current="page"] { background: #245fa1; border-bottom-color: #8cdcff; box-shadow: none; }
.portal-brand :focus-visible, .portal-nav a:focus-visible { outline: 2px solid #b5e5ff; outline-offset: 2px; }
.portal-nav a:focus-visible { outline-offset: -4px; }

@media (max-width: 1050px) {
  :root { --portal-frame-width: calc(100% - 48px); }
  .portal-brand .brand-desc { display: none; }
}
@media (max-width: 760px) {
  :root { --portal-frame-width: calc(100% - 32px); }
  .portal-brand > .portal-width { min-height: 78px; gap: 12px; }
  .portal-brand .portal-logo { gap: 9px; }
  .portal-logo img { width: 53px; height: 43px; }
  .portal-logo b { font-size: 20px; letter-spacing: .5px; }
  .portal-logo small { letter-spacing: .5px; }
  .portal-brand .portal-search { display: none; }
  .portal-brand .member-link[data-pc-login] { margin-left: auto; font-size: 12px; }
  .portal-nav > .portal-width { width: 100%; }
  .portal-nav a { min-height: 40px; padding: 0 4px; font-size: 13px; letter-spacing: 0; }
}
@media (max-width: 420px) {
  .portal-nav > .portal-width { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
