/* Front End PM Pro RiPro主题美化样式 */

/* 主容器 */
.fep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
}

/* 消息头部 */
#fep-header {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

#fep-header > div {
    display: flex;
    align-items: center;
    flex: 1;
}

.fep-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
    margin-right: 15px;
}

.fep-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fep-header-welcome {
    font-size: 16px;
    font-weight: 600;
    color: #0cbc87;
    margin-bottom: 5px;
}

.fep-header-unread-text,
.fep-header-box-size {
    font-size: 14px;
    color: #718096;
    margin-bottom: 5px;
}

/* 消息菜单 */
#fep-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#fep-menu a {
    padding: 10px 20px;
    background: #fff;
    border-radius: 8px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: inline-block;
    white-space: nowrap;
    width: auto;
    min-width: fit-content;
    box-sizing: border-box;
}

#fep-menu a:hover,
#fep-menu a.fep-button-active {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
    border-color: transparent;
}

/* 搜索框 */
.fep-messagebox-search-form-div {
    margin-bottom: 20px;
}

.fep-messagebox-search-form-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
}

.fep-messagebox-search-form-field:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78,115,223,0.1);
}

/* 批量操作区域 */
.fep-action-table {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fep-action-table > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
}

.fep-bulk-action {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.fep-bulk-action select {
    padding: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    font-size: 11px;
    min-width: 80px;
    height: 20px;
    flex-shrink: 0;
}

/* 应用按钮容器 */
.fep-bulk-action + div {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.fep-bulk-action + div button {
    padding: 0 4px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 11px;
    cursor: pointer;
    height: 20px;
    white-space: nowrap;
    min-width: 30px;
    text-align: center;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fep-filter {
    margin-left: auto;
    flex-shrink: 0;
}

.fep-filter select {
    padding: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    font-size: 11px;
    min-width: 80px;
    height: 20px;
    flex-shrink: 0;
}

/* 消息列表 */
#fep-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fep-table-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.fep-table-row:hover {
    background: #f8f9fa;
}

.fep-table-row:last-child {
    border-bottom: none;
}

/* 复选框列 */
.fep-column-fep-cb {
    width: 40px;
    padding-right: 10px;
}

.fep-cb {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* 消息列表头像列 */
.fep-column-avatar {
    width: 80px;
    padding-right: 15px;
    flex-shrink: 0;
}

.fep-avatar-p {
    display: flex;
    gap: 5px;
    align-items: center;
}

.fep-avatar-1,
.fep-avatar-2 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.fep-avatar-1 img,
.fep-avatar-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 作者列 */
.fep-column-author {
    width: 150px;
    padding-right: 15px;
}

.fep-message-author {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.fep-message-date {
    font-size: 12px;
    color: #718096;
}

/* 标题列 */
.fep-column-title {
    flex: 1;
    min-width: 0;
}

.fep-column-title a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.fep-column-title a:hover {
    color: #4e73df;
}

.fep-message-excerpt {
    font-size: 14px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 未读消息样式 */
.fep-table-row.fep-unread {
    background: #e3f2fd;
}

.fep-table-row.fep-unread .fep-column-title a {
    color: #4e73df;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fep-container {
        padding: 10px;
    }
    
    #fep-header {
        flex-direction: column;
        text-align: center;
    }
    
    .fep-header-avatar {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .fep-header-welcome {
        font-size: 14px;
    }
    
    .fep-header-unread-text,
    .fep-header-box-size {
        font-size: 12px;
    }
    
    .fep-table-row {
        flex-wrap: wrap;
    }
    
    .fep-column-author {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .fep-column-title {
        width: 100%;
    }
    
    .fep-action-table > div {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fep-bulk-action {
        width: 100%;
    }
    
    .fep-bulk-action select {
        flex: 1;
    }
    
    .fep-filter {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .fep-filter select {
        width: 100%;
    }
    
    .fep-column-avatar {
        width: 60px;
        padding-right: 10px;
    }
    
    .fep-avatar-1,
    .fep-avatar-2 {
        width: 28px;
        height: 28px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .fep-container {
        background: #1a202c;
    }
    
    #fep-header,
    #fep-table,
    .fep-action-table {
        background: #2d3748;
    }
    
    .fep-header-avatar {
        border-color: #4a5568;
    }
    
    .fep-header-welcome {
        color: #fff;
    }
    
    .fep-header-unread-text,
    .fep-header-box-size {
        color: #a0aec0;
    }
    
    .fep-table-row {
        border-color: #4a5568;
    }
    
    .fep-table-row:hover {
        background: #4a5568;
    }
    
    .fep-column-title a {
        color: #fff;
    }
    
    .fep-message-excerpt {
        color: #a0aec0;
    }
    
    .fep-unread {
        background: #1a365d;
    }
    
    .fep-unread .fep-column-title a {
        color: #4299e1;
    }
    
    .fep-bulk-action select,
    .fep-filter select {
        background: #2d3748;
        border-color: #4a5568;
        color: #fff;
    }
    
    .fep-bulk-action select:focus,
    .fep-filter select:focus {
        border-color: #4299e1;
    }
    
    .fep-avatar-1,
    .fep-avatar-2 {
        border-color: #4a5568;
    }
}

/* 主容器布局 */
#fep-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
}

/* 消息内容区域 */
#fep-content-single-main {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 默认隐藏标题和参与者信息 */
.fep-message-title-heading,
.fep-message-title-heading.participants {
    display: none !important;
}

/* 管理员端显示标题和参与者信息 */
body.admin-bar .fep-message-title-heading,
body.admin-bar .fep-message-title-heading.participants {
    display: block !important;
}

/* 消息标题区域 - 管理员端样式 */
body.admin-bar .fep-per-message-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

body.admin-bar .fep-message-title-heading {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

body.admin-bar .fep-message-title-heading.participants {
    font-size: 14px;
    color: #718096;
    font-weight: normal;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* 用户锁定/解锁按钮 - 管理员端样式 */
body.admin-bar .fep_block_unblock_user {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
    transition: all 0.2s ease;
}

body.admin-bar .fep_user_blocked {
    background-color: #e53e3e;
    color: white;
}

body.admin-bar .fep_user_blocked:hover {
    background-color: #c53030;
    text-decoration: none;
}

/* 深色模式支持 - 管理员端 */
@media (prefers-color-scheme: dark) {
    body.admin-bar .fep-per-message-top {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    body.admin-bar .fep-message-title-heading {
        color: #f7fafc;
    }
    
    body.admin-bar .fep-message-title-heading.participants {
        color: #a0aec0;
    }
    
    body.admin-bar .fep_user_blocked {
        background-color: #c53030;
    }
    
    body.admin-bar .fep_user_blocked:hover {
        background-color: #9b2c2c;
    }
}

/* 移动端适配 - 管理员端 */
@media screen and (max-width: 768px) {
    body.admin-bar .fep-per-message-top {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    body.admin-bar .fep-message-title-heading {
        font-size: 16px;
    }
    
    body.admin-bar .fep-message-title-heading.participants {
        font-size: 13px;
    }
}

/* 消息列表 */
#fep-content-single-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 消息气泡 */
.fep-per-message {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.fep-message-title {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.fep-message-title .author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.fep-message-title .date {
    color: #666;
    font-size: 14px;
}

.fep-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
/* 信息详情页背景颜色代码 */
.fep-message-content {
    background: #f5f5f5;  /* 浅灰色背景 */
    padding: 15px;
    margin: 5px 0;
    border-radius: 4px;
    border: none;
    line-height: 1.6;
    color: #333333; /* 深色文字 */
}

/* 回复表单 */
#fep-content-single-reply-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #fep-content {
        padding: 10px;
    }
    
    #fep-content-single-main {
        padding: 15px;
    }
    
    .fep-message-content {
        padding: 12px;
        margin: 3px 0;
    }
    
    .fep-message-title {
        padding: 6px 12px;
    }
    
    .fep-message-title .date {
        font-size: 12px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    #fep-content {
        background: #1a202c;
    }
    
    #fep-content-single-main {
        background: #2d3748;
    }
    
    .fep-message-content {
        background: #4a5568;
        color: #fff;
    }
    
    .fep-message-title {
        background: #2d3748;
    }
    
    .fep-message-title .author {
        color: #fff;
    }
    
    .fep-message-title .date {
        color: #a0aec0;
    }
}

.fep-message-heads {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fep-message-heads-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.fep-message-heads-meta-left {
    flex: 1;
}

.fep-message-heads-meta-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.fep-message-heads-meta-date {
    font-size: 14px;
    color: #666;
}

.fep-message-heads-meta-right {
    flex: 1;
    text-align: right;
}

.fep-message-heads-meta-participants {
    font-size: 14px;
    color: #666;
}

.fep-message-heads-meta-participants a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.fep-message-heads-meta-participants a:hover {
    color: #0056b3;
}

.fep-message-heads-meta-participants .fep_user_blocked {
    color: #dc3545;
}

.fep-message-heads-meta-participants .fep_user_blocked:hover {
    color: #c82333;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .fep-message-heads {
        background: #2d2d2d;
    }
    
    .fep-message-heads-meta-title {
        color: #fff;
    }
    
    .fep-message-heads-meta-date,
    .fep-message-heads-meta-participants {
        color: #aaa;
    }
    
    .fep-message-heads-meta-participants a {
        color: #4dabf7;
    }
    
    .fep-message-heads-meta-participants a:hover {
        color: #74c0fc;
    }
    
    .fep-message-heads-meta-participants .fep_user_blocked {
        color: #ff6b6b;
    }
    
    .fep-message-heads-meta-participants .fep_user_blocked:hover {
        color: #ff8787;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fep-message-heads-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .fep-message-heads-meta-right {
        text-align: left;
    }
    
    .fep-message-heads-meta-title {
        font-size: 16px;
    }
    
    .fep-message-heads {
        padding: 15px;
    }
}

/* 公告样式 */
.fep-announcement {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fep-announcement-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.fep-announcement-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.fep-announcement .date {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* 公告列表样式 */
.fep-announcementbox-search-form-div {
    margin-bottom: 20px;
}

.fep-announcementbox-search-form-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fep-announcementbox-search-form-field:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
    outline: none;
}

/* 公告表格样式 */
.fep-announcement-table .fep-table-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.fep-announcement-table .fep-table-row:hover {
    background-color: #f8f9fa;
}

.fep-announcement-table .fep-column {
    padding: 0 10px;
}

.fep-announcement-table .fep-column-title {
    flex: 1;
    font-weight: 500;
}

.fep-announcement-table .fep-column-date {
    color: #666;
    font-size: 14px;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .fep-announcement {
        background: #2d2d2d;
    }
    
    .fep-announcement-title {
        color: #fff;
        border-bottom-color: #444;
    }
    
    .fep-announcement-content {
        color: #ddd;
    }
    
    .fep-announcement .date {
        color: #aaa;
    }
    
    .fep-announcementbox-search-form-field {
        background: #333;
        border-color: #444;
        color: #fff;
    }
    
    .fep-announcementbox-search-form-field:focus {
        border-color: #4dabf7;
        box-shadow: 0 0 0 2px rgba(77,171,247,0.25);
    }
    
    .fep-announcement-table .fep-table-row {
        border-bottom-color: #444;
    }
    
    .fep-announcement-table .fep-table-row:hover {
        background-color: #333;
    }
    
    .fep-announcement-table .fep-column-date {
        color: #aaa;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fep-announcement {
        padding: 15px;
    }
    
    .fep-announcement-title {
        font-size: 16px;
    }
    
    .fep-announcement-content {
        font-size: 14px;
    }
    
    .fep-announcement-table .fep-table-row {
        flex-wrap: wrap;
    }
    
    .fep-announcement-table .fep-column {
        width: 100%;
        padding: 5px 0;
    }
}

/* 公告编辑页面样式 */
.fep-announcement-edit {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fep-announcement-edit .form-table {
    margin-top: 20px;
}

.fep-announcement-edit .form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
}

.fep-announcement-edit .form-table td {
    padding: 15px 10px;
}

.fep-announcement-edit input[type="text"],
.fep-announcement-edit textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.fep-announcement-edit textarea {
    min-height: 200px;
}

.fep-announcement-edit .submit {
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.fep-announcement-edit .button-primary {
    padding: 8px 20px;
    background: #0073aa;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fep-announcement-edit .button-primary:hover {
    background: #006291;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .fep-announcement-edit {
        background: #1e1e1e;
        color: #fff;
    }
    
    .fep-announcement-edit input[type="text"],
    .fep-announcement-edit textarea {
        background: #2d2d2d;
        border-color: #404040;
        color: #fff;
    }
    
    .fep-announcement-edit .submit {
        border-top-color: #404040;
    }
}

/* 响应式设计 */
@media screen and (max-width: 782px) {
    .fep-announcement-edit .form-table th {
        width: 100%;
        padding: 10px 0;
    }
    
    .fep-announcement-edit .form-table td {
        padding: 10px 0;
    }
}

.fep-form-field-announcement_roles .fep-field {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fep-form-field-announcement_roles .fep-field label {
    display: flex;
    align-items: center;
    margin-right: 15px;
    white-space: nowrap;
}

.fep-form-field-announcement_users {
    margin-bottom: 15px;
}

.fep-form-field-announcement_users .fep-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Token Input Styles */
ul.token-input-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    min-height: 38px;
}

ul.token-input-list li {
    margin: 3px;
}

li.token-input-token {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px 8px;
}

li.token-input-selected-token {
    background-color: #e0e0e0;
}

li.token-input-input-token {
    padding: 3px;
}

div.token-input-dropdown {
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

div.token-input-dropdown ul li.token-input-selected-dropdown-item {
    background-color: #f0f0f0;
}

/* 隐藏用户头像 - 适用于所有设备 */
.fep-header-avatar,
.fep-author-avatar,
.fep-avatar-container,
.fep-avatar-1,
.fep-avatar-2,
.fep-avatar-p img,
.fep-message-title .fep-author-avatar,
.fep-message-heads-meta-avatar,
.fep-message-heads-meta-avatar img,
.fep-message-heads-meta-avatar .fep-avatar,
.fep-message-heads-meta-avatar .fep-avatar img,
.fep-column-avatar,
.fep-avatar-p,
.fep-avatar-p-90,
.fep-avatar-p-60,
.fep-avatar-p-45 {
    display: none !important;
}

/* 调整头像容器占位 */
.fep-header > div {
    display: flex;
    align-items: center;
    flex: 1;
}

.fep-message-title .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fep-message-heads-meta-avatar {
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* 调整列宽 */
.fep-column-avatar {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 调整消息行布局 */
.fep-table-row {
    display: flex;
    align-items: center;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .fep-header {
        flex-direction: column;
        text-align: center;
    }
    
    .fep-message-title .author {
        justify-content: center;
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    #fep-header {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    #fep-header > div {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    
    .fep-header-welcome {
        font-size: 16px;
        margin-bottom: 8px;
        color: #0cbc87;
        display: block;
        width: 100%;
    }
    
    .fep-header-unread-text,
    .fep-header-box-size {
        font-size: 14px;
        margin-bottom: 8px;
        display: block;
        width: 100%;
    }
}

/* 深色主题适配 */
[data-theme="dark"] #fep-header {
    background: #2d3748;
}

[data-theme="dark"] .fep-header-welcome {
    color: #0cbc87;
}

[data-theme="dark"] .fep-header-unread-text,
[data-theme="dark"] .fep-header-box-size {
    color: #a0aec0;
}

/* 移动端深色主题适配 */
@media screen and (max-width: 768px) {
    [data-theme="dark"] .fep-header-welcome {
        color: #0cbc87;
    }
    
    [data-theme="dark"] .fep-header-unread-text,
    [data-theme="dark"] .fep-header-box-size {
        color: #cbd5e0;
    }
}

/* 移动端信息列表样式优化 */
@media screen and (max-width: 768px) {
    /* 信息列表容器 */
    #fep-box-content-content {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* 全选/取消全选按钮 */
    .fep-cb-check-uncheck-all-div {
        width: 100%;
        padding: 8px 10px;
        margin-bottom: 8px;
        background-color: #f5f7fa;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }
    
    .fep-cb-check-uncheck-all-div label {
        display: flex;
        align-items: center;
        font-weight: 600;
        color: #2c3e50;
    }
    
    /* 信息行样式 */
    .fep-table-row {
        display: flex;
        flex-direction: column;
        padding: 10px;
        margin-bottom: 10px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        border: 1px solid #e2e8f0;
        width: 100%;
    }
    
    /* 复选框列 */
    .fep-column-fep-cb {
        width: 100%;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
    }
    
    /* 作者列 */
    .fep-column-author {
        width: 100%;
        margin-bottom: 5px;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .fep-message-author {
        font-weight: 600;
        color: #2c3e50;
        margin-right: 8px;
        margin-bottom: 0;
    }
    
    .fep-message-date {
        color: #718096;
        font-size: 13px;
        margin-bottom: 0;
    }
    
    /* 标题列 */
    .fep-column-title {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .fep-column-title a {
        font-weight: 600;
        color: #3498db;
        font-size: 15px;
        display: inline;
        margin-bottom: 0;
        margin-right: 5px;
    }
    
    .fep-message-excerpt {
        color: #718096;
        font-size: 13px;
        line-height: 1.4;
        display: inline;
    }
    
    /* 深色主题适配 */
    [data-theme="dark"] .fep-table-row {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    [data-theme="dark"] .fep-cb-check-uncheck-all-div {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    [data-theme="dark"] .fep-cb-check-uncheck-all-div label {
        color: #e2e8f0;
    }
    
    [data-theme="dark"] .fep-message-author {
        color: #e2e8f0;
    }
    
    [data-theme="dark"] .fep-message-date,
    [data-theme="dark"] .fep-message-excerpt {
        color: #a0aec0;
    }
    
    [data-theme="dark"] .fep-column-title a {
        color: #63b3ed;
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .fep-action-table > div {
        gap: 4px;
    }
    
    .fep-bulk-action {
        gap: 4px;
    }
    
    .fep-bulk-action select,
    .fep-filter select {
        padding: 0 3px;
        font-size: 10px;
        min-width: 70px;
        height: 20px;
    }
    
    .fep-bulk-action + div button {
        padding: 0 3px;
        font-size: 10px;
        height: 20px;
        min-width: 28px;
        line-height: 20px;
    }
}

/* 修改新消息按钮文本 */
#fep-menu-newmessage {
    position: relative;
    width: auto;
    min-width: fit-content;
    box-sizing: border-box;
}

#fep-menu-newmessage span {
    display: inline-block;
}

/* 保持原有的按钮样式 */
.fep-button {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: normal;
    height: auto;
    width: auto;
    min-width: fit-content;
    box-sizing: border-box;
}

.fep-button:hover,
.fep-button-active {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
    border-color: transparent;
}

.fep-message {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.fep-message-title {
  background: #f5f5f5;
  padding: 8px 15px;
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fep-message-title .author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.fep-message-title .date {
  color: #666;
  font-size: 0.9em;
}

.fep-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* 移除多余的嵌套框架 */
.fep-per-message {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .fep-message-content {
    padding: 12px;
    margin: 3px 0;
  }
  
  .fep-message-title {
    padding: 6px 12px;
  }
  
  .fep-message-title .date {
    font-size: 12px;
  }
}

/* 移除多余的边距和边框 */
.fep-message > div,
.fep-message > div > div {
  margin: 0 !important;
  border: none !important;
}

/* 移动端批量操作区域修复 - 与现有样式区分 */
@media screen and (max-width: 480px) {
    /* 批量操作区域 */
    .fep-action-table {
        padding: 8px !important;
        margin-bottom: 12px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }

    .fep-action-table > div {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }

    /* 显示全部下拉框 */
    .fep-filter {
        flex: 1 !important;
        min-width: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .fep-filter select {
        width: 100% !important;
        height: 36px !important;
        line-height: 36px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        background-color: #fff !important;
        color: #2d3748 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 14px !important;
        padding-right: 32px !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        transition: all 0.2s ease !important;
    }

    /* 批量操作下拉框 */
    .fep-bulk-action {
        flex: 1 !important;
        min-width: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .fep-bulk-action select {
        width: 100% !important;
        height: 36px !important;
        line-height: 36px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        background-color: #fff !important;
        color: #2d3748 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 14px !important;
        padding-right: 32px !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        transition: all 0.2s ease !important;
    }

    /* 应用按钮 */
    .fep-bulk-action + div {
        flex: 0 0 auto !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .fep-bulk-action + div button {
        height: 36px !important;
        line-height: 36px !important;
        padding: 0 20px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border: none !important;
        border-radius: 6px !important;
        background: linear-gradient(135deg, #4e73df, #224abe) !important;
        color: #fff !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 4px rgba(78,115,223,0.2) !important;
        margin-bottom: 0 !important;
    }
}

/* 移动端显示顺序调整 */
@media screen and (max-width: 480px) {
    /* 调整信息列表显示在最上方 */
    #fep-box-content-content {
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* 调整搜索框（管理员端）显示在中间 */
    .fep-messagebox-search-form-div {
        order: 2 !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
    
    /* 调整其他元素显示在最下方 */
    .fep-action-table {
        order: 3 !important;
    }
    
    /* 确保父容器使用flex布局 */
    #fep-box-content {
        display: flex !important;
        flex-direction: column !important;
    }
}


/* 手机端发送消息的背景颜色 */
#fep-wrapper {
    background-color: #ffffff !important;
}

@media screen and (max-width: 768px) {
    #fep-wrapper {
        background-color: #ffffff !important;
    }
}

@media screen and (max-width: 768px) {
    #fep-content {
        background-color: #f8f9fa !important;
    }
    
    .front-end-pm-form {
        background-color: #f8f9fa !important;
    }
    
    .fep-help-text {
        background-color: #f8f9fa !important;
    }
}