* { box-sizing: border-box; }

.topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  background: #183042;
  color: rgba(255,255,255,0.76);
  font-size: 13px;
}

.topbar-inner,
.topbar-left,
.topbar-right,
.nav-inner,
.nav-links,
.nav-actions,
.site-footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-inner,
.nav-inner,
.site-footer-inner {
  justify-content: space-between;
}

.topbar-left,
.topbar-right,
.nav-links {
  flex-wrap: wrap;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  background: rgba(250,252,254,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #E4EDF5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 600;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  color: #6E8495;
  font-size: 14px;
  flex: 1;
  justify-content: center;
}

.nav-links a.active,
.nav-links .active {
  color: #5B9EA6;
  font-weight: 700;
}

.nav-actions {
  gap: 12px;
}

.city-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #DCE8EF;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #395465;
  font-size: 13px;
}

.login-link {
  color: #5B9EA6;
  font-size: 14px;
  font-weight: 600;
}

.user-menu {
  position: relative;
}

.user-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #DCE8EF;
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  background: #fff;
  cursor: pointer;
  appearance: none;
  color: #30495B;
  font: inherit;
  outline: none;
}

.user-summary:focus-visible {
  border-color: #5B9EA6;
  box-shadow: 0 0 0 3px rgba(91,158,166,0.16);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #5B9EA6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 180px;
  background: #fff;
  border: 1px solid #E4EDF5;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(18,48,66,0.12);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.user-menu:focus-within .menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-panel a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: #30495B;
}

.menu-panel a:hover {
  background: #F7FBFD;
  color: #183042;
}

.hero-shell h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 34px;
  margin-bottom: 10px;
}

.hero-shell p,
.breadcrumb {
  color: #7A8FA0;
}

.hero-shell p {
  font-size: 15px;
}

.breadcrumb {
  font-size: 13px;
  margin-bottom: 14px;
}

.site-footer {
  padding: 32px 0;
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  background: #183042;
}

.site-footer-inner {
  gap: 24px;
}

.site-footer-copy {
  display: grid;
  gap: 10px;
  flex: 1;
}

.site-footer-brand {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.site-footer-summary,
.site-footer-license,
.site-footer-contact,
.site-footer-copyright {
  line-height: 1.8;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.site-footer-links a,
.site-footer-beian a {
  color: rgba(255,255,255,0.78);
}

.site-footer-beian {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer-contact,
.site-footer-license,
.site-footer-summary,
.site-footer-copyright {
  line-height: 1.8;
}

@media (max-width: 768px) {
  .topbar {
    padding: 10px 0;
  }

  .topbar-inner,
  .nav-inner,
  .nav-links,
  .nav-actions,
  .site-footer-inner {
    flex-wrap: wrap;
  }

  .site-footer-links {
    justify-content: flex-start;
  }
}
