/* 内页通用：顶栏 + 主内容区（设置、账单、客服等） */

body.app-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  min-height: 100dvh;
  min-height: 100svh;
}

body.app-body > header,
body.app-body > main {
  width: 100%;
  min-width: 0;
}

body.app-body > main {
  flex: 1;
}

.subpage-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 4px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 12px;
  color: #fff;
  background: linear-gradient(165deg, #0a4ab5 0%, #0052d9 55%, #003a9e 100%);
  box-shadow: 0 2px 12px rgba(0, 58, 158, 0.18);
}

.subpage-topbar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subpage-topbar .back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -6px 0 -6px -6px;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.subpage-topbar .back-button:active {
  background: rgba(255, 255, 255, 0.14);
}

.subpage-topbar > span:last-child {
  width: 44px;
  height: 44px;
}

/* 列表卡片（账单等） */
.subpage-card {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.subpage-card > li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f2f5;
  -webkit-tap-highlight-color: transparent;
}

.subpage-card > li:last-child {
  border-bottom: none;
}

.subpage-card > li:active {
  background: #f8f9fc;
}

.subpage-empty {
  justify-content: center !important;
  padding: 48px 20px !important;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
}

.subpage-empty::before {
  display: block;
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1;
  opacity: 0.35;
  content: "📋";
}

/* 内页顶栏主题色（可选） */
.page-support .subpage-topbar {
  background: linear-gradient(165deg, #2a8fd4 0%, #1a7bc4 100%);
}

.page-salary .subpage-topbar {
  background: linear-gradient(165deg, #5b4fc7 0%, #4a3fb8 100%);
}

.page-poster .subpage-topbar > a:last-child {
  justify-self: end;
}
