.red-packet-detail .red-packet-type {
    font-size: 13px;
    color: #f95738;
    margin-top: 4px;
}

.red-packet-refund {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vh: 100vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    height: calc(var(--vh, 100vh));
    min-width: 1025px;           /* 桌面端禁止缩小到 1025px 以下，避免错位 */
    overflow-x: auto;            /* 允许水平滚动，避免内容被裁剪 */
    overflow-y: hidden;          /* 保持原有垂直隐藏策略 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        background: #ededed;
        min-width: auto;        /* 移动端允许正常自适应 */
        overflow: hidden;       /* 移动端仍保持隐藏滚动 */
    }
}

/* 登录界面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(var(--vh, 100vh));
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #07c160;
}

.red-packet-type-toggle {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.rp-type-btn {
    flex: 1;
    padding: 8px 0;
    border: 1px solid rgba(7, 193, 96, 0.4);
    border-radius: 8px;
    background: rgba(7, 193, 96, 0.08);
    color: #07c160;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rp-type-btn.active {
    background: #07c160;
    color: white;
    border-color: #07c160;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.rp-fixed-field,
.rp-random-field {
    transition: opacity 0.2s ease;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

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

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: #07c160;
    text-decoration: none;
    font-size: 14px;
}

/* 主界面 */
.main-container {
    display: flex;
    height: calc(var(--vh, 100vh));
    background: #ededed;
    min-width: 1025px; /* 避免桌面布局在小于 1025px 时错位 */
}

/* 左侧边栏 */
.sidebar {
    width: 280px;
    background: #2e2e2e;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1a1a1a;
}

.sidebar-header {
    padding: 16px;
    background: #2e2e2e;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    min-width: 0;
}

.avatar-upload {
    cursor: pointer;
    flex-shrink: 0;
}

.user-balance-display:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-subtitle {
    font-size: 12px;
    color: #bdbdbd;
    letter-spacing: 0.02em;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: #555;
}

.sidebar-badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    margin-left: 6px;
}

.sidebar-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 10px;
}

.icon-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.icon-btn .icon {
    font-size: 18px;
}

.icon-btn .text {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-box {
    padding: 10px;
    background: #2e2e2e;
    border-bottom: 1px solid #1a1a1a;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    background: #1a1a1a;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
}

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

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 10px;
}

.sidebar-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-tab.active {
    color: #07c160;
    border-bottom-color: #07c160;
    font-weight: bold;
}

.sidebar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
    }
}

.groups-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    min-height: 200px;
    font-size: 14px;
    line-height: 1.5;
}

.empty-state::before {
    content: "👥";
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
    display: block;
}

.group-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.2s;
    position: relative;
}

.group-item.has-unread {
    background: rgba(7, 193, 96, 0.08);
}

.group-item.has-unread:hover {
    background: rgba(7, 193, 96, 0.12);
}

.group-item:hover {
    background: #3a3a3a;
}

.group-item.active {
    background: #1a1a1a;
}

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

.group-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 4px;
}

.group-name {
    color: white;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: #ff4d4f;
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}

.group-meta {
    color: #888;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friends-list {
    flex: 1;
    overflow-y: auto;
    background: #2e2e2e;
}

.friend-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid #1a1a1a;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    position: relative;
}

.friend-item.has-unread {
    background: rgba(7, 193, 96, 0.08);
}

.friend-item.has-unread:hover {
    background: rgba(7, 193, 96, 0.12);
}

.friend-item:hover {
    background: #3a3a3a;
}

.friend-item.active {
    background: #1a1a1a;
}

.friend-item .avatar {
    width: 45px;
    height: 45px;
}

.friend-info {
    flex: 1;
    color: white;
    min-width: 0;
}

.friend-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 4px;
}

.friend-name {
    font-size: 14px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: #ff4d4f;
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}

.friend-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.friend-name {
    font-size: 14px;
    margin-bottom: 4px;
}

.friend-rename-input {
    width: 100%;
    padding: 2px 6px;
    border: 1px solid #07c160;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    outline: none;
}

.friend-rename-input:focus {
    border-color: #05a150;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.2);
}

.profile-body .form-group {
    width: 100%;
}

.profile-body .form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.friend-last-msg {
    font-size: 12px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 聊天区域 */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ededed;
}

.empty-chat {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7f7f7;
}

.empty-chat-content {
    text-align: center;
    color: #999;
}

