/**
 * AI领航局 - 消息通知菜单样式
 */

/* 消息弹出菜单容器 */
.ailhj-message-menu-container {
    min-width: 380px;
    max-width: 380px;
    box-sizing: border-box;
    background: #fff;
    border-radius: var(--main-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
    position: absolute;
    top: 100%;
    margin-top: 8px;
    opacity: 1;
    transform: none;
    transition: none;
}

/* 右对齐 */
.ailhj-message-menu-container.right {
    right: 0;
    left: auto;
}

/* 左对齐 */
.ailhj-message-menu-container.left {
    left: 0;
    right: auto;
}

/* 消息头部 */
.ailhj-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid var(--main-border-color);
}

.ailhj-message-tabs {
    display: flex;
    gap: 24px;
}

.ailhj-message-tab {
    padding: 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-color);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.ailhj-message-tab:hover {
    color: var(--main-color);
}

.ailhj-message-tab.active {
    color: var(--ailhj-blue);
}

.ailhj-message-tab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ailhj-blue);
}

.ailhj-message-count {
    background: var(--ailhj-red);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 消息内容区域 */
.ailhj-message-content {
    min-height: 300px;
    overflow-y: auto;
}

.ailhj-message-tab-content {
    display: none;
    padding: 8px 0;
}

.ailhj-message-tab-content.active {
    display: block;
}

/* 消息项 */
.ailhj-message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.ailhj-message-item:hover {
    background: var(--muted-bg-color);
}

/* 消息图标 */
.ailhj-message-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted-bg-color);
    border-radius: 50%;
    color: var(--ailhj-blue);
    font-size: 14px;
}

/* 消息头像 */
.ailhj-message-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.ailhj-message-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.ailhj-message-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ailhj-message-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color);
}

.ailhj-message-text {
    font-size: 12px;
    color: var(--muted-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ailhj-message-time {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--muted-color);
    margin-left: 12px;
}

.ailhj-message-unread {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: var(--ailhj-red);
    border-radius: 50%;
}

/* 空消息状态 */
.ailhj-message-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted-color);
    font-size: 14px;
}

/* 底部操作 */
.ailhj-message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-top: 1px solid var(--main-border-color);
}

.ailhj-message-mark-all,
.ailhj-message-view-all {
    font-size: 12px;
    color: var(--ailhj-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ailhj-message-mark-all:hover,
.ailhj-message-view-all:hover {
    color: var(--ailhj-blue-dark);
}

/* 滚动条样式 */
.ailhj-message-content::-webkit-scrollbar {
    width: 4px;
}

.ailhj-message-content::-webkit-scrollbar-track {
    background: var(--muted-bg-color);
}

.ailhj-message-content::-webkit-scrollbar-thumb {
    background: var(--main-border-color);
    border-radius: 2px;
}

.ailhj-message-content::-webkit-scrollbar-thumb:hover {
    background: var(--muted-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ailhj-message-menu-container {
        min-width: 280px;
        max-width: 320px;
    }
    
    .ailhj-message-tabs {
        gap: 16px;
    }
}
