/* ===== 基础样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  background: var(--page);
  color: var(--ink);
  overflow: hidden;
}

/* ===== App 容器 ===== */
.app-container {
  height: 100%;
  padding-bottom: 90px;
}

/* ===== 页面 ===== */
.page {
  display: none;
  height: 100%;
  flex-direction: column;
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  filter: blur(2px);
  transition:
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.2, 0.85, 0.2, 1),
    filter 0.32s ease;
}

.page.active {
  display: flex;
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

/* ===== 页面头部 - 毛玻璃 ===== */
.page-header-bar {
  height: var(--header-height);
  padding: 0 16px;
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 10;

  /* 毛玻璃效果 */
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border-bottom: 1px solid rgba(219, 226, 236, 0.8);
}

.page-header-bar h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* ===== 页面内容 ===== */
.page-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
}

/* ===== 入场动画 ===== */
@keyframes liftIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes itemIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
