/* 成都奕友 · 站内在线客服 样式 */
#ychat { position: fixed; right: 22px; bottom: 90px; z-index: 2147483000; font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif; }

/* 悬浮球 */
#yc_bubble {
    width: 54px; height: 54px; border-radius: 50%; cursor: pointer; position: relative;
    background: linear-gradient(135deg, #ff6a4d, #F65439);
    box-shadow: 0 6px 18px rgba(246, 84, 57, .45);
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s;
}
#yc_bubble:hover { transform: scale(1.06); }
#yc_bubble svg { display: block; }
#yc_dot {
    display: none; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px;
    background: #ffd400; border: 2px solid #fff; border-radius: 50%;
    animation: yc_blink 1.2s infinite;
}
@keyframes yc_blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* 面板 */
#yc_panel {
    display: none; position: absolute; right: 0; bottom: 68px; width: 340px; height: 470px;
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22); flex-direction: column;
}
#yc_panel.show { display: flex; animation: yc_up .22s ease; }
@keyframes yc_up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.yc_head {
    height: 58px; background: linear-gradient(135deg, #ff6a4d, #F65439);
    display: flex; align-items: center; padding: 0 12px; color: #fff; flex: 0 0 auto;
}
.yc_av {
    width: 34px; height: 34px; border-radius: 50%; background: #fff; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; color: #F65439; font-weight: 700; font-size: 13px;
}
.yc_av::after { content: "客服"; }
.yc_t { margin-left: 10px; flex: 1; overflow: hidden; line-height: 1.35; }
.yc_t b { display: block; font-size: 15px; font-weight: 600; }
.yc_t span { font-size: 11px; opacity: .85; }
.yc_min { color: #fff; text-decoration: none; font-size: 20px; line-height: 1; padding: 0 4px; opacity: .85; }

.yc_body { flex: 1; overflow-y: auto; background: #f5f6f8; padding: 12px 10px; }
.yc_m { margin-bottom: 12px; clear: both; }
.yc_m .yc_b {
    display: inline-block; max-width: 78%; padding: 8px 11px; border-radius: 8px;
    font-size: 13px; line-height: 1.6; word-break: break-word; white-space: pre-wrap;
}
.yc_m .yc_time { font-size: 10px; color: #a8adb5; margin-top: 3px; }
.yc_you .yc_b { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.yc_you .yc_time { text-align: left; }
.yc_me { text-align: right; }
.yc_me .yc_b { background: #F65439; color: #fff; }
.yc_sys { text-align: center; }
.yc_sys .yc_b {
    background: rgba(0, 0, 0, .05); color: #8a8f98; font-size: 11px; max-width: 92%; border-radius: 6px;
}

.yc_quick { flex: 0 0 auto; padding: 7px 10px 0; background: #fff; border-top: 1px solid #f0f1f3; }
.yc_quick a {
    display: inline-block; margin: 0 5px 6px 0; padding: 3px 9px; font-size: 12px;
    color: #F65439; border: 1px solid #ffd9d1; border-radius: 20px; text-decoration: none;
}
.yc_quick a:hover { background: #fff4f1; }

.yc_foot { flex: 0 0 auto; background: #fff; border-top: 1px solid #f0f1f3; padding: 8px 10px 10px; }
#yc_in {
    width: 100%; height: 62px; border: 1px solid #e6e8eb; border-radius: 6px; resize: none;
    padding: 7px 9px; font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box; line-height: 1.5;
}
#yc_in:focus { border-color: #F65439; }
.yc_bar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.yc_tel { font-size: 11px; color: #9aa0a8; }
.yc_tel b { color: #F65439; font-size: 12px; }
#yc_send {
    border: 0; background: #F65439; color: #fff; padding: 7px 20px; border-radius: 5px;
    font-size: 13px; cursor: pointer; font-family: inherit;
}
#yc_send:hover { background: #e04430; }

/* 移动端：面板铺满 */
@media (max-width: 640px) {
    #ychat { right: 12px; bottom: 70px; }
    #yc_panel { position: fixed; right: 0; left: 0; bottom: 0; top: 0; width: 100%; height: 100%; border-radius: 0; }
}
