/* ============================================================
   基础重置与全局布局
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--font-stack);
  color: var(--ink-900);
  background: #DCE7E1;
  -webkit-font-smoothing: antialiased;
  font-size: var(--fs-md);
  line-height: 1.4;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-stack); border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* 页面外壳：移动端满宽，桌面最大宽度居中、两侧留白 */
.app-shell {
  width: 100%;
  max-width: var(--container-w);
  min-width: 0;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page-bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
}

/* 页面主内容区（避让底部固定栏 / TabBar） */
.page {
  width: 100%;
  min-width: 0;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  min-height: 100vh;
}
.page--no-tab { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

/* 通用 flex 辅助 */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

/* 文本辅助 */
.muted { color: var(--ink-500); }
.price { color: var(--orange-600); font-weight: 700; }
