/* Compact popups expand from the click and contract to their centre. */
#bean-chat-overlay.bean-chat-overlay:not([data-bean-resident="true"]):not(.is-expanded) {
  transform: none;
  transform-origin: var(--bean-chat-origin-x, 50%) var(--bean-chat-origin-y, 50%);
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

#bean-chat-overlay.bean-chat-overlay:not([data-bean-resident="true"]):not(.is-expanded).is-open {
  transition-delay: 0s;
  animation: bean-chat-click-expand 420ms cubic-bezier(.22, .75, .25, 1) both;
}

@keyframes bean-chat-click-expand {
  from { transform: scale(.04); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#bean-chat-overlay.bean-chat-overlay:not([data-bean-resident="true"]):not(.is-expanded).is-center-closing {
  z-index: 2147482999;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: none;
  transform-origin: 50% 50%;
  animation: bean-chat-center-close 320ms cubic-bezier(.4, 0, .6, 1) both;
}

@keyframes bean-chat-center-close {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #bean-chat-overlay.bean-chat-overlay:not([data-bean-resident="true"]):not(.is-expanded).is-open { animation: none; }
  #bean-chat-overlay.bean-chat-overlay:not([data-bean-resident="true"]):not(.is-expanded).is-center-closing { animation: none; opacity: 0; visibility: hidden; }

}

/* 图示同款对话布局：左侧完整智体，右侧对话线程，底部固定输入。四流光由原 canvas 负责。 */
.bean-chat-overlay {
  background-color: #000;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .08)),
    var(--bean-chat-dynamic-background, url("/assets/bean-chat/0902-background.webp"));
  background-position: center;
  /* Compact chat keeps the complete image; expanded chat fills its canvas. */
  background-size: 100% 100%, contain;
  background-repeat: no-repeat;
}

.bean-chat-overlay.is-expanded {
  background-size: 100% 100%, var(--bean-chat-background-fit, cover);
}

.bean-chat-overlay[data-bean-background-category="星球"],
.bean-chat-overlay[data-bean-background-category="万物"] {
  --bean-chat-background-fit: contain;
}

.bean-chat-overlay::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, .04), transparent 31%, transparent 82%, rgba(0, 0, 0, .08));
}

.bean-chat-panel {
  grid-template-rows: minmax(0, 1fr) 34px;
  background: transparent;
}

.bean-chat-header { display: none; }