.empty-chat-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: normal;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f7f7f7;
    min-height: 0; /* 重要：允许 flex 子元素缩小 */
    overflow: hidden; /* 防止溢出 */
}

.chat-header {
    padding: 12px 20px;
    background: #ededed;
    border-bottom: 1px solid #d4d4d4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #07c160;
    cursor: pointer;
    padding: 0 10px;
    margin-right: 5px;
    line-height: 1;
    display: none;
}

.back-btn:hover {
    opacity: 0.7;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-user-info .avatar {
    width: 40px;
    height: 40px;
}

.chat-user-info span {
    font-size: 16px;
    color: #333;
}

.chat-group-count {
    font-size: 13px;
    color: #07c160;
    background: rgba(7, 193, 96, 0.12);
    border-radius: 999px;
    padding: 2px 10px;
    margin-left: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: 1px solid rgba(7, 193, 96, 0.2);
    user-select: none;
}

.chat-group-count:focus,
.chat-group-count:hover {
    background: rgba(7, 193, 96, 0.2);
    color: #05924a;
    border-color: rgba(7, 193, 96, 0.4);
    outline: none;
}

.chat-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-action-btn.with-label {
    width: auto;
    min-width: 40px;
    padding: 0 12px;
    border-radius: 20px;
    gap: 6px;
    font-size: 14px;
}

.chat-action-btn.with-label .label {
    font-size: 13px;
    color: #333;
}

.chat-action-btn.group-members-btn {
    background: rgba(7, 193, 96, 0.12);
    color: #05924a;
}

.chat-action-btn.group-members-btn:hover {
    background: rgba(7, 193, 96, 0.22);
}

.chat-action-btn.group-settings-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #444;
}

.chat-action-btn.group-settings-btn:hover {
    background: rgba(0, 0, 0, 0.12);
}

.chat-action-btn:hover {
    background: #e0e0e0;
}

.chat-action-btn.danger {
    background: #ffecec;
    color: #ff4d4f;
}

.chat-action-btn.danger:hover {
    background: #ffd7d9;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f7f7f7;
    min-height: 0; /* 重要：允许 flex 子元素缩小 */
    word-break: break-word;
    word-wrap: break-word;
}

.message-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    width: 100%;
    min-height: 40px; /* 确保最小高度 */
}

/* 未读消息红点 */
.message-content-wrapper .unread-dot {
    position: absolute;
    right: -10px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 50%;
    z-index: 10;
    flex-shrink: 0;
    transform: none;
}

.message-item.self .unread-dot {
    display: none;
}

.message-item.self {
    flex-direction: row; /* 保持正常顺序：消息在左，头像在右 */
    justify-content: flex-end; /* 整体靠右对齐 */
    margin-left: auto; /* 确保整个消息项靠右 */
    display: flex !important; /* 确保显示 */
    visibility: visible !important;
    opacity: 1 !important;
}

/* 有时间的消息项需要额外空间（兼容性更好的写法） */
.message-item .message-time-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1;
    margin-bottom: 5px;
}

/* 当有时间标签时，为消息项添加顶部间距（兼容性写法） */
.message-item.has-time {
    padding-top: 20px;
}

/* 这个重复定义已在上方处理，删除 */

/* 微信风格：时间显示在消息上方中间 */
.message-time-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1;
    margin-bottom: 5px;
    width: fit-content;
}

/* 当有时间标签时，为消息项添加顶部间距 */
.message-item:has(.message-time-header) {
    padding-top: 20px;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 3px;
    background: #ddd;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

/* 群消息：消息内容包装器 */
.message-content-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    gap: 4px;
    position: relative;
}

/* 自己发送的消息：内容包装器靠右 */
.message-item.self .message-content-wrapper {
    max-width: 75%;
    margin-left: auto;
}

/* 群消息：发送者名称 */
.message-sender-name {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
    padding: 0 2px;
}

.message-item.self .message-sender-name {
    display: none; /* 自己的消息不显示名称 */
}

.message-content {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
    overflow: visible;
    max-width: 100%;
    display: inline-block;
    width: fit-content;
    width: max-content;
}

.message-item.self .message-content:not(.wallet-card-container) {
    /* 仅普通文本气泡使用绿色背景，卡片类消息不受影响 */
    background: #95ec69;
    border-radius: 8px;
}

.message-content.wallet-card-container {
    /* 红包 / 转账等卡片消息容器，保持透明背景 */
    background: transparent !important;
    padding: 0;
    box-shadow: none;
    max-width: 100%;
}

