/* ============================================
   PC端三栏式聊天界面 - 全新设计
   ============================================ */

/* PC端通讯录「好友/群聊」切换：整体灰底，白色滑块随点击左右平滑移动 */
.pc-contact-toggle {
    display: flex;
    margin: 10px 12px 8px;
    background: #e3e3e3;
    border-radius: 8px;
    padding: 3px;
    position: relative;
}
.pc-contact-toggle-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    transition: transform .25s ease;
    z-index: 1;
}
.pc-contact-toggle.on-groups .pc-contact-toggle-slider { transform: translateX(100%); }
.pc-contact-toggle-btn {
    flex: 1;
    padding: 6px 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: color .2s ease;
    font-family: inherit;
    position: relative;
    z-index: 2;
}
.pc-contact-toggle-btn.active {
    color: #000;
    font-weight: 500;
}

/* PC端整体布局 */
.app-pc-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #1a1a1a;
}

/* ============================================
   左侧导航栏 (60px宽)
   ============================================ */
.pc-sidebar {
    width: 60px;
    min-width: 60px;
    height: 100%;
    background: #2b2b2b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    border-right: 1px solid #3a3a3a;
}

.pc-sidebar-user {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

.pc-sidebar-user img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-sidebar-user .online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #07C160;
    border-radius: 50%;
    border: 2px solid #2b2b2b;
}

.pc-nav-icons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.pc-nav-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

/* 左侧导航栏图标按钮通用悬停效果 */
.pc-nav-item i {
    font-size: 24px;
    color: #888;
    transition: all 0.2s ease;
}

.pc-nav-item:hover i {
    color: #fff;
}

.pc-nav-item.active {
    background: none;
}

.pc-nav-item.active i {
    color: var(--primary);
}

.pc-nav-item .nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    background: #fa5151;
    color: #fff;
    font-size: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 悬停气泡提示：替代原生 title，带动画和指向图标的小三角。
   气泡要浮到右侧聊天列表上方，所以给侧边栏抬高层级 */
.pc-sidebar { position: relative; z-index: 30; }

.pc-nav-item[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    transform-origin: left center;
    padding: 7px 11px;
    background: rgba(24, 24, 24, 0.94);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.18s ease;
    z-index: 31;
}

