.tabbar .ai { position: relative; }
.ai-bubble {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 40px;
  padding-left: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(73, 93, 125, .16);
  color: #495d7d;
  font-size: 12px;
  font-weight: 500;
  z-index: 3;
}
.ai-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}
.ai-bubble b { position: relative; z-index: 1; border: 0; background: transparent; color: #8aa0bd; margin-left: 8px; cursor: pointer; font-size: 14px; line-height: 1; }

.ai-page { background: linear-gradient(#d9fbff 0 160px, #f7fbfc 220px); }
.ai-hero { position: relative; min-height: 118px; padding: 18px 120px 8px 20px; }
.ai-hero h2 { margin: 0; width: 210px; font-size: 14px; font-weight: 400; color: #2b2f39; line-height: 20px; letter-spacing: 1px; }
.ai-mascot {
  position: absolute;
  top: 8px;
  right: 16px;
  width: 92px;
  height: 78px;
  border-radius: 46px 46px 40px 40px;
  background: radial-gradient(circle at 40% 35%, #fff 0 16px, #7ee7c4 17px 34px, #3ecf98 35px);
}
.ai-mascot::before, .ai-mascot::after { content: ""; position: absolute; top: 28px; width: 6px; height: 8px; border-radius: 50%; background: #245c49; }
.ai-mascot::before { left: 30px; }
.ai-mascot::after { right: 30px; }
.ai-suggest { margin: 0 12px 12px; padding: 15px 16px 6px; border-radius: 12px; background: linear-gradient(#ebfeff, #fff 55%); }
.ai-suggest__hd { display: flex; align-items: center; justify-content: space-between; }
.ai-suggest__hd strong { font-size: 17px; color: #02549e; font-weight: 500; }
.ai-suggest__hd button { border: 0; background: transparent; color: #a3a0a0; font-size: 14px; cursor: pointer; }
.ai-q { display: flex; align-items: center; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #f4f2f3; background: transparent; text-align: left; color: #464142; font-size: 16px; line-height: 22px; cursor: pointer; }
.ai-q:last-child { border-bottom: 0; }
.ai-q i { width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; background: #7ad7ff; flex-shrink: 0; }
.ai-msgs { display: flex; flex-direction: column; gap: 12px; padding: 4px 12px 16px; }
.ai-row { display: flex; max-width: 86%; }
.ai-row.is-user { align-self: flex-end; }
.ai-row.is-ai { align-self: flex-start; }
.ai-face { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 14px; }
.ai-row.is-user .ai-face { margin-left: 8px; background: #f3b6d4; }
.ai-row.is-ai .ai-face { margin-right: 8px; background: #3ecf98; }
.ai-card { padding: 12px; border-radius: 8px; font-size: 14px; line-height: 20px; color: #2e2a2b; }
.ai-row.is-user .ai-card { background: #fdecf6; }
.ai-row.is-ai .ai-card { background: #fff; }
.ai-wait { margin-top: 4px; padding-left: 50px; color: #565656; font-size: 12px; }
.ai-fail { color: #464142; }
.ai-link { display: block; margin-top: 6px; border: 0; background: transparent; padding: 0; color: #02549e; font-size: 14px; text-align: left; cursor: pointer; }
.ai-imgs { display: flex; flex-wrap: wrap; gap: 4px; width: 220px; margin-top: 8px; }
.ai-imgs i { width: 52px; height: 88px; border-radius: 8px; background: linear-gradient(160deg, #d7e7f2, #8fb0c8); }
.ai-video { position: relative; width: 227px; height: 128px; margin-top: 8px; border: 0; border-radius: 8px; background: linear-gradient(160deg, #243044, #6d8ea8); cursor: pointer; }
.ai-video b { position: absolute; left: 50%; top: 46px; width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent #fff; transform: translateX(-4px); }
.ai-video span { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(40, 40, 40, .5); color: #fff; font-size: 12px; }
.ai-bar { display: flex; align-items: flex-end; gap: 8px; padding: 14px 12px; background: #fff; }
.ai-bar textarea { flex: 1; min-height: 40px; max-height: 80px; border: 0; border-radius: 21px; background: #effcff; padding: 10px 12px; font-size: 14px; resize: none; color: #2e2a2b; }
.ai-bar textarea::placeholder { color: #696566; }
.ai-send { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #09c382; color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.ai-history { background: #f6f6f6; }
.ai-session { display: block; width: calc(100% - 24px); margin: 12px; padding: 14px; border: 0; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.ai-session b { display: block; font-size: 15px; color: #2e2a2b; }
.ai-session span { display: block; margin-top: 6px; font-size: 12px; color: #a3a0a0; }
.ai-new { margin: 12px; height: 40px; border: 0; border-radius: 20px; background: #09c382; color: #fff; font-size: 15px; cursor: pointer; }
