/* else0626 im消息-样式表：消息中心列表页 / 消息详情页 布局样式（Figma 1:1：H5=设计稿/2，Web=1x） */

.ai-msg-page {
    /* background: #2c2a2a; */
    min-height: 100vh;
    box-sizing: border-box;
    padding-top: 1rem;           /* 避让 H5 固定搜索栏 */
    -webkit-font-smoothing: antialiased;
}
.ai-msg-page * { box-sizing: border-box; }

/* ===== 顶部「我的消息」标题带（仅 Web 显示） ===== */
.ai-msg-hero { display: none; }

/* ===== 居中内容容器 ===== */
.ai-msg-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ===== 面包屑 ===== */
.ai-msg-crumb {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 0 14px;
    opacity: .91;
    line-height: 1;
}
.ai-msg-crumb a,
.ai-msg-crumb span { font-size: 10px; }
.ai-msg-crumb .c-home { color: #0ab18c; text-decoration: none; }
.ai-msg-crumb .c-sep {
    width: 6px; height: 6px;
    border-top: 1px solid #8a8a8a;
    border-right: 1px solid #8a8a8a;
    transform: rotate(45deg);
    margin: 0 1px;
}
.ai-msg-crumb .c-cur { color: #bcbcbc; }

/* ===== 系统公告入口卡（列表页） ===== */
.ai-msg-notice-entry {
    display: flex;
    align-items: center;
    background: #383737;
    border-radius: 5px;
    height: 60px;
    padding: 0 11px;
    margin-bottom: 10px;
    text-decoration: none;
}
.ai-msg-notice-entry .ne-ico {
    position: relative;
    width: 38px; height: 38px;
    flex: 0 0 38px;
    margin-right: 18px;
}
.ai-msg-notice-entry .ne-ico .ne-circle { width: 38px; height: 38px; display: block; }
.ai-msg-notice-entry .ne-ico .ne-speaker {
    position: absolute; left: 10px; top: 10px;
    width: 18px; height: 18px;
}
.ai-msg-notice-entry .ne-title {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}
.ai-msg-notice-entry .ne-count {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff2d2d;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 600;
}

/* ===== IM广告卡 ===== */
.ai-msg-ad {
    display: block;
    width: 100%;
    aspect-ratio: 1072 / 150;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}
.ai-msg-ad .ad-photo {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    transition: opacity .3s;
}
/* im.js 重建的 img 初始无 src，解密成功注入 src 后才淡入——避免占位图闪现 */
.ai-msg-ad .ad-photo:not([src]) { opacity: 0; }
.ai-msg-ad .ad-shade {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 100%;
    background: linear-gradient(to left, rgba(3,10,21,0) 0%, rgba(3,10,21,.9) 90%);
}
.ai-msg-ad .ad-thumb { display: none; }   /* 头像占位已弃用 */
.ai-msg-ad .ad-title {
    position: absolute;
    left: 16px; top: 12px;
    font-family: "HuXiaoBo-MengNanTi","YouSheBiaoTiHei","HYWenHei","PingFang SC",sans-serif;
    font-size: 15px;
    line-height: 14px;
    font-weight: 400;
    background: linear-gradient(to bottom, #ffffff 0%, #feffe0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 7px rgba(157,33,33,.64);
    white-space: nowrap;
}
.ai-msg-ad .ad-sub {
    position: absolute;
    left: 16px; top: 31px;
    color: #fff;
    font-size: 8px;
    font-weight: 500;
    white-space: nowrap;
}
.ai-msg-ad .ad-badge {
    position: absolute;
    right: 13px; top: 6px;
    min-width: 13px; height: 13px;
    padding: 0 3px;
    border-radius: 999px;
    background: #ff2d2d;
    color: #fff;
    font-size: 8px;
    line-height: 13px;
    text-align: center;
    font-weight: 600;
}
.ai-msg-ad .ad-tag {
    position: absolute;
    right: 0; bottom: 0;
    width: 22px; height: 11px;
}
.ai-msg-ad .ad-tag img { width: 100%; height: 100%; display: block; }
.ai-msg-ad .ad-tag span {
    position: absolute;
    right: 1px; bottom: 0;
    color: #e9e9e9;
    font-size: 6.5px;
    line-height: 11px;
    font-weight: 500;
}

/* ===== 详情页：时间 + 系统公告卡 ===== */
.ai-msg-announce { position: relative; margin-bottom: 18px; display: flex; flex-direction: column}
.ai-msg-time {
    display: inline-block;
    margin: 18px auto 14px;
    padding: 0 12px;
    background: #333;
    border-radius: 17px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    box-sizing: border-box;
}
.ai-msg-card {
    background: #383737;
    border-radius: 5px;
    padding: 12px 10px 14px;
}
.ai-msg-card .card-title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 17px;
    margin: 0 0 8px;
}
.ai-msg-card .card-body {
    color: #bcbcbc;
    font-size: 12px;
    font-weight: 500;
    line-height: 19px;
    margin: 0;
    word-break: break-word;
}

/* ===== 详情页翻页器（页码分页：上一页 / 当前页·总页数 / 跳转 / 下一页） ===== */
.ai-msg-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 10px;
}
.ai-msg-pager.hidden { display: none; }
.ai-msg-pager .pg-btn,
.ai-msg-pager .pg-input {
    height: 32px;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    line-height: 1;
}
.ai-msg-pager .pg-btn {
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
}
.ai-msg-pager .pg-btn.pg-disabled { opacity: .35; cursor: not-allowed; }
.ai-msg-pager .pg-input {
    width: 52px;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}
.ai-msg-pager .pg-input::-webkit-outer-spin-button,
.ai-msg-pager .pg-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ai-msg-pager .pg-info {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0 2px;
}
.ai-msg-pager .pg-info .pg-cur { font-style: normal; }

/* ============================================================= */
/* ============== Web (≥768px) 设计稿 1x 还原 ================== */
/* ============================================================= */
@media (min-width: 768px) {
    .ai-msg-page { padding-top: 15px; }   /* 避让 PC 固定导航 */
    .ai-msg-hero {
        display: block;
        width: 100%;
        height: 155px;
        background: #313030;
        text-align: center;
        margin-bottom: 0;
    }
    .ai-msg-hero h1 {
        margin: 0;
        line-height: 155px;
        color: #fff;
        font-size: 36px;
        font-weight: 600;
        letter-spacing: 3px;
    }

    .ai-msg-wrap {
        max-width: 1072px;
        padding: 0 0 60px;
    }

    .ai-msg-crumb {
        gap: 8px;
        padding: 25px 0 22px;
    }
    .ai-msg-crumb a,
    .ai-msg-crumb span { font-size: 15px; }
    .ai-msg-crumb .c-sep { width: 7px; height: 7px; }

    /* 系统公告入口卡 */
    .ai-msg-notice-entry {
        height: 120px;
        border-radius: 12px;
        padding: 0 34px;
        margin-bottom: 0;
    }
    .ai-msg-notice-entry .ne-ico { width: 76px; height: 76px; flex-basis: 76px; margin-right: 24px; }
    .ai-msg-notice-entry .ne-ico .ne-circle { width: 76px; height: 76px; }
    .ai-msg-notice-entry .ne-ico .ne-speaker { left: 20px; top: 20px; width: 36px; height: 36px; }
    .ai-msg-notice-entry .ne-title { font-size: 20px; }
    .ai-msg-notice-entry .ne-count { min-width: 24px; height: 24px; padding: 0 7px; font-size: 14px; line-height: 24px; }

    /* IM广告卡 */
    .ai-msg-ad {
        width: 100%;
        aspect-ratio: 1072 / 150;
        border-radius: 12px;
        margin-bottom: 22px;
    }
    .ai-msg-ad .ad-photo,
    .ai-msg-ad .ad-shade { width: 100%; }
    .ai-msg-ad .ad-shade { background: linear-gradient(to left, rgba(3,10,21,0) 0%, #000310 100%); }
    .ai-msg-ad .ad-title {
        left: 40px; top: 37px;
        font-size: 37px; line-height: 35px;
        text-shadow: 0 5px 18px rgba(157,33,33,.64);
    }
    .ai-msg-ad .ad-sub { left: 40px; top: 77px; font-size: 20px; }
    .ai-msg-ad .ad-tag { width: 44px; height: 22px; }
    .ai-msg-ad .ad-tag span { font-size: 13px; line-height: 22px; right: 6px; }
    .ai-msg-ad .ad-badge { display: none; }

    /* 详情卡：标题 + 右上日期 + 正文 */
    .ai-msg-announce { margin-bottom: 22px; }
    .ai-msg-time {
        position: absolute;
        top: 24px; right: 24px;
        width: auto; margin: 0;
        background: none; border-radius: 0;
        color: #828282;
        font-size: 20px; line-height: 34px;
    }
    .ai-msg-card {
        border-radius: 10px;
        padding: 24px;
    }
    .ai-msg-card .card-title { font-size: 20px; line-height: 34px; margin: 0 0 10px; max-width: 450px }
    .ai-msg-card .card-body { font-size: 14px; line-height: 24px; }

    /* 翻页器 Web 1x 还原（按钮 50px 高 / 8px 圆角 / 18px 白字描边） */
    .ai-msg-pager { gap: 16px; margin-top: 10px; padding-bottom: 0; }
    .ai-msg-pager .pg-btn,
    .ai-msg-pager .pg-input { height: 50px; border-radius: 8px; font-size: 18px; }
    .ai-msg-pager .pg-btn { padding: 0 28px; }
    .ai-msg-pager .pg-input { width: 81px; }
    .ai-msg-pager .pg-info { font-size: 19px; letter-spacing: 1.5px; margin: 0 4px; }
}

/* else0626 51暗网适配：Mirages 的 #body 是卡片翻页容器(overflow:hidden + JS 动态设高度，
   见 mirages.min.css #body{overflow:hidden;transition:.5s})。消息页内容用 .ai-msg-page(非主题
   期望的 #index 结构)，导致 Mirages 把 #body 高度算错(如 404px) → .ai-msg-page(min-height:100vh)
   超出部分被 overflow:hidden 裁掉(列表卡片/详情公告显示不全)。覆盖让 #body 随内容撑开、不裁。 */
body.ai-page-message #body { height: auto !important; overflow: visible !important; }