/* 指向图标的小三角：用右向 border 画，尖角正好落在气泡左边缘 */
.pc-nav-item[data-tip]::before {
    content: '';
    position: absolute;
    left: calc(100% - 4px);
    top: 50%;
    transform: translateY(-50%) scale(0.6);
    border: 6px solid transparent;
    border-right-color: rgba(24, 24, 24, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.18s ease;
    z-index: 31;
}

.pc-nav-item[data-tip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.pc-nav-item[data-tip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.pc-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

/* ============================================
   聊天列表栏 (280px宽)
   ============================================ */
.pc-chat-list {
    width: 280px;
    min-width: 280px;
    height: 100%;
    background: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    /* 列表滚到最底时，最后一条数据与面板底边（也就是视口底）保持 5px 白色留白，
       避免紧贴页面底部影响视觉呼吸。flex 子项的高度计算会把这个 padding 算进去。 */
    padding-bottom: 5px;
    box-sizing: border-box;
}

/* 搜索区域 */
.pc-search-area {
    padding: 16px 12px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

.pc-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-search-row .pc-search-box {
    flex: 1;
    min-width: 0;
}

.pc-search-row .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
    color: #555;
}

.pc-search-row .icon-btn:hover {
    background: #f0f0f0;
    color: #07C160;
}

.pc-search-box {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
}

.pc-search-box i {
    color: #999;
    font-size: 16px;
}

.pc-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
}

.pc-search-box input::placeholder {
    color: #999;
}

/* 标签栏 */
.pc-tab-bar {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.pc-tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

.pc-tab-item:hover {
    color: var(--primary, #07C160);
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.pc-tab-item.active {
    color: var(--primary, #07C160);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.pc-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--primary, #07C160);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(7,193,96,0.85), 0 0 4px rgba(7,193,96,0.6);
}

/* 聊天会话列表 */
.pc-session-list {
    flex: 1;
    overflow-y: auto;
}

.pc-session-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
    border-left: 3px solid transparent;
}

.pc-session-item:hover {
    background: #e8e8e8;
}

.pc-session-item.active {
    background: #e0e0e0;
    border-left-color: #07C160;
}

.pc-session-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
}

.pc-session-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.pc-session-avatar .avatar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #fa5151;
    color: #fff;
    font-size: 11px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.pc-session-avatar .group-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #07C160;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f5f5f5;
}

.pc-session-avatar .group-icon i {
    font-size: 10px;
    color: #fff;
}

.pc-session-info {
    flex: 1;
    min-width: 0;
}

.pc-session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pc-session-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.pc-session-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.pc-session-name-wrap .pc-session-name { flex: 0 1 auto; }
.pc-session-name-wrap .secretary-tag { margin-left: 0; }

.pc-session-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 8px;
}

.pc-session-preview {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-session-item.unread .pc-session-name {
    font-weight: 600;
    color: #333;
}

.pc-session-item.unread .pc-session-preview {
    color: #666;
    font-weight: 500;
}

/* 置顶标记：缩略图右上角的小钉子（PC 端） */
.pc-session-item .pin-badge {
    position: absolute; top: -2px; right: -2px;
    width: 16px; height: 16px;
    background: #FA9D3B; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; z-index: 2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ============================================
   聊天主区域
   ============================================ */
.pc-chat-main {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ebebeb;
}

/* 聊天头部 */
.pc-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    min-height: 60px;
}

.pc-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-chat-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    max-width: 100%;
    min-width: 0;
}
.pc-chat-title .pc-chat-name-text {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-chat-title .secretary-tag {
    margin-left: 0;
}

.pc-chat-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.pc-chat-header-actions {
    display: flex;
    gap: 4px;
}

.pc-chat-header-actions .icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-chat-header-actions .icon-btn:hover {
    background: #f0f0f0;
}

.pc-chat-header-actions .icon-btn i {
    font-size: 20px;
    color: #666;
}

/* 消息区域 */
.pc-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pc-no-more-msg {
    text-align: center;
    padding: 16px;
    color: #999;
    font-size: 13px;
}

/* 消息气泡 */
.pc-msg-item {
    display: flex;
    gap: 10px;
    max-width: 70%;
    margin-bottom: 8px;
}

.pc-msg-item.self {
    flex-direction: row-reverse;
    margin-left: auto;
}

.pc-msg-item.system {
    max-width: 100%;
    justify-content: center;
}

.pc-msg-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.pc-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.pc-msg-content {
    display: flex;
    flex-direction: column;
}

.pc-msg-sender {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.pc-msg-item.self .pc-msg-sender {
    text-align: right;
}

.pc-msg-bubble {
    position: relative;
    background: var(--bubble-received,#fff);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pc-msg-item.self .pc-msg-bubble {
    background: var(--bubble-sent,#95ec69);
    color: var(--bubble-sent-text,#333);
}

/* 消息气泡箭头 */
.pc-msg-bubble::before {
    content: '';
    position: absolute;
    top: 12px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

.pc-msg-item:not(.self) .pc-msg-bubble::before {
    left: -10px;
    border-right-color: var(--bubble-received,#fff);
}

.pc-msg-item.self .pc-msg-bubble::before {
    right: -10px;
    border-left-color: var(--bubble-sent,#95ec69);
}

.pc-msg-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.pc-msg-item.self .pc-msg-time {
    text-align: right;
}

/* 已读/未读状态：未读为灰色单勾，已读为绿色双勾 */
.pc-msg-read {
    margin-left: 4px;
    font-size: 12px;
    color: #bbb;
    vertical-align: middle;
    line-height: 1;
    transition: color 0.2s ease;
}
.pc-msg-read.is-read { color: #07C160; }

/* 系统消息 */
.pc-msg-system {
    text-align: center;
    padding: 8px 0;
}

.pc-msg-system span {
    font-size: 12px;
    color: #999;
    background: rgba(0,0,0,0.04);
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 系统提示里带图标的（火字）：flex 父容器把图标和文字垂直居中 */
.pc-msg-system span > i { font-size:13px; color:#e53935; line-height:1; }

/* 图片/视频/文件/语音/红包消息样式 */
.pc-msg-image {
    max-width: 280px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.pc-msg-image img {
    width: 100%;
    display: block;
}

.pc-msg-video {
    max-width: 280px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.pc-msg-video video {
    width: 100%;
    display: block;
    max-height: 350px;
}

.pc-msg-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    min-width: 220px;
    cursor: pointer;
}

.pc-msg-file i {
    font-size: 32px;
    color: #4a90d9;
}

.pc-msg-file-info {
    flex: 1;
    min-width: 0;
}

.pc-msg-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-msg-file-size {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.pc-msg-voice {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 80px;
    max-width: 200px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
    user-select: none;
}
.pc-msg-other .pc-msg-voice,
.pc-msg-item:not(.self) .pc-msg-voice {
    background: var(--bubble-received,#fff);
    border: 1px solid var(--border);
    color: #333;
    border-radius: 4px 18px 18px 18px;
}
.pc-msg-item.self .pc-msg-voice {
    background: var(--bubble-sent,#95ec69);
    border: 1px solid var(--bubble-sent-border,#b2e085);
    color: var(--bubble-sent-text,#333);
    border-radius: 18px 4px 18px 18px;
    justify-content: flex-end;
}
.pc-msg-voice:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pc-msg-voice i {
    font-size: 20px;
    color: #333;
    flex-shrink: 0;
}
.pc-msg-voice .voice-duration {
    font-size: 13px;
    color: #333;
    flex-shrink: 0;
}
.pc-msg-voice .voice-bars {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}
.pc-msg-voice .voice-bar {
    width: 2px;
    background: currentColor;
    border-radius: 1px;
}
.pc-msg-voice.playing i {
    display: none;
}
.pc-msg-voice.playing .voice-bars {
    display: flex;
}
.pc-msg-voice.playing .voice-bar {
    animation: pcVoiceBar 0.6s ease-in-out infinite alternate;
}
@keyframes pcVoiceBar {
    from { height: 6px; }
    to { height: 3px; }
}
.pc-msg-voice .voice-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.pc-msg-voice .voice-bar:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.pc-msg-voice .voice-bar:nth-child(3) { height: 16px; animation-delay: 0.3s; }
.pc-msg-voice .voice-bar:nth-child(4) { height: 9px; animation-delay: 0.45s; }

.pc-msg-item.self .pc-msg-voice i {
    color: #333;
}

.pc-msg-item.self .pc-msg-voice .voice-duration {
    color: #333;
}

/* 红包气泡。配色变量定义在 chat.css 的 :root 里，和移动端共用一套 */
.pc-msg-redpacket {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--rp-red-1) 0%, var(--rp-red-2) 100%);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 220px;
    cursor: pointer;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(199, 39, 28, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.pc-msg-redpacket:hover { box-shadow: 0 4px 16px rgba(199, 39, 28, .36); }
.pc-msg-redpacket:active { transform: scale(.98); }
/* 斜向高光。箭头和高光装饰抢同一个 ::before，必须在两侧都用同等具体的选择器
   写全——arrow 规则是 .pc-msg-item(.self) .pc-msg-bubble::before（三个类），
   光写 .pc-msg-redpacket::before 会被它压住，border-right-color 漏出来
   就是之前看到的白色斜杠。border / width / height 都要显式写回去，不能靠没写就不生效 */
.pc-msg-item:not(.self) .pc-msg-redpacket::before,
.pc-msg-item.self .pc-msg-redpacket::before {
    content: ''; position: absolute;
    top: -55%; left: -25%; right: auto; bottom: auto;
    width: 85%; height: 115%;
    border: none; border-radius: 50%; transform: none;
    pointer-events: none;
    background: radial-gradient(ellipse at 32% 62%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 68%);
}
/* 右下角金币。和移动端 .msg-item .msg-redpacket::after 完全一样，
   两端装饰统一，不再各搞一套 */
.pc-msg-item .pc-msg-redpacket::after {
    content: ''; position: absolute; right: -20px; bottom: -20px;
    width: 58px; height: 58px; border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, var(--rp-gold-1), var(--rp-gold-2) 62%, var(--rp-gold-deep));
    opacity: .3; pointer-events: none;
}

.pc-msg-redpacket i {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--rp-red-deep);
    background: linear-gradient(145deg, var(--rp-gold-1) 0%, var(--rp-gold-2) 55%, var(--rp-gold-deep) 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.pc-msg-redpacket-info {
    position: relative; z-index: 1;
    flex: 1; min-width: 0;
}

.pc-msg-redpacket-wish {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pc-msg-redpacket-tag {
    font-size: 12px;
    opacity: .82;
    margin-top: 3px;
}

/* 已领取：褪成暗红 */
.pc-msg-redpacket.claimed {
    background: linear-gradient(135deg, #d99a94 0%, #c9807a 100%);
    box-shadow: none;
}
.pc-msg-redpacket.claimed i {
    background: linear-gradient(145deg, #f0e7d9, #cdbfa9);
    box-shadow: none; color: #a08a74;
}

/* 自己发的红包也要保持红包色。.pc-msg-item.self .pc-msg-bubble 那条微信绿
   是三个类选择器，比 .pc-msg-redpacket 具体，会把红色整个盖掉，
   所以这里必须用同样三个类的选择器再写一份（放在它后面，靠顺序取胜） */
.pc-msg-item.self .pc-msg-redpacket {
    background: linear-gradient(135deg, var(--rp-red-1) 0%, var(--rp-red-2) 100%);
}
.pc-msg-item.self .pc-msg-redpacket .pc-msg-redpacket-wish,
.pc-msg-item.self .pc-msg-redpacket .pc-msg-redpacket-tag,
.pc-msg-item.self .pc-msg-redpacket-info {
    color: #fff;
}
.pc-msg-item.self .pc-msg-redpacket.claimed {
    background: linear-gradient(135deg, #d99a94 0%, #c9807a 100%);
}
/* 输入区域 */
.pc-input-area {
    background: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    padding: 10px 20px;
    /* 「回到最新消息」按钮的定位锚点：它用 bottom:100% 锚在本输入区顶边上方，
       输入区长高（工具栏换行 / 表情面板展开）按钮自动跟着上抬。
       PC 端原来没有定位上下文，只能靠 JS 写死 bottom:120px */
    position: relative;
}

/* ============================================
   PC 端名片气泡（type=8）：和移动端配色一致
   收到的：白底 + 蓝色标签/图标
   发出的：浅蓝底 + 绿色标签/图标
   ============================================ */
.pc-msg-card {
    display:flex; align-items:center; gap:12px; padding:10px 14px;
    background:#ffffff; border-radius:8px; min-width:240px; max-width:320px;
    cursor:pointer; transition:background .15s ease, transform .1s ease;
}
.pc-msg-card:hover { background:#f7f7f7; }
.pc-msg-card:active { transform:scale(.99); }
.pc-msg-card-avatar {
    width:44px; height:44px; border-radius:6px; object-fit:cover; flex-shrink:0;
    background:#fff;
}
.pc-msg-card-info { flex:1; min-width:0; }
.pc-msg-card-name {
    font-size:14px; font-weight:600; color:#1a1a1a; line-height:1.3;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pc-msg-card-tag {
    font-size:11px; color:#5b8def; margin-top:4px;
}
.pc-msg-card-icon {
    font-size:22px; color:#5b8def; flex-shrink:0;
}
.pc-msg-item.self .pc-msg-card { background:#e8f0fe; }
.pc-msg-item.self .pc-msg-card:hover { background:#dbe5fc; }
.pc-msg-item.self .pc-msg-card-tag { color:#3a9b50; }
.pc-msg-item.self .pc-msg-card-icon { color:#3a9b50; }

/* 聊天窗口定位上下文（表情面板等绝对定位基于此） */
.pc-chat-window {
    position: relative;
}

.pc-input-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.pc-input-toolbar .icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-input-toolbar .icon-btn:hover {
    background: #e0e0e0;
}

.pc-input-toolbar .icon-btn i {
    font-size: 22px;
    color: #666;
}

/* PC端语音按钮 */
.pc-voice-btn {
    position: relative;
}
.pc-voice-btn.recording i {
    color: #07C160 !important;
    animation: voicePulse 1s infinite;
}
.pc-voice-btn.recording {
    background: rgba(7, 192, 96, 0.1);
}
.pc-voice-duration {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;
    font-size: 11px;
    color: #07C160;
    white-space: nowrap;
}
@keyframes voicePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* PC端按住说话区域 */
.pc-voice-record {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 16px;
    min-height: 180px;
}
.pc-voice-cancel-hint {
    height: 20px;
    font-size: 13px;
    color: #999;
    opacity: 0;
    transition: opacity .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.pc-voice-record.recording .pc-voice-cancel-hint {
    opacity: 1;
}
.pc-voice-cancel-arrow {
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
}
.pc-voice-hold-btn {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(7, 192, 96, 0.1);
    color: #07C160;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    transition: all .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    outline: none;
    padding: 0;
}
.pc-voice-hold-btn:hover {
    background: rgba(7, 192, 96, 0.15);
}
.pc-voice-hold-btn:active {
    transform: scale(0.96);
}
.pc-voice-hold-btn.recording {
    background: #07C160;
    color: #fff;
    box-shadow: 0 8px 24px rgba(7, 192, 96, 0.35);
    transform: scale(1.05);
}
.pc-voice-hold-btn.cancel-mode {
    background: rgba(245, 108, 108, 0.15);
    color: #f56c6c;
    box-shadow: 0 8px 24px rgba(245, 108, 108, 0.28);
    transform: scale(1.05);
}
.pc-voice-hold-btn i { font-size: 46px; font-weight: 300 !important; }
.pc-voice-hold-btn span { font-size: 13px; font-weight: 600; }
.pc-voice-hint-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
    line-height: 1;
}
#pcHoldTimer {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
    text-align: center;
    opacity: 0.7;
}
.pc-voice-record.recording #pcHoldTimer {
    opacity: 1;
    color: #07C160;
}

/* PC端表情面板：一行10个，无横向滚动条 */
.pc-emoji-panel {
    position: absolute;
    left: 20px;
    bottom: 110px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(10, 28px);
    gap: 4px;
    max-height: 264px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}
.pc-emoji-panel .emoji {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    padding: 1px;
    transition: transform .12s ease, background .12s ease;
}
.pc-emoji-panel .emoji:hover {
    background: #f0f0f0;
    transform: scale(1.15);
}
.pc-emoji-panel .emoji img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* PC端聊天气泡内 gif 表情 */
.pc-msg-bubble .chat-emote {
    width: 28px;
    height: 28px;
}

.pc-input-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.pc-input-textarea {
    flex: 1;
    border: none;
    background: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    resize: none;
    outline: none;
    max-height: 100px;
    /* ≥ 上下padding(20px)+一行行高(22.5px)=42.5px，避免空输入框溢出显示滚动条 */
    min-height: 44px;
    line-height: 1.5;
}

.pc-input-textarea::placeholder {
    color: #bbb;
}

/* PC端富文本输入框（contenteditable，支持表情图片） */
.pc-input-rich {
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: text;
    -webkit-user-select: text;
}
.pc-input-rich:empty::before {
    content: attr(data-placeholder);
    color: #bbb;
    pointer-events: none;
}
/* 禁言/封禁时输入框提示文字固定红色（倒计时/群禁言提示），不跟随主题色 */
.pc-input-area.banned .pc-input-rich:empty::before { color: #f76560; }
.pc-input-rich .chat-emote-input {
    width: 26px;
    height: 26px;
    vertical-align: -7px;
    margin: 0 1px;
    display: inline-block;
    pointer-events: none;
}

.pc-send-btn {
    width: 70px;
    height: 40px;
    background: #07C160;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pc-send-btn:hover {
    background: #06ad56;
}

.pc-send-btn:disabled {
    background: #a8dfb8;
    cursor: not-allowed;
    color: #fff;
}

.pc-send-btn i {
    font-size: 16px;
}

/* 表情面板 */
.pc-emoji-panel {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.pc-emoji-panel .emoji-item {
    font-size: 20px;
    text-align: center;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pc-emoji-panel .emoji-item:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

/* ============================================
   右侧群信息栏 (260px宽)
   ============================================ */
.pc-chat-info {
    width: 325px;
    min-width: 325px;
    flex-shrink: 0;
    height: 100%;
    background: #f8f8f8;
    border-left: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 右侧栏内容区：群资料与好友资料二选一显示 */
.pc-info-body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* PC 右侧栏没有 modal-body 的内边距，私聊资料区自行补上 */
#pcFriendInfoBody .friend-profile { padding: 16px; }
#pcFriendInfoBody .friend-profile-actions { padding: 0 16px 16px; margin-top: 0; }

.pc-info-section {
    padding: 16px;
    border-bottom: 1px solid #e8e8e8;
}

/* 群二维码卡片：上方补一条与下方同款的分隔线 */
.pc-qr-section { border-top: 1px solid #e8e8e8; }

/* 通用上方分隔线（如群管理卡片） */
.pc-divider-top { border-top: 1px solid #e8e8e8; }

/* 入口行卡片（二维码/公告/群管理）：去掉区块上下内边距，
   仅保留行内自带的 10px，避免文字上下间距过大 */
.pc-qr-section, .pc-ann-section, .pc-nick-section, .pc-info-section.pc-divider-top {
    padding-top: 0;
    padding-bottom: 0;
}

.pc-info-section-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pc-info-section-title .edit-btn {
    color: #07C160;
    cursor: pointer;
    font-size: 14px;
}

.pc-notice-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    background: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

/* 群资料面板：头部和底部按钮固定在两端，只有中间的 .pc-group-scroll 滚动，
   这样滚动条不会贯穿头部和底部按钮区域 */
#pcGroupInfoBody { overflow: hidden; }
.pc-group-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.pc-group-scroll::-webkit-scrollbar { width: 6px; }
.pc-group-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.pc-group-scroll::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* 群头像 + 群名 + 群号的头部，固定在面板顶部（不参与滚动） */
.pc-group-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 16px 16px;
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
}

/* 底部的「退出/解散群聊」，固定在面板下沿（不参与滚动） */
.pc-group-footer {
    background: #fff;
    border-top: 1px solid #f2f2f2;
}

.pc-group-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.pc-group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.pc-group-avatar i {
    position: absolute;
    right: -2px;
    bottom: -2px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    padding: 3px;
    border-radius: 50%;
    line-height: 1;
}

.pc-group-main { min-width: 0; flex: 1; }

.pc-group-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.pc-group-name i { color: #07C160; cursor: pointer; font-size: 14px; flex-shrink: 0; }
.pc-group-name i:hover { opacity: 0.7; }
.pc-group-no { font-size: 12px; color: #999; margin-top: 4px; }
.pc-group-no i { cursor: pointer; }
.pc-group-count { font-size: 12px; color: #999; margin-top: 4px; }

/* 群名 / 公告的行内编辑 */
.pc-group-edit-row { display: flex; flex-direction: column; gap: 8px; }
.pc-group-edit-row input {
    border: 1.5px solid #07C160;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    width: 100%;
}
.pc-group-edit-actions { display: flex; gap: 8px; margin-top: 8px; }

.pc-group-textarea {
    width: 100%;
    border: 1.5px solid #07C160;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

/* 群主开关行 */
.pc-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-setting-text { min-width: 0; }
.pc-setting-title { font-size: 14px; color: #333; }
.pc-setting-sub { font-size: 12px; color: #999; margin-top: 3px; }

.pc-full-btn { width: 100%; }

/* 「群二维码」入口行，跟群号/成员那几行一个样式 */
.pc-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.pc-info-row + .pc-info-row { border-top: 1px solid #f5f5f5; }
.pc-info-row:hover { color: #07C160; }
.pc-info-row i.ri-arrow-right-s-line { color: #ccc; font-size: 16px; }
.pc-info-row:hover i.ri-arrow-right-s-line { color: #07C160; }
/* 群昵称卡片：仅标题 hover 时变主题色，不影响副标题 */
.pc-info-row:hover .group-mgmt-title-hov { color: #07C160 !important; }

/* 成员行上的角色标签和操作按钮 */
.pc-member-sub { font-size: 12px; color: #999; margin-top: 2px; }
.pc-member-role.owner { background: #FFF3E0; color: #FA9D3B; }
.pc-member-role.admin { background: #E8F7FE; color: #1989FA; }
.pc-member-actions { display: flex; gap: 6px; flex-shrink: 0; }

.pc-members-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px;
}

.pc-members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
}

.pc-members-title {
    font-size: 13px;
    color: #999;
}

.pc-members-count {
    font-size: 12px;
    color: #999;
}

.pc-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-member-item:hover {
    background: #e8e8e8;
}

.pc-member-avatar {
    width: 36px;
    height: 36px;
    position: relative;
}

.pc-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.pc-member-info {
    flex: 1;
    min-width: 0;
}

.pc-member-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-member-role {
    font-size: 12px;
    color: #07C160;
}

.pc-member-add {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #07C160;
    color: #fff;
    cursor: pointer;
}

.pc-member-add i {
    font-size: 16px;
}

/* ============================================
   空状态占位
   ============================================ */
.pc-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ebebeb;
}

.pc-placeholder i {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 16px;
}

.pc-placeholder p {
    font-size: 16px;
    color: #999;
}

/* ============================================
   友情链接内部打开（PC 聊天主区域嵌入 iframe）
   打开后顶替 placeholder / chat-window 显示，
   用户可点关闭按钮回到原状态
   ============================================ */
.pc-embed-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #fff;
}
.pc-embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: #f7f7f7;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.pc-embed-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    overflow: hidden;
}
.pc-embed-title i { color: var(--primary, #07C160); flex-shrink: 0; }
.pc-embed-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-embed-actions { display: flex; gap: 4px; flex-shrink: 0; }
.pc-embed-frame iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

/* ============================================
   滚动条样式
   ============================================ */
.pc-session-list::-webkit-scrollbar,
.pc-messages-container::-webkit-scrollbar,
.pc-members-list::-webkit-scrollbar,
.pc-emoji-panel::-webkit-scrollbar {
    width: 4px;
}

.pc-session-list::-webkit-scrollbar-track,
.pc-messages-container::-webkit-scrollbar-track,
.pc-members-list::-webkit-scrollbar-track,
.pc-emoji-panel::-webkit-scrollbar-track {
    background: transparent;
}

.pc-session-list::-webkit-scrollbar-thumb,
.pc-messages-container::-webkit-scrollbar-thumb,
.pc-members-list::-webkit-scrollbar-thumb,
.pc-emoji-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.pc-session-list::-webkit-scrollbar-thumb:hover,
.pc-messages-container::-webkit-scrollbar-thumb:hover,
.pc-members-list::-webkit-scrollbar-thumb:hover,
.pc-emoji-panel::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ============================================
   打字指示器
   ============================================ */
.pc-typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    color: #999;
}

.pc-typing-indicator span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.pc-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.pc-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ============================================
   响应式 - 移动端保持原有布局
   ============================================ */
@media (max-width: 768px) {
    .app-pc-container {
        display: none;
    }
    
    .app-container {
        display: flex !important;
    }
}

/* PC端隐藏移动端布局 */
@media (min-width: 769px) {
    .app-container {
        display: none;
    }
}

/* ============================================
   PC端搜索结果区域
   ============================================ */
.pc-search-results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #fff;
    display: none;
}

.pc-search-results .contact-friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pc-search-results .contact-friend-item:hover {
    background: #f5f5f5;
}

.pc-search-results .contact-friend-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.pc-search-results .contact-friend-item span {
    font-size: 14px;
    color: #333;
}

.pc-search-results .empty-state {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ============================================
   迷你模式样式
   ============================================ */
.app-pc-container.mini-mode {
    cursor: move;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.app-pc-container.mini-mode:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.4) !important;
}

/* PC端消息操作菜单 - 竖排浅色（微信风格） */
#pcMsgActionMenu {
    position: fixed;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    min-width: 96px;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), 0 0 1px rgba(0, 0, 0, 0.08);
    animation: pcMsgIn 0.15s ease;
    overflow: visible;
}

/* 向上指向消息气泡的三角箭头（位置跟随气泡中心） */
#pcMsgActionMenu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: var(--arrow-x, 50%);
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-bottom-color: #fff;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

/* 菜单翻转到鼠标上方时，箭头向下指向气泡 */
#pcMsgActionMenu.below::before {
    bottom: auto;
    top: 100%;
    border-bottom-color: transparent;
    border-top-color: #fff;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
}

@keyframes pcMsgIn {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pc-msg-action-item {
    position: relative;
    margin-top: 2px;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    color: #333;
    white-space: nowrap;
    text-align: center;
    transition: background 0.15s;
    user-select: none;
}

/* 短横条分隔符：水平居中的短直线 */
.pc-msg-action-item + .pc-msg-action-item::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: #ECECEC;
}

.pc-msg-action-item:hover {
    background: #F5F5F5;
}

.pc-msg-action-item.danger {
    color: #FA5151;
}

.pc-msg-action-item.danger:hover {
    background: rgba(250, 81, 81, 0.08);
}

/* 迷你模式悬浮提示 */
.pc-sidebar-bottom .pc-nav-item {
    position: relative;
}

/* 群被封禁：PC 输入区整体禁用（按钮/输入框不可点不可输入），表情面板隐藏 */
/* 禁言/封禁：整体禁点；仅压暗工具栏与发送按钮，输入框本体保持不透明以便红色禁言提示清晰可见 */
.pc-input-area.banned { pointer-events:none; }
.pc-input-area.banned .pc-input-toolbar,
.pc-input-area.banned .pc-send-btn { opacity:.5; }
.pc-emoji-panel.banned { display:none !important; }

/* PC 端：朋友圈内联显示在右侧聊天区块，而不是新开全屏页面 */
#pcChatMain.moments-inline { position: relative; }
#pcChatMain.moments-inline #momentsPanel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
}
#pcChatMain.moments-inline #momentsPanel .moments-fullscreen {
    background: #fff;
}

/* PC 端：我的收藏内联显示在右侧聊天区块（参考朋友圈） */
#pcChatMain.favorites-inline { position: relative; }
#pcChatMain.favorites-inline #favoritesPanel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
    display: flex;
}
#pcChatMain.favorites-inline #favoritesPanel .moments-fullscreen {
    background: #fff;
}
/* 内联状态下，收藏面板的滚动容器撑满主区 */
#pcChatMain.favorites-inline #favoritesPanel .favorites-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* PC 端内联模式：去掉头部左上角的「返回」按钮（弹窗 / 移动端不受影响） */
#pcChatMain.favorites-inline #favoritesPanel .moments-header {
    justify-content: center;
}
#pcChatMain.favorites-inline #favoritesPanel .moments-header > .icon-btn {
    display: none;
}

/* ================= PC 端群成员方格行 ================= */
.pc-group-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    padding: 12px 0 4px;
}
.pc-group-grid-item {
    width: 60px;
    text-align: center;
    padding: 4px 0;
    position: relative;
    cursor: pointer;
}
.pc-group-grid-item.empty {
    cursor: default;
    visibility: hidden;
}
.pc-group-grid-item-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border: 1px solid #eee;
}
.pc-group-grid-item-name {
    font-size: 11px;
    color: #333;
    margin: 4px auto 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}
.pc-group-grid-item-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 8px;
    line-height: 16px;
    color: #fff;
    font-weight: 500;
}
.pc-group-grid-item-badge.owner { background: #FF9500; }
.pc-group-grid-item-badge.admin { background: #576B95; }

.pc-group-grid-item.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.pc-group-grid-item.action-btn .pc-group-grid-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px dashed #ccc;
    transition: all 0.15s;
    margin: 0 auto;
}
.pc-group-grid-item.action-btn i {
    font-size: 22px;
    color: #999;
}
.pc-group-grid-item-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}
.pc-group-grid-item.add-btn:hover .pc-group-grid-item-icon {
    background: var(--primary);
    border-color: var(--primary);
}
.pc-group-grid-item.add-btn:hover i {
    color: #fff;
}
.pc-group-grid-item.remove-btn:hover .pc-group-grid-item-icon {
    background: #FA5151;
    border-color: #FA5151;
}
.pc-group-grid-item.remove-btn:hover i {
    color: #fff;
}

/* 查看全部成员链接 */
.pc-group-more {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 8px 0 6px;
    cursor: pointer;
    transition: color 0.15s;
    margin-bottom: 10px;
}
.pc-group-more:hover { color: var(--primary); }

/* 全部成员列表（默认隐藏，点查看全部成员展开） */
.pc-all-members-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.pc-all-members-box.open {
    max-height: 2000px;
}
/* 展开区网格与首行方格连成一片：收紧顶部间距 */
.pc-all-members-box .pc-group-grid { padding-top: 4px; }

/* 群管理设置区平铺在群详情里后的操作按钮区 */
.pc-group-footer {
    cursor: default;
}