.bean-chat-toolbar {
  position: absolute;
  z-index: 14;
  left: 7px;
  right: 7px;
  top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.bean-chat-toolbar-group {
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
}

.bean-chat-overlay:not(.is-mobile):not(.is-expanded) .bean-chat-toolbar {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.bean-chat-overlay.is-panel-dragging .bean-chat-toolbar {
  cursor: grabbing;
}

.bean-chat-toolbar .bean-chat-tool {
  position: relative;
  inset: auto;
  width: 29px;
  height: 29px;
  margin: 0;
  padding: 5px;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(104, 239, 255, .56);
  border-radius: 7px;
  color: #eefcff;
  background: rgba(0, 7, 12, .84);
  box-shadow: 0 0 8px rgba(89, 229, 255, .17), inset 0 0 5px rgba(181, 108, 255, .1);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bean-chat-toolbar .bean-chat-tool:hover,
.bean-chat-toolbar .bean-chat-tool:focus-visible {
  color: #fff;
  border-color: rgba(255, 90, 191, .82);
  outline: 0;
  background: rgba(16, 8, 25, .94);
  box-shadow: 0 0 12px rgba(104, 239, 255, .28), 0 0 8px rgba(255, 90, 191, .2);
}

.bean-chat-toolbar .bean-chat-tool:active { transform: scale(.92); }
.bean-chat-toolbar .bean-chat-close { padding: 0 0 2px; font-size: 23px; }
.bean-chat-mute-icon { font-size: 15px; line-height: 1; filter: saturate(.85); }
.bean-chat-tool-icon,
.bean-chat-expand-icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Both the homepage and Vue application center import this toolbar sheet. */
.bean-chat-expand-inward { display: none; }
.bean-chat-overlay.is-expanded .bean-chat-expand-outward { display: none; }
.bean-chat-overlay.is-expanded .bean-chat-expand-inward { display: block; }

.bean-chat-overlay.is-background-disabled {
  background-color: #000 !important;
  background-image: linear-gradient(180deg, rgba(2, 7, 12, .98), #000) !important;
}

.bean-chat-log {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.bean-chat-agent-layout {
  position: relative;
  height: 100%;
  min-height: 0;
  display: block;
}

.bean-chat-agent-stage {
  position: absolute;
  z-index: 1;
  left: -9px;
  top: 97px;
  bottom: 3px;
  width: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

.bean-chat-agent-stage::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 17px;
  bottom: 3px;
  height: 9px;
  border-radius: 50%;
  background: rgba(64, 220, 255, .16);
  filter: blur(5px);
}

.bean-chat-agent-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 4px rgba(88, 225, 255, .25));
  transform: none;
}

.bean-chat-agent-card { display: none; }

.bean-chat-agent-main {
  position: absolute;
  z-index: 2;
  left: 118px;
  right: 14px;
  top: 39px;
  bottom: 4px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 235, 255, .38) transparent;
}

.bean-chat-agent-main::before {
  content: none;
}

/* 移动端与应用中心需要从可视区顶部开始阅读，不保留桌面官网的顶部弹性占位。 */
.bean-chat-overlay.is-mobile .bean-chat-agent-main::before,
.bean-chat-overlay.is-app-center .bean-chat-agent-main::before {
  content: none;
}

.bean-chat-agent-main::-webkit-scrollbar { width: 4px; }
.bean-chat-agent-main::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(100, 235, 255, .38); }

.bean-chat-intro-message,
.bean-chat-message-card,
.bean-chat-match {
  border-radius: 10px;
  background: rgba(0, 0, 0, .7);
  box-shadow: inset 0 0 0 1px rgba(82, 224, 247, .24);
}

.bean-chat-intro-message {
  min-height: 92px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
}
.bean-chat-intro-message p,
.bean-chat-message-card p {
  margin: 0;
  color: #f4f6f8;
  font-size: 8.9px;
  font-weight: 620;
  line-height: 1.45;
  text-wrap: pretty;
}

.bean-chat-answer-intro-welcome {
  display: block;
  margin-top: 6px;
  color: #55efff;
  font-weight: 800;
}

.bean-chat-conversion {
  position: relative;
  isolation: isolate;
  min-height: 88px;
  margin: 0;
  padding: 6px 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: stretch;
  gap: 6px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, .7);
}

