/* 珩宇网络科技 - 微信式扩展功能样式 */

/* 通用弹窗 */.wx-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.wx-modal-card {
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: 82vh;
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-sizing: border-box;
}

.wx-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: #191919;
    margin-bottom: 12px;
}

.wx-modal-head button {
    border: none;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.wx-btn-primary {
    border: none;
    background: #07c160;
    color: #fff;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    cursor: pointer;
}

.wx-btn-primary:hover { background: #06ad56; }

/* 通讯录入口 */
.wx-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
}

.wx-entry:hover { background: #f7f7f7; }

.wx-entry-icon { font-size: 18px; }

.wx-entry-name { font-size: 13px; color: #191919; }

/* 朋友圈 */
.wx-moments-card { width: 520px; }

.wx-moments-publish {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 14px;
}

.wx-moments-publish textarea {
    width: 100%;
    min-height: 64px;
    border: none;
    background: transparent;
    resize: vertical;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.wx-moments-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wx-moments-img-btn {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    color: #576b95;
    cursor: pointer;
}

.wx-moments-count { font-size: 12px; color: #999; flex: 1; }

.wx-moments-feed { display: flex; flex-direction: column; gap: 14px; }

.wx-moment-item { display: flex; gap: 10px; }

.wx-moment-avatar,
.wx-group-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.wx-moment-body { flex: 1; min-width: 0; }

.wx-moment-name { font-size: 13px; color: #576b95; font-weight: 600; margin-bottom: 4px; }

.wx-moment-text { font-size: 13px; color: #191919; line-height: 1.6; white-space: pre-wrap; }

.wx-moment-imgs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.wx-moment-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
}

.wx-moment-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.wx-moment-like {
    border: none;
    background: #f2f2f2;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: #576b95;
    cursor: pointer;
}

.wx-moment-like.liked { background: #ffe9e9; color: #fa5151; }

.wx-moment-time { font-size: 11px; color: #b2b2b2; }

/* 群聊区块 */
.wx-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
}

.wx-group-item:hover { background: #f7f7f7; }

.wx-group-avatar { background: #07c160; font-size: 13px; }

.wx-group-info { flex: 1; min-width: 0; }

.wx-group-name { font-size: 13px; color: #191919; }

.wx-group-sub { font-size: 11px; color: #999; margin-top: 2px; }

.wx-group-manage {
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #576b95;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

/* 群公告条 */
.wx-group-announcement {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    background: #fff8e6;
    color: #8a6d3b;
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 16px;
    border-bottom: 1px solid #f0e6d2;
}

/* 群管理弹窗 */
.wx-gm-block { margin-bottom: 14px; }

.wx-gm-label { font-size: 12px; color: #999; margin-bottom: 6px; }

.wx-gm-block textarea {
    width: 100%;
    min-height: 60px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    box-sizing: border-box;
    resize: vertical;
}

.wx-gm-members { display: flex; flex-wrap: wrap; gap: 6px; }

.wx-gm-member {
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
}

.wx-gm-invite { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; max-height: 140px; overflow: auto; }

.wx-gm-invite-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #191919; }

/* 语音按钮 */
.wx-mic-btn.recording {
    background: #fa5151 !important;
    color: #fff;
}

.message-audio {
    max-width: 240px;
    height: 40px;
}

/* 红包卡片 */
.wx-redpacket {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fa9d3b, #fa5151);
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.wx-redpacket.claimed { background: #f2d9b6; cursor: default; }

.wx-rp-icon { font-size: 26px; }

.wx-rp-body { flex: 1; min-width: 0; }

.wx-rp-note {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wx-rp-status { font-size: 11px; opacity: .9; margin-top: 4px; }

/* 红包弹窗 */
.wx-rp-modal input {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
}

.wx-rp-balance {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.wx-rp-btn { font-size: 18px; }

/* 通话 */
.wx-call-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3500;
}

.wx-call-panel {
    width: 460px;
    max-width: calc(100vw - 24px);
    background: #1f2329;
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.wx-call-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }

.wx-call-status { font-size: 12px; color: #b2b2b2; margin-bottom: 12px; }

.wx-call-remote,
.wx-call-local {
    width: 100%;
    max-height: 46vh;
    border-radius: 10px;
    background: #000;
    object-fit: cover;
}

.wx-call-local {
    position: absolute;
    right: 24px;
    bottom: 90px;
    width: 110px;
    height: 80px;
    border: 1px solid #333;
}

.wx-call-btns { display: flex; gap: 24px; justify-content: center; margin-top: 16px; }

.wx-call-hangup,
.wx-call-accept {
    border: none;
    border-radius: 24px;
    padding: 10px 34px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.wx-call-hangup { background: #fa5151; }

.wx-call-accept { background: #07c160; }

.wx-call-btn {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
}

/* @ 选择框 */
.wx-mention-box {
    position: absolute;
    bottom: 52px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    z-index: 2000;
    max-height: 200px;
    overflow: auto;
}

.wx-mention-item {
    padding: 9px 12px;
    font-size: 13px;
    color: #191919;
    cursor: pointer;
}

.wx-mention-item:hover { background: #f2f2f2; }

/* 输入区定位（@ 选择框、录音按钮） */
.input-area,
.private-chat-input-area {
    position: relative;
}

.wx-mic-btn,
.wx-rp-btn {
    font-size: 17px;
    padding: 0 8px;
    background: transparent;
    color: #576b95;
}

/* 通话面板内局部视频定位 */
.wx-call-panel { position: relative; }

