/* 客助中心 - 好友聊天（悬浮窗 + 会员中心整页） */

#ukChatRoot,
.ukchat {
    --ukchat-green: #1f6f5c;
    --ukchat-green-2: #2f8f76;
    --ukchat-soft: #eaf4ef;
    --ukchat-line: #e8e3d8;
    --ukchat-ink: #23302b;
    --ukchat-ink-2: #5d6a63;
    --ukchat-bg: #fffefa;
    --ukchat-err: #e05656;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ukchat-ink);
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
}
.ukchat *,
.ukchat *::before,
.ukchat *::after { box-sizing: border-box; }

/* 悬浮按钮 */
.ukchat-fab {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 9000;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--ukchat-green-2), var(--ukchat-green));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 32px -16px rgba(31, 111, 92, .9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ukchat-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(31, 111, 92, .95); }
.ukchat.pos-left .ukchat-fab { right: auto; left: 22px; }
.ukchat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ukchat-err);
    color: #fff;
    font-size: 10.5px;
    font-style: normal;
    line-height: 19px;
    text-align: center;
    border: 2px solid #fff;
}

/* 面板 */
.ukchat-panel {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 8999;
    width: 720px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100vh - 120px);
    display: none;
    grid-template-columns: 248px 1fr;
    border: 1px solid var(--ukchat-line);
    border-radius: 18px;
    background: var(--ukchat-bg);
    overflow: hidden;
    box-shadow: 0 30px 70px -30px rgba(24, 40, 34, .55);
}
.ukchat.pos-left .ukchat-panel { right: auto; left: 22px; }
.ukchat.open .ukchat-panel { display: grid; }
.ukchat.is-inline .ukchat-panel {
    position: static;
    width: 100%;
    max-width: none;
    height: 620px;
    max-height: 72vh;
    display: grid;
    box-shadow: none;
    border-radius: 16px;
}
.ukchat.is-inline .ukchat-fab { display: none; }

/* 未登录入口 */
.ukchat-guest {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 9000;
    box-sizing: border-box;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--ukchat-green-2), var(--ukchat-green));
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 16px 32px -16px rgba(31, 111, 92, .9);
    transition: transform .18s ease, box-shadow .18s ease;
}
.ukchat-guest:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(31, 111, 92, .95); }
.ukchat-guest.pos-left { right: auto; left: 22px; }

/* 头部（仅移动端显示） */
.ukchat-hd { display: none; }

.ukchat-body { display: contents; }

