:host {
  --ink: #211e24;
  --line: rgba(48, 40, 54, .14);
  display: block;
  width: 100%;
  color: var(--ink);
  font-family: "Avenir Next", "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.official-banner-shell { position: relative; width: 100%; background: #fbf8f2; }
.official-banner-shell.header-only { height: 0; background: transparent; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  height: 60px;
  border-bottom: 1px solid rgba(55, 46, 61, .12);
  background: rgba(255, 252, 247, .96);
  backdrop-filter: blur(18px);
}
.nav-wrap { position: relative; width: min(1240px, calc(100% - 80px)); height: 100%; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { width: 92px; height: 33px; display: inline-flex; align-items: center; justify-self: start; }
.brand img { display: block; width: 92px; height: 33px; object-fit: contain; transform: translateY(4px); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(26px, 2.4vw, 46px); }
.nav-links a, .login-link { position: relative; color: #625b65; font-size: 15px; font-weight: 640; line-height: 1; white-space: nowrap; transition: color .2s ease; }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; }
.login-link:hover { color: #211e24; }
.nav-links a:is(:hover, :focus-visible, :active, [aria-current="page"]) { color: #e05d32; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 18px; height: 2px; border-radius: 2px; background: #e05d32; transform: translateX(-50%); }
.nav-external-icon { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-actions { display: flex; align-items: center; justify-self: end; gap: 18px; }
.signup-link { min-width: 102px; min-height: 40px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #211e24; border-radius: 12px; color: #fff; background: #211e24; box-shadow: 0 9px 22px rgba(33, 30, 36, .14); font-size: 13px; font-weight: 680; white-space: nowrap; transition: transform .22s ease, box-shadow .22s ease; }
.signup-link:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(33, 30, 36, .2); }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); }
.menu-button span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: #211e24; transition: transform .2s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu { position: absolute; inset: 60px 16px auto; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,252,247,.98); box-shadow: 0 24px 60px rgba(47,38,59,.14); }
.mobile-menu a { min-height: 44px; padding: 0 12px; display: flex; align-items: center; border-radius: 10px; color: #514a54; font-size: 14px; font-weight: 620; }
.mobile-menu a[data-nav-key]:is(:hover, :focus-visible, :active, [aria-current="page"]) { color: #e05d32; }
.mobile-menu .nav-external-icon { margin-left: 7px; }
.mobile-menu a[aria-current="page"] { background: rgba(224,93,50,.08); }
.mobile-menu-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 8px; margin-top: 12px; }
.mobile-menu-actions a { width: auto; min-height: 44px; justify-content: center; border-radius: 10px; font-size: 15px; font-weight: 720; white-space: nowrap; }
.mobile-menu-actions .mobile-login { border: 1px solid #211e24; color: #211e24; background: rgba(255,255,255,.72); }
.mobile-menu-actions .mobile-signup { color: #fff; background: #211e24; box-shadow: 0 9px 22px rgba(33, 30, 36, .14); }

@media (max-width: 1100px) {
  .nav-wrap { width: min(1240px, calc(100% - 40px)); }
  .nav-links { gap: 26px; }
}

@media (max-width: 960px) {
  .topbar { height: 60px; }
  .nav-wrap { width: calc(100% - 32px); grid-template-columns: 1fr auto; }
  .brand, .brand img { width: 88px; height: 32px; }
  .nav-links, .login-link, .signup-link { display: none; }
  .menu-button { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
