.topbar,
.footer {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", system-ui, sans-serif;
  letter-spacing: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  background: rgba(250, 252, 254, .82);
  backdrop-filter: blur(18px);
}
.nav {
  width: min(1120px, calc(100% - 40px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 850; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .16);
}
.nav-links { display: flex; align-items: center; gap: 26px; color: #64748b; font-size: 14px; font-weight: 700; }
.nav-links a:hover { color: #0f172a; }
.nav-novel-mobile { display: none; }
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(15, 23, 42, .1);
  color: #64748b;
  font-weight: 650;
}
.footer-main { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.beian-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, .06);
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.6;
}
:root[data-theme="night"] .footer { color: #a0afa4; border-color: #38433b; }
:root[data-theme="night"] .beian-row { color: #a0afa4; border-color: #38433b; }
@media (max-width: 720px) {
  .nav, .footer { width: min(1120px, calc(100% - 28px)); }
  .nav-links { display: none; }
  .nav-novel-mobile { display: inline-flex; margin-left: auto; padding: 10px 0; color: #0b7c68; font-size: 14px; font-weight: 700; }
  .footer-main { flex-direction: column; }
}
