/* WepChat 首次启动幻灯片引导 */
.onboarding {
  position: fixed; inset: 0; z-index: 140; overflow: hidden;
  display: flex; flex-direction: column; color: #f5f6f8;
  background: #090a0d;
  --guide-accent: #6df07d;
  --guide-muted: rgba(235, 238, 245, .62);
  --guide-line: rgba(255, 255, 255, .12);
  isolation: isolate;
}
.onboarding-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.onboarding-aurora::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,10,13,.14), rgba(9,10,13,.72) 66%, #090a0d);
}
.onboarding-aurora i { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .22; animation: onboardingAurora 12s ease-in-out infinite alternate; }
.onboarding-aurora i:nth-child(1) { width: 58vw; height: 58vw; left: -22vw; top: -14vw; background: #55e773; }
.onboarding-aurora i:nth-child(2) { width: 72vw; height: 72vw; right: -34vw; top: 20vh; background: #6577ff; animation-delay: -4s; }
.onboarding-aurora i:nth-child(3) { width: 54vw; height: 54vw; left: 22vw; bottom: -32vw; background: #27b5a5; animation-delay: -8s; }
@keyframes onboardingAurora { to { transform: translate3d(5vw, 3vh, 0) scale(1.12); opacity: .3; } }

.onboarding-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  min-height: calc(56px + var(--sat)); padding: var(--sat) 22px 0;
  font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.5);
}
.onboarding-head button {
  padding: 8px 2px 8px 14px; color: rgba(255,255,255,.72); font-size: 13px; letter-spacing: 0;
}
.onboarding-stage { flex: 1; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; }
.onboarding-slide {
  width: min(100%, 720px); min-height: 100%; margin: 0 auto; padding: 24px 26px 20px;
  display: flex; flex-direction: column; justify-content: center;
}
.onboarding-copy { margin-bottom: 20px; }
.onboarding-kicker { display: block; margin-bottom: 8px; color: var(--guide-accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.onboarding-copy h2 { font-size: clamp(28px, 7vw, 42px); line-height: 1.12; letter-spacing: -.04em; }
.onboarding-copy p { max-width: 560px; margin-top: 10px; color: var(--guide-muted); font-size: 14px; line-height: 1.7; }

.onboarding-welcome { align-items: center; text-align: center; }
.onboarding-logo-wrap { width: min(64vw, 270px); aspect-ratio: 1; position: relative; display: grid; place-items: center; animation: onboardingLogoIn .9s cubic-bezier(.16,.84,.24,1) both; }
.onboarding-logo-halo { position: absolute; inset: 8%; border-radius: 34%; background: rgba(105,240,125,.22); filter: blur(36px); animation: onboardingHalo 3.2s ease-in-out infinite; }
.onboarding-logo { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 42px rgba(0,0,0,.38)); }
.onboarding-welcome h1 { margin-top: 8px; font-size: clamp(35px, 10vw, 58px); letter-spacing: -.055em; animation: onboardingCopyIn .7s .16s both; }
.onboarding-motto { margin-top: 5px; color: rgba(255,255,255,.58); font-size: 12px; letter-spacing: .13em; animation: onboardingCopyIn .7s .24s both; }
.onboarding-lead { max-width: 460px; margin: 26px auto 0; font-size: clamp(17px, 4.5vw, 22px); line-height: 1.58; animation: onboardingCopyIn .7s .32s both; }
.onboarding-welcome-actions { width: min(100%, 360px); display: grid; gap: 8px; margin-top: 30px; animation: onboardingCopyIn .7s .4s both; }
.onboarding-primary {
  min-height: 50px; padding: 0 22px; border-radius: 16px; color: #0a170d; background: var(--guide-accent);
  font-size: 15px; font-weight: 750; box-shadow: 0 12px 30px rgba(88,235,112,.18);
  transition: transform .18s, box-shadow .18s;
}
.onboarding-primary:active { transform: scale(.97); opacity: 1; box-shadow: 0 5px 14px rgba(88,235,112,.14); }
.onboarding-quiet { min-height: 42px; color: rgba(255,255,255,.68); font-size: 14px; }
@keyframes onboardingLogoIn { from { opacity: 0; transform: translateY(18px) scale(.84) rotate(-3deg); } }
@keyframes onboardingCopyIn { from { opacity: 0; transform: translateY(13px); } }
@keyframes onboardingHalo { 50% { transform: scale(1.14); opacity: .72; } }

.provider-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.provider-shortcuts button {
  min-width: 0; padding: 10px; border: 1px solid var(--guide-line); border-radius: 15px;
  display: flex; align-items: center; gap: 10px; color: #fff; background: rgba(255,255,255,.055); text-align: left;
  transition: transform .16s, background .16s;
}
.provider-shortcuts button:active { transform: scale(.97); background: rgba(255,255,255,.1); opacity: 1; }
.provider-mark { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 850; }
.provider-mark.deepseek { color: #fff; background: #4b70f5; }
.provider-mark.claude { color: #251d19; background: #d8a47f; }
.provider-mark.openai { color: #09211c; background: #68d5b5; }
.provider-mark.glm { color: #fff; background: #7656e8; }
.provider-shortcuts span { min-width: 0; font-size: 13px; font-weight: 700; }
.provider-shortcuts small { display: block; overflow: hidden; margin-top: 2px; color: rgba(255,255,255,.46); font-size: 9.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.provider-guide-demo {
  width: min(100%, 480px); height: 250px; position: relative; overflow: hidden; align-self: center;
  border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(10,11,15,.76);
  box-shadow: 0 24px 60px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
}
.guide-phone-bar { height: 39px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.guide-phone-bar b { font-size: 12px; }.guide-phone-bar span { color: rgba(255,255,255,.4); font-size: 9px; }
.guide-app-home, .guide-drawer, .guide-settings, .guide-models { position: absolute; left: 0; right: 0; top: 39px; bottom: 0; }
.guide-app-home { display: flex; flex-direction: column; align-items: center; justify-content: center; animation: guideHome 9s ease-in-out infinite; }
.guide-menu-icon { position: absolute; left: 16px; top: 14px; font-style: normal; color: rgba(255,255,255,.7); }
.guide-app-home strong { font-size: 17px; }.guide-app-home small { margin-top: 7px; color: rgba(255,255,255,.42); }
.guide-drawer { width: 68%; right: auto; padding: 17px 12px; display: flex; flex-direction: column; gap: 7px; background: #17181d; box-shadow: 14px 0 36px rgba(0,0,0,.4); animation: guideDrawer 9s ease-in-out infinite; }
.guide-drawer b, .guide-settings b, .guide-models b { margin-bottom: 6px; font-size: 13px; }
.guide-drawer span, .guide-settings span, .guide-models span { padding: 9px 10px; border-radius: 10px; color: rgba(255,255,255,.56); font-size: 11px; }
.guide-target { color: #fff !important; background: rgba(109,240,125,.13); box-shadow: inset 0 0 0 1px rgba(109,240,125,.22); }
.guide-settings, .guide-models { padding: 16px; display: flex; flex-direction: column; gap: 5px; background: #111217; animation: guideSettings 9s ease-in-out infinite; }
.guide-models { animation-name: guideModels; }
.guide-provider-empty { margin: 28px auto 12px; color: rgba(255,255,255,.38) !important; }
.guide-add-provider { margin: 0 auto; color: #0b190e !important; background: var(--guide-accent) !important; font-weight: 800; }
.guide-tap { position: absolute; z-index: 8; width: 20px; height: 20px; border: 2px solid var(--guide-accent); border-radius: 50%; opacity: 0; pointer-events: none; }
.guide-tap::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--guide-accent); }
.tap-menu { left: 11px; top: 46px; animation: guideTap 9s .5s infinite; }
.tap-settings { left: 87px; bottom: 22px; animation: guideTap 9s 2.35s infinite; }
.tap-model { left: 32px; top: 91px; animation: guideTap 9s 4.5s infinite; }
.tap-add { left: 50%; bottom: 48px; animation: guideTap 9s 6.65s infinite; }
@keyframes guideHome { 0%,11% { opacity: 1; } 18%,100% { opacity: .25; } }
@keyframes guideDrawer { 0%,12% { opacity: 0; transform: translateX(-105%); } 18%,34% { opacity: 1; transform: none; } 41%,100% { opacity: 0; transform: translateX(-16%); } }
@keyframes guideSettings { 0%,35% { opacity: 0; transform: translateX(18%); } 42%,58% { opacity: 1; transform: none; } 66%,100% { opacity: 0; transform: translateX(-10%); } }
@keyframes guideModels { 0%,59% { opacity: 0; transform: translateX(18%); } 68%,100% { opacity: 1; transform: none; } }
@keyframes guideTap { 0%,5%,100% { opacity: 0; transform: scale(.5); } 2.5% { opacity: 1; transform: scale(1.65); } }

.protocol-stack { display: grid; gap: 11px; }
.protocol-card { padding: 15px; border: 1px solid var(--guide-line); border-radius: 18px; display: flex; gap: 13px; background: rgba(255,255,255,.05); animation: onboardingCopyIn .55s both; }
.protocol-card:nth-child(2) { animation-delay: .09s; }.protocol-card:nth-child(3) { animation-delay: .18s; }
.protocol-card > i { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #08120a; background: var(--guide-accent); font-style: normal; font-weight: 850; }
.protocol-card.responses > i { background: #8ea2ff; }.protocol-card.messages > i { background: #e4ad87; }
.protocol-card h3 { display: inline; margin-right: 8px; font-size: 15px; }
.protocol-card code { color: rgba(255,255,255,.48); font-size: 10px; }
.protocol-card p { margin-top: 6px; color: var(--guide-muted); font-size: 12px; line-height: 1.55; }
.protocol-tip { margin-top: 13px; padding: 13px 14px; border-radius: 15px; display: flex; gap: 9px; color: rgba(255,255,255,.62); background: rgba(109,240,125,.08); font-size: 11.5px; line-height: 1.55; }
.protocol-tip b { flex: none; color: var(--guide-accent); }

.first-chat-demo {
  width: min(100%, 470px); min-height: 315px; position: relative; overflow: hidden; align-self: center;
  border: 1px solid rgba(255,255,255,.14); border-radius: 25px; background: #f5f5f7; color: #151519;
  box-shadow: 0 25px 64px rgba(0,0,0,.34);
}
.chat-demo-head { height: 46px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.07); }
.chat-demo-head span, .chat-demo-head i { color: #777780; font-style: normal; }.chat-demo-head b { font-size: 13px; }
.chat-demo-body { min-height: 215px; padding: 18px 14px 55px; display: flex; flex-direction: column; }
.chat-demo-user { align-self: flex-end; max-width: 76%; padding: 9px 12px; border-radius: 16px 16px 5px 16px; background: #e6e6ea; font-size: 12px; animation: chatUserShow 8.4s infinite; }
.chat-demo-user span { display: block; overflow: hidden; white-space: nowrap; animation: chatTyping 8.4s steps(11,end) infinite; }
.chat-demo-thinking { margin: 22px 3px 0; display: flex; align-items: center; gap: 4px; color: #8b8b94; font-size: 10px; animation: chatThinking 8.4s infinite; }
.chat-demo-thinking i { width: 5px; height: 5px; border-radius: 50%; background: #6d6d76; animation: thinkingDot .9s ease-in-out infinite alternate; }
.chat-demo-thinking i:nth-child(2) { animation-delay: .16s; }.chat-demo-thinking i:nth-child(3) { animation-delay: .32s; }
.chat-demo-thinking span { margin-left: 3px; }
.chat-demo-answer { margin: 17px 3px 0; color: #303038; font-size: 12px; line-height: 1.7; animation: chatAnswer 8.4s infinite; }
.chat-demo-composer { position: absolute; left: 12px; right: 12px; bottom: 11px; height: 41px; padding: 0 6px 0 13px; border: 1px solid rgba(0,0,0,.1); border-radius: 22px; display: flex; align-items: center; justify-content: space-between; color: #9a9aa2; background: rgba(245,245,248,.84); box-shadow: 0 7px 22px rgba(0,0,0,.08); font-size: 11px; }
.chat-demo-composer i { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #17171a; font-style: normal; }
.onboarding-start { width: min(100%, 360px); margin: 20px auto 0; }
@keyframes chatUserShow { 0%,8% { opacity: 0; transform: translateY(8px); } 14%,88% { opacity: 1; transform: none; } 96%,100% { opacity: 0; } }
@keyframes chatTyping { 0%,9% { clip-path: inset(0 100% 0 0); } 26%,90% { clip-path: inset(0); } 100% { clip-path: inset(0); } }
@keyframes chatThinking { 0%,28% { opacity: 0; } 34%,50% { opacity: 1; } 57%,100% { opacity: 0; } }
@keyframes chatAnswer { 0%,53% { opacity: 0; transform: translateY(8px); } 63%,91% { opacity: 1; transform: none; } 98%,100% { opacity: 0; } }
@keyframes thinkingDot { to { transform: translateY(-3px); opacity: .45; } }

.onboarding-foot {
  flex: none; min-height: calc(62px + var(--sab)); padding: 0 22px var(--sab);
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
}
.onboarding-back { justify-self: start; width: 40px; height: 40px; border: 1px solid var(--guide-line); border-radius: 50%; color: #fff; font-size: 18px; }
.onboarding-forward { justify-self: end; color: #fff; font-size: 13px; white-space: nowrap; }
.onboarding-foot-space { width: 1px; }
.onboarding-dots { display: flex; align-items: center; justify-content: center; gap: 7px; }
.onboarding-dots button { width: 6px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.28); transition: width .24s, background .24s; }
.onboarding-dots button.on { width: 22px; background: var(--guide-accent); }

.onboarding-root-enter-active, .onboarding-root-leave-active { transition: opacity .36s ease; }
.onboarding-root-enter-from, .onboarding-root-leave-to { opacity: 0; }
.onboarding-next-enter-active, .onboarding-next-leave-active,
.onboarding-prev-enter-active, .onboarding-prev-leave-active { transition: opacity .3s ease, transform .38s cubic-bezier(.2,.78,.25,1); }
.onboarding-next-enter-from { opacity: 0; transform: translateX(44px) scale(.985); }
.onboarding-next-leave-to { opacity: 0; transform: translateX(-28px) scale(.99); }
.onboarding-prev-enter-from { opacity: 0; transform: translateX(-44px) scale(.985); }
.onboarding-prev-leave-to { opacity: 0; transform: translateX(28px) scale(.99); }

@media (max-width: 370px) {
  .onboarding-slide { padding-left: 20px; padding-right: 20px; }
  .provider-shortcuts { gap: 7px; }
  .provider-shortcuts button { padding: 8px; gap: 7px; }
  .provider-mark { width: 30px; height: 30px; }
}
@media (max-height: 700px) {
  .onboarding-slide { justify-content: flex-start; padding-top: 10px; }
  .onboarding-logo-wrap { width: min(34vw, 150px); }
  .onboarding-lead { margin-top: 15px; }.onboarding-welcome-actions { margin-top: 18px; }
  .provider-guide-demo { height: 210px; }
  .first-chat-demo { min-height: 270px; }.chat-demo-body { min-height: 175px; }
}
@media (prefers-reduced-motion: reduce) {
  .onboarding-aurora i, .onboarding-logo-halo { animation: none; }
  .onboarding-root-enter-active, .onboarding-root-leave-active,
  .onboarding-next-enter-active, .onboarding-next-leave-active,
  .onboarding-prev-enter-active, .onboarding-prev-leave-active { transition-duration: .12s; }
}
