/* 客服页和聊天页（support-page.js）。夜间配色在 display-mode.css。 */
:root .jg-cs-page { padding: 0 !important; background: #f3f6fd !important; }
:root .jg-cs-page > .head_area, :root .jg-cs-page > .online-scroll { display: none !important; }
.jg-cs { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding-bottom: 2.66667rem; }
.jg-cs__head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: .21333rem; height: 1.38rem; padding: 0 .36rem; }
.jg-cs__head h1 { margin: 0; color: #0b1a38; font-size: .48rem; font-weight: 700; line-height: 1; }
.jg-cs__back { display: grid; place-items: center; flex: none; width: .96rem; height: .96rem; padding: 0; border: 0; border-radius: 50%; color: #102d4d !important; background: #ffffffc7; -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: inset 0 0 0 1px #ffffffb3, 0 .05333rem .16rem #1d4f9a24; cursor: pointer; transition: transform .28s cubic-bezier(.32, 1.28, .5, 1); }
.jg-cs__back:active { transform: scale(.92); }
.jg-cs__back svg { width: .5rem; height: .5rem; }
.jg-cs__hero { position: relative; aspect-ratio: 1280 / 774; overflow: hidden; }
.jg-cs__hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.jg-cs__hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; pointer-events: none; background: linear-gradient(180deg, #f3f6fd00, #f3f6fd); }
.jg-cs__tip { padding: .32rem .36rem .37333rem; color: #4d5f7c; font-size: .37333rem; font-weight: 600; line-height: 1.4; text-align: center; }
.jg-cs__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .26667rem; padding: 0 .36rem; }
.jg-cs__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .05333rem; padding: .42667rem .16rem .37333rem; border: 0; border-radius: .48rem; background: #fff; box-shadow: 0 0 0 1px #0f23500d, 0 1px 2px #0f23500a, 0 .21333rem .53333rem -.26667rem #1d4f9a47; cursor: pointer; transition: transform .28s cubic-bezier(.32, 1.28, .5, 1); }
.jg-cs__card:active { transform: scale(.97); }
.jg-cs__card img { width: 1.33333rem; height: 1.33333rem; margin-bottom: .13333rem; }
.jg-cs__card b { color: #0b1a38; font-size: .4rem; font-weight: 700; line-height: 1.3; }
.jg-cs__card small { color: #66738d; font-size: .32rem; font-weight: 500; line-height: 1.3; }
.jg-cs__badge { position: absolute; top: .21333rem; right: .21333rem; min-width: .42667rem; height: .42667rem; padding: 0 .10667rem; box-sizing: border-box; border-radius: .21333rem; color: #fff; font-size: .26667rem; font-style: normal; font-weight: 700; line-height: .42667rem; text-align: center; background: #e5393b; }
@media (min-width: 640px) {
  .jg-cs__hero { aspect-ratio: auto; height: 380px; }
  .jg-cs__hero img { object-position: center 12%; }
  .jg-cs__cards { max-width: 520px; margin: 0 auto; }
}

/* 聊天页 */
:root .jg-chat { background: radial-gradient(90% 34% at 12% 0, #cfe2ff 0%, #cfe2ff00 100%), radial-gradient(70% 28% at 92% 2%, #e5e9f7 0%, #e5e9f700 100%), #f3f6fd !important; }
:root .jg-chat .customer-chat-v3__header { flex: 0 0 1.28rem; justify-content: flex-start; height: 1.28rem; padding-left: 1.33333rem; box-sizing: border-box; background: #ffffffa8; -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 1px 0 #0f23500f; }
:root .jg-chat .customer-chat-v3__back { display: grid; place-items: center; inset: .16rem auto auto .24rem; width: .96rem; height: .96rem; padding: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #0f23500d, 0 .05333rem .16rem #1d4f9a24; }
:root .jg-chat .customer-chat-v3__back img { width: .5rem; height: .5rem; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102d4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
:root .jg-chat .customer-chat-v3__title { max-width: calc(100% - .4rem); color: #0b1a38; font-size: .42667rem; line-height: 1.28rem; }
:root .jg-chat .customer-chat-v3__empty { align-items: flex-start; padding-top: 2.13333rem; }
:root .jg-chat .customer-chat-v3__empty .customer-chat-v3__empty-brand, :root .jg-chat .customer-chat-v3__loading .customer-chat-v3__empty-brand { display: none; }
:root .jg-chat .customer-chat-v3__loading::after { content: '正在加载消息…'; display: block; padding-top: 2.13333rem; color: #66738d; font-size: .34667rem; text-align: center; }
.jg-chat__empty { display: flex; flex-direction: column; align-items: center; gap: .26667rem; }
.jg-chat__empty p { color: #66738d; font-size: .34667rem; font-weight: 500; }
.jg-chat__mark { display: block; flex: none; width: 2.04rem; height: 2rem; object-fit: cover; object-position: 0 50%; }
:root:not([data-jg-mode="dark"]) .jg-chat__mark--white, :root[data-jg-mode="dark"] .jg-chat__mark--ink { display: none; }
:root .jg-chat .customer-chat-v3__composer { min-height: 0; padding: .16rem .21333rem calc(.16rem + env(safe-area-inset-bottom)); border-top: 0; background: transparent; }
:root .jg-chat .customer-chat-v3__composer-main { align-items: center; min-height: 1.12rem; padding: .08rem .13333rem; box-sizing: border-box; border-radius: .56rem; background: #ffffffeb; -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 0 0 1px #0f23500f, 0 .10667rem .32rem -.10667rem #1d4f9a3d; }
:root .jg-chat .customer-chat-v3__input { flex: 1; max-width: none; margin: 0 .08rem; border: 0; background: transparent; }
:root .jg-chat .customer-chat-v3__input:empty::before { content: '输入消息…'; color: #9aa6ba; pointer-events: none; }
:root .jg-chat .customer-chat-v3__tool { top: 0; flex: 0 0 .77333rem; width: .77333rem; height: .77333rem; margin: 0; padding: .13333rem; box-sizing: border-box; border-radius: 50%; }
:root .jg-chat .customer-chat-v3__tool:active { background: #0f23500f; }
:root .jg-chat .customer-chat-v3__send { flex: none; width: auto; height: .77333rem; margin: 0 0 0 .08rem; padding: 0 .29333rem; border: 0; border-radius: .38667rem; color: #fff; font-size: .32rem; font-weight: 700; line-height: .77333rem; background: linear-gradient(180deg, #2b7ff2 0%, #1459cc 100%); }
