/* 情侣点餐系统 —— 真实 App 外壳：全屏移动端、桌面端居中成手机；覆盖原型的展示版布局 */

html, body { margin: 0; height: 100%; background: #d9d5cf; }
#root { height: 100%; }

/* 外层页面：占满视口，桌面端居中 */
.cp-shell-page {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #d6d2ca;
}

/* App 容器：移动端铺满，桌面端约束成手机宽度并加圆角阴影 */
.cp-shell {
  position: relative;
  width: 100%; height: 100%;
  max-width: 480px;
  overflow: hidden;
  background: #000;
}
.cp-shell > * { height: 100%; }

@media (min-width: 600px) {
  .cp-shell {
    height: min(calc(100dvh - 32px), 940px);
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
  }
}

/* 全屏覆盖页（资料 / 通知） */
.cp-overlay {
  position: absolute; inset: 0; z-index: 300;
  background: var(--bg);
  animation: cp-slidein 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.cp-overlay > .cp-app { height: 100%; }
@keyframes cp-slidein { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* 覆盖页返回按钮 */
.cp-page-back {
  position: absolute; top: 14px; left: 12px; z-index: 30;
  display: flex; align-items: center; gap: 2px;
  padding: 7px 12px 7px 8px; border-radius: 999px;
  background: var(--surface, #fff); color: var(--text);
  border: 1px solid var(--line); cursor: pointer;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 登录页：快速进入 + 错误提示 */
.cp-auth-quick { display: flex; gap: 10px; margin-top: 4px; }
.cp-auth-quick-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface, #fff);
  color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform 0.1s ease;
}
.cp-auth-quick-btn:active { transform: scale(0.97); }
.cp-auth-err { color: #d9483b; font-size: 13px; text-align: center; margin: 2px 0 -2px; }

/* 注册后展示的配对码 */
.cp-auth-paircode {
  margin-top: 16px; padding: 12px 20px; border-radius: 16px;
  background: var(--surface-2, #f3efe8); color: var(--accent);
  font-size: 25px; font-weight: 900; letter-spacing: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
