.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) var(--space-page)
    calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
}

.page {
  display: grid;
  gap: 16px;
}

.page-header {
  display: grid;
  gap: 8px;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: none;
}

.page-kicker--muted {
  color: var(--muted);
  letter-spacing: 1px;
}

.page-title {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.page-subtitle {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* —— 底部导航 —— */
.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--card-main-border);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bottom-nav[hidden] {
  display: none;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-item svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item::before {
  position: absolute;
  top: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.nav-item.is-active {
  color: var(--gold);
  font-weight: 600;
}

.nav-item.is-active::before {
  background: var(--gold);
  box-shadow: var(--shadow-nav-active);
}

@media (min-width: 540px) {
  .app-shell {
    padding-top: 28px;
  }
}
