* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: #e8e8e8;
  color: #111;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 3px solid #111;
  box-shadow: 0 4px 0 #bbb;
}

.topbar-brand {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #111;
  text-decoration: none;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.topbar-nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.topbar-nav a:hover,
.topbar-nav a.is-active {
  color: #111;
  border-bottom-color: #111;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.lang-switch-label {
  font-size: 0.75rem;
  color: #666;
  margin-right: 0.15rem;
}

.lang-btn {
  border: 2px solid #999;
  background: #f5f5f5;
  color: #333;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.lang-btn:hover {
  background: #eee;
  border-color: #111;
}

.lang-btn.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}

.page-body--fermata {
  justify-content: flex-start;
  padding-top: 2.5rem;
}
