/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 消息页面主容器 */
.mi-MessagePage {
    width: 100%;
    min-height: 100vh;
}

.mi-MessagePage-container {
    display: flex;
    margin: 0 auto;
    background-color: #fff;
    margin-bottom: 30px;
    width: 1036px;
    min-height: 100vh;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .05);
}

.mi-MessagePage.el-main {
    margin-bottom: 0;
    padding: 0;
}

/* 左侧侧边栏（重构布局） */
.mi-MessaUser{
    display: flex;
    padding: 15px 14px;
    border-bottom: 1px solid #f7f7f7;
}
.mi-MessaUser-left{
    width: 38px;
    height: 38px;
    margin-right: 10px;
}
.mi-MessaUser-right{
    flex: 1;
}
.mi-MessaUser-name{
    font-size: 14px;
    font-weight: 700;
}
.mi-MessaUser-desc{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    font-size: 12px;
}
.mi-MessagePage-sidebar {
    width: 215px;
    flex-shrink: 0;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mi-MessageMenu {
    display: flex;
    flex-direction: column;
}

.mi-MessageMenuItem {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.mi-MessageMenuItem:hover {
    background-color: #f5f6fa;
}

.mi-MessageMenuItem.active {
    background-color: #f5f6fa;
    color: #222;
}

.mi-MessageMenuIcon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mi-MessageMenuIcon i {
    font-size: 25px;
    color: #222;
}

.mi-MessageMenuText {
    flex: 1;
    overflow: hidden;
    letter-spacing: 1.3px;
}

.mi-MessageMenuTitle {
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
}

.mi-MessageMenuDesc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a0aec0;
}

.mi-MessageMenuItem.active .mi-MessageMenuDesc {
    color: #909399;
}

.mi-MessageMenuLabel {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mi-MessageMenuBadge {
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    text-align: center;
}
.mi-MessageMenuBadge .el-badge__content{
    border:none;
}
/* 右侧内容区 */
.mi-MessagePage-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f5f6fa;
}

.mi-MessagePage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.mi-MessagePage-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 22px;
    border-left: 1px solid #6666661f;
}

.mi-MessagePage-markAll {
    font-size: 14px;
    padding: 11px 25px;
    transition: all 0.2s ease;
    box-shadow: none;
    border-radius: 20px 0 0 20px;
}

.mi-MessagePage-markAll:disabled {
    color: #a0aec0;
    cursor: not-allowed;
    background-color: transparent;
}

.mi-MessagePage-markAll,
.mi-MessagePage-markAll button:hover {
    color: #222 !important;
    font-weight: 500;
    background-color: #ffff !important;
}

/* 消息列表 */
.mi-MessagePage-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.mi-MessagePage-empty {
    padding: 80px 0;
}

/* 消息卡片 */
.mi-MessagePage-card {
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.mi-MessagePage-unread {
    border-left: 4px solid #4299e1;
    background-color: #f0f8fb;
    border-color: #e8f4f8;
}

.mi-MessagePage-card-header {
    display: flex;
    padding: 20px;
    gap: 16px;
}

.mi-MessagePage-card-avatar {
    position: relative;
}

.mi-MessagePage-user-avatar {
    width: 56px;
    height: 56px;
    border: 2px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mi-MessagePage-card:hover .mi-MessagePage-user-avatar {
    transform: scale(1.05);
}

.mi-MessagePage-type-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #4299e1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mi-MessagePage-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mi-MessagePage-card-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mi-MessagePage-card-right {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.mi-MessagePage-username {
    font-weight: 500;
    color: #2d3748;
    font-size: 15px;
}

.mi-MessagePage-time {
    font-size: 12px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mi-MessagePage-time i {
    font-size: 11px;
}

.mi-MessagePage-card-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    flex: 1;
}

.mi-MessagePage-post-link {
    margin: 0 4px;
    text-decoration: none;
    color: #4299e1;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.mi-MessagePage-post-link:hover {
    color: #3182ce;
    border-bottom: 1px solid #3182ce;
}

.mi-MessagePage-card-system {
    margin-top: 4px;
    font-size: 13px;
    color: #e53e3e;
    font-weight: 500;
    background-color: rgba(229, 62, 62, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.mi-MessagePage-card-like {
    margin-top: 4px;
    font-size: 13px;
    color: #9fde97;
    background-color: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.mi-MessagePage-card-collect {
    margin-top: 4px;
    font-size: 13px;
    color: #fffec2;
    background-color: #eec304;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.mi-MessagePage-card-putong {
    margin-top: 4px;
    font-size: 13px;
    color: #f5f5f5;
    background-color: #8224e3;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 分页样式 */
.mi-MessagePage-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.el-pagination__total {
    color: #718096;
}

/* 骨架屏样式优化 */
.mi-MessagePage-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mi-MessagePage-skeleton-card {
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    padding: 20px;
    background-color: #fff;
}

.mi-MessagePage-skeleton-header {
    display: flex;
    gap: 16px;
}

.mi-MessagePage-skeleton-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #f5f5f5;
    animation: mi-skeleton-loading 1.5s infinite;
}

.mi-MessagePage-skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mi-MessagePage-skeleton-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mi-MessagePage-skeleton-username {
    width: 120px;
    height: 18px;
    background-color: #f5f5f5;
    border-radius: 4px;
    animation: mi-skeleton-loading 1.5s infinite;
}

.mi-MessagePage-skeleton-time {
    width: 80px;
    height: 14px;
    background-color: #f5f5f5;
    border-radius: 4px;
    animation: mi-skeleton-loading 1.5s infinite;
}

.mi-MessagePage-skeleton-desc {
    width: 100%;
    height: 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    animation: mi-skeleton-loading 1.5s infinite;
}

.mi-MessagePage-skeleton-desc-short {
    width: 70%;
}

.mi-MessagePage-skeleton-post {
    width: 180px;
    height: 14px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 4px;
    animation: mi-skeleton-loading 1.5s infinite;
}

.mi-MessagePage-skeleton-system {
    width: 120px;
    height: 14px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 4px;
    animation: mi-skeleton-loading 1.5s infinite;
}

/* 骨架屏加载动画 */
@keyframes mi-skeleton-loading {
    0% {
        background-color: #f5f5f5;
    }

    50% {
        background-color: #ececec;
    }

    100% {
        background-color: #f5f5f5;
    }
}

/* 防止v-cloak闪烁 */
[v-cloak] {
    display: none !important;
}
/* 未登录提示区域样式 */
.mi-LoginRequired {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    background-color: #f5f5f5;
    padding: 20px;
  }
  
  /* 登录提示卡片 */
  .mi-LoginCard {
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  /* 图标样式 */
  .mi-LoginCardIcon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
  }
  
  .mi-LoginCardIcon i {
    font-size: 40px;
    transition: all 0.3s ease;
  }
  
  .mi-LoginCard:hover .mi-LoginCardIcon i {
    transform: scale(1.1);
  }
  
  /* 文本样式 */
  .mi-LoginCardTitle {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
  }
  
  .mi-LoginCardDesc {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 30px 0;
    padding: 0 10px;
  }
  .mi-LoginCardAction{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* 按钮样式 */
  .mi-LoginCardAction .el-button {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0;
  }

  .mi-LoginCardAction .el-button:active {
    transform: translateY(0);
  }
  