/* 首页与全站实时聊天入口：文字常驻显示，不依赖悬停。 */
/* 保留旧客服元素供脚本代理点击，但不再显示重复的图标入口。 */
#floating-assistant-stack,
#icon-container,
#kefu-luo,
#ai-assistant-entry {
    display: none !important;
}
.yp-live-chat-row {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
}
.yp-live-chat-button {
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 200px;
    min-height: 50px;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)), rgba(15, 23, 42, .68);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    box-shadow: 0 5px 18px rgba(2, 6, 23, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, box-shadow .2s ease;
}
.yp-live-chat-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)), rgba(15, 23, 42, .74);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(2, 6, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.yp-live-chat-button:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 4px;
}
.yp-live-chat-button svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#chat-entry-fixed {
    position: fixed !important;
    right: 14px !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10002;
    pointer-events: auto;
}
#chat-entry-fixed .yp-live-chat-button {
    flex-direction: column;
    min-width: 46px;
    min-height: 128px;
    padding: 14px 11px;
    gap: 8px;
    border-radius: 23px;
    font-size: 15px;
}
#chat-entry-fixed .yp-live-chat-button span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 3px;
}
#chat-entry-fixed svg {
    width: 19px;
    height: 19px;
}
#chat-entry-status {
    position: fixed;
    right: 14px;
    top: calc(50% + 80px);
    z-index: 10003;
    box-sizing: border-box;
    max-width: min(300px, calc(100vw - 28px));
    padding: 12px 16px;
    border: 1px solid #047857;
    border-radius: 10px;
    background: #fff;
    color: #064e3b;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
@media (max-width: 768px) {
    .yp-live-chat-row {
        margin-bottom: 14px;
    }
    .yp-live-chat-row .yp-live-chat-button {
        min-width: 220px;
        max-width: 100%;
        min-height: 50px;
        font-size: 17px;
    }
    #chat-entry-fixed {
        right: 10px !important;
        right: max(10px, env(safe-area-inset-right)) !important;
    }
    #chat-entry-fixed .yp-live-chat-button {
        min-width: 44px;
        min-height: 122px;
        padding: 13px 10px;
        font-size: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .yp-live-chat-button {
        transition: none;
    }
}
