/* ============ 全局 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: #f5f6fa;
    color: #333;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
}
.view { min-height: 100vh; }

/* ============ 登录页 ============ */
.login-view {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 40px;
    background: linear-gradient(160deg, #fdeff2 0%, #f5f6fa 60%);
    text-align: center;
}
.login-logo { font-size: 64px; margin-bottom: 16px; }
.login-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.login-sub { font-size: 14px; color: #888; line-height: 1.8; margin-bottom: 40px; }
.btn-primary {
    width: 100%; max-width: 300px; padding: 14px 0; border: none; border-radius: 24px;
    background: #ff6b81; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn-primary:active { opacity: .85; }
.btn-primary:disabled { background: #ffb3c1; opacity: 1; cursor: not-allowed; }
.login-tip { font-size: 12px; color: #aaa; margin-top: 16px; }

/* ============ 完善资料悬浮层（半透明，可看到首页） ============ */
.profile-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(245, 246, 250, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.profile-sheet {
    width: 100%; max-width: 420px; background: rgba(255, 255, 255, 0.94);
    border-radius: 18px; padding: 24px 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: sheetUp .25s ease-out;
    max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
#btn-profile-done { position: sticky; bottom: 0; margin-top: 8px; }
.profile-head { display: flex; align-items: center; justify-content: space-between; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-skip { font-size: 13px; color: #999; cursor: pointer; padding: 4px 8px; }
.profile-skip:active { color: #ff6b81; }
.page-sub { font-size: 13px; color: #888; margin-bottom: 28px; }
.form-item { margin-bottom: 24px; }
.form-item label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.form-item input {
    width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 10px; font-size: 15px; outline: none;
}
.gender-group { display: flex; gap: 12px; }
.gender-btn {
    flex: 1; padding: 12px 0; border: 1px solid #e0e0e0; border-radius: 10px;
    background: #fff; font-size: 15px; cursor: pointer; color: #666;
}
.gender-btn.active { border-color: #ff6b81; color: #ff6b81; background: #fff0f2; font-weight: 600; }
.form-hint { font-size: 12px; color: #aaa; margin-top: 8px; }
.tag-group { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    padding: 7px 14px; border-radius: 16px; background: #fff; border: 1px solid #e0e0e0;
    font-size: 13px; cursor: pointer; color: #666;
}
.tag.active { border-color: #ff6b81; color: #ff6b81; background: #fff0f2; }

/* ============ 主界面框架 ============ */
.main-view { padding-bottom: 64px; }
.tab-page { display: none; }
.tab-page.active { display: block; }
.app-header { padding: 16px 16px 8px; }
.header-online { font-size: 13px; color: #888; }
.header-online span { color: #22c55e; font-weight: 700; }

/* 双榜入口 */
.rank-entry { display: flex; gap: 12px; padding: 8px 16px; }
.rank-box {
    flex: 1; height: 72px; border-radius: 14px; padding: 12px 14px; color: #fff; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center;
}
.rank-luxury { background: linear-gradient(135deg, #f5b301, #d97706); }
.rank-charm { background: linear-gradient(135deg, #ec4899, #be185d); }
.rank-name { font-size: 16px; font-weight: 700; }
.rank-sub { font-size: 11px; opacity: .85; margin-top: 4px; }

.section-title { padding: 16px 16px 8px; font-size: 15px; font-weight: 700; }

/* 推荐流 */
.recommend-list { padding: 0 16px; }
.recommend-card {
    display: flex; align-items: center; background: #fff; border-radius: 16px;
    padding: 14px; margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(255, 107, 129, 0.08);
    border: 1px solid #fff0f3;
}
.recommend-avatar {
    width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #ffe3e8, #ffd0da);
    display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.recommend-avatar-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #ffd0da; }
.recommend-info { flex: 1; margin-left: 12px; min-width: 0; }
.recommend-name-row { display: flex; align-items: center; }
.recommend-name-text {
    font-size: 16px; font-weight: 700; color: #222;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sex-badge { flex-shrink: 0; margin-left: 6px; }
.vip-badge {
    flex-shrink: 0; margin-left: 6px;
    font-size: 10px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    border-radius: 6px; padding: 1px 6px;
}
.sex-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; margin-left: 6px; font-weight: 700; vertical-align: 1px; }
.sex-badge.m { background: #e8f3ff; color: #3f8ef0; }
.sex-badge.f { background: #ffe4ec; color: #ff6b81; }
.recommend-tags { margin-top: 6px; overflow: hidden; line-height: 1.6; }
.rtag {
    display: inline-block; font-size: 11px; color: #ff6b81; background: #fff0f3;
    border-radius: 8px; padding: 2px 8px; margin: 0 4px 0 0;
}
.rtag.none { color: #bbb; background: #f5f5f5; }
.recommend-btn {
    border: none; background: #ff6b81; color: #fff; padding: 8px 16px;
    border-radius: 16px; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.recommend-btn:active { opacity: .85; }
.btn-recommend-more { display: block; margin: 10px auto 18px; border: 1px solid #ffd0d8; background: #fff; color: #ff6b81; font-size: 13px; padding: 9px 30px; border-radius: 18px; cursor: pointer; }
.btn-recommend-more:active { background: #fff0f2; }

/* ============ 匹配页 ============ */
.match-card {
    display: flex; align-items: center; background: #fff; border-radius: 16px;
    padding: 16px; margin: 12px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04); cursor: pointer;
}
.match-icon { font-size: 32px; width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.match-random .match-icon { background: #f0f9ff; }
.match-gender .match-icon { background: #fff0f2; }
.match-info { flex: 1; margin-left: 14px; }
.match-name { font-size: 16px; font-weight: 700; }
.match-desc { font-size: 12px; color: #888; margin-top: 4px; }
.match-pref-line { font-size: 12px; color: #b07d86; margin-top: 5px; }
.match-pref-switch {
    display: inline-block; margin-left: 8px; color: #ff6b81; border: 1px solid #ffd9e0;
    background: #fff0f2; border-radius: 10px; padding: 1px 8px; font-size: 11px; cursor: pointer;
}
.match-pref-switch:active { opacity: .8; }
.match-btn {
    border: none; background: #ff6b81; color: #fff; padding: 9px 18px;
    border-radius: 18px; font-size: 14px; cursor: pointer;
}
.gender-hint { padding: 0 16px; font-size: 12px; color: #e11d48; }
.gender-hint a { color: #ff6b81; }

/* ============ 匹配偏好弹窗 ============ */
.popup-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    display: flex; align-items: flex-end; justify-content: center; z-index: 999;
}
#note-popup.popup-mask { align-items: center; }
#report-popup.popup-mask { align-items: center; }
#confirm-popup.popup-mask { align-items: center; }
.popup-sheet {
    width: 100%; max-width: 480px; background: #fff;
    border-radius: 16px 16px 0 0; padding: 20px 16px 16px;
    animation: sheetUp .2s ease-out;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.popup-title { text-align: center; font-size: 16px; font-weight: 700; }
.popup-close {
    position: absolute; top: 14px; right: 14px; width: 26px; height: 26px;
    line-height: 24px; text-align: center; border-radius: 50%;
    background: #f2f2f2; color: #999; font-size: 13px; cursor: pointer;
}
.popup-close:active { background: #e5e5e5; }
.popup-sheet { position: relative; }
.popup-sub { text-align: center; font-size: 12px; color: #999; margin: 6px 0 16px; }
.popup-option {
    padding: 14px 16px; border-radius: 12px; background: #f7f7fa; margin-bottom: 10px; cursor: pointer;
}
.popup-option:active { background: #fdeff2; }
.popup-option-name { font-size: 15px; font-weight: 600; }
.popup-option-desc { font-size: 12px; color: #888; margin-top: 3px; }
.popup-cancel {
    text-align: center; padding: 12px 0; font-size: 14px; color: #999;
    border-top: 1px solid #f2f2f2; margin-top: 6px; cursor: pointer;
}

/* ============ 消息页 ============ */
.msg-quick-row { display: flex; gap: 12px; padding: 12px 16px; }
.msg-quick {
    flex: 1; background: #fff; border-radius: 14px; padding: 14px 8px; text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.quick-icon { font-size: 26px; }
.quick-name { font-size: 12px; color: #555; margin-top: 6px; }
.badge { color: #ff6b81; font-weight: 700; }
.conversation-list { padding: 0 16px; }
.conversation-item {
    display: flex; align-items: center; background: #fff; border-radius: 12px;
    padding: 12px; margin-bottom: 8px;
}
.conversation-avatar { width: 42px; height: 42px; border-radius: 50%; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.conversation-info { flex: 1; margin-left: 10px; min-width: 0; }
.conversation-name { font-size: 14px; font-weight: 600; }
.conversation-preview { font-size: 12px; color: #999; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread { background: #ff6b81; color: #fff; font-size: 10px; border-radius: 10px; padding: 2px 6px; }
.empty-tip { text-align: center; color: #bbb; font-size: 13px; padding: 40px 0; }

/* ============ 我的页 ============ */
.me-bg { height: 140px; background: linear-gradient(135deg, #ffb3c1, #ff6b81); border-radius: 0 0 24px 24px; position: relative; overflow: hidden; }
.me-bg::before { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.14); top: -70px; right: -40px; }
.me-bg::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.10); bottom: -50px; left: -30px; }
.me-card { display: flex; align-items: center; margin: -64px 16px 0; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 6px 20px rgba(255,107,129,.16); position: relative; z-index: 1; }
.me-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #ffe3e9, #ffd0da); display: flex; align-items: center; justify-content: center; font-size: 30px; border: 3px solid #fff; box-shadow: 0 0 0 3px #ff8fa3, 0 0 12px rgba(255,107,129,0.4); }
.me-name { font-size: 18px; font-weight: 700; margin-left: 12px; }
.me-id { font-size: 11px; color: #b9a0a6; margin-left: 6px; letter-spacing: .3px; }
.me-meta { font-size: 12px; color: #888; margin-left: 12px; margin-top: 4px; }
.me-stats { display: flex; background: #fff; margin: 12px 16px 0; border-radius: 16px; padding: 16px 0; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.stat { flex: 1; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: #f0f0f0; }
.stat-num { font-size: 18px; font-weight: 700; color: #ff6b81; }
.stat-label { font-size: 12px; color: #888; margin-top: 4px; }
.stat-click { cursor: pointer; }
.stat-click:active { background: #fff5f6; }
.me-card-row { display: flex; align-items: center; gap: 12px; }
.me-card-info { flex: 1; min-width: 0; }
.me-actions { display: flex; flex-direction: column; background: #fff; margin: 12px 16px; border-radius: 16px; padding: 4px 0; box-shadow: 0 2px 8px rgba(0,0,0,.05); overflow: hidden; }
.action-item { display: flex; align-items: center; padding: 14px 16px; color: #333; border-bottom: 1px solid #f5f5f5; cursor: pointer; text-align: left; }
.action-item:last-child { border-bottom: none; }
.action-item:active { background: #fff5f6; }
.action-item .ai-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; font-size: 16px; margin-right: 12px; flex-shrink: 0; background: #fff5f7; }
.action-item .ai-name { flex: 1; font-size: 14px; text-align: left; }
.action-item#btn-me-vip .ai-name { color: #ff6b81; font-weight: 600; }
.action-item::after { content: '›'; font-size: 20px; color: #c9cdd4; font-weight: 700; margin-left: auto; }
.me-wallet {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #ff6b81, #ff8fa3); margin: 12px 16px 0;
    border-radius: 16px; padding: 16px 18px; color: #fff;
    box-shadow: 0 4px 14px rgba(255,107,129,.28);
}
.me-wallet-label { font-size: 12px; opacity: .92; }
.me-wallet-balance { font-size: 24px; font-weight: 800; margin-top: 2px; }
.me-wallet-balance em { font-size: 12px; font-weight: 500; font-style: normal; opacity: .9; margin-left: 4px; }
.me-recharge-btn {
    background: #fff; color: #ff6b81; border: none; border-radius: 999px;
    padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12); flex-shrink: 0;
}
.me-recharge-btn:active { transform: scale(.96); }
.logout-btn { display: block; margin: 16px auto 24px; border: 1px solid #ffd9e0; background: #fff; color: #ff6b81; padding: 10px 40px; border-radius: 20px; font-size: 13px; cursor: pointer; }
.logout-btn:active { background: #fff5f6; }

/* ============ 底部导航 ============ */
.tabbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; background: #fff; border-top: 1px solid #eee;
    display: flex; z-index: 99;
}
.tabbar-item { flex: 1; text-align: center; padding: 7px 0 6px; color: #999; position: relative; cursor: pointer; }
.tabbar-item.active { color: #ff6b81; }
.tabbar-icon { display: block; font-size: 20px; }
.tabbar-name { font-size: 10px; }
.tabbar-badge {
    position: absolute; top: 2px; right: calc(50% - 24px); background: #ff6b81; color: #fff;
    font-size: 9px; border-radius: 8px; padding: 1px 4px;
}

/* ============ 推荐卡片（心动+撩TA） ============ */
.recommend-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-heart {
    border: 1px solid #ff6b81; background: #fff; color: #ff6b81;
    width: 34px; height: 34px; border-radius: 50%; font-size: 15px; cursor: pointer;
}
.btn-heart:active { background: #fdeff2; }
.recommend-meta { font-size: 12px; color: #c0c0c0; margin-top: 6px; letter-spacing: .3px; }
.recommend-sign {
    font-size: 12px; color: #888; margin-top: 6px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; max-width: 220px;
}

/* ============ 匹配中动画 ============ */
.matching-box { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 60px; }
.matching-spinner {
    width: 56px; height: 56px; border-radius: 50%;
    border: 4px solid #ffe3e8; border-top-color: #ff6b81;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.matching-text { font-size: 15px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }

/* ============ 匹配成功弹层 ============ */
#match-result-popup.popup-mask { align-items: center; }
.result-sheet {
    position: relative;
    width: 82%; max-width: 420px; background: #fff; border-radius: 20px;
    padding: 24px 20px; text-align: center; animation: sheetUp .25s ease-out;
}
.result-title { font-size: 18px; font-weight: 700; color: #ff6b81; }
.result-card {
    background: linear-gradient(135deg, #fff0f2, #ffe3e8); border-radius: 16px;
    padding: 20px 16px; margin: 18px 0 20px;
}
.result-avatar {
    width: 64px; height: 64px; border-radius: 50%; background: #fff; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.result-name { font-size: 17px; font-weight: 700; }
.result-tags { font-size: 12px; color: #888; margin-top: 6px; }
.result-common {
    display: inline-block; margin-top: 10px; font-size: 12px; color: #ff6b81;
    background: #fff; border-radius: 12px; padding: 5px 12px;
}
.result-score-row { display: flex; flex-direction: column; align-items: center; margin-top: 12px; }
.score-ring {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: conic-gradient(#ff6b81 50%, #ffe3e8 0deg);
}
.score-ring span {
    width: 50px; height: 50px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #ff6b81;
}
.score-label { font-size: 11px; color: #888; margin-top: 6px; }

/* 异性匹配·TA的爱好弹窗 */
.gender-pref-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 4px 0 8px; }
.popup-actions { display: flex; justify-content: center; margin-top: 10px; }
.popup-actions .btn-primary { width: 70%; }
.popup-ghost {
    flex: 1; border: 1px solid #e0e0e0; background: #fff; color: #888;
    padding: 12px 0; border-radius: 24px; font-size: 13px; cursor: pointer;
}

/* 自定义爱好 */
.gender-pref-custom { display: flex; gap: 8px; margin: 10px 0 4px; }
.gender-pref-custom input {
    flex: 1; border: 1px solid #eee; background: #f7f7fa; border-radius: 10px;
    padding: 10px 12px; font-size: 13px; outline: none;
}
.gender-pref-custom button {
    border: none; background: #ffb3c1; color: #fff; border-radius: 10px;
    padding: 0 16px; font-size: 13px; cursor: pointer;
}
.tag-custom { background: #fff3f5; }

/* 灵魂三问 */
.soul-box { margin: 12px 0; }
.soul-title { font-size: 14px; font-weight: 700; color: #ff6b81; }
.soul-question { font-size: 14px; font-weight: 600; margin: 10px 0 8px; color: #333; }
.soul-options { display: flex; flex-direction: column; gap: 8px; }
.soul-option {
    border: 1px solid #ffe3e8; background: #fff; color: #444; border-radius: 10px;
    padding: 10px 12px; font-size: 13px; cursor: pointer; text-align: left;
}
.soul-option:active { background: #fff0f2; }
.soul-option:disabled { opacity: .7; }
.soul-option.soul-picked { border-color: #ff6b81; background: #fff0f2; color: #ff6b81; font-weight: 600; }
.soul-feedback { margin-top: 8px; font-size: 13px; }
.soul-hit { color: #ff6b81; font-weight: 600; }
.soul-miss { color: #999; }
.result-btns { display: flex; gap: 10px; }
.btn-ghost {
    flex: 1; border: 1px solid #ffb3c1; background: #fff; color: #ff6b81;
    padding: 12px 0; border-radius: 24px; font-size: 14px; cursor: pointer;
}
.btn-soft {
    flex: 1; border: 1px solid #ffb3c1; background: #fff0f2; color: #ff6b81;
    padding: 12px 0; border-radius: 24px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-soft:disabled { opacity: .6; cursor: not-allowed; }
.btn-soft:active { opacity: .85; }
#btn-result-chat { flex: 1.4; }
.result-tip { font-size: 12px; color: #b07d86; margin: 8px 0 2px; line-height: 1.5; }

/* 消息页默契挑战横幅 */
.challenge-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: linear-gradient(135deg, #fff0f2, #ffe9ee); border: 1px solid #ffd9e0;
    border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
}
.challenge-text { font-size: 13px; color: #a34a5a; line-height: 1.5; flex: 1; }
.challenge-actions { display: flex; gap: 8px; }
.challenge-actions .btn-ghost {
    flex: none; border: 1px solid #e0b6bd; background: #fff; color: #999; padding: 6px 14px;
    border-radius: 16px; font-size: 12px; cursor: pointer;
}
.challenge-actions .btn-primary {
    flex: none; padding: 6px 14px; font-size: 12px; border-radius: 16px; width: auto;
}

/* ============ 聊天页（M3） ============ */
.chat-page {
    position: fixed; inset: 0; z-index: 200; background: #f7f7fa;
    display: flex; flex-direction: column; max-width: 480px; margin: 0 auto;
}
.chat-header {
    display: flex; align-items: center; gap: 10px; background: #fff;
    padding: 12px 16px; border-bottom: 1px solid #f0f0f0; box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.chat-back { font-size: 26px; color: #666; cursor: pointer; line-height: 1; }
.chat-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: #fdeff2; border: 2px solid #ffd9e0;
    display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; flex-shrink: 0;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-title { flex: 1; min-width: 0; }
.chat-name-row { display: flex; align-items: center; gap: 8px; }
#chat-name { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-level {
    font-size: 10px; color: #fff; background: linear-gradient(135deg, #ff6b81, #ff9eb3);
    border-radius: 8px; padding: 1px 7px; flex-shrink: 0;
}
.chat-progress-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.chat-progress-bg {
    flex: 1; height: 6px; background: #f3e0e4; border-radius: 3px; overflow: hidden; max-width: 150px;
}
.chat-progress-fill {
    height: 100%; width: 0%; background: linear-gradient(90deg, #ff6b81, #ff9eb3);
    border-radius: 3px; transition: width .4s;
}
.chat-progress-text { font-size: 11px; color: #b07d86; white-space: nowrap; }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px;
}
.chat-empty {
    margin: auto; text-align: center; color: #b0b0b8; padding: 40px 0;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.chat-empty-icon { font-size: 44px; opacity: .7; }
.chat-empty-text { font-size: 13px; line-height: 1.7; }
.chat-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.quick-btn {
    border: 1px solid #ffd9e0; background: #fff0f2; color: #ff6b81;
    border-radius: 16px; padding: 7px 14px; font-size: 13px; cursor: pointer;
}
.quick-btn:active { background: #ffd9e0; }
.chat-msg { display: flex; flex-direction: column; max-width: 76%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; align-items: flex-start; }
.chat-msg .bubble {
    padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5;
    word-break: break-word; white-space: pre-wrap;
}
.chat-msg.mine .bubble { background: #ff6b81; color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.theirs .bubble { background: #fff; color: #333; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.chat-msg .voice-bubble { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.chat-inputbar {
    display: flex; align-items: center; gap: 6px; background: #fff;
    padding: 8px 10px; border-top: 1px solid #f0f0f0; padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.chat-tools {
    display: flex; align-items: center; justify-content: flex-end; background: #fff;
    padding: 6px 12px; border-top: 1px solid #f6f6f6;
}
.gift-btn { color: #ff9eb3; font-size: 18px; }
.gift-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 14px 2px 6px; }
.gift-item {
    background: #fff; border: 1px solid #f0e3e6; border-radius: 14px; padding: 10px 4px;
    text-align: center; cursor: pointer;
}
.gift-item:active { background: #fff0f2; border-color: #ffd9e0; }
.gift-item .gift-icon { font-size: 30px; display: block; }
.gift-item .gift-icon .gift-img { width: 34px; height: 34px; object-fit: contain; }
.gift-bubble .gift-img { width: 20px; height: 20px; vertical-align: middle; object-fit: contain; }
.gift-item .gift-name { font-size: 12px; color: #555; display: block; margin-top: 4px; }
.gift-item .gift-price { font-size: 11px; color: #ff6b81; display: block; margin-top: 2px; }
.gift-item .gift-exp { font-size: 10px; color: #aaa; display: block; }
.gift-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 0; }
.gift-footer span { font-size: 12px; color: #999; }
.gift-vip-tip { color: #b8860b !important; }
.gift-bubble {
    background: linear-gradient(135deg, #fff0f2, #ffe3e8) !important;
    border: 1px solid #ffd9e0;
}
.gift-bubble .gift-exp { font-size: 10px; color: #ff6b81; margin-left: 6px; }
.chat-tool-ai {
    display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #ff6b81;
    background: #fff0f2; border: 1px solid #ffd9e0; border-radius: 14px; padding: 4px 12px; cursor: pointer;
}
.chat-tool-ai em { font-style: normal; background: #ff6b81; color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; }
.ai-box { position: relative; width: 84%; max-width: 340px; background: #fff; border-radius: 20px; padding: 20px 16px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
#ai-popup.popup-mask { align-items: center; }
#checkin-popup.popup-mask, #feedback-popup.popup-mask, #service-popup.popup-mask { align-items: center; }
#luxury-popup.popup-mask, #withdraw-popup.popup-mask, #rank-popup.popup-mask { align-items: center; }
.ai-close { float: right; color: #999; cursor: pointer; font-size: 16px; }
.ai-hint { font-size: 12px; color: #999; margin: 6px 0 10px; }
.ai-topic {
    background: #fff; border: 1px solid #f0e3e6; border-radius: 12px; padding: 10px 12px;
    margin-bottom: 8px; font-size: 13px; color: #555; cursor: pointer; line-height: 1.5;
}
.ai-topic:active { background: #fff0f2; border-color: #ffd9e0; }
.ai-buy-row { margin-top: 6px; text-align: center; }
.ai-buy-btn {
    border: none; background: linear-gradient(135deg, #ff6b81, #ff9eb3); color: #fff;
    border-radius: 18px; padding: 9px 22px; font-size: 14px; cursor: pointer;
}
.ai-vip-btn {
    border: 1px solid #ffc94d; background: linear-gradient(135deg, #fff8e1, #ffefc2); color: #b8860b;
    border-radius: 18px; padding: 9px 22px; font-size: 14px; cursor: pointer; margin-left: 8px;
}
.ai-buy-tip { font-size: 11px; color: #aaa; margin-top: 6px; }
.vip-box { position: relative; width: 84%; max-width: 360px; background: #fff; border-radius: 20px; padding: 20px 18px 16px; }
#vip-popup.popup-mask { align-items: center; }
.vip-list { margin: 12px 0; }
.vip-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 2px; border-bottom: 1px dashed #f2f2f2; font-size: 13px;
}
.vip-item span { color: #333; }
.vip-item em { font-style: normal; color: #ff6b81; font-size: 12px; }
.vip-status { font-size: 12px; color: #ff6b81; text-align: center; background: #fff0f2; border-radius: 8px; padding: 8px; margin-bottom: 2px; }
.vip-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.vip-plan {
    background: #fff8e1; border: 1px solid #ffd98a; border-radius: 12px; padding: 8px 4px; text-align: center; cursor: pointer;
}
.vip-plan:active { background: #ffefc2; }
.vip-plan .plan-name { font-size: 12px; color: #b8860b; display: block; }
.vip-plan .plan-price { font-size: 13px; font-weight: 700; color: #b8860b; display: block; margin-top: 2px; }
.vip-plan .plan-days { font-size: 10px; color: #c9a24b; display: block; }
.vip-coming { text-align: center; font-size: 11px; color: #bbb; margin-top: 10px; }
/* ============ 会员中心独立页 ============ */
.vip-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; background: linear-gradient(135deg, #ff8fa3, #ff6b81); color: #fff; position: sticky; top: 0; z-index: 5; }
.vip-header-title { font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.vip-status-card { background: linear-gradient(135deg, #fff5f6, #ffe9ed); border: 1px solid #ffd9e0; border-radius: 14px; padding: 16px 18px; margin-top: 12px; }
.vip-status-msg { font-size: 15px; font-weight: 700; color: #ff6b81; }
.vip-status-sub { font-size: 12px; color: #c98a94; margin-top: 5px; line-height: 1.5; }
.vip-section-title { font-size: 15px; font-weight: 700; color: #333; margin: 18px 2px 10px; }
.vip-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vip-perk { background: #fff; border-radius: 12px; padding: 12px 4px 10px; text-align: center; box-shadow: 0 1px 4px rgba(255, 107, 129, .06); }
.vperk-ico { font-size: 22px; display: block; }
.vperk-name { font-size: 12px; color: #555; display: block; margin-top: 5px; font-weight: 600; }
.vperk-desc { font-size: 10px; color: #b6a0a6; display: block; margin-top: 2px; }
#vip-page .vip-plans { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }
/* 会员中心独立页：内容超出视口时可滚动（chat-page 是 fixed 全屏容器，需显式放开滚动） */
#vip-page { overflow-y: auto; -webkit-overflow-scrolling: touch; }
#vip-page .vip-plan { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #f3e0e5; border-radius: 14px; padding: 12px 14px; text-align: left; cursor: pointer; box-shadow: 0 1px 4px rgba(255, 107, 129, .06); }
#vip-page .vip-plan:active { background: #fff5f7; border-color: #ff6b81; }
.vp-left .vp-name { font-size: 14px; font-weight: 700; color: #333; }
.vp-left .vp-days { font-size: 11px; color: #b6a0a6; margin-top: 3px; }
.vp-right { text-align: right; }
.vp-row { display: flex; align-items: center; gap: 10px; }
.vp-btn-pay { background: #ff6b81; color: #fff; border: none; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 14px; white-space: nowrap; }
.vp-btn-pay:active { background: #ef5a70; }
.vp-btn-coin { background: #fff0f3; color: #ff6b81; border: 1px solid #ffd9e0; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 14px; white-space: nowrap; }
.vp-btn-coin:active { background: #ffe4ea; }
.vip-note { text-align: center; font-size: 11px; color: #b6a0a6; margin-top: 14px; line-height: 1.7; }
.recharge-tip { text-align: center; font-size: 12px; color: #999; margin: 8px 0 4px; }
.recharge-tip span { color: #ff6b81; font-weight: 700; }
.recharge-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 2px; }
.recharge-plan {
    background: #fff; border: 1px solid #f0e3e6; border-radius: 14px; padding: 12px 4px; text-align: center; cursor: pointer;
}
.recharge-plan:active { background: #fff0f2; border-color: #ffd9e0; }
.recharge-plan .rp-price { font-size: 17px; font-weight: 700; color: #ff6b81; display: block; }
.recharge-plan .rp-coins { font-size: 11px; color: #999; display: block; margin-top: 2px; }
.recharge-custom-row { display: flex; align-items: center; gap: 10px; padding: 4px 2px 6px; }
.recharge-custom-label { font-size: 13px; color: #666; white-space: nowrap; }
.recharge-custom-input { flex: 1; min-width: 0; border: 1px solid #ffd0d8; border-radius: 10px; padding: 9px 12px; font-size: 14px; background: #fffafb; color: #333; }
.recharge-custom-input:focus { outline: none; border-color: #ff6b81; }
.recharge-custom-btn { flex-shrink: 0; background: linear-gradient(135deg, #ff6b81, #ff8fa3); color: #fff; border: none; border-radius: 10px; padding: 9px 18px; font-size: 14px; font-weight: 600; }
.recharge-custom-btn:active { opacity: .85; }
.recharge-note { text-align: center; font-size: 11px; color: #bbb; margin-top: 8px; }

/* ============ 签到 / 反馈 / 客服弹窗 ============ */
.checkin-box, .feedback-box, .service-box { text-align: center; padding: 24px 20px; }
.checkin-icon { font-size: 44px; margin: 8px 0 6px; }
.checkin-msg { font-size: 16px; font-weight: 700; color: #333; }
.checkin-reward { font-size: 20px; font-weight: 800; color: #ff6b81; margin: 8px 0 2px; }
.checkin-balance { font-size: 12px; color: #999; }
.checkin-ok { margin-top: 16px; width: 100%; }
.feedback-tip, .service-tip { font-size: 12px; color: #999; margin-bottom: 12px; }
.fb-textarea { width: 100%; box-sizing: border-box; border: 1px solid #eee; border-radius: 10px; padding: 10px; font-size: 13px; resize: none; background: #fafafa; font-family: inherit; }
.fb-textarea:focus { outline: none; border-color: #ff6b81; background: #fff; }
.fb-input { width: 100%; box-sizing: border-box; border: 1px solid #eee; border-radius: 10px; padding: 10px; font-size: 13px; margin-top: 10px; background: #fafafa; }
.fb-input:focus { outline: none; border-color: #ff6b81; background: #fff; }
.feedback-submit { margin-top: 14px; width: 100%; }
.service-wechat { font-size: 20px; font-weight: 800; color: #ff6b81; background: #fff5f6; border: 1px dashed #ffd9e0; border-radius: 10px; padding: 14px; margin: 4px 0 14px; word-break: break-all; }
.service-copy { width: 100%; }
.service-hint { font-size: 11px; color: #bbb; margin-top: 8px; }
.vip-name { color: #b8860b; font-weight: 700; }

/* ============ 豪气值明细 / 魅力值提现弹窗 ============ */
.luxury-box { padding: 24px 20px; }
.popup-box { width: 86%; max-width: 400px; background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.luxury-total { font-size: 16px; color: #333; text-align: center; font-weight: 600; }
.luxury-total b { color: #ff6b81; font-size: 20px; }
.luxury-tip { font-size: 11px; color: #aaa; text-align: center; margin: 6px 0 12px; }
.luxury-list { max-height: 260px; overflow-y: auto; }
.luxury-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.luxury-item:last-child { border-bottom: none; }
.luxury-item .lr-reason { color: #333; flex: 1; }
.luxury-item .lr-time { color: #bbb; font-size: 11px; margin-left: 8px; }
.luxury-item .lr-val { color: #ff6b81; font-weight: 700; margin-left: 8px; }
.rank-tip { font-size: 11px; color: #aaa; text-align: center; margin: 6px 0 12px; }
.luxury-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.luxury-row:last-child { border-bottom: none; }
.lr-rank { width: 34px; font-weight: 700; color: #999; flex-shrink: 0; }
.lr-nick { flex: 1; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-val { color: #ff6b81; font-weight: 700; margin-left: 8px; flex-shrink: 0; }
.luxury-empty { text-align: center; color: #bbb; font-size: 13px; padding: 24px 0; }

/* ============ 排行榜独立页 ============ */
.rk-tip { font-size: 11px; color: #aaa; text-align: center; margin: 2px 0 12px; }
.rk-list { display: flex; flex-direction: column; gap: 10px; }
.rk-my { margin-bottom: 12px; }
.rk-my-card {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #fff0f4, #ffe3ea); border: 1px solid #ffd5de;
    border-radius: 16px; padding: 14px 16px;
}
.my-avatar { width: 46px; height: 46px; font-size: 20px; background: #ff6b81; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(255, 107, 129, .35); }
.rk-my-info { flex: 1; min-width: 0; }
.rk-my-nick { font-size: 16px; font-weight: 700; color: #333; }
.rk-my-val { font-size: 13px; color: #8a8a8a; margin-top: 3px; }
.rk-my-val b { color: #ff6b81; font-size: 15px; }
.rk-my-badge { font-size: 14px; font-weight: 700; color: #ff6b81; background: #fff; border-radius: 14px; padding: 6px 14px; box-shadow: 0 2px 8px rgba(255, 107, 129, .18); white-space: nowrap; }
.rk-my-badge.top3 { color: #fff; background: linear-gradient(135deg, #ffb347, #ff6b81); box-shadow: 0 2px 10px rgba(255, 107, 129, .35); }
.rk-my-badge.none { color: #999; background: #f5f5f5; box-shadow: none; }
.rk-row { background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.rk-rank { width: 32px; text-align: center; flex-shrink: 0; }
.rk-medal { font-size: 22px; }
.rk-no { font-size: 14px; font-weight: 700; color: #c9c9c9; }
.rk-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #ff8fa3, #ff6b81); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rk-info { flex: 1; min-width: 0; }
.rk-nick { font-size: 15px; font-weight: 600; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-sex { font-size: 11px; margin-left: 3px; }
.rk-sex.m { color: #4a9ff5; }
.rk-sex.f { color: #ff6b81; }
.rk-sub { font-size: 11px; color: #bbb; margin-top: 2px; }
.rk-val { text-align: right; flex-shrink: 0; }
.rk-val b { font-size: 17px; color: #ff6b81; }
.rk-val-lab { font-size: 10px; color: #ccc; margin-left: 2px; }
.rk-empty { text-align: center; color: #bbb; font-size: 13px; padding: 40px 0; }

/* 领奖台（前三名） */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; padding: 10px 0 16px; }
.podium-col { display: flex; flex-direction: column; align-items: center; }
.podium-user { display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; }
.podium-user .rk-avatar { width: 46px; height: 46px; font-size: 19px; }
.podium-nick { font-size: 12px; color: #555; margin-top: 4px; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-val { font-size: 12px; color: #ff6b81; font-weight: 700; margin-top: 1px; }
.podium-bar { width: 78px; border-radius: 14px 14px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; font-size: 26px; }
.c1 .podium-bar { height: 100px; background: linear-gradient(180deg, #ffe08a, #ffc24d); box-shadow: 0 4px 12px rgba(255, 194, 77, .35); }
.c2 .podium-bar { height: 72px; background: linear-gradient(180deg, #e9edf2, #c8cfd8); box-shadow: 0 4px 10px rgba(0, 0, 0, .08); }
.c3 .podium-bar { height: 54px; background: linear-gradient(180deg, #f7cdb0, #e8a87e); box-shadow: 0 4px 10px rgba(232, 168, 126, .3); }
.podium-col.c1 .podium-nick { font-weight: 700; color: #c77d00; }
.podium-col.c2 .podium-nick { font-weight: 600; color: #7a8494; }
.podium-col.c3 .podium-nick { font-weight: 600; color: #b06f45; }
.withdraw-box { padding: 24px 20px; }
.withdraw-info { background: #fff5f6; border-radius: 10px; padding: 12px 14px; margin-bottom: 4px; }
.withdraw-line { font-size: 13px; color: #555; padding: 4px 0; }
.withdraw-line b { color: #ff6b81; }
.withdraw-preview { font-size: 13px; color: #666; margin-top: 10px; text-align: center; }
.withdraw-preview b { color: #ff6b81; font-size: 18px; }
.withdraw-submit { margin-top: 12px; width: 100%; }
.withdraw-note { font-size: 11px; color: #bbb; text-align: center; margin-top: 10px; }

/* ============ 魅力值提现独立页 ============ */
.wd-page { padding: 16px; overflow-y: auto; }
.wd-page-title { font-size: 15px; font-weight: 700; color: #333; }
.wd-info { background: linear-gradient(135deg, #ff6b81, #ff8fa3); border-radius: 16px; padding: 16px; color: #fff; }
.wd-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wd-cell-lab { font-size: 11px; opacity: .85; }
.wd-cell-num { font-size: 14px; font-weight: 700; margin-top: 3px; }
.wd-cell-num b { font-size: 20px; }
.wd-form { background: #fff; border-radius: 16px; padding: 16px; margin-top: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.wd-preview { font-size: 13px; color: #666; margin-top: 12px; text-align: center; }
.wd-preview b { color: #ff6b81; font-size: 20px; }
.wd-qrcode-box { margin-top: 14px; background: #fafafa; border: 1px dashed #ffd9e0; border-radius: 12px; padding: 14px; }
.wd-qrcode-label { font-size: 12px; color: #666; margin-bottom: 10px; }
.wd-qrcode-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wd-qrcode-btn { flex-shrink: 0; padding: 10px 20px; font-size: 13px; }
.wd-qrcode-preview { width: 150px; height: 150px; object-fit: contain; border-radius: 10px; border: 1px solid #eee; background: #fff; }
.wd-qrcode-tip { font-size: 11px; color: #aaa; margin-top: 4px; }
.wd-submit { margin-top: 14px; width: 100%; }
.wd-note { font-size: 11px; color: #bbb; text-align: center; margin-top: 10px; }
.wd-records { margin-top: 12px; }
.wd-records-title { font-size: 14px; font-weight: 700; color: #333; margin: 4px 0 10px; }
.wd-record-empty { background: #fff; border-radius: 12px; padding: 22px; text-align: center; font-size: 13px; color: #bbb; }
.wd-record { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.wd-record-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: #333; }
.wd-record-mid { font-size: 12px; color: #777; margin-top: 6px; }
.wd-record-mid b { color: #ff6b81; }
.wd-record-time { font-size: 11px; color: #bbb; margin-top: 6px; }
.wd-badge { font-size: 11px; padding: 2px 10px; border-radius: 10px; background: #fff3e0; color: #f57c00; font-weight: 600; }
.wd-badge-ok { background: #e8f5e9; color: #2e7d32; }
.voice-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ffd9e0;
    background: #fff0f2; font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.voice-btn.recording { background: #ff6b81; color: #fff; animation: pulse .8s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
#chat-input {
    flex: 1; min-width: 0; border: 1px solid #eee; background: #f7f7fa; border-radius: 18px;
    padding: 8px 12px; font-size: 14px; outline: none;
}
/* 微信式「按住 说话」按钮：点击语音按钮后替换输入框 */
.hold-talk {
    flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #eee; border-radius: 18px; font-size: 14px; color: #333;
    user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer;
}
.hold-talk.talking { background: #d9d9de; color: #999; border-color: #d9d9de; }
.hold-talk.recording { background: #d9d9de; color: #999; border-color: #d9d9de; }
.send-btn {
    border: none; background: #ff6b81; color: #fff; border-radius: 16px;
    padding: 8px 14px; font-size: 13px; cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.send-btn:active { opacity: .85; }

/* ============ 会话列表 ============ */
.conv-avatar { width: 42px; height: 42px; border-radius: 50%; background: #fdeff2; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.conv-info { flex: 1; margin-left: 10px; min-width: 0; }
.conv-name { font-size: 14px; font-weight: 600; }
.conv-level {
    font-size: 10px; color: #ff6b81; background: #fdeff2; border-radius: 8px;
    padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}
.conv-challenge {
    font-size: 10px; color: #fff; background: linear-gradient(135deg, #ff6b81, #ff9eb3);
    border-radius: 8px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
    display: inline-block;
}
.conv-last { font-size: 12px; color: #999; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-side { text-align: right; flex-shrink: 0; }
.conv-time { font-size: 10px; color: #bbb; }
.conv-unread {
    display: inline-block; min-width: 16px; height: 16px; line-height: 16px; text-align: center;
    background: #ff6b81; color: #fff; font-size: 10px; border-radius: 8px; margin-top: 4px; padding: 0 4px;
}

/* ============ 头像上传 & 个性签名 ============ */
.pf-avatar-row { display: flex; align-items: center; gap: 14px; }
.pf-avatar-preview {
    width: 72px; height: 72px; border-radius: 50%; background: #fdeff2;
    display: flex; align-items: center; justify-content: center; font-size: 32px; overflow: hidden; flex-shrink: 0;
}
.pf-avatar-upload-btn {
    display: inline-block; padding: 8px 16px; background: #fdeff2; color: #ff6b81;
    border-radius: 18px; font-size: 13px; cursor: pointer; font-weight: 500;
}
.pf-avatar-upload-btn:active { opacity: .8; }
