/* ============ PC端详情页 AI摘要：视觉与移动端 mobileDetail.html 保持一致，尺寸按PC正文放大 ============ */
.msAiSummary {
    display: none;
    position: relative;
    overflow: hidden;
    margin: 20px 24px;
    padding: 16px 20px;
    border-radius: 12px;
    /* 渐变描边：padding-box 承载底色、border-box 承载描边渐变，兼容圆角 */
    border: 1px solid transparent;
    background:
        linear-gradient(169deg, #ecf8ff 0%, #ffffff 100%) padding-box,
        linear-gradient(117deg, #79afeb 0%, #79d2eb 19%, rgba(121, 210, 235, 0.3) 88%, #79afeb 100%) border-box;
}

/* 装饰星群：右上角主装饰与正文左侧淡化星群 */
.msAiSummary_corner {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
    width: 120px;
    height: 82px;
}

.msAiSummary_star {
    position: absolute;
    left: 20px;
    top: 48px;
    z-index: 0;
    width: 36px;
    height: 31px;
    opacity: 0.3;
    transform: rotate(180deg);
}

.msAiSummary_head {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.msAiSummary_icon {
    width: 20px;
    height: 18px;
    margin-right: 3px;
    flex-shrink: 0;
}

/* 标题采用设计稿矢量字样，避免设备缺少 DingTalk JinBuTi 字体时回退走形 */
.msAiSummary_title {
    display: block;
    width: 60px;
    height: 24px;
    flex-shrink: 0;
}

.msAiSummary_content {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: 微软雅黑, "Microsoft YaHei";
    font-size: 16px;
    color: #3d3d3d;
    line-height: 28px;
    text-align: justify;
    text-justify: inter-ideograph;
    /* 首行缩进只给段落，标题/列表/表格等块级元素不缩进 */
    text-indent: 0;
}

/* ============ Markdown 渲染：选择器均限定在摘要内部，并保证优于 index.css 的全局重置 ============ */
.msAiSummary_content>p {
    margin: 0 0 8px;
    text-indent: 2em;
}

.msAiSummary_content>p:last-child {
    margin-bottom: 0;
}

.msAiSummary_content .msAiSummary_h {
    margin: 12px 0 6px;
    font-weight: 700;
    line-height: 26px;
}

.msAiSummary_content>.msAiSummary_h:first-child {
    margin-top: 0;
}

.msAiSummary_content .msAiSummary_h1 {
    font-size: 18px;
}

.msAiSummary_content .msAiSummary_h2 {
    font-size: 17px;
}

.msAiSummary_content .msAiSummary_h3 {
    font-size: 16px;
}

.msAiSummary_content ul.msAiSummary_list,
.msAiSummary_content ol.msAiSummary_list {
    margin: 4px 0 8px;
    padding-left: 2em;
}

.msAiSummary_content ul.msAiSummary_list {
    list-style: disc outside;
}

.msAiSummary_content ol.msAiSummary_list {
    list-style: decimal outside;
}

.msAiSummary_content ul.msAiSummary_list ul.msAiSummary_list {
    list-style: circle outside;
}

.msAiSummary_content .msAiSummary_list li {
    margin: 2px 0;
    /* 继承所属列表的符号，避免被全局 li{list-style:none} 清掉 */
    list-style: inherit;
}

.msAiSummary_content .msAiSummary_list .msAiSummary_list {
    margin: 2px 0 0;
}

.msAiSummary_content .msAiSummary_hr {
    height: 1px;
    margin: 12px 0;
    background: rgba(121, 175, 235, 0.35);
}

.msAiSummary_content .msAiSummary_quote {
    margin: 8px 0;
    padding: 4px 12px;
    border-left: 3px solid #79afeb;
    color: #5a5a5a;
}

.msAiSummary_content .msAiSummary_pre {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 22px;
    white-space: pre-wrap;
    word-break: break-all;
}

.msAiSummary_content .msAiSummary_code {
    padding: 0 4px;
    border-radius: 4px;
    background: rgba(121, 175, 235, 0.14);
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
}

.msAiSummary_content .msAiSummary_tableBox {
    margin: 8px 0;
    overflow-x: auto;
}

.msAiSummary_content .msAiSummary_table {
    width: 100%;
    font-size: 14px;
    line-height: 22px;
}

.msAiSummary_content .msAiSummary_table th,
.msAiSummary_content .msAiSummary_table td {
    padding: 6px 10px;
    border: 1px solid rgba(121, 175, 235, 0.4);
    text-align: left;
    vertical-align: top;
}

.msAiSummary_content .msAiSummary_table th {
    background: rgba(121, 175, 235, 0.12);
    font-weight: 700;
}

.msAiSummary_content strong {
    font-weight: 700;
}

.msAiSummary_content em {
    font-style: italic;
}

.msAiSummary_content .msAiSummary_link {
    color: #004098;
    text-decoration: underline;
    word-break: break-all;
}

/* 风险提示：摘要正文右下方的灰色小字 */
.msAiSummary_tip {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    font-family: 微软雅黑, "Microsoft YaHei";
    font-size: 12px;
    color: #999999;
    line-height: 20px;
    text-align: right;
}