.bean-chat-conversion > .dual-flow-canvas {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bean-chat-conversion-links {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.bean-chat-conversion-link {
  position: relative;
  min-width: 0;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.bean-chat-conversion-link + .bean-chat-conversion-link {
  border-top: 1px solid rgba(115, 231, 247, .14);
}

.bean-chat-conversion-link span,
.bean-chat-conversion-link strong,
.bean-chat-conversion-link small {
  min-width: 0;
  display: block;
}

.bean-chat-conversion-link > span:first-child {
  flex: 0 1 auto;
}

.bean-chat-conversion-link strong {
  overflow: hidden;
  color: #fff;
  font-size: 9.3px;
  line-height: 1.25;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bean-chat-conversion-link small {
  margin-top: 2px;
  color: #9eb4c0;
  font-size: 7.2px;
  line-height: 1.2;
}

.bean-chat-link-hand {
  position: relative;
  right: auto;
  top: auto;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: inherit;
  font-style: normal;
  text-decoration: none;
  transform: rotate(-34deg);
  transform-origin: 50% 50%;
}

.bean-chat-link-hand span {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 19px;
  line-height: 1;
  transform: translateY(3px) scale(1);
  transform-origin: 50% 12%;
  animation: bean-chat-link-tap 1.55s cubic-bezier(.22, 1, .36, 1) infinite;
}

.bean-chat-link-hand span img,
.bean-chat-qr-hand span img {
  display: block;
  width: 1em;
  height: 1em;
  object-fit: contain;
}

.bean-chat-link-hand u {
  position: absolute;
  z-index: 1;
  left: 49%;
  top: 4px;
  width: 9px;
  height: 9px;
  border: 1px solid #6cf3ff;
  border-radius: 50%;
  text-decoration: none;
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0;
  animation: bean-chat-link-ripple 1.55s ease-out infinite;
}

.bean-chat-conversion-link.is-center .bean-chat-link-hand span,
.bean-chat-conversion-link.is-center .bean-chat-link-hand u { animation-delay: .72s; }
.bean-chat-conversion-link.is-center .bean-chat-link-hand u { border-color: #ffd36e; }

.bean-chat-conversion-link:hover,
.bean-chat-conversion-link:focus-visible {
  background: rgba(75, 229, 255, .08);
  filter: brightness(1.16);
  transform: translateX(1px);
}

.bean-chat-conversion-link:focus-visible {
  outline: 1px solid #68efff;
  outline-offset: -1px;
}

.bean-chat-conversion-link:active {
  transform: translateX(2px) scale(.99);
}

.bean-chat-conversion-qr {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding-left: 6px;
  border-left: 1px solid rgba(195, 104, 255, .28);
}

.bean-chat-conversion-qr > img {
  width: 52px;
  height: 52px;
  padding: 2px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}

.bean-chat-conversion-qr b { color: #fff; font-size: 7.5px; line-height: 1; }
.bean-chat-conversion-qr small { color: #9eeef8; font-size: 6.8px; line-height: 1; }

.bean-chat-qr-hand {
  position: absolute;
  z-index: 6;
  right: -1px;
  bottom: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: rotate(-34deg);
  transform-origin: 50% 50%;
}

.bean-chat-qr-hand span {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 16px;
  line-height: 1;
  transform: translateY(2px) scale(1);
  transform-origin: 50% 12%;
  animation: bean-chat-link-tap 1.55s cubic-bezier(.22, 1, .36, 1) .36s infinite;
}

.bean-chat-qr-hand u {
  position: absolute;
  z-index: 1;
  left: 49%;
  top: 3px;
  width: 8px;
  height: 8px;
  border: 1px solid #6cf3ff;
  border-radius: 50%;
  text-decoration: none;
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0;
  animation: bean-chat-link-ripple 1.55s ease-out .36s infinite;
}

.bean-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 1px 0 0;
}

.bean-chat-row.is-user { justify-content: flex-end; }

.bean-chat-history-example > .bean-chat-row.is-user {
  margin-top: 3px;
}

.bean-chat-row-avatar { display: none; }

.bean-chat-bubble {
  max-width: 82%;
  padding: 6px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, .7);
  font-size: 8.9px;
  font-weight: 690;
  line-height: 1.45;
  box-shadow: inset 0 0 0 1px rgba(94, 229, 255, .22);
}

.bean-chat-row.is-assistant .bean-chat-bubble {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.bean-chat-row.is-user .bean-chat-bubble {
  border-radius: 8px;
  background: rgba(0, 0, 0, .7);
  box-shadow: inset 0 0 0 1px rgba(69, 222, 255, .78);
}

.bean-chat-structured-response {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bean-chat-history-example {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 0;
}

.bean-chat-message-card { padding: 7px 8px; }

.bean-chat-match {
  padding: 2px 4px 3px;
  border-radius: 0;
  box-shadow: none;
}
.bean-chat-match-intro {
  margin: 0 0 5px;
  color: #e8eef1;
  font-size: 8.7px;
  line-height: 1.4;
}
.bean-chat-module-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  align-items: start;
  gap: 4px;
}

.bean-chat-recommendation-results.bean-chat-module-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
}

.bean-chat-module {
  min-width: 0;
  padding: 0;
  border: 0;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: inherit;
  text-decoration: none;
  background: rgba(0, 0, 0, .7);
  box-shadow: none;
  transition: filter 160ms ease;
}

.bean-chat-module:hover,
.bean-chat-module:focus-visible { filter: brightness(1.18); }
.bean-chat-module:disabled { cursor: default; filter: none; }
.bean-chat-module:disabled .bean-chat-module-visual,
.bean-chat-module:disabled > b { opacity: .55; }
.bean-chat-module:focus-visible { outline: 2px solid #69eaff; outline-offset: 1px; }
.bean-chat-module-visual {
  position: relative;
  isolation: isolate;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, .7);
  box-shadow: none;
}
.bean-chat-module-visual > .dual-flow-canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bean-chat-module-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bean-chat-module > b {
  display: block;
  overflow: hidden;
  max-width: 100%;
  color: #f7fbff;
  font-size: 8.7px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes bean-chat-link-tap {
  0%, 34%, 100% { transform: translateY(3px) scale(1); }
  46% { transform: translateY(-1px) scale(.93); }
  58% { transform: translateY(2px) scale(1.03); }
}

@keyframes bean-chat-link-ripple {
  0%, 40%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  48% { opacity: .9; }
  72% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); }
}

.bean-chat-actions {
  padding: 0 8px 4px;
  border-top: 0;
  background: transparent;
}

.bean-chat-form {
  height: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 5px;
}

.bean-chat-input {
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: rgba(0, 0, 0, .7);
  box-shadow: inset 0 0 0 1px rgba(78, 225, 255, .72);
  font-size: 9.2px;
}

.bean-chat-input::placeholder { color: #aeb9bf; opacity: 1; }

.bean-chat-send {
  border-radius: 9px;
  color: #041117;
  background: #77edff;
  font-size: 9.8px;
  font-weight: 780;
}

.bean-chat-product-card {
  position: absolute;
  isolation: isolate;
  z-index: 20;
  right: 14px;
  bottom: 38px;
  width: min(62%, 292px);
  height: min(64%, 292px);
  box-sizing: border-box;
  padding: 3px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, .7);
  box-shadow: 0 9px 18px rgba(0, 0, 0, .84), 0 0 11px rgba(91, 229, 255, .13);
  animation: bean-chat-product-arrive 360ms cubic-bezier(.16, 1, .3, 1) both;
}

.bean-chat-product-card[hidden] { display: none; }

.bean-chat-product-card.is-viewport-dragged {
  position: fixed;
  z-index: 3010;
}

.bean-chat-product-card.is-dragged {
  animation: none;
}

.bean-chat-product-card.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.bean-chat-product-card > .bean-chat-four-flow {
  z-index: 10;
}

.bean-chat-product-frame {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 8px 10px 9px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(0, 0, 0, .7);
}

.bean-chat-product-header {
  min-height: 27px;
  padding: 0 30px 5px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(103, 229, 255, .2);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.bean-chat-product-card.is-dragging .bean-chat-product-header { cursor: grabbing; }

.bean-chat-product-orb {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  filter: saturate(1.08) brightness(1.08);
  -webkit-user-drag: none;
}

.bean-chat-product-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bean-chat-product-title::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 999px;
  background: #67ecff;
  box-shadow: 0 0 5px rgba(100, 237, 255, .72);
}

.bean-chat-product-subtitle {
  color: #9fb4c0;
  font-size: 6.5px;
  line-height: 1;
  white-space: nowrap;
}

.bean-chat-product-close {
  position: absolute;
  z-index: 12;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, .7);
  box-shadow: inset 0 0 0 1px rgba(105, 179, 203, .38), 0 5px 10px rgba(0, 0, 0, .6);
  cursor: pointer;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
}

.bean-chat-product-close:hover,
.bean-chat-product-close:focus-visible { filter: brightness(1.2); outline: 1px solid #67ecff; }

.bean-chat-product-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: max-content max-content max-content;
  align-content: start;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 235, 255, .35) transparent;
}

.bean-chat-product-generation { padding-top: 6px; }
.bean-chat-product-generation h4 {
  margin: 0 0 2px;
  color: #eefcff;
  font-size: 7.8px;
  line-height: 1.25;
}
.bean-chat-product-generation p {
  margin: 0;
  color: #92a9b5;
  font-size: 6.7px;
  line-height: 1.3;
}

.bean-chat-product-download { min-width: 0; padding-top: 1px; }
.bean-chat-product-access {
  position: relative;
  isolation: isolate;
  min-height: 67px;
  box-sizing: border-box;
  padding: 5px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 5px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(0, 0, 0, .7);
}
.bean-chat-product-access > .dual-flow-canvas {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bean-chat-product-access-links {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
.bean-chat-product-link {
  min-width: 0;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border-radius: 5px;
  color: #e8fbff;
  text-decoration: none;
}
.bean-chat-product-link + .bean-chat-product-link { border-top: 1px solid rgba(100, 237, 255, .16); }
.bean-chat-product-link:hover,
.bean-chat-product-link:focus-visible { color: #fff; background: rgba(77, 223, 255, .13); outline: 0; }
.bean-chat-product-link > span,
.bean-chat-product-link strong,
.bean-chat-product-link small { min-width: 0; display: block; }
.bean-chat-product-link strong { overflow: hidden; font-size: 6.9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.bean-chat-product-link small { margin-top: 1px; color: #9eb4c0; font-size: 5.8px; line-height: 1.15; }
.bean-chat-product-link .bean-chat-link-hand { width: 19px; height: 19px; flex: 0 0 19px; }
.bean-chat-product-link .bean-chat-link-hand span { font-size: 14px; }

.bean-chat-product-qr {
  position: relative;
  z-index: 2;
  padding-left: 5px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  border-left: 1px solid rgba(195, 104, 255, .34);
}
.bean-chat-product-qr > img {
  width: 38px;
  height: 38px;
  padding: 2px;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
}
.bean-chat-product-qr b { color: #fff; font-size: 5.8px; line-height: 1; }
.bean-chat-product-qr small { color: #9deef8; font-size: 5.4px; line-height: 1; }
.bean-chat-product-qr .bean-chat-qr-hand { right: -2px; bottom: -1px; width: 16px; height: 16px; }
.bean-chat-product-qr .bean-chat-qr-hand span { font-size: 12px; }

.bean-chat-product-methods {
  min-width: 0;
  padding-top: 1px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bean-chat-product-method {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 5px;
  align-items: start;
}
.bean-chat-product-method-index {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #001014;
  background: #73efff;
  font-size: 6.5px;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 0 5px rgba(81, 231, 255, .42);
}
.bean-chat-product-method:nth-child(2) .bean-chat-product-method-index {
  color: #100319;
  background: #c784ff;
  box-shadow: 0 0 5px rgba(191, 107, 255, .42);
}
.bean-chat-product-method h4 { margin: 0; color: #fff; font-size: 7px; line-height: 1.25; }
.bean-chat-product-method p { margin: 0; color: #c7d2d8; font-size: 6.1px; line-height: 1.3; text-wrap: pretty; }
.bean-chat-product-note {
  margin: 0 0 0 24px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 221, 104, .2);
  color: #ffe89a;
  font-size: 5.9px;
  font-weight: 720;
  line-height: 1.25;
}

@keyframes bean-chat-product-arrive {
  from { opacity: .08; transform: scale(.1); filter: blur(4px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.bean-chat-overlay.is-mobile .bean-chat-panel { grid-template-rows: minmax(0, 1fr) 33px; }
.bean-chat-overlay.is-mobile .bean-chat-log { min-height: 0; padding: 0; overflow: hidden; }
.bean-chat-overlay.is-mobile .bean-chat-agent-layout {
  position: relative;
  height: 100%;
  display: block;
}
.bean-chat-overlay.is-mobile .bean-chat-agent-stage {
  position: absolute;
  left: -8px;
  top: 20%;
  bottom: 3px;
  width: 29%;
  display: flex;
  padding: 0;
}
.bean-chat-overlay.is-mobile .bean-chat-agent-art { width: 100%; max-width: none; height: 100%; }
.bean-chat-overlay.is-mobile .bean-chat-agent-main {
  position: absolute;
  left: 24%;
  right: 5px;
  top: 38px;
  bottom: 4px;
  padding: 0;
  gap: 5px;
}
.bean-chat-overlay.is-mobile .bean-chat-intro-message { padding: 6px 7px; }
.bean-chat-overlay.is-mobile .bean-chat-intro-message p,
.bean-chat-overlay.is-mobile .bean-chat-message-card p { font-size: 7.8px; line-height: 1.4; }
.bean-chat-overlay.is-mobile .bean-chat-conversion {
  min-height: 80px;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 5px;
  padding: 5px;
}
.bean-chat-overlay.is-mobile .bean-chat-conversion-link { padding: 4px 5px; gap: 11px; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-link strong { font-size: 8px; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-link small { font-size: 6.5px; }
.bean-chat-overlay.is-mobile .bean-chat-link-hand { right: auto; width: 22px; height: 22px; display: grid; }
.bean-chat-overlay.is-mobile .bean-chat-link-hand span { font-size: 16px; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-qr { padding-left: 6px; }
.bean-chat-overlay.is-mobile .bean-chat-conversion-qr > img { width: 46px; height: 46px; }
.bean-chat-overlay.is-mobile .bean-chat-qr-hand { right: -2px; bottom: -1px; width: 18px; height: 18px; }
.bean-chat-overlay.is-mobile .bean-chat-qr-hand span { font-size: 14px; }
.bean-chat-overlay.is-mobile .bean-chat-message-card { padding: 6px; }
.bean-chat-overlay.is-mobile .bean-chat-match { padding: 2px 3px; }
.bean-chat-overlay.is-mobile .bean-chat-match-intro { font-size: 7.7px; }
.bean-chat-overlay.is-mobile .bean-chat-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.bean-chat-overlay.is-mobile .bean-chat-module { min-height: 0; padding: 0; gap: 3px; }
.bean-chat-overlay.is-mobile .bean-chat-module-visual { width: 40px; height: 40px; border-radius: 5px; }
.bean-chat-overlay.is-mobile .bean-chat-module-visual img { width: 100%; height: 100%; }
.bean-chat-overlay.is-mobile .bean-chat-module > b { font-size: 7.7px; }
.bean-chat-overlay.is-mobile .bean-chat-actions { padding: 0 6px 3px; }
.bean-chat-overlay.is-mobile .bean-chat-form { height: 30px; grid-template-columns: minmax(0, 1fr) 50px; gap: 4px; }
.bean-chat-overlay.is-mobile .bean-chat-input { height: 30px; font-size: 8px; }
.bean-chat-overlay.is-mobile .bean-chat-send { font-size: 8.8px; }
.bean-chat-overlay.is-mobile .bean-chat-product-card {
  left: 24%;
  right: 5px;
  top: auto;
  bottom: 36px;
  width: auto;
  height: min(64%, 292px);
}

/* 真实手机页沿用参考移动端设备画布内的 60% 对话框占比。 */
body[data-bean-mobile="true"] .bean-chat-overlay.is-mobile { height: 60%; }

.bean-chat-overlay.is-expanded {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100vw !important;
  height: 100svh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  transform-origin: 50% 50% !important;
}

body[data-bean-mobile="true"] .bean-chat-overlay.is-mobile.is-expanded { height: 100svh !important; }

/* 官网桌面放大态：按宽屏参考图使用约 25/75 的智体与答案分区。 */
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-panel {
  grid-template-rows: minmax(0, 1fr) 70px;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-expand {
  top: auto;
  right: auto;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
}

.bean-chat-overlay.is-expanded .bean-chat-toolbar {
  left: 14px;
  right: 14px;
  top: 12px;
}

.bean-chat-overlay.is-expanded .bean-chat-tool {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
}

.bean-chat-overlay.is-expanded .bean-chat-toolbar .bean-chat-close {
  padding: 0 0 3px;
  font-size: 28px;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-agent-stage {
  left: 0;
  top: 20px;
  bottom: 0;
  width: 25vw;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-agent-stage::after {
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 14px;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-agent-main {
  left: 25vw;
  right: 24px;
  top: 58px;
  bottom: 8px;
  box-sizing: border-box;
  padding: 12px 14px;
  gap: 12px;
  border-radius: 22px;
  background: rgba(0, 0, 0, .94);
  box-shadow: inset 0 0 0 1px rgba(104, 239, 255, .12);
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-intro-message {
  min-height: 0;
  padding: 14px 72px 14px 18px;
  border-radius: 18px;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-intro-message p,
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-message-card p {
  font-size: clamp(15px, 1.15vw, 22px);
  line-height: 1.5;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-conversion {
  min-height: clamp(132px, 15svh, 170px);
  padding: 12px 16px;
  grid-template-columns: minmax(0, 1fr) clamp(116px, 8vw, 148px);
  gap: 10px;
  border-radius: 20px;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-conversion-links { gap: 5px; }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-conversion-link { padding: 5px 8px; gap: 12px; }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-conversion-link strong { font-size: clamp(13px, .9vw, 17px); }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-conversion-link small { font-size: clamp(10px, .65vw, 12px); }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-link-hand { width: 34px; height: 34px; }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-link-hand span { font-size: 25px; }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-conversion-qr { padding-left: 8px; }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-conversion-qr > img { width: clamp(82px, 5vw, 96px); height: clamp(82px, 5vw, 96px); border-radius: 11px; }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-conversion-qr b { font-size: clamp(11px, .75vw, 14px); }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-conversion-qr small { font-size: clamp(10px, .65vw, 12px); }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-qr-hand { width: 28px; height: 28px; }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-qr-hand span { font-size: 22px; }

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-bubble {
  max-width: min(1040px, 92%);
  padding: 10px 12px;
  font-size: clamp(14px, 1vw, 18px);
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-match-intro { font-size: clamp(14px, 1vw, 18px); }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-recommendation-results.bean-chat-module-grid {
  width: min(1120px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-module { gap: 6px; }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-module-visual { width: 86px; height: 86px; border-radius: 10px; }
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-module > b { font-size: 14px; }

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-actions {
  padding: 6px 20px 10px 28px;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-form {
  height: 54px;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-input,
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-send {
  height: 54px;
  border-radius: 17px;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-input {
  padding: 0 16px;
  font-size: 16px;
}

.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-send { font-size: 18px; }

@media (max-width: 390px) {
  .bean-chat-overlay.is-mobile .bean-chat-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .bean-chat-overlay.is-mobile .bean-chat-module-visual { width: 38px; height: 38px; }
  .bean-chat-overlay.is-mobile .bean-chat-module-visual img { width: 100%; height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bean-chat-product-card { animation: none; }
  .bean-chat-module,
  .bean-chat-conversion-link { transition: none; }
  .bean-chat-link-hand span,
  .bean-chat-link-hand u,
  .bean-chat-qr-hand span,
  .bean-chat-qr-hand u { animation: none; }
}

/* Reserve the character area while preparing the next image and its final dimensions. */
.bean-chat-agent-stage[aria-busy="true"]::before {
  content: "智体加载中…";
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  color: rgba(207, 243, 255, .8);
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}
.bean-chat-agent-stage[aria-busy="true"]::after { opacity: 0; }

/* 30% transparent black; preserve text opacity and avoid nested black layers. */
.bean-chat-overlay .bean-chat-bubble .bean-chat-match,
.bean-chat-overlay .bean-chat-bubble .bean-chat-module,
.bean-chat-overlay .bean-chat-bubble .bean-chat-module-visual,
.bean-chat-overlay.is-expanded:not(.is-mobile) .bean-chat-agent-main {
  background: transparent;
}

/* Shared by homepage, sidebar iframe and Vue download entry; beat legacy black overrides. */
#bean-chat-overlay.bean-chat-overlay :is(.bean-chat-intro-message, .bean-chat-message-card,
.bean-chat-bubble, .bean-chat-conversion, .bean-chat-conversion-link, .bean-chat-input,
.bean-chat-result, .bean-platform-channel, .bean-platform-channels) {
  background-color: rgba(0, 0, 0, .7) !important;
}
#bean-chat-overlay.bean-chat-overlay .bean-platform-closing {
  background-color: rgba(0, 0, 0, .7);
}
#bean-chat-overlay.bean-chat-overlay :is(.bean-platform-intro, .bean-platform-channels) > .bean-platform-closing,
#bean-chat-overlay.bean-chat-overlay .bean-chat-product-card > .bean-chat-product-frame {
  background: transparent;
}
