/* 连贯原型（app.html）补充样式：屏切换 + 演示工具条增强 */

/* .phone 变为屏容器 */
.phone { position: relative; }
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
}
.screen.active { display: flex; animation: screen-in .26s ease; }
@keyframes screen-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
.screen.back.active { animation: screen-back .26s ease; }
@keyframes screen-back {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

/* demo 工具条增强 */
.demo-bar { align-items: center; }
.demo-bar .sep { width: 1px; height: 20px; background: #4a4d57; margin: 0 2px; }
.demo-bar button.primary { background: var(--success); border-color: var(--success); color: #fff; }

/* 模式提示角标（手机框内顶部，标注当前演示模式） */
.mode-chip {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(29, 33, 41, .82);
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.mode-chip.show { opacity: 1; }

/* TabBar（连贯原型内复用） */
.tabbar {
  flex: none;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}
.tabbar .tab {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  color: var(--text-3);
  font-size: 11px;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tabbar .tab span { font-size: 20px; line-height: 1.2; }
.tabbar .tab.on { color: var(--brand); }