/* 左侧 */
.ukchat-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid var(--ukchat-line);
    background: #fbf9f3;
}
.ukchat-tabs { display: flex; padding: 10px 10px 6px; gap: 4px; }
.ukchat-tabs button {
    flex: 1;
    position: relative;
    padding: 7px 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ukchat-ink-2);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
}
.ukchat-tabs button.on { background: #fff; color: var(--ukchat-green); font-weight: 700; box-shadow: 0 4px 12px -8px rgba(0, 0, 0, .3); }
.ukchat-tabs i {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ukchat-err);
}
.ukchat-panes { flex: 1; min-height: 0; position: relative; }
.ukchat-pane { display: none; height: 100%; flex-direction: column; }
.ukchat-pane.on { display: flex; }
.ukchat-list,
.ukchat-reqs,
.ukchat-results { flex: 1; overflow-y: auto; padding: 4px 8px 10px; }
.ukchat-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 11px;
    cursor: pointer;
}
.ukchat-item:hover { background: #f1ede3; }
.ukchat-item.on { background: var(--ukchat-soft); }
.ukchat-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: #e9e5db; }
.ukchat-item-main { flex: 1; min-width: 0; }
.ukchat-item-main b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ukchat-item-main span {
    display: block;
    margin-top: 2px;
    color: var(--ukchat-ink-2);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ukchat-item-meta { flex: none; text-align: right; color: #9aa39d; font-size: 10.5px; }
.ukchat-item-meta em {
    display: inline-block;
    min-width: 17px;
    height: 17px;
    margin-top: 3px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ukchat-err);
    color: #fff;
    font-style: normal;
    line-height: 17px;
    font-size: 10px;
}
.ukchat-online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c8cec9; vertical-align: 1px; }
.ukchat-online-dot.on { background: #39b06f; }
.ukchat-req {
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--ukchat-line);
    border-radius: 12px;
    background: #fff;
}
.ukchat-req-hd { display: flex; align-items: center; gap: 8px; }
.ukchat-req-hd img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ukchat-req-hd b { font-size: 12.5px; }
.ukchat-req p { margin: 6px 0 8px; color: var(--ukchat-ink-2); font-size: 12px; word-break: break-all; }
.ukchat-log-title { margin: 8px 2px 6px; color: #8a938d; font-size: 11.5px; font-weight: 700; }
.ukchat-log-state {
    flex: none;
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1ede3;
    color: #8a938d;
    font-size: 10.5px;
}
.ukchat-log-state.s0 { background: #fff3df; color: #b7791f; }
.ukchat-log-state.s1 { background: #e6f6ec; color: #2f8f5e; }
.ukchat-log-state.s2,
.ukchat-log-state.s3 { background: #f1ede3; color: #9aa39d; }
.ukchat-log-dir { display: block; margin-top: 4px; color: #a4aca7; font-size: 10.5px; }
.ukchat-req-btns { display: flex; gap: 6px; }
.ukchat-btn {
    padding: 5px 12px;
    border: 1px solid var(--ukchat-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ukchat-ink-2);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}
.ukchat-btn:hover { border-color: var(--ukchat-green-2); color: var(--ukchat-green); }
.ukchat-btn.primary { border-color: transparent; background: var(--ukchat-green); color: #fff; }
.ukchat-btn.primary:hover { background: var(--ukchat-green-2); color: #fff; }
.ukchat-tip { padding: 24px 12px; color: var(--ukchat-ink-2); font-size: 12.5px; text-align: center; }
.ukchat-search { display: flex; gap: 6px; padding: 4px 10px 8px; }
.ukchat-search input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--ukchat-line);
    border-radius: 9px;
    background: #fff;
    font-family: inherit;
    font-size: 12.5px;
}
.ukchat-search input:focus { outline: none; border-color: var(--ukchat-green-2); }
.ukchat-search button {
    flex: none;
    height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: var(--ukchat-green);
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
}
.ukchat-result {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 11px;
}
.ukchat-result:hover { background: #f1ede3; }
.ukchat-result img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ukchat-result-main { flex: 1; min-width: 0; }
.ukchat-result-main b { display: block; font-size: 12.5px; }
.ukchat-result-main span { color: var(--ukchat-ink-2); font-size: 11.5px; }

/* 右侧会话 */
.ukchat-main { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.ukchat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa39d;
    font-size: 13px;
}
.ukchat-conv { flex: 1; display: none; flex-direction: column; min-height: 0; }
.ukchat.has-peer .ukchat-empty { display: none; }
.ukchat.has-peer .ukchat-conv { display: flex; }
.ukchat-conv-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ukchat-line);
    background: #fdfcf8;
}
.ukchat-conv-hd b { font-size: 13.5px; }
.ukchat-conv-hd .ukchat-status { color: var(--ukchat-ink-2); font-size: 11.5px; }
.ukchat-conv-hd .ukchat-del {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #a4aca7;
    font-size: 11.5px;
    cursor: pointer;
}
.ukchat-conv-hd .ukchat-del:hover { color: var(--ukchat-err); }
.ukchat-back {
    display: none;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f1ede3;
    color: var(--ukchat-ink-2);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.ukchat-msgs {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    background: #fdfcf8;
}
.ukchat-more { display: block; margin: 0 auto 10px; }
.ukchat-msg { display: flex; margin-bottom: 12px; }
.ukchat-msg.me { justify-content: flex-end; }
.ukchat-bubble {
    max-width: 74%;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--ukchat-line);
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.55;
}
.ukchat-msg.me .ukchat-bubble { background: var(--ukchat-green); border-color: var(--ukchat-green); color: #fff; }
.ukchat-msg-time { margin-top: 4px; color: #a4aca7; font-size: 10.5px; text-align: right; }
.ukchat-msg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 3px;
    color: #a4aca7;
    font-size: 10.5px;
}
.ukchat-msg.me .ukchat-msg-meta { color: rgba(255, 255, 255, .72); }
.ukchat-read.on { color: #39b06f; }
.ukchat-msg.me .ukchat-read.on { color: #d6ffe9; }
.ukchat-recall { color: inherit; text-decoration: underline; opacity: .85; }
.ukchat-recall:hover { color: #e05656; }
.ukchat-msg.me .ukchat-recall:hover { color: #ffd9d9; }
.ukchat-msg.recalled .ukchat-bubble,
.ukchat-msg.me.recalled .ukchat-bubble {
    background: #f3f0e8;
    border-color: #e8e3d8;
    color: #9aa39d;
    font-style: italic;
}
.ukchat-msg.recalled .ukchat-msg-time { color: #a4aca7; }
.ukchat-day { margin: 6px 0 12px; text-align: center; color: #a4aca7; font-size: 10.5px; }
.ukchat-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--ukchat-line);
    background: #fff;
}
.ukchat-form textarea {
    flex: 1;
    min-width: 0;
    height: 40px;
    max-height: 110px;
    padding: 9px 11px;
    border: 1px solid var(--ukchat-line);
    border-radius: 11px;
    background: #fbf9f3;
    color: var(--ukchat-ink);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    resize: none;
}
.ukchat-form textarea:focus { outline: none; border-color: var(--ukchat-green-2); background: #fff; }
.ukchat-form button {
    flex: none;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: var(--ukchat-green);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}
.ukchat-form button:disabled { opacity: .5; cursor: default; }

/* 移动端 */
@media (max-width: 760px) {
    .ukchat-fab { right: 16px; bottom: 18px; width: 50px; height: 50px; }
    .ukchat.pos-left .ukchat-fab { right: auto; left: 16px; }
    .ukchat.open .ukchat-fab { display: none; }
    .ukchat-guest { right: 16px; bottom: 18px; width: 50px; height: 50px; }
    .ukchat-guest.pos-left { right: auto; left: 16px; }
    .ukchat-panel {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        height: 86vh;
        max-height: 86vh;
        grid-template-columns: 1fr;
        border-radius: 18px 18px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }
    .ukchat.pos-left .ukchat-panel { left: 0; right: 0; }
    .ukchat.is-inline .ukchat-panel { height: 76vh; max-height: 76vh; border-radius: 16px; }
    .ukchat-hd {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: 1px solid var(--ukchat-line);
        background: #fdfcf8;
    }
    .ukchat-hd b { font-size: 14px; }
    .ukchat-hd .ukchat-min {
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 50%;
        background: #f1ede3;
        color: var(--ukchat-ink-2);
        font-size: 17px;
        line-height: 1;
        cursor: pointer;
    }
    .ukchat-side { border-right: 0; }
    .ukchat.has-peer .ukchat-side { display: none; }
    .ukchat.has-peer .ukchat-main { display: flex; }
    .ukchat-main { display: none; }
    .ukchat.has-peer .ukchat-main { display: flex; }
    .ukchat-back { display: inline-flex; align-items: center; justify-content: center; }
    .ukchat-msg .ukchat-bubble { max-width: 82%; }
    .ukchat.is-inline .ukchat-hd { display: none; }
}

/* ===================== 视觉升级 v2 ===================== */
.ukchat-panel {
    width: 780px;
    height: 560px;
    grid-template-columns: 268px 1fr;
    border-radius: 20px;
    background: #fbfaf6;
}
.ukchat.is-inline .ukchat-panel {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    height: 620px;
    max-height: 72vh;
}

/* 左侧我的信息 */
.ukchat-side { background: linear-gradient(180deg, #f8f5ee, #f3efe6); border-right: 1px solid #e9e3d7; }
.ukchat-me { display: flex; align-items: center; gap: 10px; padding: 14px 14px 8px; }
.ukchat-me-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .45);
}
.ukchat-me-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ukchat-me-info b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ukchat-me-info span { color: #39b06f; font-size: 10.5px; }
.ukchat-sound {
    flex: none;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    opacity: .6;
    transition: opacity .15s ease, background .15s ease;
}
.ukchat-sound:hover { opacity: 1; background: #eaf4ef; }
.ukchat-sound.on { opacity: 1; background: #eaf4ef; }
.ukchat-close {
    flex: none;
    width: 30px;
    height: 30px;
    border: 1px solid #e9e3d7;
    border-radius: 50%;
    background: #fff;
    color: #8a938d;
    font-family: inherit;
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.ukchat-close:hover { color: #e05656; border-color: #f0c4c4; background: #fff7f7; }
.ukchat.is-inline .ukchat-close { display: none; }

/* 悬浮按钮主题 */
.ukchat-fab.theme-green,
.ukchat-guest.theme-green { background: linear-gradient(140deg, #2f8f76, #1f6f5c); color: #fff; border: 0; box-shadow: 0 16px 32px -16px rgba(31, 111, 92, .9); }
.ukchat-fab.theme-blue,
.ukchat-guest.theme-blue { background: linear-gradient(140deg, #3b82f6, #1d4ed8); color: #fff; border: 0; box-shadow: 0 16px 32px -16px rgba(37, 99, 235, .85); }
.ukchat-fab.theme-dark,
.ukchat-guest.theme-dark { background: linear-gradient(140deg, #3f464d, #151a1e); color: #fff; border: 0; box-shadow: 0 16px 32px -16px rgba(10, 16, 22, .85); }
.ukchat-fab.theme-orange,
.ukchat-guest.theme-orange { background: linear-gradient(140deg, #fb923c, #ea580c); color: #fff; border: 0; box-shadow: 0 16px 32px -16px rgba(234, 88, 12, .85); }
.ukchat-fab.theme-light,
.ukchat-guest.theme-light {
    background: #fff;
    color: #1f6f5c;
    border: 1px solid #dfe8e2;
    box-shadow: 0 14px 30px -18px rgba(31, 111, 92, .65);
}
.ukchat-guest.theme-light { box-shadow: 0 14px 30px -18px rgba(31, 111, 92, .65); }
.ukchat-fab.theme-light:hover,
.ukchat-guest.theme-light:hover { color: #2f8f76; background: #f7fbf9; }

.ukchat-filter { position: relative; padding: 0 12px 8px; }
.ukchat-filter input {
    width: 100%;
    height: 32px;
    padding: 0 28px 0 11px;
    border: 1px solid #e9e3d7;
    border-radius: 9px;
    background: #fff;
    color: var(--ukchat-ink);
    font-family: inherit;
    font-size: 12.5px;
}
.ukchat-filter input:focus { outline: none; border-color: var(--ukchat-green-2); }
.ukchat-filter-clear {
    position: absolute;
    right: 19px;
    top: 50%;
    transform: translateY(-60%);
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #e7e2d7;
    color: #7d8881;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    padding: 0;
}
.ukchat-tabs { padding: 4px 10px 6px; }
.ukchat-item.on { background: #e9f4ef; box-shadow: inset 3px 0 0 var(--ukchat-green); }
.ukchat-item img { box-shadow: 0 4px 10px -8px rgba(0, 0, 0, .5); }

/* 会话头 */
.ukchat-conv-hd { padding: 10px 14px; background: #fff; border-bottom: 1px solid #eee9df; gap: 10px; }
.ukchat-peer-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: #e9e5db; }
.ukchat-peer-info { display: flex; flex-direction: column; min-width: 0; }
.ukchat-peer-info b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ukchat-peer-info span { color: #8a938d; font-size: 11px; }
.ukchat-hd-ops { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.ukchat-chip {
    padding: 4px 10px;
    border: 1px solid #e9e3d7;
    border-radius: 999px;
    background: #fff;
    color: #5d6a63;
    font-family: inherit;
    font-size: 11.5px;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}
.ukchat-chip:hover { border-color: var(--ukchat-green-2); color: var(--ukchat-green); }
.ukchat-hd-ops .ukchat-chip { margin-left: 0; border: 1px solid #e9e3d7; background: #fff; }
.ukchat-chip.ukchat-del:hover { border-color: #e05656; color: #e05656; }

/* 消息列表 */
.ukchat-msgs { padding: 18px 16px; background: linear-gradient(180deg, #fbfaf6, #f7f5ef); }
.ukchat-msg { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 14px; }
.ukchat-msg.me { flex-direction: row-reverse; }
.ukchat-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: #e9e5db; }
.ukchat-msg-body { display: flex; flex-direction: column; min-width: 0; max-width: 76%; }
.ukchat-msg.me .ukchat-msg-body { align-items: flex-end; }
.ukchat-msg .ukchat-bubble {
    max-width: 100%;
    padding: 9px 13px;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    box-shadow: 0 5px 14px -12px rgba(24, 40, 34, .45);
    font-size: 13px;
    line-height: 1.55;
}
.ukchat-msg.me .ukchat-bubble {
    border-radius: 14px 14px 4px 14px;
    background: linear-gradient(135deg, #2f8f76, #1f6f5c);
    border-color: transparent;
    color: #fff;
}
.ukchat-msg-time { margin-top: 3px; color: #a4aca7; font-size: 10px; opacity: .9; }
.ukchat-msg.me .ukchat-msg-time { color: rgba(255, 255, 255, .68); }
.ukchat-msg-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: #a4aca7; font-size: 10.5px; }
.ukchat-msg.me .ukchat-msg-meta { justify-content: flex-end; color: #a4aca7; }
.ukchat-op { color: inherit; text-decoration: none; }
.ukchat-op:hover { color: var(--ukchat-green); text-decoration: underline; }
.ukchat-read.on { color: #2f8f5e; font-weight: 600; }
.ukchat-msg.me .ukchat-read { color: #a4aca7; }
.ukchat-msg.me .ukchat-read.on { color: #2f8f5e; }
.ukchat-msg.recalled .ukchat-bubble,
.ukchat-msg.me.recalled .ukchat-bubble {
    background: #f1ede3;
    border-color: #e7e1d5;
    color: #9aa39d;
    font-style: italic;
    border-radius: 14px;
    box-shadow: none;
}

/* 空状态 */
.ukchat-empty { flex-direction: column; gap: 10px; padding: 24px; }
.ukchat-empty-ico {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #eaf4ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.ukchat-empty b { color: #33413a; font-size: 15px; }
.ukchat-empty span { color: #9aa39d; font-size: 12px; text-align: center; }

/* 工具栏与弹层 */
.ukchat-conv { position: relative; }
.ukchat-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 0;
    background: #fff;
    border-top: 1px solid #f0ece3;
}
.ukchat-tool {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a938d;
    font-family: inherit;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
}
.ukchat-tool:hover { background: #f1ede3; color: var(--ukchat-green); }
.ukchat-count { margin-left: auto; color: #a4aca7; font-size: 10.5px; }
.ukchat-count.warn { color: #e05656; }
.ukchat-form { border-top: 0; padding: 6px 12px 12px; }
.ukchat-form textarea { background: #f8f6f0; border-radius: 12px; }
.ukchat-form button { border-radius: 12px; }
.ukchat-pop {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 98px;
    z-index: 6;
    max-height: 190px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid #e9e3d7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 44px -26px rgba(24, 40, 34, .5);
}
.ukchat-pop[hidden] { display: none !important; }
.ukchat-emoji-pop { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; }
.ukchat-emoji-item {
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 19px;
    line-height: 1;
    padding: 6px 0;
    cursor: pointer;
}
.ukchat-emoji-item:hover { background: #f1ede3; }
.ukchat-phrase-pop { display: flex; flex-direction: column; gap: 4px; }
.ukchat-phrase-item {
    border: 0;
    border-radius: 9px;
    background: #faf8f2;
    color: #33413a;
    font-family: inherit;
    font-size: 12.5px;
    text-align: left;
    padding: 8px 10px;
    cursor: pointer;
}
.ukchat-phrase-item:hover { background: #eaf4ef; color: var(--ukchat-green); }
.ukchat-toast {
    position: absolute;
    left: 50%;
    bottom: 120px;
    z-index: 20;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(35, 48, 43, .9);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

/* 分组 / 置顶 / 拉黑标记 */
.ukchat-group-title {
    margin: 10px 4px 4px;
    color: #8a938d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}
.ukchat-group-title.blocked { color: #c07a7a; }
.ukchat-pin,
.ukchat-block-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 0 4px;
    height: 15px;
    line-height: 15px;
    border-radius: 4px;
    font-style: normal;
    font-size: 9.5px;
    vertical-align: 1px;
}
.ukchat-pin { background: #fff3df; color: #b7791f; }
.ukchat-block-tag { background: #fdeaea; color: #c05050; }
.ukchat-item.is-blocked img { filter: grayscale(1); opacity: .7; }
.ukchat-item.is-blocked .ukchat-item-main b { color: #9aa39d; }

/* 好友资料弹层 */
.ukchat-detail {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ukchat-detail[hidden] { display: none !important; }
.ukchat-detail-mask { position: absolute; inset: 0; background: rgba(20, 32, 27, .45); border-radius: 20px; }
.ukchat-detail-card {
    position: relative;
    z-index: 1;
    width: 350px;
    max-width: calc(100% - 36px);
    max-height: calc(100% - 36px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .5);
}
.ukchat-detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f1ede3;
    color: #5d6a63;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.ukchat-detail-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 24px; }
.ukchat-detail-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: #e9e5db; }
.ukchat-detail-hd b { display: block; font-size: 15px; }
.ukchat-detail-hd span { color: #8a938d; font-size: 11.5px; }
.ukchat-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px dashed #eee9df;
    font-size: 12.5px;
}
.ukchat-detail-row > span { width: 62px; flex: none; color: #8a938d; }
.ukchat-detail-row b { flex: 1; min-width: 0; font-weight: 600; word-break: break-all; }
.ukchat-detail-row select {
    flex: 1;
    min-width: 0;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e9e3d7;
    border-radius: 8px;
    background: #fff;
    color: #33413a;
    font-family: inherit;
    font-size: 12.5px;
}
.ukchat-detail-medals { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eee9df; }
.ukchat-detail-label { display: block; margin-bottom: 6px; color: #8a938d; font-size: 11.5px; }
.ukchat-medals { display: flex; flex-wrap: wrap; gap: 6px; }
.ukchat-medal { padding: 3px 9px; border-radius: 999px; background: #f1ede3; color: #5d6a63; font-size: 11px; }
.ukchat-medal.m1 { background: #e8f5e9; color: #2e7d32; }
.ukchat-medal.m2 { background: #fff8e1; color: #a06b00; }
.ukchat-medal.m3 { background: #e3f2fd; color: #1565c0; }
.ukchat-medal.m4 { background: #f3e5f5; color: #7b1fa2; }
.ukchat-medal.m5 { background: #e0f7fa; color: #00838f; }
.ukchat-detail-empty { color: #a4aca7; font-size: 11.5px; }
.ukchat-detail-btns { display: flex; gap: 8px; margin-top: 16px; }
.ukchat-detail-btns .ukchat-btn { flex: 1; padding: 7px 6px; border-radius: 9px; }
.ukchat-btn.danger { background: #e05656; border-color: #e05656; color: #fff; }
.ukchat-btn.danger:hover { background: #c94a4a; border-color: #c94a4a; color: #fff; }
.ukchat-detail-btns .ukchat-btn.on { background: #eaf4ef; border-color: #cfe6dc; color: #1f6f5c; font-weight: 700; }

@media (max-width: 760px) {
    .ukchat-panel {
        width: 100%;
        max-width: none;
        grid-template-columns: 1fr;
        height: 88vh;
        max-height: 88vh;
        border-radius: 18px 18px 0 0;
    }
    .ukchat-me { padding: 10px 12px 6px; }
    .ukchat-me-avatar { width: 34px; height: 34px; }
    .ukchat-close { display: none; }
    .ukchat-filter { padding: 0 10px 6px; }
    .ukchat-conv-hd { padding: 9px 10px; gap: 8px; }
    .ukchat-peer-avatar { width: 32px; height: 32px; }
    .ukchat-hd-ops { gap: 4px; }
    .ukchat-chip { padding: 3px 8px; font-size: 11px; }
    .ukchat-msgs { padding: 14px 10px; }
    .ukchat-msg-body { max-width: 80%; }
    .ukchat-ava { width: 28px; height: 28px; }
    .ukchat-tools { padding: 5px 8px 0; }
    .ukchat-form { padding: 5px 8px 10px; }
    .ukchat-pop { left: 8px; right: 8px; bottom: 96px; max-height: 160px; }
    .ukchat-emoji-pop { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .ukchat-toast { bottom: 108px; }
    .ukchat-empty-ico { width: 54px; height: 54px; font-size: 24px; border-radius: 16px; }
    .ukchat.is-inline .ukchat-panel { height: 76vh; max-height: 76vh; }
    .ukchat-detail-card { width: 100%; max-width: calc(100% - 24px); max-height: calc(100% - 24px); padding: 16px; }
    .ukchat-detail-avatar { width: 46px; height: 46px; }
    .ukchat-detail-btns { flex-wrap: wrap; }
}