.wallet-card.red-packet-card {
    background: linear-gradient(130deg, #f95738 0%, #fcbc43 100%);
    color: #fff;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(249, 87, 56, 0.35);
    animation: redPacketPulse 2s infinite ease-in-out;
}

.wallet-card.red-packet-card .wallet-card-icon {
    font-size: 28px;
}

.wallet-card.red-packet-card .wallet-card-footer {
    color: rgba(255, 255, 255, 0.8);
}

.wallet-card.red-packet-card.clickable {
    cursor: pointer;
}

@keyframes redPacketPulse {
    0% { box-shadow: 0 6px 18px rgba(249, 87, 56, 0.2); }
    50% { box-shadow: 0 12px 26px rgba(249, 87, 56, 0.35); }
    100% { box-shadow: 0 6px 18px rgba(249, 87, 56, 0.2); }
}

.red-packet-effect {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(249, 87, 56, 0.25), transparent 55%);
    animation: redPacketFade 1.2s forwards ease;
    z-index: 9999;
}

.rp-particle {
    position: absolute;
    width: 12px;
    height: 18px;
    background: linear-gradient(180deg, #ffe08a, #ffbb22);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    animation: particleBurst 1s forwards ease;
}

.rp-particle.particle-1 { transform: translate(-50%, -50%) rotate(10deg); }
.rp-particle.particle-2 { transform: translate(-50%, -50%) rotate(-20deg); }
.rp-particle.particle-3 { transform: translate(-50%, -50%) rotate(35deg); }

@keyframes redPacketFade {
    0% { opacity: 0.9; }
    100% { opacity: 0; }
}

@keyframes particleBurst {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -200%) scale(0.6); }
}

