/* 妹记 · 深色预览公共样式 */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 画布高度：默认 844，页面可以在 :root 上覆盖 --screen-h 让画布变长
   （宣传页的小世界三个页面用 880，多出一截给内容） */
html, body {
  width: 390px;
  height: var(--screen-h, 844px);
  overflow: hidden;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--background);
  color: var(--text);
}

.screen {
  position: relative;
  width: 390px;
  height: var(--screen-h, 844px);
  background: var(--background);
  overflow: hidden;
}

/* ===== 状态栏 ===== */
.statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 600;
  z-index: 40;
}
.statusbar.light { color: #FFFFFF; }
.statusbar.dark { color: var(--text); }
.statusbar .right { display: flex; align-items: center; gap: 6px; }
.statusbar svg { display: block; }

/* ===== 弹窗遮罩 ===== */
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 10;
}

/* ===== 通用弹窗 ===== */
.dialog {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius-dialog);
  overflow: hidden;
  background: var(--surface);
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

/* ===== 顶部 AppBar ===== */
.appbar {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 0 16px;
}
.appbar-title {
  font-size: var(--fs-title-large);
  line-height: 28px;
  font-weight: 400;
}
.appbar-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}
.appbar-close:hover { background: rgba(236, 224, 226, .10); }

/* ===== 滚动条隐藏 ===== */
.hide-scroll { scrollbar-width: none; }
.hide-scroll::-webkit-scrollbar { display: none; }
