/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
}

/* 登录/注册页面样式 */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1877f2;
}

.role-selection {
    margin-bottom: 20px;
}

.role-selection h3 {
    margin-bottom: 10px;
    text-align: center;
}

.role-btn {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    width: 45%;
}

.role-btn.active {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

/* 认证标签页 */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: none;
}

.tab-btn.active {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #166fe5;
}

.hidden {
    display: none;
}

/* 聊天界面样式 */
.chat-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    background-color: white;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-info {
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.user-info h2 {
    margin-bottom: 5px;
    color: #1877f2;
}

.user-info p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

#logout-btn {
    padding: 8px 12px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.search-section {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.search-section h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.search-section input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.search-section button {
    width: 100%;
    padding: 8px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.friends-section, .conversations-section {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    flex: 1;
    overflow-y: auto;
}

.friends-section h3, .conversations-section h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.friend-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.friend-item:hover {
    background-color: #f5f5f5;
}

/* 未读消息提示 */
.unread-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.unread-badge.show {
    opacity: 1;
}

/* 未读消息好友名称样式 */
.unread {
    font-weight: bold;
    color: #333;
}

.status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-online {
    background-color: #4CAF50;
}

.status-offline {
    background-color: #9E9E9E;
}

.conversation-item {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.conversation-item:hover {
    background-color: #f1f1f1;
}

.conversation-item.active {
    background-color: #e8f0fe;
    border-left: 4px solid #1877f2;
}

/* 未读消息徽章 */
.unread-badge {
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.unread-badge.show {
    opacity: 1;
}

/* 手机端未读消息徽章 */
.unread-badge-mobile {
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.unread-badge-mobile.show {
    opacity: 1;
}

/* 主聊天区域 */
.main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

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

.back-btn {
    padding: 8px 12px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.back-btn:hover {
    background-color: #166fe5;
}

.online-users {
    color: #666;
    font-size: 14px;
    font-weight: bold;
    background-color: #e8f0fe;
    padding: 5px 10px;
    border-radius: 12px;
    border: 1px solid #d0e3ff;
}

.admin-controls button {
    padding: 8px 12px;
    margin-left: 10px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.announcement-container {
    position: relative;
    background-color: #fff3cd;
    border-bottom: 1px solid #ffeeba;
}

.announcement-section {
    padding: 15px;
    transition: all 0.3s ease;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #856404;
    cursor: pointer;
    z-index: 1;
}

.announcement-toggle.collapsed {
    transform: rotate(180deg);
}

.announcement-section.collapsed {
    padding: 0 15px;
    overflow: hidden;
    height: 0;
}

.announcement-container.collapsed {
    border-bottom: none;
}

.messages-section {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f5f5;
}

.message-item {
    margin-bottom: 15px;
    max-width: 70%;
}

.message-item.sent {
    margin-left: auto;
}

.message-item.received {
    margin-right: auto;
}

/* AI消息样式 */
.message-item.ai-message {
    margin-right: auto;
    background-color: #f0f8ff;
    border-left: 3px solid #4682b4;
    padding-left: 10px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.message-sender {
    font-weight: bold;
    color: #1877f2;
}

.message-time {
    color: #666;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-item.sent .message-content {
    background-color: #dcf8c6;
}

/* 输入区域 */
.input-section {
    padding: 20px;
    background-color: white;
    border-top: 1px solid #ddd;
}

.input-tools {
    margin-bottom: 15px;
}

.tool-btn {
    padding: 8px 12px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-btn.active {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.input-area {
    display: flex;
}

#message-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
    margin-right: 10px;
    min-height: 45px;
    max-height: 120px;
}

#send-btn {
    padding: 12px 24px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#send-btn:hover {
    background-color: #166fe5;
}

/* 手机端布局 */
.mobile-layout {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    overflow: hidden;
}

.mobile-page {
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.mobile-page.active {
    display: block;
}

/* 用户信息 */
.user-info-mobile {
    padding: 20px;
    background-color: #1877f2;
    color: white;
    text-align: center;
}

.user-info-mobile h2 {
    margin-bottom: 5px;
    font-size: 24px;
}

.user-info-mobile p {
    margin-bottom: 15px;
    font-size: 16px;
    opacity: 0.9;
}

#logout-btn-mobile {
    padding: 10px 20px;
    background-color: white;
    color: #1877f2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* 搜索用户 */
.search-section-mobile {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: white;
}

.search-section-mobile h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.search-section-mobile input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 16px;
}

#search-btn-mobile {
    width: 100%;
    padding: 10px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* 好友列表 */
.friends-section-mobile {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: white;
}

.friends-section-mobile h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.friend-item-mobile {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.friend-item-mobile:hover {
    background-color: #f5f5f5;
}

.friend-item-mobile h4 {
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.friend-item-mobile p {
    font-size: 14px;
    color: #666;
}

/* 聊天会话列表 */
.conversations-section-mobile {
    padding: 15px;
    background-color: white;
}

.conversations-section-mobile h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.conversation-item-mobile {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.conversation-item-mobile:hover {
    background-color: #f5f5f5;
}

.conversation-item-mobile.active {
    background-color: #e8f0fe;
    border-left: 4px solid #1877f2;
}

.conversation-item-mobile h4 {
    font-size: 16px;
    color: #333;
}

/* 聊天页面 */
.chat-header-mobile {
    padding: 15px;
    background-color: #1877f2;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn-mobile {
    padding: 8px 12px;
    background-color: white;
    color: #1877f2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#chat-title-mobile {
    font-size: 20px;
    font-weight: bold;
    flex: 1;
}

.online-users-mobile {
    font-size: 14px;
    opacity: 0.9;
}

.admin-controls-mobile {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-controls-mobile button {
    padding: 6px 10px;
    background-color: white;
    color: #1877f2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* 公告区域 */
.announcement-container-mobile {
    position: relative;
    background-color: #fff3cd;
    border-bottom: 1px solid #ffeeba;
}

.announcement-section-mobile {
    padding: 15px;
    color: #856404;
    transition: all 0.3s ease;
}

.announcement-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-toggle-mobile {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #856404;
    cursor: pointer;
    z-index: 1;
}

.announcement-toggle-mobile.collapsed {
    transform: rotate(180deg);
}

.announcement-section-mobile.collapsed {
    padding: 0 15px;
    overflow: hidden;
    height: 0;
}

.announcement-container-mobile.collapsed {
    border-bottom: none;
}

/* 消息区域 */
.messages-section-mobile {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    background-color: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.message-item-mobile {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.message-item-mobile.sent {
    background-color: #1877f2;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-item-mobile.received {
    background-color: white;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

/* AI消息样式（移动端） */
.message-item-mobile.ai-message {
    background-color: #f0f8ff;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border-left: 3px solid #4682b4;
}

.message-header-mobile {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
    opacity: 0.8;
}

.message-content-mobile {
    font-size: 16px;
    line-height: 1.4;
}

/* 输入区域 */
.input-section-mobile {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #ddd;
    position: sticky;
    bottom: 0;
}

.input-tools-mobile {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

.tool-btn-mobile {
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.tool-btn-mobile.active {
    background-color: #1877f2;
    color: white;
}

.input-area-mobile {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#message-input-mobile {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
    font-size: 16px;
    max-height: 100px;
    min-height: 45px;
}

#send-btn-mobile {
    padding: 12px 20px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    min-width: 80px;
}

/* 查看历史记录和清除本地记录按钮 */
.view-history-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-history-btn:hover {
    background-color: #0b7dda;
}

.clear-local-btn {
    background-color: #FF9800;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.clear-local-btn:hover {
    background-color: #f57c00;
}

.view-history-mobile-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.view-history-mobile-btn:hover {
    background-color: #0b7dda;
}

.clear-local-mobile-btn {
    background-color: #FF9800;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.clear-local-mobile-btn:hover {
    background-color: #f57c00;
}

/* 聊天头部右侧 */
.chat-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .desktop-layout {
        display: none;
    }
    
    .mobile-layout {
        display: block;
    }
    .chat-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .user-info {
        padding: 15px;
    }
    
    .user-info h2 {
        font-size: 18px;
    }
    
    .search-section {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .search-section input {
        margin-bottom: 0;
    }
    
    .friends-section, .conversations-section {
        padding: 10px;
        flex: 1;
        min-height: 100px;
        max-height: 150px;
        overflow-y: auto;
    }
    
    .chat-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-controls {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* 确保hidden类在手机端也能正常工作 */
    .admin-controls.hidden {
        display: none;
    }
    
    .admin-controls button {
        margin: 0;
        flex: 1;
        min-width: 120px;
    }
    
    .messages-section {
        padding: 15px;
    }
    
    .message-item {
        max-width: 85%;
    }
    
    .input-section {
        padding: 15px;
    }
    
    .input-tools {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tool-btn {
        margin-right: 0;
        flex: 1;
        min-width: 70px;
    }
    
    .input-area {
        flex-direction: column;
    }
    
    #message-input {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    #send-btn {
        width: 100%;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .role-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .sidebar {
        max-height: 320px;
    }
    
    .friends-section, .conversations-section {
        min-height: 90px;
        max-height: 110px;
    }
    
    .admin-controls button {
        min-width: 100px;
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .tool-btn {
        min-width: 60px;
        padding: 6px 8px;
        font-size: 14px;
    }
}

/* 模态框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* 黑色半透明背景 */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 在线用户列表样式 */
#online-users-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
}

.online-user-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid #007bff;
}

.online-user-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
}

.modal-input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-input-section label {
    font-weight: bold;
    color: #333;
}

.modal-input-section input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* 意见反馈表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1877f2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn,
.cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.submit-btn {
    background-color: #1877f2;
    color: white;
}

.submit-btn:hover {
    background-color: #166fe5;
}

.cancel-btn {
    background-color: #f0f2f5;
    color: #333;
}

.cancel-btn:hover {
    background-color: #e4e6eb;
}

/* 反馈管理样式 */
.feedback-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.feedback-filters label {
    font-weight: bold;
    color: #333;
}

.feedback-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.feedback-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.feedback-item:hover {
    background-color: #f0f2f5;
}

.feedback-item h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.feedback-item .feedback-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
}

.feedback-item .feedback-content {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.5;
}

.feedback-item .feedback-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.feedback-status.未处理 {
    background-color: #ffebee;
    color: #c62828;
}

.feedback-status.处理中 {
    background-color: #fff3e0;
    color: #ef6c00;
}

.feedback-status.已回复 {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.feedback-item .feedback-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.feedback-item .feedback-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.feedback-item .reply-btn {
    background-color: #1877f2;
    color: white;
}

.feedback-item .reply-btn:hover {
    background-color: #166fe5;
}

.feedback-item .update-status-btn {
    background-color: #4caf50;
    color: white;
}

.feedback-item .update-status-btn:hover {
    background-color: #45a049;
}

.feedback-reply {
    margin-top: 15px;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 4px;
    border-left: 4px solid #4caf50;
}

.feedback-reply h5 {
    margin: 0 0 5px 0;
    color: #2e7d32;
    font-size: 14px;
}

.feedback-reply .reply-content {
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
}

.feedback-reply .reply-meta {
    font-size: 12px;
    color: #666;
}

#block-user-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#block-user-btn:hover {
    background-color: #45a049;
}