.red-packet-open-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.red-packet-open-card {
    background: linear-gradient(160deg, #b7241f 0%, #d84823 60%, #e36725 100%);
    border-radius: 24px;
    padding: 30px 26px 24px;
    width: 320px;
    color: #fff;
    position: relative;
    box-shadow: 0 15px 40px rgba(183, 36, 31, 0.45);
    text-align: center;
}

.red-packet-open-card .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

.open-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.open-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.open-header-text {
    text-align: left;
}

.open-header-text #red-packet-open-sender {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.open-header-text #red-packet-open-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.open-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.open-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.open-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    font-size: 38px;
    color: #d84c1f;
    background: #ffe58f;
    cursor: pointer;
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.open-btn:active {
    transform: scale(0.96);
}

.open-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.open-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.open-result-label {
    font-size: 14px;
    letter-spacing: 0.3em;
    margin-bottom: 6px;
}

.open-result-amount {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.open-result-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.open-best-luck {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.red-packet-open-card .open-detail-btn {
    margin-top: 24px;
    width: 100%;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    backdrop-filter: blur(4px);
}

.red-packet-open-card .open-detail-btn:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

.red-packet-open-card .open-detail-btn:active {
    transform: translateY(1px);
}

/* 旧样式保留以兼容 */
.red-packet-detail {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.red-packet-header {
    text-align: center;
    margin-bottom: 16px;
}

.red-packet-sender {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.red-packet-type {
    font-size: 13px;
    color: #f95738;
    margin: 4px 0 6px;
}

.red-packet-message {
    font-size: 13px;
    color: #888;
}

.red-packet-amount {
    text-align: center;
    padding: 12px 0 18px;
}

.received-amount {
    font-size: 24px;
    font-weight: 600;
    color: #f95738;
}

.total-amount {
    font-size: 30px;
    font-weight: 600;
    color: #f95738;
}

.total-count {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.red-packet-progress {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(249, 87, 56, 0.12);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f95738, #fcbc43);
}

.progress-text {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    text-align: right;
}

.red-packet-records {
    margin-top: 10px;
}

.red-packet-records h4 {
    font-size: 14px;
    color: #222;
    margin-bottom: 10px;
}

.records-list {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.record-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    gap: 12px;
}

.records-list .record-item:last-child {
    border-bottom: none;
}

.record-item.best-luck {
    background: linear-gradient(90deg, rgba(249, 87, 56, 0.08), rgba(249, 87, 56, 0.02));
}

.record-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.record-time {
    font-size: 12px;
    color: #aaa;
}

.record-amount {
    font-size: 15px;
    font-weight: 600;
    color: #f95738;
    margin-left: auto;
}

/* 好友申请相关样式 */
.friend-requests-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.friend-request-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.friend-request-tab:hover {
    color: #07c160;
}

.friend-request-tab.active {
    color: #07c160;
    border-bottom-color: #07c160;
    font-weight: 600;
}

.friend-request-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 12px;
}

.friend-request-item:last-child {
    border-bottom: none;
}

.friend-request-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-request-info {
    flex: 1;
    min-width: 0;
}

.friend-request-name {
    font-size: 16px;
    font-weight: 600;
    color: #666; /* 按你的需求调整为较深的灰色 */
    margin-bottom: 4px;
}

.friend-request-meta {
    font-size: 12px;
    color: #d0d0d0; /* 提高对比度的次级文字颜色 */
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-request-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.12); /* 与深色背景协调 */
    border-radius: 4px;
    font-size: 11px;
}

.friend-request-source.scan {
    background: #e8f5e9;
    color: #2e7d32;
}

.friend-request-source.search {
    background: #e3f2fd;
    color: #1565c0;
}

.friend-request-actions {
    display: flex;
    gap: 8px;
}

.friend-request-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.friend-request-btn.accept {
    background: #07c160;
    color: white;
}

.friend-request-btn.accept:hover {
    background: #06ad56;
}

.friend-request-btn.reject {
    background: #f5f5f5;
    color: #666;
}

.friend-request-btn.reject:hover {
    background: #e8e8e8;
}

.friend-request-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
}

.friend-request-status.pending {
    color: #ff9800;
    background: #fff3e0;
}

.friend-request-status.accepted {
    color: #07c160;
    background: #e8f5e9;
}

.friend-request-status.rejected {
    color: #999;
    background: #f5f5f5;
}

.friend-requests-sidebar-list {
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.friend-request-sidebar-item {
    transition: background 0.2s;
}

.friend-request-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.friend-requests-sidebar-list {
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.friend-request-sidebar-item {
    transition: background 0.2s;
}

.friend-request-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

.icon-btn {
    position: relative;
}

.record-badge {
    font-size: 11px;
    color: #f95738;
    border: 1px solid rgba(249, 87, 56, 0.4);
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: 8px;
}

/* 微信风格红包详情页 */
.wx-red-packet-detail {
    background: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* 顶部红色区域 - 半圆形，从顶部开始 */
.wx-rp-header {
    background: linear-gradient(135deg, #f95738 0%, #fcbc43 100%);
    padding: 0 20px 50px;
    text-align: center;
    color: #fff;
    position: relative;
    border-radius: 0 0 50% 50% / 0 0 40% 40%;
    overflow: hidden;
    margin-bottom: -20px;
}

/* 红色区域内的标题栏 */
.wx-rp-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 20px;
    position: relative;
    z-index: 1;
}

.wx-rp-title {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.wx-rp-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.wx-rp-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wx-rp-sender-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 12px;
    display: block;
    object-fit: cover;
    background: #fff;
    position: relative;
    z-index: 1;
}

.wx-rp-sender-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.wx-rp-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.wx-rp-amount-large {
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.wx-rp-total-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.wx-rp-deposit-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: opacity 0.2s;
}

.wx-rp-deposit-hint.clickable:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 中间区域 */
.wx-rp-middle {
    padding: 20px 20px 16px;
    text-align: center;
    background: #fff;
}

.wx-rp-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.wx-rp-reply-btn:hover {
    background: #eeeeee;
}

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

.wx-rp-grab-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f95738 0%, #fcbc43 100%);
    border: none;
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(249, 87, 56, 0.4);
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wx-rp-grab-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(249, 87, 56, 0.5);
}

.wx-rp-grab-btn:active {
    transform: scale(0.98);
}

.wx-rp-summary {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* 领取记录区域 */
.wx-rp-records {
    flex: 1;
    background: #f5f5f5;
    padding-top: 20px;
}

.wx-rp-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 12px;
    font-size: 14px;
    color: #666;
}

.wx-rp-records-count {
    font-size: 13px;
    color: #999;
}

.wx-rp-records-list {
    background: #fff;
}

.wx-rp-empty-records {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.wx-rp-record-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
    transition: background 0.2s;
}

.wx-rp-record-item:last-child {
    border-bottom: none;
}

.wx-rp-record-item.best-luck {
    background: linear-gradient(90deg, rgba(249, 87, 56, 0.06), rgba(249, 87, 56, 0.02));
}

.wx-rp-record-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}

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

.wx-rp-record-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.wx-rp-record-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.wx-rp-record-time {
    font-size: 12px;
    color: #999;
}

.wx-rp-record-amount-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.wx-rp-record-amount {
    font-size: 16px;
    font-weight: 600;
    color: #f95738;
}

.wx-rp-best-luck-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #f95738;
}

.wx-rp-crown-icon {
    font-size: 14px;
    line-height: 1;
}

.wx-rp-best-luck-text {
    font-size: 11px;
    color: #f95738;
    font-weight: 500;
}

.message-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-time {
    font-size: 11px;
    color: #999;
    display: inline-block;
    opacity: 0.7;
    margin-top: 2px;
    padding: 0 2px;
}

.message-item.self .message-content-wrapper {
    align-items: flex-end;
}

.message-item:not(.self) .message-content-wrapper {
    align-items: flex-start;
    padding-right: 18px;
}

.message-item.selection-mode {
    cursor: pointer;
}

.message-select-indicator {
    width: 22px;
    height: 22px;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    transition: all 0.2s;
}

.message-item.selected .message-select-indicator {
    background: #07c160;
    border-color: #07c160;
    color: #fff;
}

.group-members-body {
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.group-member-section h4,
.group-invite-panel h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #333;
}

.group-member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fafafa;
}

.group-member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-member-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.group-member-meta {
    display: flex;
    flex-direction: column;
}

.group-member-role {
    font-size: 12px;
    color: #999;
}

.group-invite-panel {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.member-add-btn {
    padding: 6px 12px;
    border-radius: 16px;
    border: none;
    background: #07c160;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

.member-add-btn:disabled {
    background: #c7c7c7;
    cursor: not-allowed;
}

.member-action-btn {
    padding: 6px 12px;
    border-radius: 16px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.member-action-btn.remove {
    background: #ff4d4f;
    color: #fff;
}

.member-action-btn.leave {
    background: #ffa940;
    color: #fff;
}

.member-action-btn:hover {
    opacity: 0.9;
}

.member-action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    color: #666;
}

.friend-profile-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.friend-profile-avatar {
    display: flex;
    justify-content: center;
}

.friend-profile-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.friend-profile-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.friend-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.friend-profile-row .label {
    color: #666;
    min-width: 70px;
}

.friend-profile-row .value {
    flex: 1;
    text-align: right;
    color: #222;
    word-break: break-all;
}

.friend-profile-alias {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.friend-profile-alias input {
    flex: 1;
    margin-bottom: 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.friend-profile-alias input:focus {
    border-color: #07c160;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.15);
}

.friend-profile-alias .alias-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.friend-profile-alias .alias-actions button {
    min-width: 70px;
}

.alias-hint {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.group-settings-body .form-tip {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

/* 音频消息样式 */
.message-audio-wrapper {
    margin: 0;
    width: 100%;
}

.message-audio {
    width: 100%;
    max-width: 300px;
    height: 40px;
    outline: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    min-width: 140px;
    max-width: 220px;
    width: fit-content;
    box-shadow: none;
}

.message-item.self .audio-player {
    background: transparent;
}

.audio-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #07c160;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.audio-play-btn:hover {
    background: #06ad56;
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.audio-play-btn.playing {
    background: #ff4444;
    animation: pulse-btn 1.5s ease-in-out infinite;
}

.audio-play-btn.playing:hover {
    background: #cc0000;
}

@keyframes pulse-btn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.audio-speaker-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.audio-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    flex: 1;
    min-width: 40px;
}

.wave-bar {
    width: 3px;
    height: 10px;
    background: #ccc;
    border-radius: 2px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.audio-waveform.playing .wave-bar {
    animation: wave 0.8s ease-in-out infinite;
    background: #07c160;
}

.message-item.self .audio-waveform .wave-bar {
    background: #aaa;
}

.message-item.self .audio-waveform.playing .wave-bar {
    background: #333;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% {
        height: 8px;
        opacity: 0.6;
    }
    50% {
        height: 18px;
        opacity: 1;
    }
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.audio-time {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 4px;
}

.message-item.self .audio-time {
    color: #333;
}

.audio-read-status {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
}

.audio-read-status.unread {
    color: #999;
}

.message-item.self .audio-read-status:not(.unread) {
    color: #07c160;
}

.audio-size {
    display: none; /* 隐藏文件大小 */
}

/* 移动端音频样式优化 */
@media (max-width: 768px) {
    .audio-player {
        min-width: 180px;
        max-width: 240px;
        padding: 6px 10px;
    }
    
    .audio-play-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .audio-duration {
        font-size: 11px;
    }
}

.chat-input-area {
    /*background: #f7f7f7;*/
    border-top: 1px solid #d4d4d4;
    padding: 10px;
    flex-shrink: 0; /* 防止输入框被压缩 */
    z-index: 1000; /* 确保输入框在最上层 */
    position: relative;
}

/* 确保桌面版样式不会覆盖移动端 */
@media (min-width: 1025px) {
    .chat-input-area {
        position: relative !important;
        bottom: auto !important;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
    }
}


.more-menu-item[onclick*="openScreenshotCapture"] .more-menu-icon {
    font-size: 20px;
}

.screenshot-editor-modal .modal-content {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.screenshot-editor-modal .screenshot-editor-content {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.screenshot-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.screenshot-editor-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.screenshot-editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    font-size: 13px;
}

.mini-btn:hover {
    background: #e0e0e0;
}

.mini-btn.danger {
    background: #ffecec;
    color: #ff4d4f;
}

.mini-btn.danger:hover {
    background: #ffd7d9;
}

.screenshot-editor-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.screenshot-tool-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.screenshot-tool-option.color input {
    width: 32px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
}

.screenshot-tool-option input[type="radio"],
.screenshot-tool-option input[type="checkbox"] {
    margin: 0;
}

.screenshot-editor-body {
    flex: 1;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#screenshot-editor-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    cursor: crosshair;
}

#screenshot-text-input {
    position: absolute;
    min-width: 200px;
    padding: 6px 10px;
    border: 1px solid #07c160;
    border-radius: 6px;
    font-size: 14px;
}

.screenshot-editor-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.chat-input-toolbar {
    display: none; /* 隐藏旧的工具栏 */
}

.toolbar-btn {
    display: none; /* 隐藏旧的工具栏按钮 */
}

.chat-input-box {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
    position: relative;
    z-index: 1;
    min-height: 40px; /* 确保有最小高度 */
}

#text-input-mode {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    min-height: 40px; /* 确保有最小高度 */
}

#voice-input-mode {
    gap: 10px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    display: none; /* 默认隐藏，只有点击喇叭后才显示 */
}

.chat-input-box textarea,
.chat-input-box .message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    min-height: 36px;
    line-height: 1.4;
    font-family: inherit;
    position: relative;
    z-index: 1;
    background: white;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
    /* iOS Safari 修复 */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.chat-input-box textarea:focus,
.chat-input-box .message-input:focus {
    outline: none;
    border-color: #07c160;
    background: white;
    background-color: white;
    /* iOS Safari 焦点状态修复 */
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.chat-input-box textarea:active,
.chat-input-box .message-input:active {
    background: white;
    background-color: white;
}

.message-input[contenteditable="true"] {
    padding: 10px;
    position: relative;
}

.message-input[contenteditable="true"]:not(.has-text)::before {
    content: attr(data-placeholder);
    color: #999;
    pointer-events: none;
    display: block !important;
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* 更多按钮 */
.more-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    border-radius: 5px;
    transition: background 0.2s;
}

.more-btn:hover {
    background: #f0f0f0;
}

.more-btn::before {
    content: '+';
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.input-mode-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.input-mode-toggle:hover {
    background: #e8e8e8;
}

.send-btn {
    padding: 10px 20px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: inline-block;
}

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

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 语音输入模式 */
.voice-input-mode {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0;
    width: 100%;
}

.voice-input-btn {
    flex: 1;
    min-height: 40px;
    height: 40px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.voice-input-btn:hover {
    background: #f8f8f8;
    border-color: #c0c0c0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.voice-input-btn:active,
.voice-input-btn.recording {
    background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
    border-color: #ff3333;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
    transform: scale(0.97);
}

.voice-input-btn.recording .voice-icon {
    animation: pulse 1.2s ease-in-out infinite;
}

.voice-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.voice-input-btn.recording .voice-icon {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.6));
    transform: scale(1.15);
}

.voice-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.voice-input-btn:active .voice-text,
.voice-input-btn.recording .voice-text {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

/* 模态框 */
/* 通用模态框层级需要高于移动端输入栏 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 120000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 400px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content.large {
    width: 520px;
}

/* 微信风格红包详情模态框 - 居中显示 */
#group-red-packet-detail-modal .modal-content,
#friend-red-packet-detail-modal .modal-content {
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 隐藏原来的标题栏 */
#group-red-packet-detail-modal .modal-header,
#friend-red-packet-detail-modal .modal-header {
    display: none;
}

#group-red-packet-detail-modal .modal-body,
#friend-red-packet-detail-modal .modal-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    background: #f5f5f5;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.modal-close:hover {
    background: #f0f0f0;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* 创建群组弹窗布局优化 */
.create-group-body {
    display: flex;
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 4px;
}

.create-group-left,
.create-group-right {
    flex: 1;
}

.create-group-left {
    min-width: 260px;
}

.create-group-right {
    border-left: 1px solid #f0f0f0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.member-select-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.member-select-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.member-count-badge {
    background: #e6f4ff;
    color: #1677ff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.member-select-search input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.member-select-search input:focus {
    outline: none;
    border-color: #07c160;
    box-shadow: 0 0 0 1px rgba(7, 193, 96, 0.15);
}

.member-select-list {
    flex: 1;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    padding: 6px;
    background: #fafafa;
}

.member-select-list-empty {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.member-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.member-checkbox:hover {
    background: #f0fdf4;
}

.member-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.member-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-name-main {
    font-weight: 500;
    color: #333;
}

.member-name-sub {
    font-size: 12px;
    color: #999;
}

.member-meta {
    font-size: 12px;
    color: #aaa;
}

@media (max-width: 768px) {
    .create-group-body {
        flex-direction: column;
        max-height: none;
        overflow: visible;
    }
    .create-group-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f0f0f0;
        padding-top: 12px;
        max-height: 40vh;
    }
}

/* 桌面端创建群组弹窗尺寸与滚动优化 */
@media (min-width: 1025px) {
    #create-group-modal .modal-content {
        width: 760px;
        max-width: 80vw;
        max-height: 90vh;
        overflow-y: visible;
    }
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary {
    border: 1px solid #d0d0d0;
    background: #fff;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
}

.modal-body input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.modal-body input:focus {
    outline: none;
    border-color: #07c160;
}

#search-results {
    margin-top: 15px;
}

.search-result-item {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item .avatar {
    width: 40px;
    height: 40px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.search-result-username {
    font-size: 12px;
    color: #999;
}

.add-friend-btn {
    padding: 6px 12px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.add-friend-btn:hover {
    background: #06ad56;
}

/* 消息已读状态 */
.message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 4px;
    padding-top: 2px;
}

.read-status {
    color: #999;
    font-size: 12px;
}

.read-status.unread {
    color: #999;
}

.read-status:not(.unread) {
    color: #07c160;
}

/* 更多菜单 */
.more-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    display: none;
    margin-bottom: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
}

.more-menu-item:hover {
    background: #f0f0f0;
}

.more-menu-icon {
    font-size: 24px;
    width: 30px;
    text-align: center;
}

.more-menu-text {
    font-size: 14px;
    color: #333;
}

/* 表情选择器 */
.emoji-picker {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    max-height: 200px;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    overflow-y: auto;
    margin-bottom: 10px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.emoji-item {
    background: transparent;
    border: none;
    font-size: 20px;
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.emoji-item:hover {
    background: #f0f0f0;
}

/* 消息图片 */
.message-image {
    display: block;
    width: 100%;
    max-width: 320px;
    max-height: 360px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    background: #000;
}

.message-video {
    max-width: 400px;
    max-height: 300px;
    border-radius: 5px;
}

.message-audio {
    width: 100%;
    max-width: 300px;
    height: 40px;
    outline: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 文件消息 */
.message-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.file-icon {
    font-size: 24px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: #999;
}

.file-download {
    padding: 6px 12px;
    background: #07c160;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.file-download:hover {
    background: #06ad56;
}

/* 表情消息 */
.message-emoji {
    font-size: 48px;
    line-height: 1;
}

/* 语音录制 */
.voice-recorder {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: none; /* 默认隐藏，避免显示灰色背景 */
}

.voice-recorder-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.voice-wave {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #07c160;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.voice-recorder-content span {
    flex: 1;
    color: #333;
}

#stop-voice-btn {
    padding: 6px 12px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#stop-voice-btn:hover {
    background: #cc0000;
}

/* 图片模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 5px;
}

.image-modal-close {
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    user-select: none;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* ==================== 自定义弹窗样式 ==================== */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important; /* 通用弹窗层级 */
    align-items: center;
    justify-content: center;
}

/* 管理员自定义对话框（输入框 / 选择用户等）统一置于所有普通模态之上，避免被覆盖 */
.admin-dialog-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300000; /* 高于 custom/confirm/alert 等所有层 */
}

.admin-dialog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.admin-dialog-content {
    position: relative;
    z-index: 1300001;
}

.custom-modal.show {
    display: flex;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.custom-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    width: 85%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    z-index: 1000000 !important; /* 通用弹窗内容层级 */
}

/* 确认/提示弹窗：永远压在所有其他自定义弹窗之上（包括反馈、公告等） */
#custom-alert-modal,
#custom-confirm-modal {
    z-index: 1200000 !important;
}

#custom-alert-modal .custom-modal-content,
#custom-confirm-modal .custom-modal-content {
    z-index: 1200001 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.custom-modal-icon {
    text-align: center;
    margin-bottom: 16px;
}

.custom-modal-icon svg {
    color: #07c160;
    animation: scaleIn 0.3s ease-out;
}

.custom-modal-icon.warning svg {
    color: #ff9800;
}

.custom-modal-icon.error svg {
    color: #f44336;
}

.custom-modal-icon.success svg {
    color: #07c160;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.custom-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
}

.custom-modal-message {
    font-size: 15px;
    color: #666;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 24px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.custom-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-modal-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.custom-modal-btn-primary {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: white;
}

.custom-modal-btn-primary:hover {
    background: linear-gradient(135deg, #06ad56 0%, #059d4d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

/* 密码类型切换标签样式 */
.password-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.password-type-tab {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.password-type-tab:hover {
    border-color: #07c160;
    color: #07c160;
}

.password-type-tab.active {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    border-color: #07c160;
    color: white;
    font-weight: 600;
}

.password-type-tab .icon {
    font-size: 18px;
}

.password-form {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-modal-btn-primary:active {
    transform: translateY(0);
}

.custom-modal-btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.custom-modal-btn-secondary:hover {
    background: #eeeeee;
    border-color: #d0d0d0;
}

.custom-modal-btn-secondary:active {
    background: #e0e0e0;
}

/* 反馈与帮助 - 用户端样式 */

#feedback-modal .custom-modal-content {
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    padding: 22px 24px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

#feedback-modal .custom-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.feedback-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: #f3f4f6;
}

.feedback-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 8px 0;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-tab.active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.feedback-view {
    animation: fadeIn 0.2s ease;
}

.feedback-empty {
    text-align: center;
    padding: 40px 10px;
    color: #9ca3af;
    font-size: 14px;
}

.feedback-empty span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
}

.feedback-item {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.feedback-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.feedback-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.feedback-item p {
    font-size: 13px;
    color: #4b5563;
}

.feedback-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

.feedback-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: #ffffff;
}

.feedback-status-tag.pending {
    background: #f59e0b;
}

.feedback-status-tag.processing {
    background: #3b82f6;
}

.feedback-status-tag.resolved {
    background: #10b981;
}

.feedback-status-tag.closed {
    background: #6b7280;
}

#feedback-detail-container {
    max-width: 720px;
    margin: 0 auto;
}

#feedback-detail-container h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

#feedback-detail-container p {
    font-size: 14px;
    color: #374151;
}

#feedback-replies-list > div {
    border-radius: 10px;
}

/* 管理员后台 - 卡片与反馈列表样式 */

.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.admin-user-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

.admin-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.admin-user-meta {
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
}

.admin-user-meta span + span {
    margin-left: 10px;
}

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.admin-user-action-btn {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-user-action-btn:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.admin-user-action-btn.danger {
    border-color: #f87171;
    color: #b91c1c;
    background: #fef2f2;
}

.admin-user-action-btn.danger:hover {
    background: #b91c1c;
    color: #ffffff;
    border-color: #b91c1c;
}

.admin-user-action-btn.warning {
    border-color: #facc15;
    color: #92400e;
    background: #fffbeb;
}

.admin-user-action-btn.warning:hover {
    background: #facc15;
    color: #78350f;
    border-color: #facc15;
}

#admin-feedback .admin-section-header h3 {
    font-size: 18px;
}

#admin-feedback .admin-section-header p {
    font-size: 13px;
    color: #6b7280;
}

#admin-feedback-status-filter {
    min-width: 140px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .custom-modal-content {
        max-width: 90%;
        padding: 20px;
    }
    
    .custom-modal-title {
        font-size: 16px;
    }
    
    .custom-modal-message {
        font-size: 14px;
    }
    
    .custom-modal-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

