
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; -webkit-touch-callout:none; }
html, body { height:100%; overflow:hidden; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
    font-size: 14px; color:#1a1a1a;
    -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
    overscroll-behavior:none;
}
img { display:block; max-width:100%; }
a { cursor:pointer; color:#07c160; text-decoration:none; transition:color .15s; }
a:active { color:#06ad56; }
button { cursor:pointer; border:none; outline:none; font-family:inherit; -webkit-appearance:none; appearance:none; }
input, textarea { outline:none; font-family:inherit; -webkit-appearance:none; appearance:none; border-radius:0; }
input[type="checkbox"] { -webkit-appearance:checkbox; appearance:checkbox; }
input[type="file"] { -webkit-appearance:none; appearance:none; }
::-webkit-scrollbar { width:4px; height:4px; }
::-webkit-scrollbar-thumb { background:rgba(0,0,0,0.12); border-radius:2px; }
::-webkit-scrollbar-track { background:transparent; }
* { scrollbar-width:thin; scrollbar-color:rgba(0,0,0,0.12) transparent; }


/* ===== 主题色板（日间 / 夜间） ===== */
:root {
    --rp-primary:#e8352e;
    --rp-primary-2:#ff6a3d;
    --rp-grad:linear-gradient(135deg,#ff5b4a 0%,#e8352e 62%,#cf1b1b 100%);
    --rp-gold:#f7b733;
    --rp-gold-2:#ffe49a;
    --rp-page:#f2f3f5;
    --rp-card:#ffffff;
    --rp-card-2:#fafafa;
    --rp-text:#20242c;
    --rp-text-2:#6b7280;
    --rp-text-3:#9aa1ab;
    --rp-line:rgba(0,0,0,0.07);
    --rp-input-bg:#f5f6f8;
    --rp-shadow:0 10px 30px rgba(0,0,0,0.10);
}
body.dark-mode {
    --rp-page:#141420;
    --rp-card:#20202f;
    --rp-card-2:#27273a;
    --rp-text:#e9e9f1;
    --rp-text-2:#a7a7ba;
    --rp-text-3:#737386;
    --rp-line:rgba(255,255,255,0.08);
    --rp-input-bg:#2b2b40;
    --rp-shadow:0 10px 30px rgba(0,0,0,0.40);
}



/* ===== 背景图层 ===== */
.bg-layer {
    position:fixed; inset:0; z-index:0;
    background-size:cover; background-position:center;
    background-repeat:no-repeat;
    background-color:#1a1a2e;
    transition:background-image .6s ease, opacity .6s ease;
}
.bg-overlay {
    position:fixed; inset:0; z-index:1;
    background:rgba(0,0,0,0.1);
    pointer-events:none;
}
body.dark-mode .bg-overlay { background:rgba(0,0,0,0.35); }


/* ===== 毛玻璃分级 ===== */
/* 面板类 - 非常淡的毛玻璃，能清晰透出壁纸 */
.glass-panel {
    background:rgba(255,255,255,0.25);
    backdrop-filter:blur(8px) saturate(120%);
    -webkit-backdrop-filter:blur(8px) saturate(120%);
}
.glass-header {
    background:rgba(255,255,255,0.2);
    backdrop-filter:blur(8px) saturate(120%);
    -webkit-backdrop-filter:blur(8px) saturate(120%);
    border-bottom:1px solid rgba(255,255,255,0.1);
}

/* 按钮/卡片类 - 强毛玻璃，明显可见 */
.glass-card {
    background:rgba(255,255,255,0.6);
    backdrop-filter:blur(24px) saturate(180%);
    -webkit-backdrop-filter:blur(24px) saturate(180%);
    border:1px solid rgba(255,255,255,0.35);
    box-shadow:0 8px 32px rgba(0,0,0,0.1);
}
.glass-btn {
    background:rgba(255,255,255,0.55);
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    border:1px solid rgba(255,255,255,0.3);
    box-shadow:0 2px 12px rgba(0,0,0,0.08);
}
.glass-input-area {
    background:rgba(255,255,255,0.25);
    backdrop-filter:blur(8px) saturate(120%);
    -webkit-backdrop-filter:blur(8px) saturate(120%);
    border-top:1px solid rgba(255,255,255,0.1);
}
.glass-bubble {
    background:rgba(255,255,255,0.6);
    backdrop-filter:blur(16px) saturate(150%);
    -webkit-backdrop-filter:blur(16px) saturate(150%);
    border:1px solid rgba(255,255,255,0.3);
}

/* 暗色模式 */
body.dark-mode .glass-panel { background:rgba(20,20,30,0.3); }
body.dark-mode .glass-header {
    background:rgba(20,20,30,0.25);
    border-bottom-color:rgba(255,255,255,0.04);
}
body.dark-mode .glass-card {
    background:rgba(30,30,42,0.6);
    border-color:rgba(255,255,255,0.08);
    box-shadow:0 8px 32px rgba(0,0,0,0.3);
}
body.dark-mode .glass-btn {
    background:rgba(35,35,48,0.55);
    border-color:rgba(255,255,255,0.06);
}
body.dark-mode .glass-input-area {
    background:rgba(20,20,30,0.3);
    border-top-color:rgba(255,255,255,0.04);
}
body.dark-mode .glass-bubble {
    background:rgba(35,35,48,0.6);
    border-color:rgba(255,255,255,0.06);
}


/* ===== 涟漪按压特效 ===== */
.ripple-container { position:relative; overflow:hidden; }
.ripple {
    position:absolute; border-radius:50%;
    background:rgba(255,255,255,0.25);
    transform:scale(0);
    animation:rippleAnim .4s ease-out;
    pointer-events:none;
}
@keyframes rippleAnim {
    to { transform:scale(2); opacity:0; }
}


/* ===== 登录注册 ===== */
.auth-page {
    position:relative; z-index:2;
    height:100%; display:flex; flex-direction:column;
    align-items:center; justify-content:center;
}
.auth-header { text-align:center; margin-bottom:30px; }
.auth-logo {
    width:72px; height:72px; margin:0 auto 14px;
    background:linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    border-radius:18px;
    color:#fff; font-size:40px; font-weight:bold;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 4px 24px rgba(7,193,96,0.4);
}
.auth-header h1 { font-size:24px; color:#fff; font-weight:700; letter-spacing:2px; text-shadow:0 2px 8px rgba(0,0,0,0.5); }
.auth-card {
    width:380px; max-width:90%;
    border-radius:20px; padding:32px;
}
.auth-form { display:none; }
.auth-form.active { display:block; }
.auth-form h2 { margin-bottom:22px; font-size:20px; font-weight:600; color:#1a1a1a; }
.auth-form input {
    width:100%; height:46px; margin-bottom:14px;
    padding:0 14px; border:1px solid rgba(255,255,255,0.4); border-radius:10px;
    font-size:14px; transition:border-color .2s, box-shadow .2s;
    background:rgba(255,255,255,0.5);
    backdrop-filter:blur(10px);
}
.auth-form input:focus { border-color:#07c160; background:rgba(255,255,255,0.7); box-shadow:0 0 0 3px rgba(7,193,96,0.15); }
.captcha-row { display:flex; gap:10px; margin-bottom:14px; }
.captcha-row input { flex:1; margin-bottom:0; }
.captcha-img {
    width:120px; height:46px; border:1px solid rgba(255,255,255,0.4);
    border-radius:10px; cursor:pointer; background:#fff;
}
.remember-row {
    display:flex; align-items:center; gap:6px;
    margin-bottom:18px; font-size:13px; color:#333;
    cursor:pointer; user-select:none;
}
.remember-row input { width:16px; height:16px; margin:0; cursor:pointer; accent-color:#07c160; }
.auth-switch { text-align:center; margin-top:18px; color:#444; font-size:13px; }
body.dark-mode .auth-form input { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.15); color:#e0e0e0; }
body.dark-mode .auth-form input:focus { background:rgba(255,255,255,0.15); border-color:#07c160; }
body.dark-mode .auth-form h2 { color:#e0e0e0; }
body.dark-mode .auth-header h1 { color:#fff; }
body.dark-mode .remember-row { color:#bbb; }


/* ===== 按钮 - 强毛玻璃+按压特效 ===== */
.btn-primary {
    width:100%; height:46px;
    background:rgba(7,193,96,0.75);
    color:#fff; border-radius:12px; font-size:15px; font-weight:500;
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    border:1px solid rgba(255,255,255,0.2);
    box-shadow:0 4px 16px rgba(7,193,96,0.25);
    transition:all .15s ease;
    position:relative; overflow:hidden;
}
.btn-primary:hover { background:rgba(6,173,86,0.8); box-shadow:0 6px 20px rgba(7,193,96,0.35); }
.btn-primary:active {
    background:rgba(5,155,76,0.85);
    transform:scale(0.96);
    box-shadow:0 2px 8px rgba(7,193,96,0.2);
}
.btn-send {
    background:rgba(7,193,96,0.75); color:#fff; padding:0 20px;
    height:40px; border-radius:12px; font-size:14px; font-weight:500;
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    border:1px solid rgba(255,255,255,0.2);
    box-shadow:0 2px 12px rgba(7,193,96,0.2);
    transition:all .15s ease;
    position:relative; overflow:hidden;
}
.btn-send:hover { background:rgba(6,173,86,0.8); }
.btn-send:active { background:rgba(5,155,76,0.85); transform:scale(0.94); }
.btn-outline {
    height:40px; padding:0 16px;
    background:rgba(255,255,255,0.45);
    color:#333; border:1px solid rgba(255,255,255,0.4); border-radius:12px;
    font-size:14px; font-weight:500;
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
    transition:all .15s ease;
    position:relative; overflow:hidden;
}
.btn-outline:hover { background:rgba(255,255,255,0.6); }
.btn-outline:active { transform:scale(0.96); background:rgba(255,255,255,0.7); }
.btn-outline.danger { color:#fa5151; }
.btn-outline.danger:hover { background:rgba(250,81,81,0.15); }
.btn-outline.gray { color:#999; }
.btn-cancel {
    flex:1; height:46px;
    background:rgba(255,255,255,0.45); color:#666;
    border-radius:12px; font-size:15px; font-weight:500;
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    border:1px solid rgba(255,255,255,0.3);
    transition:all .15s ease;
}
.btn-cancel:hover { background:rgba(255,255,255,0.6); }
.btn-cancel:active { transform:scale(0.96); background:rgba(255,255,255,0.7); }
body.dark-mode .btn-outline { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.15); color:#ddd; }
body.dark-mode .btn-outline:hover { background:rgba(255,255,255,0.18); }
body.dark-mode .btn-cancel { background:rgba(255,255,255,0.1); color:#aaa; }
body.dark-mode .btn-cancel:hover { background:rgba(255,255,255,0.18); }


/* ===== 小按钮（建群/加群等）- 毛玻璃胶囊 ===== */
.text-btn {
    padding:7px 16px; border-radius:20px; font-size:13px; font-weight:500;
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    border:1px solid rgba(255,255,255,0.25);
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    transition:all .15s ease;
    position:relative; overflow:hidden;
}
.text-btn:active { transform:scale(0.93); }
.text-btn-green { background:rgba(7,193,96,0.7); color:#fff; }
.text-btn-green:hover { background:rgba(6,173,86,0.8); }
.text-btn-blue { background:rgba(87,107,149,0.7); color:#fff; }
.text-btn-blue:hover { background:rgba(74,93,130,0.8); }

.icon-btn {
    background:rgba(255,255,255,0.45); border:1px solid rgba(255,255,255,0.3);
    padding:7px; color:#333; border-radius:10px; display:flex;
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
    transition:all .15s ease;
}
.icon-btn:hover { background:rgba(255,255,255,0.6); }
.icon-btn:active { transform:scale(0.9); background:rgba(255,255,255,0.7); }
body.dark-mode .icon-btn { color:#ddd; background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.1); }
body.dark-mode .icon-btn:hover { background:rgba(255,255,255,0.18); }

.back-btn {
    display:flex; align-items:center; justify-content:center;
    background:none; border:none;
    padding:4px 0; color:#333; border-radius:6px;
    transition:opacity .15s;
    min-width:32px; min-height:32px;
}
.back-btn:hover { opacity:0.7; }
.back-btn:active { opacity:0.5; }
body.dark-mode .back-btn { color:#ddd; }


/* ===== 公告 ===== */
.announcement-page {
    position:fixed; inset:0; z-index:9999;
    background:rgba(0,0,0,0.5);
    display:flex; align-items:center; justify-content:center;
    backdrop-filter:blur(8px);
}
.announcement-box {
    width:500px; max-width:90%;
    border-radius:16px; padding:30px; text-align:center;
}
.announcement-box h2 { margin-bottom:20px; font-weight:600; }
.announcement-content {
    margin-bottom:24px; text-align:left;
    line-height:1.8; color:#555; white-space:pre-wrap;
}
.announcement-box .btn-primary { width:auto; padding:0 32px; }


/* ===== 主页 ===== */
.main-page { height:100%; display:flex; flex-direction:column; position:relative; z-index:2; }


/* ===== 列表面板 - 淡毛玻璃 ===== */
.list-panel {
    flex:1; display:flex; flex-direction:column;
    border-radius:20px 20px 0 0; overflow:hidden;
    margin:8px 8px 0 8px;
}
.list-header {
    height:52px; flex-shrink:0;
    display:flex; align-items:center; padding:0 16px; gap:8px;
}
.list-header h3 { font-size:18px; font-weight:700; flex:1; color:#1a1a1a; }
.list-header-actions { display:flex; gap:6px; }
.tab-content { display:none; flex:1; overflow-y:auto; }
.tab-content.active { display:block; }


/* ===== 聊天列表 ===== */
.chat-list-item {
    display:flex; padding:12px 16px; cursor:pointer;
    align-items:center; gap:10px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    transition:background .15s;
}
.chat-list-item:active { background:rgba(255,255,255,0.12); }
.chat-list-item.active { background:rgba(7,193,96,0.1); }
.chat-avatar {
    width:44px; height:44px; border-radius:12px;
    background:#07c160; color:#fff; font-size:16px;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0; object-fit:cover;
}
.chat-avatar-wrap { position:relative; flex-shrink:0; display:inline-block; line-height:0; }
.chat-avatar-wrap > .chat-avatar { display:flex; }
.unread-badge {
    position:absolute; top:-5px; right:-5px;
    min-width:18px; height:18px; line-height:18px;
    padding:0 5px; border-radius:9px;
    background:#fa5151; color:#fff; font-size:11px;
    text-align:center; font-weight:500;
    border:1.5px solid rgba(255,255,255,0.6);
    z-index:2;
}
.chat-list-verified {
    position:absolute; bottom:-1px; right:-1px;
    width:16px; height:16px; background:#2a9df4;
    border:2px solid rgba(255,255,255,0.6); border-radius:50%;
    z-index:3; display:flex; align-items:center; justify-content:center;
    box-shadow:0 1px 3px rgba(0,0,0,0.2);
}
.chat-list-verified::after { content:'V'; font-size:10px; font-weight:900; color:#fff; line-height:1; font-family:Arial,sans-serif; }
body.dark-mode .chat-list-verified { border-color:rgba(40,40,55,0.8); }
body.dark-mode .unread-badge { border-color:rgba(40,40,55,0.8); }
.chat-info { flex:1; overflow:hidden; }
.chat-name { font-size:15px; font-weight:500; color:#1a1a1a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-last { font-size:12px; color:#666; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-time { font-size:11px; color:#999; }
.badge-tag { font-size:10px; padding:1px 5px; border-radius:4px; background:#fa5151; color:#fff; margin-left:4px; }
.badge-official { background:#07c160; }
.badge-owner { background:#faad14; }
.badge-dissolved { background:#999; }
body.dark-mode .chat-list-item { border-bottom-color:rgba(255,255,255,0.04); }
body.dark-mode .chat-list-item:active { background:rgba(255,255,255,0.06); }
body.dark-mode .chat-name { color:#e0e0e0; }
body.dark-mode .chat-last { color:#aaa; }
body.dark-mode .list-header h3 { color:#e0e0e0; }

.online-dot { display:inline-block; width:8px; height:8px; border-radius:50%; vertical-align:middle; margin-left:4px; }
.online-dot.online { background:#07c160; box-shadow:0 0 6px rgba(7,193,96,0.5); }
.online-dot.offline { background:#ccc; }
.chat-online-tag { font-size:12px; font-weight:400; margin-left:4px; }
.chat-online-tag.online { color:#07c160; }
.chat-online-tag.offline { color:#999; }
.pm-online-tag { font-size:12px; margin-left:4px; }
.pm-online-tag.online-text { color:#07c160; }
.pm-online-tag.offline-text { color:#999; }
.user-online-status { font-size:13px; margin-top:4px; }
.user-online-status.online { color:#07c160; }
.user-online-status.offline { color:#999; }


/* ===== 通讯录 ===== */
.contact-section-title { padding:8px 16px; font-size:12px; color:#666; background:rgba(0,0,0,0.02); }
.contact-item {
    display:flex; align-items:center; padding:12px 16px;
    cursor:pointer; border-bottom:1px solid rgba(255,255,255,0.08); gap:10px;
    transition:background .15s;
}
.contact-item:active { background:rgba(255,255,255,0.12); }
body.dark-mode .contact-section-title { background:rgba(255,255,255,0.03); color:#aaa; }
body.dark-mode .contact-item { border-bottom-color:rgba(255,255,255,0.04); }
body.dark-mode .contact-item:active { background:rgba(255,255,255,0.06); }


/* ===== 我的 ===== */
.my-profile { padding:0; }
.my-profile-header {
    display:flex; align-items:center; padding:20px 16px;
    gap:14px; border-bottom:8px solid rgba(0,0,0,0.03);
}
.my-profile-avatar { width:56px; height:56px; border-radius:12px; object-fit:cover; background:#07c160; }
.my-profile-avatar-wrap { position:relative; display:inline-block; line-height:0; }
.profile-verified-badge {
    position:absolute; bottom:-2px; right:-2px;
    width:18px; height:18px; background:#2a9df4;
    border:2px solid rgba(255,255,255,0.6); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    z-index:3; box-shadow:0 1px 3px rgba(0,0,0,0.2);
}
.profile-verified-badge::after { content:'V'; font-size:11px; font-weight:900; color:#fff; line-height:1; font-family:Arial,sans-serif; }
body.dark-mode .profile-verified-badge { border-color:rgba(40,40,55,0.8); }
.my-profile-info h4 { font-size:17px; margin-bottom:4px; font-weight:600; color:#1a1a1a; }
.my-profile-info p { font-size:13px; color:#888; }
.my-profile-menu-item {
    display:flex; align-items:center; padding:14px 16px;
    border-bottom:1px solid rgba(255,255,255,0.08); cursor:pointer; gap:10px;
    transition:background .15s;
}
.my-profile-menu-item:active { background:rgba(255,255,255,0.12); }
.my-profile-menu-item:hover { background:rgba(255,255,255,0.08); }
.my-profile-menu-item .label { flex:1; color:#1a1a1a; }
.my-profile-menu-item .arrow { color:#bbb; font-size:18px; }
.official-msg-dot { display:inline-block; width:8px; height:8px; background:#fa5151; border-radius:50%; margin-left:6px; }
body.dark-mode .my-profile-header { border-bottom-color:rgba(255,255,255,0.03); }
body.dark-mode .my-profile-info h4 { color:#e0e0e0; }
body.dark-mode .my-profile-info p { color:#aaa; }
body.dark-mode .my-profile-menu-item { border-bottom-color:rgba(255,255,255,0.04); }
body.dark-mode .my-profile-menu-item:active { background:rgba(255,255,255,0.06); }
body.dark-mode .my-profile-menu-item .label { color:#e0e0e0; }
body.dark-mode .my-profile-menu-item .arrow { color:#666; }


/* ===== 底部导航 - 滑动指示器+毛玻璃胶囊 ===== */
.bottom-nav {
    flex-shrink:0; display:flex;
    padding:6px 0 env(safe-area-inset-bottom, 6px);
    z-index:5; margin:0 8px 8px 8px;
    border-radius:24px;
    background:rgba(255,255,255,0.2);
    backdrop-filter:blur(16px) saturate(150%);
    -webkit-backdrop-filter:blur(16px) saturate(150%);
    border:1px solid rgba(255,255,255,0.15);
    position:relative;
}
.nav-indicator {
    position:absolute;
    top:50%; transform:translateY(-50%);
    width:calc((100% - 16px) / 3);
    height:calc(100% - 12px);
    background:rgba(7,193,96,0.12);
    border-radius:16px;
    border:1px solid rgba(7,193,96,0.15);
    transition:left .35s cubic-bezier(0.34, 1.56, 0.64, 1);
    left:8px;
    z-index:0;
    pointer-events:none;
}
.nav-indicator[data-idx="0"] { left:8px; }
.nav-indicator[data-idx="1"] { left:calc((100% - 16px) / 3 + 8px); }
.nav-indicator[data-idx="2"] { left:calc(2 * (100% - 16px) / 3 + 8px); }
body.dark-mode .bottom-nav {
    background:rgba(20,20,30,0.25);
    border-color:rgba(255,255,255,0.05);
}
body.dark-mode .nav-indicator {
    background:rgba(7,193,96,0.1);
    border-color:rgba(7,193,96,0.12);
}
.bottom-nav .nav-item {
    flex:1; display:flex; flex-direction:column; align-items:center;
    padding:8px 0; cursor:pointer; color:#888;
    transition:color .25s; gap:3px;
    z-index:1; position:relative;
}
.bottom-nav .nav-item svg { transition:transform .2s; }
.bottom-nav .nav-item:active svg { transform:scale(0.8); }
.bottom-nav .nav-item.active { color:#07c160; }
.bottom-nav .nav-item.active svg { transform:scale(1.1); }
.bottom-nav .nav-item span { font-size:11px; font-weight:500; }
body.dark-mode .bottom-nav .nav-item { color:#888; }
body.dark-mode .bottom-nav .nav-item.active { color:#07c160; }


/* ===== 聊天面板 ===== */
.chat-panel {
    flex:1; display:none; flex-direction:column;
    min-width:0; position:absolute;
    top:0; left:0; right:0; bottom:0; z-index:10;
    border-radius:20px; overflow:hidden;
    margin:8px;
}
.main-page.show-chat .chat-panel { display:flex; }
.main-page.show-chat .list-panel { display:none; }
.main-page.show-chat .bottom-nav { display:none; }
.chat-header {
    height:52px; flex-shrink:0; display:flex;
    align-items:center; padding:0 12px; gap:8px;
}
.chat-title { flex:1; font-size:16px; font-weight:600; color:#1a1a1a; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-header-actions { display:flex; gap:4px; }
.chat-messages {
    flex:1; overflow-y:auto; padding:14px 12px 20px;
    display:flex; flex-direction:column; gap:14px;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
}
.msg-group { display:flex; gap:8px; max-width:78%; }
.msg-group.self { align-self:flex-end; flex-direction:row-reverse; }
.msg-avatar {
    width:36px; height:36px; border-radius:50%;
    flex-shrink:0; object-fit:cover; background:#07c160;
    color:#fff; display:flex; align-items:center; justify-content:center;
    font-size:14px; cursor:pointer; position:relative;
    box-shadow:0 1px 3px rgba(0,0,0,0.12);
}
.verified-badge {
    position:absolute; bottom:-1px; right:-1px;
    width:15px; height:15px; background:#2a9df4;
    border:2px solid rgba(255,255,255,0.6); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 1px 3px rgba(0,0,0,0.2); z-index:3;
}
.verified-badge::after { content:'V'; font-size:9px; font-weight:900; color:#fff; line-height:1; font-family:Arial,sans-serif; }
body.dark-mode .verified-badge { border-color:rgba(40,40,55,0.8); }
.verified-icon { vertical-align:middle; margin-left:2px; }

/* 气泡：去掉 backdrop-filter，改用纯色/渐变，滚动更流畅 */
.msg-bubble {
    padding:10px 14px; border-radius:16px;
    font-size:15px; line-height:1.55; word-break:break-word;
    position:relative; max-width:100%;
    box-shadow:0 1px 3px rgba(0,0,0,0.06);
}
.msg-group.self .msg-bubble {
    background:linear-gradient(135deg,#a6f07a,#7fd85a);
    border:1px solid rgba(125,220,82,0.45);
    border-bottom-right-radius:5px;
    color:#12300f;
}
.msg-group:not(.self) .msg-bubble {
    background:#ffffff;
    border:1px solid rgba(0,0,0,0.05);
    border-bottom-left-radius:5px;
    color:#1a1a1a;
}
.msg-nickname { font-size:11px; color:#8a8a8a; margin-bottom:3px; cursor:pointer; }
.msg-group.self .msg-nickname { text-align:right; }
.msg-time { font-size:10px; color:#aaa; margin-top:3px; padding:0 2px; }
.new-msg-hint {
    position:absolute; bottom:70px; left:50%; transform:translateX(-50%);
    background:linear-gradient(135deg,#07c160,#05a552); color:#fff;
    padding:7px 16px; border-radius:18px;
    font-size:13px; font-weight:500; cursor:pointer; display:none; align-items:center;
    gap:4px; box-shadow:0 4px 14px rgba(7,193,96,0.4); z-index:20;
    white-space:nowrap; animation:fadeInUp .2s ease;
}
@keyframes fadeInUp { from {opacity:0; transform:translateX(-50%) translateY(8px);} to {opacity:1; transform:translateX(-50%) translateY(0);} }
.msg-read-status { font-size:10px; margin-right:4px; }
.msg-read-status.read { color:#07c160; }
.msg-read-status.unread { color:#fa5151; }
.msg-recall-hint { align-self:center; font-size:12px; color:#888; background:rgba(0,0,0,0.04); padding:4px 12px; border-radius:8px; }
.msg-blocked-hint { align-self:center; font-size:12px; color:#fa5151; background:rgba(250,81,81,0.08); padding:4px 12px; border-radius:8px; }
body.dark-mode .chat-title { color:#e0e0e0; }
body.dark-mode .msg-group:not(.self) .msg-bubble {
    background:#23232f; color:#e6e6e6; border-color:rgba(255,255,255,0.07);
}
body.dark-mode .msg-group.self .msg-bubble {
    background:linear-gradient(135deg,#3f6f3f,#31573a); color:#eaf7e2;
    border-color:rgba(74,120,74,0.45);
}
body.dark-mode .msg-nickname { color:#9a9a9a; }
body.dark-mode .msg-time { color:#7d7d7d; }
body.dark-mode .msg-recall-hint { background:rgba(255,255,255,0.05); color:#aaa; }


/* ===== 聊天输入区 ===== */
.chat-input-area { flex-shrink:0; display:flex; padding:8px 12px; gap:8px; align-items:center; }
.chat-input-area input {
    flex:1; height:42px; padding:0 16px;
    border:1px solid rgba(0,0,0,0.06); border-radius:21px;
    background:rgba(255,255,255,0.85);
    font-size:14px; transition:border-color .2s, box-shadow .2s;
}
.chat-input-area input:focus { border-color:#07c160; background:#fff; box-shadow:0 0 0 3px rgba(7,193,96,0.12); }
body.dark-mode .chat-input-area input { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.1); color:#e0e0e0; }
body.dark-mode .chat-input-area input:focus { background:rgba(255,255,255,0.14); border-color:#07c160; }

/* 引用消息 */
.msg-reply-quote { background:rgba(0,0,0,0.04); border-left:3px solid #07c160; padding:4px 8px; border-radius:4px; margin-bottom:4px; font-size:12px; color:#666; }
body.dark-mode .msg-reply-quote { background:rgba(255,255,255,0.05); color:#999; }
.msg-img, .msg-image { max-width:120px; max-height:150px; border-radius:8px; cursor:pointer; }
.msg-system { align-self:center; font-size:12px; color:#888; background:rgba(0,0,0,0.04); padding:4px 12px; border-radius:8px; }
body.dark-mode .msg-system { background:rgba(255,255,255,0.05); color:#aaa; }


/* ===== 模态框 ===== */
.modal {
    position:fixed; inset:0; z-index:9998;
    background:rgba(0,0,0,0.4);
    display:flex; align-items:center; justify-content:center;
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    padding:16px;
    overflow-y:auto;
}
.modal-content {
    width:420px; max-width:100%; max-height:85vh; overflow-y:auto;
    border-radius:20px; padding:24px;
    -webkit-overflow-scrolling:touch;
}
.modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.modal-header span { font-size:18px; font-weight:600; color:#1a1a1a; }
.close-btn { background:none; border:none; font-size:24px; color:#999; cursor:pointer; line-height:1; transition:color .15s, transform .15s; }
.close-btn:hover { color:#666; }
.close-btn:active { transform:scale(0.88); }
.modal-body input, .modal-body textarea {
    width:100%; height:42px; margin-bottom:12px;
    padding:0 12px; border:1px solid rgba(255,255,255,0.3); border-radius:10px;
    font-size:14px; background:rgba(255,255,255,0.45);
    backdrop-filter:blur(12px);
}
.modal-body textarea { height:auto; padding:10px 12px; resize:none; min-height:60px; }
.modal-body input:focus, .modal-body textarea:focus { border-color:#07c160; background:rgba(255,255,255,0.6); box-shadow:0 0 0 3px rgba(7,193,96,0.12); }
.modal-actions { display:flex; gap:10px; margin-top:8px; }
.modal-actions .btn-primary { flex:1; }
body.dark-mode .modal-header span { color:#e0e0e0; }
body.dark-mode .modal-body input, body.dark-mode .modal-body textarea { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.15); color:#e0e0e0; }
body.dark-mode .modal-body input:focus, body.dark-mode .modal-body textarea:focus { background:rgba(255,255,255,0.15); border-color:#07c160; }
body.dark-mode .close-btn { color:#666; }
body.dark-mode .close-btn:hover { color:#999; }
body.dark-mode .btn-outline:disabled { opacity:0.5; cursor:not-allowed; }


/* ===== Toast ===== */
.toast {
    position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
    background:rgba(0,0,0,0.8); color:#fff; padding:12px 24px;
    border-radius:12px; font-size:14px; z-index:200000;
    max-width:80%; text-align:center;
    backdrop-filter:blur(12px);
    animation:toastIn .2s ease;
}
@keyframes toastIn { from {opacity:0; transform:translate(-50%,-45%) scale(0.95);} to {opacity:1; transform:translate(-50%,-50%) scale(1);} }


/* ===== 右键菜单 ===== */
.msg-context-menu {
    position:fixed; z-index:9999;
    background:rgba(50,50,50,0.92); border-radius:12px;
    padding:4px 0; min-width:120px;
    box-shadow:0 4px 16px rgba(0,0,0,0.2);
    backdrop-filter:blur(16px);
}
.msg-context-menu .ctx-item, .msg-context-menu .ctx-menu-item {
    padding:10px 18px; font-size:14px; color:#fff; cursor:pointer;
    transition:background .15s;
}
.msg-context-menu .ctx-item:hover, .msg-context-menu .ctx-menu-item:hover { background:rgba(255,255,255,0.12); }
.msg-context-menu .ctx-item.danger, .msg-context-menu .ctx-menu-item.danger { color:#ff6b6b; }


/* ===== 搜索 ===== */
.search-box {
    margin:8px 12px; display:flex; align-items:center; gap:8px;
    background:rgba(255,255,255,0.4); border-radius:10px; padding:0 12px;
    backdrop-filter:blur(12px);
}
.search-box input { flex:1; height:36px; border:none; background:none; font-size:14px; color:#1a1a1a; }
.search-box input:focus { outline:none; }
.search-box:focus-within { border:1px solid #07c160; box-shadow:0 0 0 3px rgba(7,193,96,0.12); }
body.dark-mode .search-box { background:rgba(255,255,255,0.08); }
body.dark-mode .search-box input { color:#e0e0e0; }
body.dark-mode .search-box input::placeholder { color:#777; }


/* ===== 成员列表 ===== */
.members-panel {
    position:fixed; top:0; right:0; bottom:0;
    width:300px; max-width:85%; z-index:20; display:none; flex-direction:column;
    background:rgba(255,255,255,0.5);
    backdrop-filter:blur(24px) saturate(180%);
    -webkit-backdrop-filter:blur(24px) saturate(180%);
    border-left:1px solid rgba(255,255,255,0.25);
}
.members-panel.show { display:flex; }
.members-header { height:52px; display:flex; align-items:center; padding:0 16px; gap:8px; border-bottom:1px solid rgba(255,255,255,0.15); }
.members-header h4 { flex:1; font-size:16px; font-weight:600; color:#1a1a1a; }
.members-list { flex:1; overflow-y:auto; }
.member-item { display:flex; align-items:center; padding:12px 16px; gap:10px; cursor:pointer; border-bottom:1px solid rgba(255,255,255,0.08); }
.member-item:active { background:rgba(255,255,255,0.12); }
.m-avatar { width:44px; height:44px; border-radius:12px; object-fit:cover; background:#07c160; color:#fff; font-size:16px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.m-name { flex:1; min-width:0; font-size:15px; color:#1a1a1a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.m-tag { padding:2px 8px; border-radius:6px; font-size:11px; font-weight:500; flex-shrink:0; }
.m-tag.owner { background:rgba(250,173,20,0.15); color:#faad14; }
.m-tag.admin { background:rgba(7,193,96,0.15); color:#07c160; }
.m-tag.verified { background:rgba(24,144,255,0.15); color:#1890ff; }
body.dark-mode .members-panel { background:rgba(20,20,30,0.5); border-left-color:rgba(255,255,255,0.05); }
body.dark-mode .members-header h4 { color:#e0e0e0; }
body.dark-mode .members-header { border-bottom-color:rgba(255,255,255,0.05); }
body.dark-mode .member-item { border-bottom-color:rgba(255,255,255,0.04); }
body.dark-mode .member-item:active { background:rgba(255,255,255,0.06); }
body.dark-mode .m-name { color:#e0e0e0; }


/* ===== 反馈 ===== */
.feedback-page { padding:16px; }
.feedback-textarea {
    width:100%; min-height:120px; padding:12px;
    border:1px solid rgba(255,255,255,0.3); border-radius:10px;
    font-size:14px; resize:vertical; background:rgba(255,255,255,0.45);
    backdrop-filter:blur(12px); margin-bottom:12px;
}
.feedback-textarea:focus { border-color:#07c160; background:rgba(255,255,255,0.6); box-shadow:0 0 0 3px rgba(7,193,96,0.12); }
.feedback-list-item { padding:12px; border-radius:10px; margin-bottom:8px; background:rgba(255,255,255,0.4); backdrop-filter:blur(12px); }
.feedback-status { font-size:12px; padding:2px 8px; border-radius:4px; }
.feedback-status.pending { background:#faad14; color:#fff; }
.feedback-status.read { background:#2a9df4; color:#fff; }
.feedback-status.replied { background:#07c160; color:#fff; }
body.dark-mode .feedback-textarea { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.15); color:#e0e0e0; }
body.dark-mode .feedback-list-item { background:rgba(255,255,255,0.05); }


/* ===== 背景选择 ===== */
.bg-preview-wrap { width:100%; aspect-ratio:9/16; max-height:400px; border-radius:12px; overflow:hidden; margin-bottom:12px; background:#f0f0f0; }
.bg-preview-img { width:100%; height:100%; object-fit:cover; }
.bg-actions { display:flex; gap:10px; margin-bottom:12px; }
.bg-actions .btn-outline { flex:1; }
.bg-actions .btn-primary { flex:1; height:40px; }
.bg-thumbs { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.bg-thumb { width:100%; aspect-ratio:9/16; border-radius:8px; object-fit:cover; cursor:pointer; border:3px solid transparent; transition:border-color .2s; }
.bg-thumb.active { border-color:#07c160; }


/* ===== 夜间模式切换按钮 ===== */
.dark-mode-toggle {
    position:fixed; bottom:80px; right:16px;
    width:44px; height:44px; border-radius:50%;
    background:rgba(255,255,255,0.5);
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    border:1px solid rgba(255,255,255,0.3);
    box-shadow:0 4px 16px rgba(0,0,0,0.1);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; z-index:50;
    transition:all .2s ease;
}
.dark-mode-toggle:active { transform:scale(0.88); }
body.dark-mode .dark-mode-toggle { background:rgba(35,35,48,0.55); border-color:rgba(255,255,255,0.08); }


/* ===== 空状态 ===== */
.empty-state { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#999; gap:12px; padding:40px; }
.empty-state svg { opacity:0.25; width:56px; height:56px; }
.empty-state p { font-size:14px; text-align:center; }
body.dark-mode .empty-state { color:#666; }
body.dark-mode .empty-state svg { opacity:0.15; }


/* ===== 全局暗色 ===== */
body.dark-mode { color:#e0e0e0; }
body.dark-mode .list-header h3 { color:#e0e0e0; }

/* 用户资料卡片 */
.user-profile-card { text-align:center; padding:10px 0 16px; }
.user-profile-card .msg-avatar { width:72px; height:72px; border-radius:18px; margin:0 auto 12px; font-size:28px; }
.user-profile-avatar {
    width:72px; height:72px; border-radius:18px;
    margin:0 auto 12px; object-fit:cover;
    background:#07c160; display:flex;
    align-items:center; justify-content:center;
    color:#fff; font-size:28px; overflow:hidden;
    position:relative;
}
.user-profile-name { font-size:18px; font-weight:600; margin-bottom:4px; color:#1a1a1a; }
.user-profile-cid { font-size:13px; color:#888; margin-bottom:4px; }
.user-profile-actions { display:flex; gap:8px; margin-top:16px; flex-wrap:wrap; justify-content:center; }
.user-profile-actions .btn-primary { width:auto; padding:0 20px; height:40px; }
body.dark-mode .user-profile-name { color:#e0e0e0; }
body.dark-mode .user-profile-cid { color:#aaa; }

/* 创建群聊头像 */
.create-room-avatar-area { text-align:center; margin-bottom:16px; }
.create-room-preview { width:72px; height:72px; border-radius:18px; margin:0 auto 10px; object-fit:cover; background:#07c160; }
.upload-btn-wrapper { position:relative; display:inline-block; overflow:hidden; }
.upload-btn-wrapper input[type=file] { position:absolute; top:0; left:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.upload-hint { font-size:12px; color:#999; margin-top:6px; }
.upload-area { text-align:center; margin-bottom:16px; }
.upload-preview { width:72px; height:72px; border-radius:18px; margin:0 auto 10px; object-fit:cover; background:#07c160; display:block; }
.avatar-upload-clickable { position:relative; display:inline-block; cursor:pointer; border-radius:18px; overflow:hidden; transition:transform .15s; }
.avatar-upload-clickable:active { transform:scale(0.95); }
.avatar-upload-overlay { position:absolute; bottom:0; left:0; right:0; height:32px; background:rgba(0,0,0,0.45); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .2s; }
.avatar-upload-clickable:hover .avatar-upload-overlay { opacity:1; }
.upload-status { font-size:13px; color:#666; margin-top:4px; }
body.dark-mode .upload-status { color:#aaa; }
body.dark-mode .upload-hint { color:#888; }

/* 搜索结果 */
.search-result { margin-top:12px; }
.search-result-item { display:flex; align-items:center; padding:12px; gap:10px; cursor:pointer; border-radius:10px; transition:background .15s; }
.search-result-item:hover { background:rgba(255,255,255,0.12); }
.sr-avatar { width:44px; height:44px; border-radius:12px; object-fit:cover; flex-shrink:0; }
.sr-info { flex:1; min-width:0; }
.sr-name { font-size:15px; font-weight:500; color:#1a1a1a; }
.sr-cid { font-size:12px; color:#999; margin-top:2px; }
body.dark-mode .sr-name { color:#e0e0e0; }

/* 好友申请 */
.friend-request-item { display:flex; align-items:center; padding:12px 0; gap:10px; border-bottom:1px solid rgba(255,255,255,0.08); }
.friend-request-actions { margin-left:auto; display:flex; gap:6px; }
.friend-request-actions button { padding:4px 12px; height:32px; font-size:13px; }
.fr-avatar { width:44px; height:44px; border-radius:12px; object-fit:cover; background:#07c160; color:#fff; font-size:16px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fr-info { flex:1; min-width:0; }
.fr-name { font-size:15px; font-weight:500; color:#1a1a1a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fr-cid { font-size:12px; color:#999; margin-top:2px; }
.fr-actions { margin-left:auto; display:flex; gap:6px; flex-shrink:0; }
.fr-btn { padding:4px 12px; height:32px; font-size:13px; border:none; border-radius:8px; cursor:pointer; transition:all .15s; }
.fr-accept { background:#07c160; color:#fff; }
.fr-accept:hover { background:rgba(6,173,86,0.85); }
.fr-reject { background:rgba(255,255,255,0.45); color:#666; }
.fr-reject:hover { background:rgba(255,255,255,0.65); }
body.dark-mode .fr-name { color:#e0e0e0; }
body.dark-mode .fr-reject { background:rgba(255,255,255,0.1); color:#aaa; }
body.dark-mode .fr-reject:hover { background:rgba(255,255,255,0.18); }

/* 举报 */
.report-chat-log { max-height:300px; overflow-y:auto; margin-bottom:12px; }
.report-hint { font-size:12px; color:#999; margin-bottom:8px; }

/* 官方消息 */
.official-msg-list { max-height:60vh; overflow-y:auto; }
.official-msg-item { padding:12px; border-radius:10px; margin-bottom:8px; background:rgba(255,255,255,0.4); backdrop-filter:blur(12px); }
body.dark-mode .official-msg-item { background:rgba(255,255,255,0.05); }

/* 转发 */
.forward-tabs { display:flex; gap:8px; margin-bottom:12px; }
.forward-tab { flex:1; padding:8px; text-align:center; background:rgba(255,255,255,0.4); border-radius:10px; font-size:14px; cursor:pointer; transition:background .15s; backdrop-filter:blur(12px); }
.forward-tab.active { background:rgba(7,193,96,0.7); color:#fff; }
.forward-list { max-height:50vh; overflow-y:auto; }
.forward-item { display:flex; align-items:center; padding:12px; gap:10px; cursor:pointer; border-radius:10px; transition:background .15s; }
.forward-item:hover { background:rgba(255,255,255,0.12); }
body.dark-mode .forward-tab { background:rgba(255,255,255,0.08); }
body.dark-mode .forward-item:hover { background:rgba(255,255,255,0.06); }

/* 图片预览 */
.image-preview-overlay { position:fixed; inset:0; z-index:10001; background:rgba(0,0,0,0.85); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.image-preview-overlay img { max-width:90%; max-height:90%; object-fit:contain; }

/* 禁言提示 */
.mute-banner { padding:8px 16px; display:flex; align-items:center; gap:8px; background:rgba(250,81,81,0.15); color:#fa5151; font-size:13px; justify-content:center; }

/* 回复栏 */
.reply-bar { padding:8px 12px; display:flex; align-items:center; gap:8px; background:rgba(255,255,255,0.3); backdrop-filter:blur(12px); border-top:1px solid rgba(255,255,255,0.1); font-size:13px; }
.reply-bar .reply-content { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#666; }
.reply-bar .reply-close { cursor:pointer; color:#999; font-size:18px; }

/* 图标 */
.chat-pin-icon { margin-left:4px; }
.chat-mute-icon { margin-left:4px; }
.img-upload-btn { cursor:pointer; display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:10px; color:#666; transition:all .15s; }
.img-upload-btn:hover { background:rgba(255,255,255,0.15); }
.img-upload-btn:active { transform:scale(0.9); }
body.dark-mode .img-upload-btn { color:#999; }
body.dark-mode .img-upload-btn:hover { background:rgba(255,255,255,0.1); }

/* msg-actions */
.msg-actions { position:absolute; top:-28px; right:0; display:none; background:#333; border-radius:6px; padding:2px; }
.msg-group:hover .msg-actions { display:flex; }
.msg-action-btn { font-size:11px; color:#fff; padding:2px 8px; background:none; border:none; white-space:nowrap; }

/* 旧glass-nav兼容 */
.glass-nav { background:rgba(255,255,255,0.2); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }

/* ===== 补全缺失样式 ===== */

/* 个人中心菜单容器 */
.my-profile-menu { margin-top:16px; }

/* 官方消息内容 */
.om-content { font-size:14px; line-height:1.5; color:#1a1a1a; word-break:break-word; }
.om-time { font-size:11px; color:#999; margin-top:6px; text-align:right; }
body.dark-mode .om-content { color:#e0e0e0; }

/* 回复栏详情 */
.reply-bar .reply-label { font-size:12px; color:#07c160; font-weight:500; margin-bottom:2px; }
.reply-bar .reply-text { font-size:12px; color:#999; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 引用消息昵称 */
.reply-quote-nick { font-size:12px; color:#07c160; font-weight:500; }

/* 转发选择器头像和名称 */
.fwd-avatar { width:44px; height:44px; border-radius:12px; object-fit:cover; background:#07c160; color:#fff; font-size:16px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fwd-name { flex:1; min-width:0; font-size:15px; color:#1a1a1a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.dark-mode .fwd-name { color:#e0e0e0; }

/* 举报消息选择 */
.report-msg-item { padding:10px 12px; border-radius:8px; margin-bottom:6px; background:rgba(255,255,255,0.3); cursor:pointer; transition:background .15s; border:2px solid transparent; }
.report-msg-item:hover { background:rgba(255,255,255,0.5); }
.report-msg-item.selected { border-color:#07c160; background:rgba(7,193,96,0.1); }
.rm-name { font-size:13px; font-weight:500; color:#1a1a1a; margin-bottom:4px; }
.rm-content { font-size:13px; color:#666; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.dark-mode .report-msg-item { background:rgba(255,255,255,0.05); }
body.dark-mode .report-msg-item:hover { background:rgba(255,255,255,0.1); }
body.dark-mode .rm-name { color:#e0e0e0; }
body.dark-mode .rm-content { color:#aaa; }

/* 用户资料封禁状态 */
.user-profile-status { text-align:center; color:#fa5151; font-size:14px; padding:12px; background:rgba(250,81,81,0.1); border-radius:10px; margin-top:8px; }

/* 反馈记录 */
.feedback-history { margin-top:16px; }
.feedback-history-title { font-size:14px; font-weight:600; color:#1a1a1a; margin-bottom:10px; padding-bottom:6px; border-bottom:1px solid rgba(255,255,255,0.1); }
.feedback-item { padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.06); }
.feedback-item-content { font-size:14px; color:#1a1a1a; line-height:1.5; word-break:break-word; }
.feedback-item-meta { display:flex; align-items:center; gap:8px; margin-top:6px; }
.feedback-item-time { font-size:11px; color:#999; }
.feedback-item-status { font-size:11px; padding:1px 6px; border-radius:4px; font-weight:500; }
.feedback-item-status.pending { background:rgba(250,173,20,0.15); color:#faad14; }
.feedback-item-status.read { background:rgba(24,144,255,0.15); color:#1890ff; }
.feedback-item-status.replied { background:rgba(7,193,96,0.15); color:#07c160; }
.feedback-reply { margin-top:8px; padding:8px 10px; background:rgba(7,193,96,0.06); border-radius:8px; font-size:13px; color:#1a1a1a; line-height:1.5; }
.feedback-reply-label { font-weight:500; color:#07c160; }
body.dark-mode .feedback-history-title { color:#e0e0e0; border-bottom-color:rgba(255,255,255,0.04); }
body.dark-mode .feedback-item { border-bottom-color:rgba(255,255,255,0.04); }
body.dark-mode .feedback-item-content { color:#e0e0e0; }
body.dark-mode .feedback-reply { background:rgba(7,193,96,0.1); color:#e0e0e0; }


/* ===== 安全区域适配（刘海屏/灵动岛） ===== */
@supports (padding: env(safe-area-inset-top)) {
    .list-panel { margin-top:env(safe-area-inset-top); }
    .chat-panel { margin-top:env(safe-area-inset-top); }
    .modal { padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom); }
}

/* ===== 响应式适配 ===== */

/* 大屏手机/平板 (>= 480px) */
@media (min-width: 480px) {
    .auth-card { width:400px; }
    .modal-content { width:440px; }
    .msg-group { max-width:70%; }
}

/* 小屏手机 (<= 360px) */
@media (max-width: 360px) {
    .auth-card { padding:24px 20px; }
    .modal-content { padding:20px 16px; }
    .chat-avatar { width:40px; height:40px; }
    .m-avatar { width:40px; height:40px; }
    .fr-avatar { width:40px; height:40px; }
    .sr-avatar { width:40px; height:40px; }
    .fwd-avatar { width:40px; height:40px; }
    .msg-avatar { width:34px; height:34px; font-size:13px; }
    .my-profile-avatar { width:50px; height:50px; }
    .chat-messages { padding:12px 8px; }
    .chat-list-item { padding:10px 12px; }
    .member-item { padding:10px 12px; }
    .list-header { padding:0 12px; }
    .chat-header { padding:0 8px; }
    .btn-primary { font-size:14px; }
    .modal-header span { font-size:16px; }
    .nav-indicator { width:calc((100% - 12px) / 3); }
    .nav-indicator[data-idx="0"] { left:6px; }
    .nav-indicator[data-idx="1"] { left:calc((100% - 12px) / 3 + 6px); }
    .nav-indicator[data-idx="2"] { left:calc(2 * (100% - 12px) / 3 + 6px); }
}

/* 超小屏 (<= 320px) */
@media (max-width: 320px) {
    .auth-logo { width:64px; height:64px; font-size:36px; }
    .auth-header h1 { font-size:20px; }
    .auth-form h2 { font-size:18px; }
    .modal-content { padding:16px 12px; }
    .list-header h3 { font-size:16px; }
    .chat-title { font-size:14px; }
}

/* 横屏适配 */
@media (orientation: landscape) and (max-height: 480px) {
    .auth-header { margin-bottom:16px; }
    .auth-logo { width:56px; height:56px; font-size:32px; margin-bottom:8px; }
    .auth-card { padding:20px; }
    .modal { align-items:flex-start; padding-top:20px; }
    .modal-content { max-height:90vh; }
}

/* 高分屏优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-card { border-width:0.5px; }
    .glass-btn { border-width:0.5px; }
}

/* 减少动画（无障碍） */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration:0.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:0.01ms !important;
    }
}

/* ===== 积分卡片 ===== */
.points-card {
    margin: 12px 16px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    overflow: hidden;
    position: relative;
}
.points-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.points-card-loading {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}
.points-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.points-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
}
.points-amount {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}
.points-unit {
    font-size: 14px;
    font-weight: 400;
    margin-left: 4px;
    opacity: 0.9;
}
.points-progress-wrap {
    margin-bottom: 16px;
}
.points-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    opacity: 0.9;
}
.points-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}
.points-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.checkin-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.checkin-btn:not(.checked):active {
    transform: scale(0.97);
}
.checkin-btn.checked {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    cursor: not-allowed;
}

/* Dark mode for points card */
body.dark-mode .points-card {
    box-shadow: 0 4px 15px rgba(102,126,234,0.2);
}

/* ===== 解散群聊弹窗按钮 ===== */
.modal-actions .btn-primary[style*="fa5151"] {
    border: none;
}

/* ===== 红包按钮 ===== */
.redpacket-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform .15s ease, background .15s ease;
}
.redpacket-btn:hover { background: rgba(232,53,46,0.10); }
.redpacket-btn:active { opacity: 0.6; transform: scale(0.92); }
.redpacket-btn svg { width: 24px; height: 24px; color: var(--rp-primary); }
body.dark-mode .redpacket-btn:hover { background: rgba(255,106,61,0.14); }

/* ===== 弹窗层级 =====
   发红包页(rp-send-modal)为整页浮层，其内部弹出的子弹窗（支付密码、选择接收人、
   设置/修改支付密码）必须浮在其之上，避免“密码弹窗被红包页盖住”的叠层问题 */
.rp-send-modal { z-index: 9998; }
#pay-password-set-modal,
#pay-password-change-modal,
#pay-password-input-modal,
#rp-target-modal { z-index: 10001; }
.rp-bottom-sheet { z-index: 10002; }
.toast { z-index: 200000; }

/* ===== 支付密码弹窗 ===== */
.rp-hint-text { color: var(--rp-text-2); font-size: 13px; margin-bottom: 16px; }
.rp-pwd-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rp-line);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 12px;
    outline: none;
    background: var(--rp-input-bg);
    color: var(--rp-text);
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 4px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rp-pwd-input:focus { border-color: var(--rp-primary); box-shadow: 0 0 0 3px rgba(232,53,46,0.12); }

.pay-pwd-modal {
    width: 320px !important;
    max-width: 90%;
    text-align: center;
}
.pay-pwd-amount { font-size: 32px; font-weight: 600; color: var(--rp-primary); margin-bottom: 20px; }
.pay-pwd-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.pay-pwd-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--rp-line);
    background: var(--rp-card);
    transition: all .12s ease;
}
.pay-pwd-dot.filled { background: var(--rp-text); border-color: var(--rp-text); transform: scale(1.06); }
.pay-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pay-key {
    height: 46px;
    border: none;
    border-radius: 10px;
    background: var(--rp-input-bg);
    color: var(--rp-text);
    font-size: 19px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s ease, transform .08s ease;
}
.pay-key:active { background: var(--rp-card-2); transform: scale(0.96); }
.pay-key-empty { background: transparent; cursor: default; }
.pay-key-del { background: var(--rp-input-bg); color: var(--rp-text-2); font-size: 15px; }

/* 夜间模式补充（部分细节在色板中已覆盖） */
body.dark-mode .pay-key:active { background: var(--rp-card-2); }

/* ===== 红包消息气泡 ===== */
.msg-redpacket {
    min-width: 210px;
    max-width: 268px;
    background: var(--rp-grad);
    border-radius: 12px;
    padding: 13px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 16px rgba(232,53,46,0.28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.msg-redpacket:active { transform: scale(0.98); box-shadow: 0 3px 10px rgba(232,53,46,0.24); }
.msg-rp-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    background: radial-gradient(circle at 32% 28%, var(--rp-gold-2) 0%, var(--rp-gold) 55%, #e8a01f 100%);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.12);
}
.msg-rp-icon::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #c81f1f;
    opacity: .9;
}
.msg-rp-icon::after {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 22px; height: 3px;
    background: rgba(255,255,255,0.55);
    border-radius: 2px;
}
.msg-rp-content { flex: 1; min-width: 0; }
.msg-rp-greeting {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-rp-type { color: rgba(255,255,255,0.78); font-size: 12px; }

/* ===== 发红包页面 ===== */
.rp-send-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    overflow-y: auto;
    background: var(--rp-page);
}
.rp-send-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--rp-page);
    color: var(--rp-text);
}
.rp-send-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: var(--rp-card);
    color: var(--rp-text);
    font-size: 16px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--rp-line);
}
.rp-send-back {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: var(--rp-text); cursor: pointer; padding: 0;
    border-radius: 50%;
    transition: background .15s ease;
}
.rp-send-back:active { background: var(--rp-input-bg); }
.rp-send-body { flex: 1; padding: 12px 12px 0; }
.rp-type-selector {
    display: flex; align-items: center;
    padding: 15px 16px;
    background: var(--rp-card);
    border-radius: 14px;
    margin-bottom: 12px; cursor: pointer;
    box-shadow: var(--rp-shadow);
    transition: transform .15s ease;
}
.rp-type-selector:active { transform: scale(0.99); }
.rp-type-name { flex: 1; font-size: 15px; font-weight: 500; color: var(--rp-text); }
.rp-type-arrow { fill: var(--rp-text-3); }
.rp-form-row {
    display: flex; align-items: center;
    padding: 15px 16px; background: var(--rp-card);
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: var(--rp-shadow);
}
.rp-row-label { font-size: 15px; color: var(--rp-text); min-width: 72px; }
.rp-row-input-wrap { flex: 1; display: flex; align-items: center; justify-content: flex-end; }
.rp-row-input-wrap input {
    flex: 1; border: none; outline: none;
    background: transparent; font-size: 16px; color: var(--rp-text);
    text-align: right; padding: 0;
}
.rp-row-input-wrap input::placeholder { color: var(--rp-text-3); }
.rp-row-unit { font-size: 14px; color: var(--rp-text-3); margin-left: 6px; }
.rp-target-placeholder { color: var(--rp-text-3); }
.rp-row-value {
    flex: 1; display: flex; align-items: center;
    justify-content: flex-end; color: var(--rp-text-2);
    font-size: 14px; cursor: pointer;
}
.rp-row-value svg { margin-left: 2px; fill: var(--rp-text-3); }
.rp-greeting-input {
    flex: 1; border: none; outline: none;
    background: transparent; font-size: 15px; color: var(--rp-text); padding: 0;
}
.rp-greeting-input::placeholder { color: var(--rp-text-3); }
.rp-send-footer { padding: 24px 20px 40px; text-align: center; }
.rp-total-display { margin-bottom: 18px; }
.rp-total-num { font-size: 38px; font-weight: 700; color: var(--rp-text); }
.rp-total-num::before { content: '积分 '; font-size: 15px; font-weight: 400; color: var(--rp-text-2); }
.rp-send-btn {
    width: 100%; max-width: 300px; height: 48px;
    border: none; border-radius: 14px;
    background: var(--rp-grad); color: #fff;
    font-size: 16px; font-weight: 600; cursor: pointer;
    margin: 0 auto; display: block;
    box-shadow: 0 8px 20px rgba(232,53,46,0.30);
    transition: transform .12s ease, box-shadow .12s ease;
}
.rp-send-btn:active { transform: scale(0.97); box-shadow: 0 4px 12px rgba(232,53,46,0.24); }
.rp-send-btn:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
.rp-balance-info { margin-top: 12px; font-size: 13px; color: var(--rp-text-2); }
.rp-footer-tip { margin-top: 26px; font-size: 12px; color: var(--rp-text-3); }

/* 底部弹出类型选择器 */
.rp-bottom-sheet {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10002; background: rgba(0,0,0,0.5);
    display: none; align-items: flex-end; justify-content: stretch;
    padding: 0; margin: 0;
}
.rp-bottom-sheet.active { display: flex; }
.rp-sheet-mask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; cursor: pointer; }
.rp-sheet-content {
    position: relative; background: var(--rp-card);
    padding: 10px 0 calc(8px + env(safe-area-inset-bottom, 0px)) 0;
    border-radius: 18px 18px 0 0;
    width: 100%; z-index: 1;
    animation: rpSheetUp .22s ease;
}
@keyframes rpSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.rp-sheet-title { text-align: center; font-size: 13px; color: var(--rp-text-3); padding: 6px 0 10px; }
.rp-sheet-item {
    min-height: 64px; display: flex; align-items: center;
    padding: 0 20px; gap: 14px;
    font-size: 16px; color: var(--rp-text); cursor: pointer;
    border-bottom: 1px solid var(--rp-line);
    transition: background .15s ease;
}
.rp-sheet-item:active { background: var(--rp-input-bg); }
.rp-sheet-item .rp-sheet-info { flex: 1; min-width: 0; }
.rp-sheet-item .rp-sheet-name { font-size: 16px; color: var(--rp-text); }
.rp-sheet-item .rp-sheet-desc { font-size: 12px; color: var(--rp-text-3); margin-top: 3px; }
.rp-sheet-item .rp-sheet-check { color: var(--rp-primary); font-size: 18px; opacity: 0; transition: opacity .15s ease; }
.rp-sheet-item.active .rp-sheet-check { opacity: 1; }
.rp-sheet-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff;
    background: var(--rp-grad);
}
.rp-sheet-icon.lucky { background: linear-gradient(135deg,#ff8a3d,#e8352e); }
.rp-sheet-icon.normal { background: linear-gradient(135deg,#ffb74d,#f7b733); }
.rp-sheet-icon.exclusive { background: linear-gradient(135deg,#5b8def,#3a6fd8); }
.rp-sheet-cancel {
    margin-top: 10px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--rp-text); cursor: pointer;
    background: var(--rp-input-bg); border-radius: 12px;
    margin: 10px 12px 0 12px;
    transition: background .15s ease;
}
.rp-sheet-cancel:active { background: var(--rp-card-2); }

/* ===== 红包详情弹窗 ===== */
.rp-detail-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.rp-detail-container {
    width: 86%; max-width: 330px;
    background: var(--rp-card); border-radius: 18px;
    overflow: hidden; max-height: 82vh;
    display: flex; flex-direction: column;
    box-shadow: var(--rp-shadow);
    animation: rpDetailIn .22s ease;
}
@keyframes rpDetailIn { from { opacity:0; transform: translateY(12px) scale(.97);} to { opacity:1; transform:none; } }
.rp-detail-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 8px; background: var(--rp-grad);
    color: #fff; font-size: 16px; font-weight: 600; flex-shrink: 0;
}
.rp-detail-back {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: #fff; cursor: pointer; padding: 0;
    border-radius: 50%;
    transition: background .15s ease;
}
.rp-detail-back:active { background: rgba(255,255,255,0.18); }
.rp-detail-body {
    flex: 1; overflow-y: auto; background: var(--rp-card);
    padding: 24px 20px 22px; text-align: center;
}
.rp-detail-sender-info { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.rp-detail-sender-info img { width: 30px; height: 30px; border-radius: 50%; margin-right: 7px; object-fit: cover; }
.rp-detail-sender-info span { color: var(--rp-text-2); font-size: 13px; }
.rp-detail-greeting { color: var(--rp-text); font-size: 18px; font-weight: 500; margin-bottom: 22px; line-height: 1.45; }
.rp-open-btn-wrap { padding: 6px 0 18px; }
.rp-open-btn {
    width: 84px; height: 84px; border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, var(--rp-gold-2) 0%, var(--rp-gold) 58%, #e8a01f 100%);
    display: inline-flex;
    align-items: center; justify-content: center;
    cursor: pointer; color: #8a5200;
    font-size: 34px; font-weight: 700;
    border: 3px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 22px rgba(249,168,37,0.45);
    animation: rpPulse 1.8s ease-in-out infinite;
}
.rp-open-btn:active { transform: scale(0.95); }
.rp-open-btn.opening { animation: rpOpen 0.3s ease forwards; }
@keyframes rpPulse {
    0%,100% { box-shadow: 0 8px 22px rgba(249,168,37,0.45); }
    50% { box-shadow: 0 8px 30px rgba(249,168,37,0.75); }
}
@keyframes rpOpen {
    0% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(10deg); }
    100% { transform: scale(0.8); opacity: 0.5; }
}
.rp-open-tip { margin-top: 14px; font-size: 13px; color: var(--rp-text-3); }
.rp-open-status { margin-top: 6px; font-size: 13px; color: var(--rp-text-2); }
.rp-claimed-info { padding: 8px 0 18px; }
.rp-claimed-amount { font-size: 38px; color: var(--rp-primary); font-weight: 700; }
.rp-claimed-amount .rp-claimed-unit { font-size: 14px; margin-left: 5px; color: var(--rp-text-2); font-weight: normal; }
.rp-claimed-best {
    display: inline-block; margin: 10px 0 0;
    font-size: 12px; color: #b8860b; background: #fff7e0;
    padding: 3px 9px; border-radius: 10px;
}
body.dark-mode .rp-claimed-best { color: var(--rp-gold); background: rgba(247,183,51,0.16); }
.rp-claims-section { margin-top: 16px; border-top: 1px solid var(--rp-line); padding-top: 12px; text-align: left; }
.rp-claims-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 4px; font-size: 13px; color: var(--rp-text-2); cursor: pointer;
}
.rp-claims-arrow { fill: var(--rp-text-3); transition: transform .2s ease; }
.rp-claims-section.open .rp-claims-arrow { transform: rotate(180deg); }
.rp-claims-panel { max-height: 200px; overflow-y: auto; background: var(--rp-input-bg); border-radius: 10px; }
.rp-claims-list { padding: 0; }
.rp-claim-item {
    display: flex; align-items: center;
    padding: 10px 12px; border-bottom: 1px solid var(--rp-line);
}
.rp-claim-item:last-child { border-bottom: none; }
.rp-claim-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    margin-right: 8px; object-fit: cover;
    flex-shrink: 0;
}
.rp-claim-avatar-default {
    background: var(--rp-card-2); display: flex;
    align-items: center; justify-content: center;
    color: var(--rp-text-2); font-size: 13px;
}
.rp-claim-info { flex: 1; min-width: 0; }
.rp-claim-name { font-size: 13px; color: var(--rp-text); }
.rp-claim-time { font-size: 11px; color: var(--rp-text-3); margin-top: 2px; }
.rp-claim-amount { font-size: 14px; color: var(--rp-primary); font-weight: 600; flex-shrink: 0; }
.rp-claim-best-tag { font-size: 10px; color: var(--rp-gold); margin-left: 4px; }
.rp-claims-empty { padding: 20px; text-align: center; font-size: 13px; color: var(--rp-text-3); }

/* 接收人列表 */
.rp-target-list { padding: 8px 0; max-height: 300px; overflow-y: auto; }
.rp-target-item { display: flex; align-items: center; padding: 10px 16px; cursor: pointer; transition: background .15s ease; }
.rp-target-item:active { background: var(--rp-input-bg); }
.rp-target-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; margin-right: 10px; flex-shrink: 0;
}
.rp-target-avatar-default {
    background: var(--rp-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}

/* 支付密码设置弹窗输入框 */
#pay-password-set-modal input[type="password"],
#pay-password-change-modal input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rp-line);
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    background: var(--rp-input-bg);
    color: var(--rp-text);
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#pay-password-set-modal input[type="password"]:focus,
#pay-password-change-modal input[type="password"]:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px rgba(232,53,46,0.12);
}
