/* 布局：页面容器 / 顶栏 / 底部导航 / 吸底操作条 */

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px calc(24px + var(--safe-bottom));
  min-height: 100dvh;
}
.page--with-header { padding-top: calc(var(--header-h) + 12px); }
.page--with-nav { padding-bottom: calc(72px + var(--safe-bottom)); }

/* 站点页脚（ICP 备案号）：首页内容末尾居中；登录页用 margin-top:auto 吸到底部 */
.site-footer {
  margin: 22px 0 4px;
  text-align: center;
}
.site-footer__link {
  display: inline-block;
  padding: 6px 12px;                     /* 手机上可点区域 ≥ 32px */
  color: var(--c-text-3);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .2px;
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: color .15s;
}
.site-footer__link:hover,
.site-footer__link:active { color: var(--c-primary); }

/* 首页：活动较少时也让备案号落在"底部"（贴住底部导航上方），内容多时自然跟在末尾 */
.home { display: flex; flex-direction: column; }
.home > .site-footer { margin-top: auto; }

/* 顶栏 */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.app-header__inner {
  max-width: 520px;
  height: 100%;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-header__title { flex: 1; font-size: 17px; font-weight: 600; }
.app-header__back {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: none; background: none;
  font-size: 20px; color: var(--c-text);
  cursor: pointer;
}
.app-header__action { font-size: 14px; color: var(--c-primary); }

/* 底部导航 */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--c-line);
  padding-bottom: var(--safe-bottom);
}
.bottom-nav__item {
  flex: 1;
  padding: 8px 0 10px;
  border: none; background: none;
  color: var(--c-text-3);
  font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer;
}
.bottom-nav__item.is-active { color: var(--c-primary); }
.bottom-nav__icon { width: 22px; height: 22px; display: block; }

/* 吸底操作条 */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--c-line);
}
.action-bar__inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.action-bar__inner > * { flex: 1; }

/* 通用堆叠 */
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }

/* 分区标题 */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  letter-spacing: .5px;
}
