/* AI 数智员工 · 手机内嵌 UI（竖屏 9:19.5，禁止溢出） */
.device-screen-ui {
  aspect-ratio: 9 / 19.5;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(165deg, #f5f3ff 0%, #eef2ff 42%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.phone-ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 12px 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #334155;
}

.phone-ui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-bottom: 8px;
}
.phone-ui-top .title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
}
.phone-ui-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  color: #2563eb;
}

.phone-ui-hero {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(148, 163, 184, .25);
  box-shadow: 0 4px 16px rgba(99, 102, 241, .08);
}
.phone-ui-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .2);
  background: linear-gradient(135deg, #dbeafe, #e9d5ff);
}
.phone-ui-chips .phone-chip-cta {
  font-size: 9px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.phone-ui-hero h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.phone-ui-hero h3 .tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
}
.phone-ui-hero p {
  margin: 0;
  font-size: 10px;
  color: #64748b;
  line-height: 1.5;
}

.phone-ui-chat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.phone-ui-chat::-webkit-scrollbar { width: 0; }

.phone-bubble {
  max-width: 88%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 10px;
  line-height: 1.5;
  word-break: break-word;
}
.phone-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.phone-bubble.ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.phone-bubble.ai strong { color: #0f172a; font-weight: 800; }
.phone-bubble.ai ul {
  margin: 6px 0 0;
  padding-left: 14px;
  color: #475569;
}
.phone-bubble.ai li { margin-bottom: 3px; }

.phone-ui-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.phone-ui-chips span {
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.phone-ui-suggest {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}
.phone-ui-suggest button {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  cursor: default;
  font-family: inherit;
}
.phone-ui-foot {
  flex-shrink: 0;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #e2e8f0;
  font-size: 9px;
  color: #94a3b8;
  text-align: center;
}

.device-frame {
  overflow: visible;
}
.device-frame .device-screen-ui {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

@media (max-width: 900px) {
  .device-frame { max-width: 300px; }
}

/* 海报样板条（REQ-WEB-52） */
.device-poster-section { padding-top: 48px; }
.poster-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 40px;
}
.poster-card {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
}
.poster-card h3 {
  margin: 16px 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--c-ink, #0f172a);
}
.poster-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #64748b);
}
.poster-mock {
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
  border: 1px solid rgba(148, 163, 184, .2);
  text-align: left;
}
.poster-mock--store {
  background: linear-gradient(165deg, #eff6ff 0%, #f5f3ff 55%, #fff 100%);
}
.poster-mock--event {
  background: linear-gradient(165deg, #fdf4ff 0%, #eef2ff 50%, #fff 100%);
}
.poster-mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}
.poster-mock-head img { border-radius: 8px; }
.poster-mock-body {
  flex: 1;
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.poster-mock-body strong {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.poster-mock-body p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.poster-mock-body picture,
.poster-mock-body img {
  margin-top: auto;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 42%;
}
.poster-mock-foot {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}
