/* 进页客服介绍弹窗：对齐小程序 home-welcome-modal，居中弹窗不是底栏客服 */
.hw-welcome {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 80;
    align-items: center;
    justify-content: center;
}
.hw-welcome.is-open { display: flex; }
.hw-welcome-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}
.hw-welcome-panel {
    position: relative;
    width: 84%;
    min-height: 58%;
    max-height: 88%;
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}
.hw-welcome-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.7rem;
    color: #9ca3af;
    cursor: pointer;
}
.hw-welcome-hero { text-align: center; }
.hw-welcome-avatar-stage {
    position: relative;
    width: 120px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    overflow: visible;
}
.hw-welcome-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hw-welcome-avatar-stack {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
}
.hw-welcome-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff7ed;
    display: block;
}
.hw-welcome-avatar-ring {
    position: absolute;
    border-radius: 12px;
    border: 1px solid rgba(255, 125, 0, 0.22);
    opacity: 0;
    z-index: 1;
    box-sizing: border-box;
}
.hw-welcome-avatar-wrap.is-speaking .hw-welcome-avatar-ring {
    opacity: 1;
}
.hw-welcome-avatar-wrap.is-speaking .ring-1 {
    width: 60px;
    height: 60px;
    animation: hw-voice-pulse 0.85s ease-in-out infinite;
}
.hw-welcome-avatar-wrap.is-speaking .ring-2 {
    width: 64px;
    height: 64px;
    animation: hw-voice-pulse 0.85s ease-in-out 0.2s infinite;
}
@keyframes hw-voice-pulse {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.06); opacity: 1; }
}
.hw-welcome-wave-bars {
    display: none;
    align-items: flex-end;
    height: 16px;
    flex-shrink: 0;
}
.hw-welcome-avatar-stage.is-speaking .hw-welcome-wave-bars {
    display: flex;
}
.hw-welcome-wave-bars--side {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.hw-welcome-wave-bar {
    width: 3px;
    height: 5px;
    margin-left: 2px;
    border-radius: 6px;
    background: #FF7D00;
    animation: hw-wave-bounce 0.9s ease-in-out infinite;
}
.hw-welcome-wave-bar--1 { margin-left: 0; animation-delay: 0s; }
.hw-welcome-wave-bar--2 { animation-delay: 0.12s; }
.hw-welcome-wave-bar--3 { animation-delay: 0.24s; }
.hw-welcome-wave-bar--4 { animation-delay: 0.36s; }
.hw-welcome-wave-bar--5 { animation-delay: 0.48s; }
@keyframes hw-wave-bounce {
    0%, 100% { height: 4px; opacity: 0.55; }
    50% { height: 14px; opacity: 1; }
}
.hw-welcome-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.hw-welcome-name {
    font-size: 15px;
    font-weight: 800;
    color: #1f2330;
}
.hw-welcome-sound,
.voice-tts-toggle {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 125, 0, 0.08);
    border: 1px solid rgba(255, 125, 0, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    cursor: pointer;
}
.voice-tts-toggle.is-off {
    background: #fff;
    border-color: #d1d5db;
}
.voice-tts-toggle.is-off .hw-voice-icon { opacity: 0.72; }
.hw-voice-icon {
    width: 14px;
    height: 14px;
    display: block;
}
.hw-welcome-volume-hint {
    display: none !important;
}
.hw-welcome-card {
    margin-top: 10px;
    flex: 1;
    min-height: 0;
    background: #fff7ed;
    border: 1px solid rgba(255, 125, 0, 0.12);
    border-radius: 10px;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hw-welcome-text {
    font-size: 13px;
    line-height: 1.65;
    color: #7c2d12;
    text-align: center !important;
    width: 100%;
    margin: 0;
}
.hw-welcome-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.hw-welcome-btn {
    flex: 1;
    text-align: center;
    padding: 9px 8px;
    border-radius: 10px;
    border: 1px solid #FF7D00;
    color: #c2410c;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
}
.hw-welcome-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}
.hw-welcome-check {
    width: 12px;
    height: 12px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
}
.hw-welcome.is-preview .hw-welcome-close,
.hw-welcome.is-preview .hw-welcome-actions,
.hw-welcome.is-preview .hw-welcome-footer {
    display: none;
}
.hw-welcome.is-preview .voice-tts-toggle,
.hw-welcome.is-preview .hw-welcome-sound {
    pointer-events: none;
    cursor: default;
}
.phone-shell.is-watch-only .phone-screen {
    pointer-events: none;
}
.phone-shell.is-watch-only .phone-demo-top-bar {
    pointer-events: auto;
}
.phone-shell.is-watch-only .sim-tap-label,
.phone-shell.is-watch-only .sim-tap-label.city-demo-hint,
.phone-shell.is-watch-only .sim-tap-label.hint-below,
.phone-shell.is-watch-only .sim-tap-label.hint-above,
.phone-shell.is-watch-only .sim-tap-label.auto-hint {
    left: 50% !important;
    top: 10px !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    max-width: calc(100% - 24px);
    white-space: normal;
}
