/* Public pages share the current Beta welcome header and footer (2026-10-30).
   Scope these rules to the shell so the existing page content stays intact. */
.site-header,
.site-footer {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #17233b;
}

header.site-header {
  position: relative;
  z-index: 40;
  height: 84px;
  min-height: 84px;
  padding: 0 max(48px, calc((100% - 1440px) / 2));
  justify-content: flex-start;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid #dce6f3;
  box-shadow: 0 2px 8px #183b6003;
}
.site-header .brand { flex: 0 0 auto; font: inherit; color: #0058fc; letter-spacing: normal; }
.site-header .brand .courieve-brand-logo {
  width: 128px;
  height: 52px;
}
.site-header .beta {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid #e0e9f8;
  border-radius: 5px;
  background: #f4f8ff;
  color: #7a8ba8;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.site-header > nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 44px;
  margin-left: 44px;
}
.site-header > nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #4c5f7d;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .2px;
}
.site-header .nav-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.45;
}
.site-header .nav-caption {
  display: block;
  margin-top: 3px;
  color: #68778d;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .3px;
  opacity: .66;
}
.site-header .account-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.site-header .login-link {
  gap: 2px;
  height: auto;
  padding: 12px 27px;
  border: 1px solid #b9cdf8;
  border-radius: 10px;
  color: #0058fc;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.site-header a:hover,
.site-footer a:hover { color: #0058fc; text-decoration: none; }
.site-header .login-link:hover { border-color: #0058fc; background: #f5f9ff; }
.site-header .public-secondary-register {
  padding: 12px 0;
  color: #0058fc;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.site-header .public-secondary-register:hover {
  color: #0037c8;
  text-decoration: underline;
}
.site-header a:focus-visible,
.site-footer a:focus-visible { outline: 3px solid #a6c6ff; outline-offset: 3px; }

footer.site-footer {
  width: calc(100% - 96px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 25px 0 24px;
  border-top: 1px solid #d0def2;
}
.site-footer .footer-top { align-items: center; flex-wrap: nowrap; gap: 24px; }
.site-footer .footer-brand {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  color: #35547e;
  font-size: 13px;
  font-weight: 600;
}
.site-footer .footer-brand::before { content: none; }
.site-footer .footer-brand img { display: block; width: 112px; height: 45px; object-fit: contain; }
.site-footer .footer-brand span {
  flex-basis: auto;
  margin: 0 0 0 10px;
  color: #7385a0;
  font-size: 14px;
  font-weight: 400;
}
.site-footer .footer-links {
  align-items: center;
  gap: 24px;
  margin: 0;
  font-size: 13px;
  color: #66758b;
}
.site-footer .footer-links a { color: #6d7f9c; font-size: 13px; font-weight: 500; }
.site-footer .footer-links a:hover { color: #0058fc; }
.site-footer .footer-partnership { color: #98a4b7; font-size: 11px; }
.site-footer .legal { margin-top: 12px; color: #8595af; font-size: 11px; line-height: 1.8; }
.site-footer .legal-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  white-space: nowrap;
}

@media (min-width: 1000px) and (max-width: 1450px) {
  .site-header > nav { margin-left: 30px; gap: 30px; }
}

.public-signed-in:not([hidden]){display:inline-flex;align-items:center;gap:20px;white-space:nowrap}
body.is-home:has(.public-signed-in:not([hidden])) .account-nav :is(.login-link,.public-secondary-register){display:none}
body:not(.is-home) .public-signed-in{display:none}
.public-account-avatar{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e5efff;color:#172b50;box-shadow:0 0 0 4px #f5f8fe;text-decoration:none;font:700 16px/1.45 "Microsoft YaHei","PingFang SC",sans-serif}
.public-account-notifications{display:inline-flex;align-items:center;justify-content:center;width:36px;height:40px;padding:7px 5px;border:0;border-radius:50%;background:transparent}
.public-account-notifications img{width:25px;height:25px}
.public-account-notifications:hover{background:#f5f8fe}
