:root {
  --primary: #1764f6;
  --primary-dark: #114ccd;
  --primary-soft: #eef4ff;
  --bubble-me: #1764f6;
  --line: #e8edf5;
  --text: #182b49;
  --text-2: #687a94;
  --text-3: #8998ae;
}
html, body { height: 100%; overflow: hidden; background: #eff4fc; }
body { background: radial-gradient(ellipse at 12% 0%, #e1edff 0, transparent 55%), #eff4fc; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #96b9ff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-shell { width: min(1160px, calc(100% - 80px)); height: min(850px, calc(100dvh - 64px)); margin: 32px auto; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; }
.brand-rail { display: flex; flex-direction: column; min-height: 0; padding: 26px 15px 18px 0; }
.rail-logo { width: 174px; height: auto; object-fit: contain; }
.rail-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 16px 0; }
.rail-eyebrow { color: #6f85a8; font-size: 10px; letter-spacing: 1.4px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rail-eyebrow span { width: 21px; height: 2px; background: var(--primary); }
.brand-rail h1 { margin: 21px 0 17px; font-size: 39px; font-weight: 700; letter-spacing: -1.6px; line-height: 1.45; color: #14325c; }
.yellow-period { color: #efbc26; }
.rail-content > p { margin: 0; font-size: 15px; line-height: 1.9; color: #7183a1; }
.rail-illustration { position: relative; height: 210px; margin: 16px 0 25px; }
.orbit { position: absolute; border: 1px solid #d7e5fc; border-radius: 50%; width: 230px; height: 150px; top: 35px; left: 29px; transform: rotate(-30deg); }
.orbit-two { transform: rotate(30deg); }
.illustration-card { width: 136px; height: 148px; border-radius: 22px; position: absolute; top: 20px; left: 87px; background: linear-gradient(135deg, #fff, #f7faff); border: 2px solid white; box-shadow: 10px 18px 36px #a6bfeb3d; transform: rotate(-8deg); padding: 21px; }
.illustration-icon { display: grid; place-items: center; width: 54px; height: 54px; color: #4386ff; background: #eaf1ff; border-radius: 17px; margin-bottom: 13px; }
.illustration-icon svg { width: 38px; }
.illustration-line { width: 79px; height: 5px; border-radius: 4px; background: #ccddfb; margin-top: 7px; }
.illustration-line.short { width: 52px; background: #e0eafb; }
.illustration-check { position: absolute; right: -17px; top: 52px; width: 39px; height: 39px; display: grid; place-items: center; border: 4px solid #f1f6ff; background: #ffda4b; color: #5369a0; font-size: 21px; font-weight: 700; border-radius: 50%; }
.small-chat { position: absolute; top: 155px; left: 21px; padding: 12px 17px; font-size: 13px; background: #286aff; color: #fff; border-radius: 12px 12px 12px 3px; box-shadow: 0 8px 20px #307aff25; transform: rotate(3deg); }
.small-chat span { margin-left: 12px; color: #ffe166; }
.spark { position: absolute; color: #82afff; font-size: 26px; }
.spark-one { top: 22px; left: 27px; }.spark-two { top: 158px; right: 26px; font-size: 17px; color: #eebd29; }
.rail-note { display: flex; align-items: center; gap: 13px; }
.note-rule { width: 3px; height: 34px; border-radius: 2px; background: #a3c0f7; }
.rail-note strong { font-size: 14px; font-weight: 600; color: #486086; }
.rail-note p { font-size: 11px; color: #91a0b7; margin: 5px 0 0; }
.rail-footer { font-size: 11px; color: #94a4bc; letter-spacing: .3px; }
.app { height: 100%; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: #f7f9fd; position: relative; border: 1px solid #e4ebf8; border-radius: 22px; overflow: hidden; box-shadow: 0 12px 55px #476baf14, 0 2px 5px #28487105; }
.topbar { flex: none; min-height: 92px; display: flex; align-items: center; padding: 16px 23px 16px 18px; gap: 14px; background: #fff; border-bottom: 1px solid #edf1f8; }
.back { width: 32px; height: 38px; display: flex; align-items: center; justify-content: center; color: #7184a1; text-decoration: none; border-radius: 9px; flex: none; }
.back:hover { background: #f2f6fc; color: var(--primary); }
.title { flex: 1; min-width: 0; }
.brand-line { display: flex; align-items: center; gap: 13px; }
.chat-logo { display: block; width: 125px; height: auto; }
.brand-divider { background: #dfe6f1; width: 1px; height: 19px; }
.consult-label { font-size: 14px; color: #3b4e6c; font-weight: 500; white-space: nowrap; letter-spacing: .6px; }
.status { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #71819a; line-height: 1.4; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: #b5c1d3; }.status .dot.on { background: #2dbb86; }
.header-symbol { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: #f1f6ff; color: #5286e2; }
.header-symbol svg { width: 21px; height: 21px; }
.notice { flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 23px; font-size: 11px; line-height: 1.5; background: #eef5ff; color: #7692b8; }
.notice svg { flex: none; color: #6b96d6; }.notice span { flex: 1; }
.notice button { flex: none; border: 0; background: transparent; color: #8ca4c6; padding: 3px 5px; line-height: 1; font-size: 20px; }
.queue { flex: none; text-align: center; font-size: 12px; padding: 9px; background: #fff7df; color: #956d1f; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dfe7f5 transparent; }
.welcome { margin: 24px 24px 0; padding: 21px 23px 0; position: relative; overflow: hidden; background: linear-gradient(115deg, #eaf2ff, #f4f8ff 80%); border: 1px solid #e3ecfc; border-radius: 16px; }
.welcome-copy { position: relative; z-index: 1; }
.welcome-eyebrow { font-size: 10px; color: #6d91cb; letter-spacing: 1px; }
.welcome h2 { margin: 8px 0 7px; color: #193c70; font-size: 22px; font-weight: 600; letter-spacing: -.5px; line-height: 1.5; }
.welcome h2 span { color: #efbd32; font-size: 25px; }.welcome p { margin: 0; color: #7a8da9; font-size: 12px; }
.welcome-mark { position: absolute; right: 23px; top: 30px; width: 62px; height: 62px; color: #dce9ff; transform: rotate(-10deg); }.welcome-mark svg { width: 100%; }
.welcome-bottom { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #7488a6; padding: 12px 0 13px; margin-top: 16px; border-top: 1px solid #dce7f84d; }
.welcome-dot { width: 4px; height: 4px; background: #9ab9eb; border-radius: 50%; }
.conversation-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 5px; font-size: 10px; color: #a6b2c5; letter-spacing: 1px; }
.conversation-divider::before,.conversation-divider::after { content: ""; width: 27px; height: 1px; background: #e2e8f3; }
.msg-list { padding: 0 24px 23px; }.tm { font-size: 10px; color: #a1aec1; margin: 15px 0 10px; }
.sys { margin: 11px 0; }.sys span { padding: 5px 10px; font-size: 11px; line-height: 1.8; border-radius: 6px; background: transparent; color: #91a0b5; }
.row { margin: 15px 0; gap: 10px; }
.row .av { border-radius: 12px; width: 35px; height: 35px; flex-basis: 35px; font-weight: 500; font-size: 14px; }
.row.them .av { background: #fff !important; color: #075aff; border: 1px solid #e3ebf8; box-shadow: 0 2px 5px #1c467408; }
.row.me .av { background: #e6eefc !important; color: #7091be; }.row .body { max-width: min(79%, 480px); }
.row .nm { font-size: 10px; color: #8d9bb1; margin: 0 2px 5px; }
.bubble { padding: 12px 15px; font-size: 14px; line-height: 1.7; border-radius: 13px; border-color: #e9eef7; box-shadow: 0 3px 9px #2e518707; }
.row.them .bubble { border-top-left-radius: 3px; }.row.me .bubble { background: linear-gradient(125deg, #2874ff, #1961ec); border-color: transparent; border-top-right-radius: 3px; box-shadow: 0 5px 12px #2368f21c; }
.st { font-size: 10px; }.st.read { color: #a7b3c6; }.bubble.img img { max-width: min(220px, 100%); }.loadmore { font-size: 11px; padding: 10px; }
.typing { flex: none; font-size: 11px; color: #8ea0b9; padding: 4px 24px 8px; }
.composer { flex: none; min-width: 0; background: #fff; border-top: 1px solid #e9eef7; padding: 0 20px 14px; }
.quick-questions { display: flex; gap: 8px; padding: 13px 0; overflow-x: auto; scrollbar-width: none; }.quick-questions::-webkit-scrollbar { display: none; }
.quick-questions button { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 36px; border: 1px solid #e5ecf8; color: #5c7498; background: #f9fbff; font-size: 12px; padding: 7px 11px; line-height: 1.5; border-radius: 8px; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.quick-questions button:first-child { color: #477ac9; background: #f0f5ff; border-color: #e1eaff; }
.quick-questions button:hover,.quick-questions button:active { color: #2362cc; background: #eaf2ff; border-color: #bdd3f9; }
.quick-questions button svg { width: 14px; height: 14px; }.quick-questions button span { color: #9eafd0; }
.input-wrap { border: 1px solid #e5eaf3; border-radius: 12px; background: #fbfcff; transition: border-color .2s, box-shadow .2s; }.input-wrap:focus-within { border-color: #a9c8ff; box-shadow: 0 0 0 3px #2468fa06; }
.composer textarea { display: block; width: 100%; resize: none; border: 0; border-radius: 12px; background: transparent; padding: 12px 14px 4px; min-height: 44px; max-height: 120px; line-height: 22px; outline: none; font-size: 14px; }.composer textarea::placeholder { color: #acb7c9; }
.composer-tools { display: flex; align-items: center; justify-content: space-between; padding: 3px 8px 8px; gap: 6px; }.tool-buttons { display: flex; align-items: center; gap: 2px; min-width: 0; }
.composer .icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8498b6; }
.composer .icon:hover,.composer .icon:active,.composer .icon.on { background: #eaf1ff; color: var(--primary); }
.keyboard-tip { font-size: 9px; color: #b1bdcf; margin-left: 7px; white-space: nowrap; }
.send { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 85px; height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 500; transition: background .15s; }
.send:hover:not(:disabled) { background: #0d53df; }.send:disabled { background: #d6e4fc; color: #fff; cursor: default; }
.composer .emoji-panel { border-top: 1px solid var(--line); margin-top: 9px; padding: 6px 0 0; max-height: min(190px, 25dvh); }.emoji-panel .emo { font-size: 23px; }
.embed .brand-rail { display: none; }.embed .site-shell { display: block; width: 100%; height: 100dvh; margin: 0; }.embed .app { border: 0; border-radius: 0; }.embed .back { display: none; }.embed .keyboard-tip { display: none; }
@media (max-width: 1020px) {
  .site-shell { grid-template-columns: 260px minmax(0,1fr); width: calc(100% - 48px); gap: 20px; }
  .brand-rail h1 { font-size: 32px; }.rail-eyebrow { font-size: 8px; letter-spacing: 1px; }
  .rail-illustration { transform: scale(.9); transform-origin: left center; }
  .keyboard-tip { display: none; }.welcome-mark { opacity: .65; }
}
@media (max-width: 760px) {
  html, body { background: #f7f9fd; }
  .site-shell { display: block; width: 100%; height: 100%; height: 100dvh; margin: 0; }.brand-rail { display: none; }
  .app { width: 100%; height: 100%; max-width: 760px; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; }
  .topbar { padding: calc(13px + env(safe-area-inset-top)) 17px 12px 10px; min-height: 82px; gap: 9px; }
  .back { width: 25px; }.brand-line { gap: 11px; }.chat-logo { width: 116px; }.consult-label { font-size: 12px; }.brand-divider { height: 17px; }
  .status { margin-top: 6px; font-size: 11px; }.header-symbol { width: 33px; height: 33px; border-radius: 10px; }.header-symbol svg { width: 18px; }
  .notice { padding: 9px 15px; font-size: 11px; gap: 6px; }
  .welcome { margin: 19px 16px 0; padding: 18px 18px 0; border-radius: 14px; }
  .welcome h2 { font-size: 20px; margin: 8px 0 7px; }.welcome h2 span { font-size: 22px; }.welcome-eyebrow { font-size: 10px; }.welcome p { font-size: 12px; }
  .welcome-mark { width: 50px; height: 50px; top: 30px; right: 16px; opacity: .55; }
  .welcome-bottom { font-size: 11px; padding: 10px 0 11px; margin-top: 14px; gap: 5px; }
  .conversation-divider { margin-top: 21px; font-size: 9px; }
  .msg-list { padding: 0 16px 18px; }.row { gap: 8px; margin: 13px 0; }.row .body { max-width: 80%; }
  .row .av { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; font-size: 13px; }
  .bubble { padding: 10px 12px; font-size: 14px; }.sys span { font-size: 10px; }
  .composer { padding: 0 12px calc(11px + env(safe-area-inset-bottom)); }
  .quick-questions { gap: 7px; padding: 11px 0; }.quick-questions button { font-size: 12px; padding: 6px 9px; gap: 5px; }
  .composer textarea { font-size: 16px; padding: 11px 12px 3px; min-height: 42px; }.composer textarea::placeholder { font-size: 13px; }
  .composer-tools { padding: 3px 7px 7px; }.send { height: 33px; min-width: 78px; font-size: 12px; }
  .typing { padding: 3px 17px 7px; font-size: 10px; }.keyboard-tip { display: none; }
}
@media (max-width: 350px) {
  .chat-logo { width: 103px; }.brand-line { gap: 8px; }.header-symbol { display: none; }
  .welcome h2 { font-size: 18px; }.welcome-mark { display: none; }.welcome-bottom { font-size: 10px; }
}
@media (max-height: 580px) and (max-width: 760px) {
  .topbar { min-height: 66px; padding-top: 8px; padding-bottom: 8px; }.notice { padding-top: 5px; padding-bottom: 5px; }
  .welcome { margin-top: 12px; }.quick-questions { padding-top: 7px; padding-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 后台可修改客服名称，长标题在手机上省略显示。 */
.chat-logo, .brand-divider { flex-shrink: 0; }
.consult-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
