/* Errand 的示意画面: 一个外卖 App 的搜索结果 (纯 CSS 画, 不是真实 App) + 底部的 Errand 悬浮条 + 浮在旁边的对话卡片 */

.er-mock {
  position: relative;
  padding: 3.5rem 11rem 2rem 0;
}

.phone--errand {
  transform: rotate(-3deg);
}

.er-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
  overflow: hidden;
  padding: 2.6rem 0.85rem 0.85rem;
  border-radius: 31px;
  background: #f4f4f1;
  color: #1d1f1e;
}

/* ── 搜索框 ── */
.er-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.06);
  font-size: 0.66rem;
}

/* 放大镜: 一个圈 + 一根柄 */
.er-search::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: 1.6px solid #8a8f8c;
  border-radius: 50%;
  box-shadow: 4px 4px 0 -3px #8a8f8c;
}

/* ── 商家列表 ── */
.er-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.er-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: #fff;
}

.er-list i {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, #d9c4a5, #a9825a);
}

.er-list span {
  display: grid;
  flex: 1;
  min-width: 0;
}

.er-list b {
  font-size: 0.64rem;
}

.er-list em {
  color: #8a8f8c;
  font-size: 0.52rem;
  font-style: normal;
}

.er-list strong {
  color: #c2410c;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

/* Errand 正在看的那一家: 薄荷绿描边 */
.er-list .is-best {
  box-shadow: 0 0 0 2px var(--er-accent);
}

/* 点按的涟漪, 落在最便宜那一家上 */
.er-tap {
  position: absolute;
  top: 6.2rem;
  right: 1.6rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(18 69 61 / 0.25);
  animation: er-tap 2.4s ease-out infinite;
}

@keyframes er-tap {
  0% { transform: scale(0.4); opacity: 0; }
  15% { opacity: 1; }
  60%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ── 悬浮条 ── */
.er-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding: 0.5rem 0.55rem 0.5rem 0.5rem;
  border-radius: 999px;
  background: var(--er-bar);
  color: var(--er-cream);
  box-shadow: 0 14px 24px -14px rgb(0 0 0 / 0.6);
}

.er-bar img {
  flex: none;
  border-radius: 7px;
}

.er-bar span {
  display: grid;
  flex: 1;
}

.er-bar b {
  font-size: 0.62rem;
}

.er-bar em {
  color: rgb(245 241 232 / 0.65);
  font-size: 0.5rem;
  font-style: normal;
}

/* 暂停键: 两根竖线 */
.er-pause {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1f5f54;
}

.er-pause::before,
.er-pause::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--er-cream);
}

.er-pause::before {
  left: 9px;
}

.er-pause::after {
  right: 9px;
}

/* ── 对话卡片 ── */
.er-chat {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  gap: 0.5rem;
  width: 230px;
  padding: 0.8rem;
  border: 1px solid var(--stage-rule);
  border-radius: 20px;
  background: var(--er-surface);
  box-shadow: 0 30px 50px -24px #000;
  animation: er-float 6s ease-in-out infinite;
}

.er-chat p {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.5;
}

.er-me {
  justify-self: end;
  max-width: 88%;
  padding: 0.45rem 0.65rem;
  border-radius: 14px 14px 4px 14px;
  background: var(--er-raised);
  color: var(--stage-text);
}

.er-reply {
  color: var(--stage-text-2);
}

.er-reply b {
  display: block;
  color: var(--er-accent);
  font-size: 0.54rem;
}

.er-reply mark {
  padding: 0 0.15em;
  border-radius: 4px;
  background: rgb(127 209 188 / 0.18);
  color: var(--er-accent-2);
}

/* 交给你的那一步: 琥珀色, 和 App 里「需要你」的颜色一致 */
.er-hold {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--er-amber);
  font-size: 0.54rem !important;
}

.er-hold i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--er-amber);
}

@keyframes er-float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@media (max-width: 480px) {
  .er-mock {
    padding: 1rem 0 9.5rem;
  }

  .er-chat {
    top: auto;
    right: 50%;
    bottom: 0.5rem;
    transform: translateX(50%);
    animation: none;
  }
}
