/* ===== Monitor 页面 - 匹配 /Search 全网搜索风格 ===== */

.monitor-layout {
    display: flex;
    height: calc(var(--fit-vh, var(--fit-vh, var(--fit-vh, 100vh))) - var(--topnav-height,56px) - var(--header-height,48px));
    gap: 16px;
    margin: -24px;
    padding: 20px 24px;
    overflow: hidden;
    background: var(--bg-primary);
}

/* ===== 左侧专题树 ===== */
.subject-sidebar {
    width: 210px; min-width: 210px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.subject-header {
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border-color);
}
.subject-header h3 {
    font-size: 13px; font-weight: 600;
    margin-bottom: 10px; color: var(--text-primary);
    display: flex; align-items: center; gap: 6px;
}
.subject-header h3::before {
    content: ''; width: 3px; height: 13px;
    background: var(--accent); border-radius: 2px;
}
.subject-search { position: relative; }
.subject-search input {
    width: 100%; height: 32px; padding: 0 30px 0 10px;
    background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: 6px; color: var(--text-primary);
    font-size: 12px; outline: none; transition: border-color .2s;
}
.subject-search input:focus { border-color: var(--accent); }
.subject-search svg {
    position: absolute; right: 9px; top: 50%;
    transform: translateY(-50%); width: 14px; height: 14px;
    stroke: var(--text-muted); fill: none; stroke-width: 2;
}
.subject-tree { flex: 1; overflow-y: auto; padding: 6px 8px; }
.subject-tree::-webkit-scrollbar { width: 4px; }
.subject-tree::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 2px; }
.tree-loading, .list-loading {
    text-align: center; padding: 40px; color: var(--text-muted); font-size: 13px;
}
.tree-node { margin: 1px 0; }
.tree-node-content {
    display: flex; align-items: center; padding: 6px 8px;
    border-radius: 6px; cursor: pointer; transition: all .15s;
    font-size: 12.5px; color: var(--text-secondary); gap: 4px;
}
.tree-node-content:hover { background: var(--bg-nav-hover); color: var(--text-primary); }
.tree-node-content.active { background: var(--bg-nav-active); color: var(--accent); font-weight: 500; }
.tree-node-content .tree-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-node-content .tree-count {
    font-size: 10px; color: var(--text-muted); background: var(--bg-input);
    padding: 0 5px; border-radius: 6px; min-width: 16px; text-align: center;
}
.tree-node-content.active .tree-count { background: var(--accent-glow); color: var(--accent); }
.tree-toggle { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; transition: transform .2s; flex-shrink: 0; }
.tree-toggle svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
.tree-node.expanded>.tree-node-content .tree-toggle { transform: rotate(90deg); }
.tree-icon { width: 14px; height: 14px; margin-right: 3px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; opacity: .6; }
.tree-children { display: none; padding-left: 18px; }
.tree-node.expanded>.tree-children { display: block; }

/* ===== 主内容区 ===== */
.monitor-main {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; gap: 12px;
    position: relative;
}
.monitor-topbar {
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.monitor-bread { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.bread-sep { color: var(--border-color); }
.bread-cur { color: var(--text-secondary); font-weight: 500; }
.monitor-tabs {
    display: flex; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: 6px; padding: 2px;
}
.m-tab {
    padding: 4px 16px; border-radius: 4px; border: none;
    background: transparent; font-size: 12px; color: var(--text-muted);
    cursor: pointer; font-weight: 500; transition: all .18s;
}
.m-tab.active { background: var(--accent); color: #fff; }
.m-tab:hover:not(.active) { color: var(--accent); }

/* ===== 顶部工具栏 ===== */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* 筛选按钮 */
.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all .2s;
}
.filter-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-toggle-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.filter-badge {
    font-size: 10px;
    color: #fff;
    background: var(--accent);
    padding: 0 5px;
    border-radius: 8px;
    line-height: 16px;
    display: none;
}
.filter-badge:not(:empty) { display: inline-block; }

/* ===== 列表容器 ===== */
.list-container { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.list-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-bottom: 1px solid var(--border-color); flex-shrink: 0;
}
.toolbar-left { display: flex; align-items: center; gap: 14px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.toolbar-cb { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; color: var(--text-secondary); user-select: none; }
.toolbar-cb input { cursor: pointer; width: 14px; height: 14px; accent-color: var(--accent); }
.toolbar-info { font-size: 13px; color: var(--text-muted); }
.toolbar-info strong { color: var(--accent); }
.toolbar-filter-summary { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fs-tag {
    display: inline-block; font-size: 12px; font-weight: 600;
    padding: 2px 8px; border-radius: 4px; white-space: nowrap; line-height: 20px;
}
.fs-time { background: var(--accent-glow); color: var(--accent); }
.fs-pos { background: rgba(74,222,128,0.15); color: var(--success); }
.fs-neg { background: rgba(248,113,113,0.15); color: var(--danger); }
.fs-neu { background: var(--accent-glow); color: var(--accent); }
.fs-kw { background: rgba(251,191,36,0.2); color: #92400e; }
.fs-kw-excl { background: rgba(248,113,113,0.15); color: var(--danger); }
.fs-type { background: rgba(99,102,241,0.12); color: #6366f1; }
.fs-media { background: rgba(20,184,166,0.12); color: #0d9488; }
.fs-rel { background: rgba(74,222,128,0.12); color: #16a34a; }
.fs-qual { background: rgba(251,146,60,0.12); color: #ea580c; }
.fs-spam { background: rgba(248,113,113,0.12); color: #dc2626; }
.fs-alert { background: rgba(239,68,68,0.12); color: #b91c1c; }
.fs-other { background: rgba(148,163,184,0.12); color: #64748b; }
.ai-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--accent); font-weight: 500; background: var(--accent-glow); padding: 2px 10px; border-radius: 20px; border: 1px solid rgba(var(--accent-rgb),.15); }
.toolbar-time { font-size: 12px; color: var(--text-muted); }
.toolbar-time strong { color: var(--text-secondary); font-weight: 500; }

/* ===== 结果列表（统一卡片）===== */
.article-list {
    flex: 1; overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 16px;
    margin-top: 12px;
}
.article-list::-webkit-scrollbar { width: 6px; }
.article-list::-webkit-scrollbar-track { background: transparent; }
.article-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* 筛选条件概要 */
.filter-summary {
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

/* ===== 搜索结果条目（完全匹配 /Search）===== */
.art-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
    animation: fadeIn 0.3s ease both;
    position: relative;
    cursor: pointer;
}
.art-item:last-child { border-bottom: none; }
/* 敏感负面：整框红色重点突出（无论已读/未读，不再依赖时间轴竖线） */
.art-item.art-danger {
    border: 1px solid rgba(239,68,68,.5);
    border-left: 5px solid var(--danger);
    border-radius: 8px;
    background: #fff6f6;
    box-shadow: 0 4px 16px rgba(239,68,68,.28);
    padding: 14px 16px;
    margin: 8px 0;
}
.art-item.art-danger:hover { box-shadow: 0 8px 22px rgba(239,68,68,.40); }
/* 未读 + 敏感负面：与 danger 同款红色重点（优先级更高，覆盖默认未读白框） */
.art-item.art-unread.senti-neg {
    border: 1px solid rgba(239,68,68,.5);
    border-left: 5px solid var(--danger);
    background: #fff6f6;
    box-shadow: 0 4px 16px rgba(239,68,68,.28);
}
.art-item.art-unread.senti-neg:hover { box-shadow: 0 8px 22px rgba(239,68,68,.40); }
.art-item:hover {
    background: linear-gradient(90deg, var(--bg-nav-hover), transparent);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 8px;
}
/* 右上角信息区 */
.art-corner-tags {
    position: absolute;
    top: 12px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    max-width: 60%;
    justify-content: flex-end;
    z-index: 1;
}
.art-analyzing-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 1;
    background: rgba(251,191,36,0.15);
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.art-analyzing-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning);
}
/* 分析中状态：相似徽标 + 分析中 并排（相似在前） */
.art-corner-similar-wrap {
    position: absolute;
    top: 12px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 1;
}
.art-corner-similar-wrap .art-analyzing-badge { position: static; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 复选框 */
.art-cb {
    width: 18px; height: 18px; border-radius: 3px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-input); cursor: pointer; flex-shrink: 0; margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.art-cb:hover { border-color: var(--accent); }
.art-cb svg { width: 11px; height: 11px; stroke: transparent; fill: none; }
.art-cb.checked { background: var(--accent); border-color: var(--accent); }
.art-cb.checked svg { stroke: #fff; }

/* 左侧时间竖条：日期在上、时间在下 */
.art-time-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 62px;
    position: relative;
    padding-left: 12px;
}
.art-time-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 2px;
}
.art-d { font-size: 15px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.3px; line-height: 1.6; white-space: nowrap; }
.art-t { font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1.5; letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }

/* 主内容区 */
.art-body { display: flex; gap: 12px; flex: 1; min-width: 0; }

/* 列表卡片：左图右文缩略图 */
.art-thumbs { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; flex-wrap: nowrap; max-width: 392px; }
.art-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-input); cursor: pointer; transition: transform .15s ease; }
.art-thumb:hover { transform: scale(1.03); }
.art-thumb-more { width: 92px; height: 92px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-muted); font-size: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
/* 图片加载失败占位（防盗链/源站不可用）：带图标提示，点击看原图 */
.img-fail-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-muted); background: var(--bg-input); border: 1px dashed var(--border-color); cursor: pointer; }
.img-fail-ph i { font-size: 20px; opacity: .6; }
.img-fail-ph span { font-size: 11px; }
.art-thumb.img-fail-ph { width: 92px; height: 92px; border-radius: 8px; }
.art-quote .art-thumb.img-fail-ph { width: 72px; height: 72px; }
.art-main { flex: 1; min-width: 0; }

/* 图片放大遮罩 */
.img-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; padding: 24px; }
.img-lightbox.open { display: flex; }
.img-lightbox-mask { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.img-lightbox-img { position: relative; max-width: 92vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,.55); background: #fff; }
/* 灯箱：关闭/上下张按钮、计数、加载失败提示（与详情页一致） */
.img-lightbox .lb-close, .img-lightbox .lb-nav { position: absolute; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .15s; z-index: 2; }
.img-lightbox .lb-close:hover, .img-lightbox .lb-nav:hover { background: rgba(255,255,255,.3); }
.img-lightbox .lb-close { top: 20px; right: 26px; width: 42px; height: 42px; font-size: 24px; line-height: 1; }
.img-lightbox .lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.img-lightbox .lb-prev { left: 22px; }
.img-lightbox .lb-next { right: 22px; }
.img-lightbox .lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.4); padding: 4px 12px; border-radius: 20px; z-index: 2; letter-spacing: .5px; }
.img-lightbox .lb-msg { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.5); padding: 6px 14px; border-radius: 8px; z-index: 2; }
/* 单张图时隐藏上下张按钮与计数 */
.img-lightbox.lb-single .lb-nav, .img-lightbox.lb-single .lb-count { display: none; }
/* 视频缩略图（黑色方块 + 居中播放三角），与图片缩略图同尺寸，点击播放 */
.art-thumb-video { background: #0b1526; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.art-thumb-video .play-tri { color: #fff; font-size: 30px; opacity: .92; text-shadow: 0 2px 8px rgba(0,0,0,.6); pointer-events: none; }
.art-thumb-video:hover { background: #13243f; }
/* 视频播放灯箱：内容居中 */
.video-lightbox-inner { position: relative; display: flex; align-items: center; justify-content: center; max-width: 92vw; max-height: 92vh; z-index: 1; }
.video-lightbox-inner video { box-shadow: 0 10px 50px rgba(0,0,0,.55); }
/* 非直链视频：跳转卡片 */
.video-jump-card { display: flex; align-items: center; gap: 14px; max-width: 80vw; padding: 18px 22px; border-radius: 14px; background: #0b1526; color: #fff; text-decoration: none; box-shadow: 0 10px 50px rgba(0,0,0,.55); }
.video-jump-card .vj-play { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.video-jump-card .vj-text { font-size: 14px; opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-theme="dark"] .art-thumb-video { background: #0b1526; }

/* 已读/未读状态 */
.art-read { opacity: 0.75; }
/* 已读条目与未读保持一致的白框+左侧accent边+阴影，只是增加已读印章和文字变灰 */
.art-item.art-read {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.14);
    padding: 14px 16px;
    margin: 8px 0;
    position: relative;
}
.art-item.art-read:hover { box-shadow: 0 6px 18px rgba(0,0,0,.22); }
/* 暗色主题 */
[data-theme="dark"] .art-item.art-read { background: var(--bg-card); }
[data-theme="dark"] .art-item.art-read.senti-neg { background: rgba(239,68,68,.12); }
.art-read-stamp {
    display: block;
    width: 86px;
    height: auto;
    opacity: 1;
    margin: 0px auto 0;
    pointer-events: none;
}
/* 已读数据标题和内容文字颜色变灰（降低视觉权重，与未读条目区分） */
.art-item.art-read .art-title,
.art-item.art-read .art-title-link,
.art-item.art-read .art-sum,
.art-item.art-read .art-sum-ai-row,
.art-item.art-read .art-sum-label,
.art-item.art-read .art-mi,
.art-item.art-read .art-quote-author,
.art-item.art-read .art-quote-text { color: #989898; }
[data-theme="dark"] .art-item.art-read .art-title,
[data-theme="dark"] .art-item.art-read .art-title-link,
[data-theme="dark"] .art-item.art-read .art-sum,
[data-theme="dark"] .art-item.art-read .art-sum-ai-row,
[data-theme="dark"] .art-item.art-read .art-sum-label,
[data-theme="dark"] .art-item.art-read .art-mi,
[data-theme="dark"] .art-item.art-read .art-quote-author,
[data-theme="dark"] .art-item.art-read .art-quote-text { color: #5f5f5f; }
/* 未读条目：整框强调（与 art-quote 同款：边框+背景+左侧 accent 边），并加阴影更明显，
   替代原先 art-time-bar 的蓝色竖条 */
.art-item.art-unread {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.14);
    padding: 14px 16px;
    margin: 8px 0;
}
.art-item.art-unread:hover { box-shadow: 0 6px 18px rgba(0,0,0,.22); }
/* 暗色主题下白色未读框改为表面色，避免刺眼 */
[data-theme="dark"] .art-item.art-unread { background: var(--bg-card); }
[data-theme="dark"] .art-item.art-danger,
[data-theme="dark"] .art-item.art-unread.senti-neg { background: rgba(239,68,68,.12); }
.art-unread-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 头部行 */
.art-hd-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px; flex-wrap: wrap;
}
.art-idx { display: inline-block; flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--text-muted); min-width: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 情感标签 */
.art-senti {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 500;
}
.art-senti::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; flex-shrink: 0;
}
.sentiment-positive { background: rgba(74,222,128,0.15); color: var(--success); }
.sentiment-positive::before { background: var(--success); }
.sentiment-suspected-positive { background: rgba(134,239,172,0.2); color: #166534; }
.sentiment-suspected-positive::before { background: #86efac; }
.sentiment-negative { background: rgba(248,113,113,0.15); color: var(--danger); }
.sentiment-negative::before { background: var(--danger); }
.sentiment-sensitive-negative { background: rgba(220,38,38,0.15); color: #991b1b; }
.sentiment-sensitive-negative::before { background: #dc2626; }
.sentiment-high-sensitive-negative { background: rgba(153,27,27,0.2); color: #7f1d1d; }
.sentiment-high-sensitive-negative::before { background: #991b1b; }
.sentiment-neutral { background: rgba(148,163,184,0.15); color: var(--text-muted); }
.sentiment-neutral::before { background: var(--text-muted); }
.sentiment-dispute { background: rgba(251,191,36,0.15); color: #92400e; }
.sentiment-dispute::before { background: var(--warning); }

/* 来源标签 */
.art-topic {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 4px;
    font-size: 12px; color: var(--accent); font-weight: 500;
}
/* 媒体类型标签 */
.art-media-type {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 4px;
    font-size: 11px; color: #8b5cf6; font-weight: 500;
}
.art-simi {
    font-size: 12px; color: var(--accent); background: var(--accent-glow);
    padding: 1px 8px; border-radius: 8px; font-weight: 500; white-space: nowrap;
}
.art-wt {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    background: rgba(99,102,241,0.15);
    border-radius: 4px;
    font-size: 12px; color: #6366f1; font-weight: 700;
    line-height: 20px;
}

/* 类型标签按 wtype 配色（借鉴参考产品：转发蓝/评论橄榄绿/原发青） */
.art-wt.wt-repost { background: rgb(75,128,188); color: #fff; }
.art-wt.wt-comment { background: rgb(143,157,71); color: #fff; }
.art-wt.wt-original { background: rgb(51,149,147); color: #fff; }

/* 转发/评论内嵌"原帖"引用卡片（微博式引用转发布局） */
.art-quote {
    display: flex; gap: 8px; align-items: flex-start;
    margin: 8px 0 12px; padding: 8px 10px;
    background: var(--bg-input); border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent); border-radius: 6px;
    text-decoration: none; color: inherit; transition: background .15s;
}
.art-quote:hover { background: var(--bg-hover); }
/* 原文情感为负面：整框红色重点（与上层 art-item-danger 风格一致），正面/中性/无则保持默认蓝 */
.art-quote.art-quote-neg {
    border-color: rgba(239,68,68,.45);
    border-left-color: var(--danger);
    background: #fff6f6;
}
[data-theme="dark"] .art-quote.art-quote-neg { background: rgba(239,68,68,.14); }
.art-quote-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-color); flex-shrink: 0; background: var(--bg-card); }
.art-quote-avatar-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); }
.art-quote-body { flex: 1; min-width: 0; }
.art-quote-head { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.art-quote-author { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.art-quote-tag { font-size: 10px; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 3px; padding: 0 4px; line-height: 16px; }
.art-quote-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; word-break: break-all; }
.art-quote .art-thumbs { max-width: 100%; margin-top: 6px; }
.art-quote .art-thumb, .art-quote .art-thumb-more { width: 72px; height: 72px; }

/* 标签行 */
.art-tags-row {
    font-size: 0;
    line-height: 1;
    margin-bottom: 10px;
}

/* 标题：编号 + 标题同行（flex 基线对齐，编号固定宽，标题自适应并截断） */
.art-title {
    font-size: 15px; font-weight: 600;
    color: var(--text-primary); cursor: pointer;
    line-height: 1.5; margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.art-title:hover { color: var(--accent); }
.art-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.art-title-link:hover { color: var(--accent); text-decoration: underline; }
.risk-badge { display: inline-block; flex: 0 0 auto; background: rgba(248,113,113,0.15); color: var(--danger); font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.spam-badge { display: inline-block; flex: 0 0 auto; background: rgba(251,191,36,0.15); color: #92400e; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }

/* 摘要 */
.art-sum-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 2px;
}
.art-sum-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border-radius: 3px;
    padding: 0 5px;
    margin-right: 4px;
    line-height: 18px;
    vertical-align: middle;
    flex-shrink: 0;
}
.art-sum {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 6px;
    max-height: calc(1.6em * 3);
    overflow: hidden;
}
/* 原发配图内嵌到正文（art-sum）下方时的间距 */
.art-sum + .art-thumbs { margin: 2px 0 8px; }
/* AI摘要行 - 完全独立，不依赖art-sum的样式 */
.art-sum-ai-row {
    padding: 8px 10px;
    background: rgba(var(--accent-rgb), 0.04);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 6px;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: none;
    overflow: visible;
    margin-bottom: 6px;
}
.ai-summary-toggle {
    display: inline-block;
    font-size: 14px;
    color: var(--accent);
    cursor: pointer;
    font-weight: 700;
    margin-left: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    user-select: none;
}
.ai-summary-toggle:hover { text-decoration: underline; }
.ai-reasons {
    margin: 0 0 6px 0;
    padding: 8px 12px;
    background: rgba(var(--accent-rgb), 0.03);
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
}
.ai-reason-item {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.ai-reason-item:last-child { margin-bottom: 0; }
.ai-reason-label {
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.ai-reason-value {
    color: var(--text-secondary);
}

/* 元信息行 */
.art-meta {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: nowrap; font-size: 12px; font-weight: 600;
}
.art-mi {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--text-muted);
}
.art-mi svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.art-mi strong { font-weight: 500; color: var(--text-muted); }
.art-mi-author { color: var(--text-primary); font-size: 12px; font-weight: 500; flex-shrink: 0; }
.art-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-color); background: var(--bg-input); flex-shrink: 0; }
/* 头像加载失败占位（小圆圈图标，不显示文字） */
.art-avatar.img-fail-ph { display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.art-avatar.img-fail-ph i { font-size: 12px; opacity: .6; }
.art-avatar.img-fail-ph span { display: none; }
.art-mi-verified { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 1px; }
.art-mi-verified.verified-none { color: var(--text-muted); font-weight: 400; }
.art-mi-verified.verified-celebrity { color: #b45309; font-weight: 700; }
.art-mi-verified.verified-gov { color: #dc2626; font-weight: 700; }
.art-mi-verified.verified-enterprise { color: #2563eb; font-weight: 700; }
.art-mi-verified.verified-media { color: #7c3aed; font-weight: 700; }
.art-mi-verified.verified-school { color: #059669; font-weight: 700; }
.art-mi-verified.verified-website { color: #0891b2; font-weight: 700; }
.art-mi-verified.verified-app { color: #db2777; font-weight: 700; }
.art-mi-verified.verified-group { color: #6366f1; font-weight: 700; }
.art-mi-verified.verified-pending { color: #ea580c; font-weight: 700; }
.art-mi-verified.verified-gov-like { color: #b91c1c; font-weight: 700; }
.art-mi-verified.verified-daren-basic { color: #a16207; font-weight: 600; }
.art-mi-verified.verified-daren-advanced { color: #c2410c; font-weight: 700; }
.art-mi-verified.verified-deceased { color: #374151; font-weight: 600; }
.art-mi-verified.verified-unknown { color: #94a3b8; font-weight: 400; }
.art-mi-source { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.art-mi-keywords { color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; min-width: 0; max-width: 300px; }
.kw-tag { display: inline-block; background: var(--accent-glow); color: var(--accent); font-weight: 700; font-size: 11px; padding: 0 5px; border-radius: 3px; margin: 0 1px; }
.kw-highlight { background: rgba(251,191,36,0.25); color: #92400e; font-weight: 700; padding: 0 2px; border-radius: 2px; display: inline; word-break: keep-all; }
/* ===== 深色模式配色覆盖 ===== */
[data-theme="dark"] .kw-highlight { background: rgba(251,191,36,0.35); color: #fbbf24; }
[data-theme="dark"] .fs-kw { background: rgba(251,191,36,0.25); color: #fde68a; }
[data-theme="dark"] .fs-type { background: rgba(167,139,250,0.18); color: #a78bfa; }
[data-theme="dark"] .fs-media { background: rgba(45,212,191,0.15); color: #5eead4; }
[data-theme="dark"] .fs-rel { background: rgba(74,222,128,0.15); color: #86efac; }
[data-theme="dark"] .fs-qual { background: rgba(251,146,60,0.18); color: #fdba74; }
[data-theme="dark"] .fs-spam { background: rgba(248,113,113,0.18); color: #fca5a5; }
[data-theme="dark"] .fs-alert { background: rgba(248,113,113,0.2); color: #fca5a5; }
[data-theme="dark"] .fs-other { background: rgba(148,163,184,0.15); color: #cbd5e1; }
[data-theme="dark"] .art-wt { background: rgba(167,139,250,0.2); color: #a78bfa; }
[data-theme="dark"] .art-wt.wt-repost { background: rgb(75,128,188); color: #fff; }
[data-theme="dark"] .art-wt.wt-comment { background: rgb(143,157,71); color: #fff; }
[data-theme="dark"] .art-wt.wt-original { background: rgb(51,149,147); color: #fff; }
[data-theme="dark"] .ai-original-pos { background: rgba(167,139,250,0.2); color: #c4b5fd; }
[data-theme="dark"] .ai-original-neg { background: rgba(244,114,182,0.2); color: #f9a8d4; }
[data-theme="dark"] .ai-original-neu { background: rgba(167,139,250,0.15); color: #a78bfa; }
.art-mi-btn {
    margin-left: auto;
    color: var(--accent); font-weight: 500; cursor: pointer;
    transition: color 0.15s;
}
.art-mi-btn:hover { color: #0369a1; }
.art-mi-btn svg { stroke: var(--accent); }

/* 右下角互动数据区域 */
.art-stats {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 0 0 0;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}
.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--bg-input);
    font-size: 11px;
}
/* 元信息行中的互动数据容器 - 靠右 */
.art-mi-stats {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
/* 元信息行中的互动数据 */
.art-mi-stat {
    color: var(--text-muted);
    font-size: 12px;
    background: var(--bg-input);
    padding: 1px 7px;
    border-radius: 3px;
}
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 4px;
}
.retweet-title:hover {
    color: var(--accent);
}
.retweet-content {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.retweet-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 8px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

/* AI标签 */
.ai-analysis-tags { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ai-tag-mini { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 20px; }
.ai-tag-pending { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.ai-sentiment-pos { background: rgba(74,222,128,0.15); color: var(--success); }
.ai-sentiment-neg { background: rgba(248,113,113,0.15); color: var(--danger); }
.ai-sentiment-neu { background: var(--accent-glow); color: var(--accent); }
/* 原文情感 - 紫色调区分 */
.ai-original-pos { background: rgba(167,139,250,0.15); color: #7c3aed; }
.ai-original-neg { background: rgba(244,114,182,0.15); color: #db2777; }
.ai-original-neu { background: rgba(167,139,250,0.1); color: #8b5cf6; }
.ai-tag-mini.ai-rel-strong { background: rgba(74,222,128,0.15); color: var(--success); }
.ai-tag-mini.ai-rel-medium { background: var(--accent-glow); color: var(--accent); }
.ai-tag-mini.ai-rel-weak { background: rgba(251,191,36,0.15); color: #92400e; }
.ai-tag-mini.ai-rel-none { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.ai-tag-mini.ai-qual-excellent { background: rgba(74,222,128,0.15); color: var(--success); }
.ai-tag-mini.ai-qual-good { background: var(--accent-glow); color: var(--accent); }
.ai-tag-mini.ai-qual-normal { background: rgba(251,191,36,0.15); color: #92400e; }
.ai-tag-mini.ai-qual-poor { background: rgba(248,113,113,0.15); color: var(--danger); }
.ai-tag-mini.ai-spam-normal { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.ai-tag-mini.ai-spam-warn { background: rgba(251,191,36,0.15); color: #92400e; }
.ai-tag-mini.ai-spam-bad { background: rgba(248,113,113,0.15); color: var(--danger); font-weight: 700; }
.ai-tag-mini.ai-alert-urgent { background: rgba(248,113,113,0.15); color: var(--danger); font-weight: 700; }
.ai-tag-mini.ai-alert-push { background: rgba(251,191,36,0.15); color: #92400e; }
.ai-tag-mini.ai-alert-watch { background: var(--accent-glow); color: var(--accent); }
.ai-tag-mini.ai-alert-none { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.ai-tag-mini.ai-platform { background: rgba(96,165,250,0.15); color: #60a5fa; }
.ai-tag-mini.ai-similar { background: rgba(129,140,248,0.18); color: #818cf8; border: 1px dashed rgba(129,140,248,0.45); }
/* AI摘要开关（右上角，相似徽标前面）：点击展开/收起正文里的「文章概要」框
   与后面的「相似：N条」保持明显间距；用实底渐变按钮突出，和旁边的浅色数据标签明显区分 */
.ai-tag-mini.art-ai-corner {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.35);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    margin-right: 10px;
    transition: background .15s, box-shadow .15s, color .15s, border-color .15s;
}
.ai-tag-mini.art-ai-corner:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
    color: #fff;
}
.ai-tag-mini.art-ai-corner i { font-size: 11px; }
/* 已展开（显示「收起」）：弱化成中性描边，明确当前是“可再折叠”状态 */
.ai-tag-mini.art-ai-corner.open {
    color: var(--text-secondary);
    background: transparent;
    border: 1px dashed var(--border-color);
    border-style: dashed;
    box-shadow: none;
    font-weight: 600;
}
.ai-tag-mini.art-ai-corner.open:hover { color: var(--text-secondary); background: var(--bg-input); box-shadow: none; }
.ai-tags-inline { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; line-height: 1.8; }
.ai-tag-value { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--accent-glow); color: var(--accent); font-weight: 600; white-space: nowrap; line-height: 20px; cursor: help; }
/* 标签分类固定颜色 */
.ai-tag-value.tc-info { background: #bfdbfe; color: #1e40af; }
.ai-tag-value.tc-enterprise { background: #a7f3d0; color: #047857; }
.ai-tag-value.tc-domain { background: #c4b5fd; color: #6d28d9; }
.ai-tag-value.tc-business { background: #e2e8f0; color: #475569; }
.ai-tag-value.tc-sentiment { background: #fbcfe8; color: #be185d; }
.ai-tag-value.tc-region { background: #a5f3fc; color: #0e7490; }
.ai-tag-value.tc-warning { background: #fecaca; color: #b91c1c; }
.ai-tag-value.tc-alt1 { background: #bbf7d0; color: #15803d; }
.ai-tag-value.tc-alt2 { background: #d8b4fe; color: #7c3aed; }
.ai-tag-value.tc-alt3 { background: #e2e8f0; color: #475569; }
.ai-tag-value.tc-alt4 { background: #bae6fd; color: #0369a1; }
.ai-tag-value.tc-alt5 { background: #fecdd3; color: #be123c; }
.ai-tag-value.tc-alt6 { background: #c7d2fe; color: #5b21b6; }
.ai-inline-tag-more { font-size: 11px; color: var(--text-muted); cursor: pointer; font-weight: 600; line-height: 20px; padding: 0 4px; }
.ai-inline-tag-more:hover { color: var(--accent); }

/* 舆情监测自定义时间文本框：固定宽度，可完整展示 yyyy-MM-dd HH:mm:ss（含秒） */
.filter-date-tw { width: 150px; }
.ai-tags-extra { display: inline; }
.ai-tags-extra .ai-tag-value { margin-left: 2px; }

/* ===== 精准地域「+N」展开/收起（对齐智能标签交互） ===== */
.fa-more { font-size: 11px; color: var(--text-muted); cursor: pointer; font-weight: 600; line-height: 20px; padding: 0 4px; }
.fa-more:hover { color: var(--accent); }
.fa-extra { display: inline; }
.fa-extra .kw-tag { margin-left: 2px; }

/* ===== 分页 ===== */
.list-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-top: 1px solid var(--border-color); flex-shrink: 0;
}
.lf-left { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.lf-left strong { color: var(--text-primary); }
.lf-select { border: 1px solid var(--border-color); border-radius: 6px; padding: 4px 8px; font-size: 12px; outline: none; color: var(--text-secondary); background: var(--bg-input); }
.lf-pager { display: flex; align-items: center; gap: 4px; }
.pb {
    min-width: 34px; height: 34px; padding: 0 10px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 6px; color: var(--text-secondary);
    font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.pb:hover:not(:disabled):not(.act) { border-color: var(--accent); color: var(--accent); }
.pb.act { background: var(--accent); border-color: var(--accent); color: #fff; }
.pb:disabled { opacity: 0.4; cursor: not-allowed; }
.page-input { width: 40px; height: 34px; border: 1px solid var(--border-color); border-radius: 6px; text-align: center; font-size: 12px; outline: none; background: var(--bg-input); color: var(--text-primary); }
.page-input:focus { border-color: var(--accent); }
.page-go { height: 34px; padding: 0 12px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; }

/* ===== 底部操作栏 ===== */
.bottom-bar {
    height: 56px; flex-shrink: 0;
    background: var(--bg-card); border-top: 1px solid var(--border-color);
    display: flex; align-items: center; padding: 0 20px;
    z-index: 100; gap: 12px;
}
.bb-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: nowrap; white-space: nowrap; }
.bb-cb { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; color: var(--text-secondary); user-select: none; }
.bb-cb input { cursor: pointer; width: 14px; height: 14px; accent-color: var(--accent); }
.bb-cb strong { color: var(--accent); }
.bb-center { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.bb-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.bb-divider { width: 1px; height: 18px; background: var(--border-color); margin: 0 4px; }
.bb-btn {
    display: flex; align-items: center; gap: 5px; padding: 6px 14px;
    border-radius: 8px; font-size: 12.5px; cursor: pointer; font-weight: 600;
    border: 1px solid transparent; transition: all .18s;
    height: 32px; white-space: nowrap;
}
.bb-btn svg { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.5; }
.bb-pos { background: rgba(74,222,128,0.15); color: var(--success); border-color: rgba(22,101,52,.15); }
.bb-neu { background: rgba(148,163,184,0.1); color: var(--text-muted); border-color: rgba(148,163,184,0.2); }
.bb-neg { background: rgba(248,113,113,0.15); color: var(--danger); border-color: rgba(185,28,28,.12); }
.bb-slim { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border-color); }
.bb-slim:hover { border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,0.06); }
.bb-slim:active { transform: translateY(1px); }
.bb-slim:focus { outline: none; box-shadow: none; }
.bb-slim:focus-visible { outline: 1px solid var(--accent); outline-offset: 1px; }
.bb-slim.danger:hover { border-color: #ef4444; color: #ef4444; }
.bb-slim.bb-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.bb-slim.bb-danger:hover { border-color: #dc2626; color: #dc2626; background: #fee2e2; }
.bb-status { font-size: 11px; color: var(--text-muted); margin-left: 8px; }
.bb-status strong { color: var(--text-primary); }

/* ===== 数据面板 ===== */
.data-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; gap: 6px; }

/* ===== 舆情话题库（iframe 面板）：与数据面板同尺寸 —— flex:1 占满剩余高度，iframe 填满容器 ===== */
#topiclibPanel { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#topiclibFrame { flex: 1; min-height: 0; width: 100%; border: 0; background: #f3f5f9; display: block; }
.dp-navbar {
    display: flex; align-items: center; flex-shrink: 0;
    background: var(--bg-soft, #f4f6fb); border: 1px solid var(--border-color, #e8ecf3);
    border-radius: 10px; padding: 4px;
    box-shadow: 0 1px 2px rgba(20,35,70,.04), 0 2px 8px rgba(20,35,70,.05);
}
.dp-nav-left { display: flex; gap: 2px; }
.dp-nav-item {
    padding: 6px 16px; border-radius: 7px; font-size: 13px;
    cursor: pointer; color: var(--text-muted, #5b6678); font-weight: 600; transition: all .15s; white-space: nowrap;
}
.dp-nav-item:hover { color: var(--text-secondary); background: var(--bg-nav-hover); }
.dp-nav-item.active { background: var(--accent); color: #fff; }
.dp-nav-right { display: flex; align-items: center; gap: 8px; }
.dp-refresh {
    display: flex; align-items: center; gap: 4px; font-size: 11px;
    color: var(--text-muted); cursor: pointer; padding: 4px 10px;
    border-radius: 4px; transition: all .15s;
}
.dp-refresh:hover { color: var(--accent); background: var(--accent-glow); }
.dp-refresh svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }
.dp-report-btn {
    display: flex; align-items: center; gap: 4px; font-size: 11px;
    color: #fff; cursor: pointer; padding: 4px 12px;
    border-radius: 6px; transition: all .15s;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    font-weight: 600;
}
.dp-report-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.dp-report-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.dp-section { display: none; flex-direction: column; gap: 16px; flex: 1; }
.dp-section.active { display: flex; }
.dp-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; }
/* 用户画像顶部 KPI：5 张卡（参与人数/KOL/证账号/男性用户/女性用户）自适应等分，窄屏自动折行 */
#dpUserKpi { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* 数据面板白色容器内，白底卡片加浅阴影与容器区分 */
.dp-grid-4 .stat-card-dash { box-shadow: 0 1px 2px rgba(20,35,70,.04), 0 4px 14px rgba(20,35,70,.06); transition: box-shadow .2s; }
/* KPI 卡横向布局：图标左、数值右，副标/涨跌跨全宽（5 卡一行更紧凑精致） */
.dp-grid-4 .stat-card-dash { display: grid; grid-template-columns: 42px 1fr; grid-template-areas: "icon num" "icon label" "sub sub" "trend trend"; column-gap: 12px; row-gap: 2px; align-items: center; text-align: left; padding: 14px 16px; }
.dp-grid-4 .stat-card-dash .stat-icon { grid-area: icon; width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.dp-grid-4 .stat-card-dash .stat-num { grid-area: num; font-size: 24px; text-align: left; line-height: 1.15; }
.dp-grid-4 .stat-card-dash .stat-label { grid-area: label; text-align: left; margin-top: 0; }
.dp-grid-4 .stat-card-dash .stat-sub { grid-area: sub; margin-top: 7px; text-align: left; }
.dp-grid-4 .stat-card-dash .stat-sub-wt { grid-area: sub; display: block; margin-top: 7px; text-align: left; }
.dp-grid-4 .stat-card-dash .stat-trend { grid-area: trend; justify-self: start; margin-top: 5px; }
.dp-grid-4 .stat-card-dash:hover { box-shadow: 0 2px 4px rgba(20,35,70,.05), 0 10px 26px rgba(20,35,70,.10); }
/* 标签统计顶部 KPI：自适应一排，自动等分调整大小；窄屏自动折行 */
#dpTagsKpi { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
/* 内容倾向 KPI 共 5 张卡片（正面客观/敏感负面/原发/评论/转发），单独 5 列 */
#dpContentKpi { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1200px) {
html:not([data-fit]) #dpContentKpi { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
html:not([data-fit]) #dpContentKpi { grid-template-columns: repeat(2, 1fr); }
}
/* 内容总览 KPI 仅 3 张卡片，单独均分整行宽度，避免右侧空出 */
#dpOverviewKpi { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) {
html:not([data-fit]) #dpOverviewKpi { grid-template-columns: repeat(2, 1fr); }
}
.dp-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 1200px) {
html:not([data-fit]) .dp-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
html:not([data-fit]) .dp-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
/* KPI 卡：美化版渐变风格 */
.dp-kpi {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 18px 20px;
    color: #fff;
    text-align: left;
    box-shadow: 0 10px 26px rgba(47, 107, 255, .20);
    background: linear-gradient(135deg, #2f6bff, #5b8bff);
    transition: transform .18s ease, box-shadow .18s ease;
}
/* /Index 风格白底 KPI 卡：数字后单位（Monitor 数据面板 / EventDataList 顶部复用） */
.stat-card-dash .stat-unit { font-size: 13px; font-weight: 500; margin-left: 4px; opacity: .7; }
.stat-card-dash .dp-kpi-genders b { color: var(--text-strong, #1f2733); }
.stat-card-dash .dp-kpi-genders i { color: var(--text-muted, #8a93a6); }
.dp-kpi:nth-child(2) { background: linear-gradient(135deg, #14b8a6, #3dd6c5); box-shadow: 0 10px 26px rgba(20, 184, 166, .20); }
.dp-kpi:nth-child(3) { background: linear-gradient(135deg, #8b5cf6, #b08bf6); box-shadow: 0 10px 26px rgba(139, 92, 246, .20); }
.dp-kpi:nth-child(4) { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 10px 26px rgba(245, 158, 11, .20); }
.dp-kpi::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, .55);
}
.dp-kpi::after {
    content: '';
    position: absolute;
    right: -26px; top: -26px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}
.dp-kpi:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(47, 107, 255, .28); }
.dp-kpi-val { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: .5px; position: relative; }
.dp-kpi-lbl { font-size: 12.5px; opacity: .9; font-weight: 600; margin-top: 6px; position: relative; letter-spacing: .5px; }
.dp-kpi-sub { font-size: 12px; font-weight: 500; opacity: .72; margin-top: 6px; line-height: 1.3; }
/* 男/女/未知 卡片：三个数值并排 */
.dp-kpi-genders { display: flex; justify-content: space-between; gap: 6px; margin-top: 2px; }
.dp-g-item { display: flex; flex-direction: column; align-items: center; flex: 1; }
.dp-g-item b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.dp-g-item i { font-size: 11px; font-style: normal; opacity: .8; margin-top: 2px; }
.dp-kpi-gender .dp-kpi-lbl { text-align: center; }
/* 内容倾向 KPI 颜色区分 */
.dp-kpi.kpi-pos { background: linear-gradient(135deg, #16a34a, #22c55e); }
.dp-kpi.kpi-neg { background: linear-gradient(135deg, #dc2626, #ef4444); }

/* ===== 标签统计区块 ===== */
.dp-tags-card-toolbar { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; background: var(--accent-glow, #f0f3f8); padding: 3px; border-radius: 10px; }
.dp-tags-toolbar { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; flex-wrap: wrap; }
.dp-tags-toolbar-tip { font-size: 13px; color: var(--text-muted, #94a3b8); }
.dp-tags-sort-btn { border: none; background: transparent; color: var(--text-secondary); padding: 4px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; transition: all .15s; white-space: nowrap; font-family: inherit; }
.dp-tags-sort-btn:hover { color: var(--accent, #2f6bff); }
.dp-tags-sort-btn.active { background: #fff; color: var(--accent, #2f6bff); box-shadow: 0 1px 4px rgba(20,35,70,.12); }
.dp-tags-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.dp-tagcat { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--card-bg, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.dp-tagcat-name { font-size: 13px; opacity: .85; }
.dp-tagcat-cnt { font-size: 16px; font-weight: 800; color: #2f6bff; }
.dp-mh-sub-empty { color: var(--text-muted, #94a3b8); font-size: 13px; padding: 6px 0; }
/* 各分类标签排行卡片网格 */
#dpTagsGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) {
html:not([data-fit]) #dpTagsGrid { grid-template-columns: 1fr; }
}
.dp-taglist { font-size: 12.5px; }
.dp-taglist-head { display: grid; grid-template-columns: 0.5fr 2.2fr 76px 92px; gap: 8px; padding: 4px 6px 6px; font-weight: 700; opacity: .6; border-bottom: 1px solid var(--border, #e5e7eb); }
.dp-taglist-head span:nth-child(2), .dp-taglist-head span:nth-child(3), .dp-taglist-head span:nth-child(4) { text-align: right; }
.dp-taglist ul { list-style: none; margin: 0; padding: 0; }
.dp-tagrow { display: grid; grid-template-columns: 0.5fr 2.2fr 76px 92px; gap: 8px; align-items: center; padding: 5px 6px; border-bottom: 1px dashed var(--border, #f0f0f0); }
.dp-tagrow-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-tagrow-bar { position: relative; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.dp-tagrow-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #f59e0b, #ef4444); border-radius: 3px; }
.dp-tagrow-cnt { text-align: right; font-weight: 700; }
.dp-tagrow-neg { text-align: right; color: #ef4444; font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) {
html:not([data-fit]) #dpTagsGrid { grid-template-columns: 1fr; }
}
.dp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dp-row-kpi {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: fit-content;
}
.dp-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; box-shadow: 0 4px 16px rgba(20, 35, 70, .05); overflow: hidden; }
.dp-card-full { grid-column: 1 / -1; }
.dp-card-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-card);
}
.dp-card-hd::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 3px;
    background: var(--accent);
    flex-shrink: 0;
}
/* 真实数据徽章 */
.dp-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    background: #eaf1ff;
    color: #1d4fd0;
    border: 1px solid #d4e2ff;
    flex-shrink: 0;
}
.dp-card-bd { padding: 12px 14px; min-height: 160px; }
.dp-chart-box { position: relative; }
.dp-loading { text-align: center; padding: 32px; color: var(--text-muted); font-size: 12px; }
.dp-empty { text-align: center; padding: 32px; color: var(--text-muted); font-size: 12px; }
.dp-bar-chart { display: flex; flex-direction: column; gap: 6px; }
.dp-bar-row { display: flex; align-items: center; gap: 6px; }
.dp-bar-lbl { width: 70px; font-size: 11px; color: var(--text-secondary); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.dp-bar-track { flex: 1; height: 16px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.dp-bar-fill { height: 100%; border-radius: 3px; min-width: 2px; transition: width .5s; }
.dp-bar-cnt { width: 36px; font-size: 10px; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.dp-rank-list { display: flex; flex-direction: column; gap: 4px; }
.dp-rank-item { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.dp-rank-num { width: 18px; height: 18px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.dp-rank-1 { background: rgba(251,191,36,0.2); color: #d97706; }
.dp-rank-2 { background: rgba(148,163,184,0.2); color: var(--text-muted); }
.dp-rank-3 { background: rgba(180,83,9,0.15); color: #b45309; }
.dp-rank-o { background: transparent; color: var(--text-muted); }
.dp-rank-name { flex: 1; font-size: 11px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-rank-cnt { font-size: 10px; color: var(--text-muted); }
.dp-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; justify-content: center; align-items: center; min-height: 120px; }
.dp-cloud-word { display: inline-block; cursor: pointer; transition: all .2s; line-height: 1.2; }
.dp-cloud-word:hover { transform: scale(1.1); opacity: .8; }
.dp-donut-wrap { display: flex; align-items: center; gap: 16px; }
.dp-donut-svg { width: 110px; height: 110px; flex-shrink: 0; }
.dp-donut-legend { display: flex; flex-direction: column; gap: 6px; }
.dp-donut-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); }
.dp-donut-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.dp-donut-val { margin-left: auto; font-weight: 600; color: var(--text-primary); font-size: 11px; }
.dp-trend-svg { width: 100%; height: 140px; }
.dp-video-badge { font-size: 9px; padding: 1px 5px; border-radius: 3px; background: rgba(255,105,0,0.15); color: #FF6900; font-weight: 600; margin-left: 4px; }

/* ===== 内容总览 ===== */
.dp-overview-summary {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-secondary);
    padding: 16px 18px;
}
.dp-overview-summary b {
    color: var(--text-primary);
    font-weight: 700;
}
.dp-overview-alert-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.dp-overview-alert-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}
.dp-oa-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dp-oa-dot.urgent { background: #f87171; }
.dp-oa-dot.push { background: #fb923c; }
.dp-oa-dot.watch { background: #fbbf24; }
.dp-overview-alert-item.urgent { color: #f87171; }
.dp-overview-alert-item.push { color: #fb923c; }
.dp-overview-alert-item.watch { color: #fbbf24; }
.dp-overview-recent-alerts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dp-oa-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
    background: var(--bg-input);
}
.dp-oa-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}
.dp-oa-badge.urgent { background: rgba(248,113,113,0.15); color: #f87171; }
.dp-oa-badge.push { background: rgba(251,146,60,0.15); color: #fb923c; }
.dp-oa-badge.watch { background: rgba(251,191,36,0.15); color: #fbbf24; }
.dp-oa-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.dp-oa-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}
/* 时间轴 */
.dp-timeline {
    position: relative;
    padding-left: 20px;
}
.dp-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-color);
}
.dp-tl-item {
    position: relative;
    padding-bottom: 20px;
}
.dp-tl-item:last-child { padding-bottom: 0; }
.dp-tl-dot {
    position: absolute;
    left: -16px;
    top: 3px;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    z-index: 1;
}
.dp-tl-dot.first { background: var(--accent); }
.dp-tl-dot.peak { background: var(--warning); }
.dp-tl-dot.alert { background: var(--danger); }
.dp-tl-dot.now { background: var(--success); }
.dp-tl-body { }
.dp-tl-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}
.dp-tl-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== 覆盖站点速览 ===== */
.dp-overview-site-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dp-ov-site-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
}
.dp-ov-site-name {
    width: 70px;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}
/* ===== 舆情走势 sparkline ===== */
.dp-overview-sparkline {
    width: 100%;
    height: 80px;
}
/* ===== 高热度文章 ===== */
.dp-hot-articles {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.dp-hot-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.dp-hot-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 4px;
    background: var(--bg-input);
}
.dp-hot-text {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.dp-hot-source {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== 核心KPI stat-card 风格（与首页一致） ===== */
.dp-stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.dp-stats-row .stat-card-dash {
    padding: 14px 10px;
}
.dp-stats-row .stat-card-dash .stat-num {
    font-size: 24px;
}
.dp-stats-row .stat-card-dash .stat-icon {
    width: 32px;
    height: 32px;
}
.dp-stats-row .stat-card-dash .stat-icon svg {
    width: 18px;
    height: 18px;
}

/* ===== 趋势图切换按钮 ===== */
.dp-trend-toggle {
    display: inline-flex;
    background: var(--bg-input);
    border-radius: 6px;
    padding: 2px;
    gap: 1px;
    flex-shrink: 0;
}
.dtt-item {
    padding: 3px 10px;
    font-size: 11px;
    color: var(--text-muted);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.dtt-item:hover { color: var(--text-primary); }
.dtt-item.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* ===== 预警表格 ===== */
.dp-alert-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}
.dp-alert-table th {
    text-align: left;
    padding: 6px 8px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    border-bottom: 1px solid var(--border-color);
}
.dp-alert-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.dp-alert-table tr:last-child td { border-bottom: none; }
.dp-alert-table tr:hover td { background: var(--bg-input); }
.dp-alert-table .at-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.dp-alert-table .at-badge.urgent { background: rgba(248,113,113,0.18); color: #f87171; }
.dp-alert-table .at-badge.push { background: rgba(251,146,60,0.18); color: #fb923c; }
.dp-alert-table .at-badge.watch { background: rgba(251,191,36,0.18); color: #fbbf24; }
.dp-alert-table .at-link {
    color: var(--accent);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    display: inline-block;
    vertical-align: middle;
}
.dp-alert-table .at-link:hover { text-decoration: underline; }

/* ===== 导出列选择弹窗（弹窗外壳/按钮统一走 preset-modal 风格） ===== */
/* 标题旁提示话术（方案仅保存在您本地）：与 h3 同一行，紧贴标题，关闭按钮仍靠右 */
.export-modal-tip {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 10px;
}
.preset-modal-header h3 { display: inline-flex; align-items: center; gap: 6px; }
/* 正文列「（导出较慢）」灰色提示 */
.export-col-slow {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
}
.export-col-presetbar { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-color); margin-bottom: 8px; flex-wrap: wrap; }
.export-col-preset-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.export-col-split { display: flex; gap: 12px; min-height: 320px; }
.export-col-pane { flex: 1; min-width: 0; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.export-col-pane--left { flex: 0 0 44%; }
.export-col-pane--right { flex: 1; }
.export-col-pane-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); padding: 8px 10px; border-bottom: 1px solid var(--border-color); background: var(--bg-hover); }
.export-col-pane-sub { font-size: 11px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.export-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 8px; max-height: 380px; overflow-y: auto; }
.export-col-list--ordered { grid-template-columns: 1fr; gap: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.export-col-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-secondary); cursor: pointer;
    padding: 5px 6px; border-radius: 4px;
}
.export-col-item--used { color: var(--text-primary); }
.export-col-item--order {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border-bottom: 1px solid var(--border-color);
    cursor: grab; border-radius: 0;
}
.export-col-item--order:last-child { border-bottom: none; }
.export-col-item--order:hover { background: var(--bg-hover); }
.export-col-item--order.export-col-dragging { opacity: .5; }
.export-col-excel {
    flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--accent);
    background: rgba(59, 130, 246, .12);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    padding: 1px 6px; border-radius: 4px; min-width: 34px; text-align: center;
}
.export-col-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-col-ops { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.export-col-op {
    width: 22px; height: 22px; border: 1px solid var(--border-color); background: transparent;
    border-radius: 4px; cursor: pointer; font-size: 12px; color: var(--text-secondary);
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.export-col-op:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); }
.export-col-op:disabled { opacity: .35; cursor: not-allowed; }
.export-col-op--del:hover:not(:disabled) { color: #e5484d; border-color: #e5484d; }
.export-col-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 12px; }
.export-col-item:hover { background: var(--bg-hover); }

/* ===== 筛选条件预设弹窗（对齐 SubjectManage「新建分组」弹窗风格） ===== */
.preset-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    padding: 24px;
}
.preset-modal-card {
    background: var(--bg-card);
    border-radius: 16px;
    width: 400px; max-width: 96vw;
    max-height: calc(var(--fit-vh, var(--fit-vh, var(--fit-vh, 100vh))) - 48px);
    display: flex; flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    animation: modalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.preset-modal-card--wide { width: 460px; }
/* 导出列选择弹窗：宽版（沿用 preset-modal 风格） */
.preset-modal-card--xl { width: 860px; max-width: 96vw; }
.preset-modal-card--xl .preset-modal-body { padding: 14px 20px; }
.preset-modal-card--xl .f-input {
    width: auto; height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px;
}
.preset-modal-card--xl select.f-input { height: 34px; }
.preset-modal-card--xl .btn { height: 34px; padding: 0 16px; border-radius: 8px; }
.preset-modal-card--xl .btn-sm { height: 30px; padding: 0 13px; font-size: 12px; }
/* 删除按钮（红色次要按钮） */
.preset-modal-card--xl .export-preset-del {
    background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
}
.preset-modal-card--xl .export-preset-del:hover {
    background: #fee2e2; border-color: #dc2626; color: #dc2626;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.preset-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.preset-modal-header h3 {
    font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 0;
}
.preset-modal-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.preset-modal-footer {
    display: flex; justify-content: flex-end; align-items: center; gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}
.preset-modal-card .btn-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: 8px;
    font-size: 20px; color: var(--text-muted);
    cursor: pointer; transition: all 0.15s;
}
.preset-modal-card .btn-close:hover { background: var(--bg-nav-hover); color: var(--text-primary); }
/* 输入框（对齐 SubjectManage .f-input） */
.preset-modal-card .f-input {
    width: 100%; height: 38px;
    padding: 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-primary);
    font-size: 14px; outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.preset-modal-card .f-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb,59,130,246),0.12);
}
.preset-modal-card .f-input::placeholder { color: var(--text-muted); }
/* 按钮（对齐 SubjectManage .btn / .btn-primary / .btn-secondary） */
.preset-modal-card .btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; height: 38px; padding: 0 20px;
    border-radius: 9px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
    border: none; user-select: none; white-space: nowrap;
}
.preset-modal-card .btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb,59,130,246),0.25);
}
.preset-modal-card .btn-primary:hover {
    filter: brightness(1.12);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb,59,130,246),0.35);
    transform: translateY(-1px);
}
.preset-modal-card .btn-primary:active { transform: translateY(0); }
.preset-modal-card .btn-secondary {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.preset-modal-card .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.preset-modal-card .btn-sm { height: 30px; padding: 0 14px; font-size: 12px; }

/* ===== 导出进度 / 记录 ===== */
.export-prog-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.export-prog-row:last-child { border-bottom: none; }
.export-prog-label { color: var(--text-muted); }
.export-prog-val { color: var(--text-primary); font-weight: 500; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-prog-bar-wrap { height: 8px; background: var(--bg-nav-hover); border-radius: 6px; overflow: hidden; margin: 10px 0; }
.export-prog-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #4f9cff); transition: width .4s ease; }
.export-rec-table-wrap { width: 100%; overflow-x: auto; }
.export-rec-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.export-rec-table th, .export-rec-table td { padding: 12px 16px; text-align: left; }
.export-rec-table th { color: var(--text-muted); font-weight: 600; background: var(--bg-nav-hover); position: sticky; top: 0; white-space: nowrap; }
.export-rec-table td { color: var(--text-secondary); border-bottom: 1px solid var(--border-color); }
.export-rec-table tbody tr:hover { background: var(--bg-nav-hover); }
.export-rec-table tbody tr:last-child td { border-bottom: none; }

/* ===== 导出进度右下角浮窗（替代模态弹窗，不阻塞操作） ===== */
.export-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 10000;
    width: 320px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.22);
    overflow: hidden; font-size: 13px;
}
.export-float-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: var(--bg-nav-hover); border-bottom: 1px solid var(--border-color);
}
.export-float-title { font-weight: 600; color: var(--text-primary); }
.export-float-actions { display: flex; gap: 4px; }
.export-float-min, .export-float-close {
    width: 22px; height: 22px; border: none; background: transparent; cursor: pointer;
    font-size: 15px; line-height: 1; color: var(--text-muted); border-radius: 5px;
}
.export-float-min:hover, .export-float-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.export-float-body { padding: 12px 14px; }
.export-float-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; gap: 10px; }
.export-float-row .ef-label { color: var(--text-muted); flex-shrink: 0; }
.export-float-row .ef-val { color: var(--text-primary); font-weight: 500; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.export-float-row .ef-val.status-0 { color: var(--text-muted); }
.export-float-row .ef-val.status-1 { color: #d9930a; }
.export-float-row .ef-val.status-2 { color: #2fa86a; }
.export-float-row .ef-val.status-3 { color: #e5484d; }
.export-float-foot { text-align: right; margin-top: 8px; }
.export-float .export-prog-bar-wrap { height: 8px; background: var(--bg-nav-hover); border-radius: 6px; overflow: hidden; margin: 10px 0; }

/* ===== 全局 Toast 提醒 ===== */
.toast-container {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 99999; display: flex; flex-direction: column; gap: 8px;
    pointer-events: none; max-width: 400px; width: 90vw;
}
.toast {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 500;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    animation: toastIn .25s ease both;
    pointer-events: auto;
}
.toast.toast-out { animation: toastOut .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-10px) scale(.95); } }
.toast-icon { width: 18px; height: 18px; flex-shrink: 0; }
.toast.toast-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.toast.toast-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.toast.toast-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.toast.toast-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.toast.toast-success .toast-icon { color: #16a34a; }
.toast.toast-error .toast-icon { color: #dc2626; }
.toast.toast-info .toast-icon { color: #0284c7; }
.toast.toast-warning .toast-icon { color: #d97706; }
[data-theme="dark"] .toast.toast-success { background: #064e3b; color: #bbf7d0; border-color: #065f46; }
[data-theme="dark"] .toast.toast-error { background: #7f1d1d; color: #fecaca; border-color: #991b1b; }
[data-theme="dark"] .toast.toast-info { background: #0c4a6e; color: #bae6fd; border-color: #075985; }
[data-theme="dark"] .toast.toast-warning { background: #78350f; color: #fde68a; border-color: #92400e; }

/* ===== 美化版数据面板（dp-mh-* 参考 产品质量_美化.html）===== */
.dp-meihua { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px 18px 28px; color: var(--ink, #1f2a3d); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e8ecf3); border-radius: 12px; }
.dp-mh-top { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.dp-mh-top h1 { font-size: 22px; margin: 0; font-weight: 800; letter-spacing: .5px; color: var(--text-primary); }
.dp-mh-top .dp-mh-tag { font-size: 12px; color: #fff; background: var(--accent, #2f6bff); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.dp-mh-top .dp-mh-src { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }
.dp-mh-sub { font-size: 13px; color: var(--text-secondary); margin: 2px 0 14px; }
.dp-mh-disclaim { background: #fff8ec; border: 1px solid #fde9c8; color: #9a6a16; font-size: 12.5px; padding: 9px 13px; border-radius: 10px; margin-bottom: 16px; line-height: 1.6; }
.dp-mh-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.dp-mh-kpi { background: linear-gradient(135deg, var(--accent, #2f6bff), #5b8bff); color: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: 0 10px 28px rgba(47,107,255,.28); position: relative; overflow: hidden; }
.dp-mh-kpi:nth-child(2) { background: linear-gradient(135deg, #14b8a6, #3dd6c5); box-shadow: 0 10px 28px rgba(20,184,166,.28); }
.dp-mh-kpi:nth-child(3) { background: linear-gradient(135deg, #8b5cf6, #b08bf6); box-shadow: 0 10px 28px rgba(139,92,246,.28); }
.dp-mh-kpi .k-lab { font-size: 13.5px; opacity: .92; font-weight: 600; }
.dp-mh-kpi .k-big { font-size: 34px; font-weight: 800; margin: 6px 0 14px; letter-spacing: .5px; }
.dp-mh-kpi .k-subs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.dp-mh-kpi .k-subs div { font-size: 12.5px; opacity: .95; }
.dp-mh-kpi .k-subs b { font-size: 15px; font-weight: 700; margin-left: 4px; }
.dp-mh-kpi .k-deco { position: absolute; right: -26px; top: -26px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dp-mh-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dp-mh-card { background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e8ecf3); border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(20,35,70,.04), 0 4px 16px rgba(20,35,70,.07); min-width: 0; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.dp-mh-card:hover { box-shadow: 0 2px 4px rgba(20,35,70,.05), 0 10px 28px rgba(20,35,70,.10); border-color: #d9e1ee; }
.dp-mh-card.span2 { grid-column: 1 / -1; }
.dp-mh-card-plain { padding: 14px 16px; }
.dp-mh-c-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.dp-mh-c-head .bar { width: 4px; height: 17px; border-radius: 3px; background: var(--accent, #2f6bff); }
.dp-mh-c-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--text-primary); }
.dp-mh-c-head .badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: #fff4e6; color: #c2791a; border: 1px solid #fbe0bd; }
.dp-mh-c-head .badge.real { background: var(--accent-glow, #eaf1ff); color: var(--accent-deep, #1d4fd0); border-color: #d4e2ff; }
.dp-mh-c-head .badge:empty { display: none; }
.dp-mh-donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.dp-mh-donut-wrap svg .d-num { font-size: 26px; font-weight: 800; fill: var(--text-primary); }
.dp-mh-donut-wrap svg .d-lab { font-size: 12px; fill: var(--text-muted); }
.dp-mh-d-legend { flex: 1; min-width: 180px; }
.dp-mh-d-legend .row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--border-color); }
.dp-mh-d-legend .row:last-child { border-bottom: 0; }
.dp-mh-d-legend .row i { width: 10px; height: 10px; border-radius: 3px; }
.dp-mh-d-legend .row .nm { flex: 1; color: var(--text-secondary); }
.dp-mh-d-legend .row .vl { font-weight: 700; color: var(--text-primary); }
.dp-mh-d-legend .row .pc { color: var(--text-muted); width: 54px; text-align: right; }
.dp-mh-note { font-size: 11.5px; color: var(--text-muted); margin: 6px 2px 0; line-height: 1.5; }
.dp-mh-hbar .it { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 13px; }
.dp-mh-hbar .it .nm { width: 150px; flex: 0 0 150px; color: var(--text-secondary); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-mh-hbar.dp-mh-hbar-left .it .nm { text-align: left; }
.dp-mh-hbar .it .track { flex: 1; height: 10px; background: #eef1f7; border-radius: 5px; overflow: hidden; }
.dp-mh-hbar .it .fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #f59e0b, #ef4444); }
.dp-mh-hbar .it .vl { width: 66px; flex: 0 0 66px; font-weight: 700; text-align: right; color: var(--text-primary); }
.dp-mh-cloud { display: flex; flex-wrap: wrap; gap: 7px 11px; align-items: center; justify-content: center; padding: 8px 0; line-height: 1.4; }
.dp-mh-cloud span { font-weight: 700; color: var(--accent-deep, #1d4fd0); cursor: default; transition: .15s; }
.dp-mh-cloud span:hover { color: var(--accent, #2f6bff); transform: scale(1.08); }
.dp-mh-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.dp-mh-tbl th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 12px; padding: 8px 10px; border-bottom: 2px solid var(--border-color); }
.dp-mh-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); vertical-align: top; }
.dp-mh-tbl tr:hover td { background: var(--accent-glow, #fafbff); }
.dp-mh-tbl .rk { color: var(--accent, #2f6bff); font-weight: 800; width: 34px; }
.dp-mh-tbl .sim { color: var(--danger, #ef4444); font-weight: 700; white-space: nowrap; }
.dp-mh-tbl .ti { color: var(--text-primary); line-height: 1.55; }
.dp-mh-tbl .ti a { color: var(--accent, #2f6bff); text-decoration: none; }
.dp-mh-tbl .ti a:hover { text-decoration: underline; }
.dp-mh-peak { display: flex; gap: 14px; flex-wrap: wrap; }
.dp-mh-peak-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dp-mh-peak-4 .p { min-width: 0; }
.dp-mh-peak .p { flex: 1; min-width: 150px; background: var(--accent-glow, #eaf1ff); border-radius: 12px; padding: 14px 16px; }
.dp-mh-peak .p .t { font-size: 13px; color: var(--accent-deep, #1d4fd0); font-weight: 600; }
.dp-mh-peak .p .n { font-size: 26px; font-weight: 800; color: var(--accent, #2f6bff); margin-top: 4px; }
.dp-mh-peak .p .s { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* 媒体级别分布图：横向排行榜 */
.dp-mh-rankbar { display: flex; flex-direction: column; gap: 11px; }
.dp-mh-rankbar .it { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dp-mh-rankbar .it .rk { width: 20px; text-align: center; font-weight: 800; color: var(--accent, #2f6bff); flex-shrink: 0; }
.dp-mh-rankbar .it .nm { width: 170px; flex: 0 0 170px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-mh-rankbar .it .track { flex: 1; height: 10px; background: #eef1f7; border-radius: 5px; overflow: hidden; }
.dp-mh-rankbar .it .fill { display: block; height: 100%; border-radius: 5px; }
.dp-mh-rankbar .it .vl { width: 74px; flex: 0 0 74px; text-align: right; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.dp-mh-rankbar.site .it .fill { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.dp-mh-rankbar.account .it .fill { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.dp-mh-rankbar-wrap h4 { margin: 0 0 10px; font-size: 14px; color: var(--text-secondary); font-weight: 600; }
.dp-mh-rankbar-wrap .sub { font-size: 12px; color: var(--text-muted); margin-left: 8px; font-weight: normal; }
/* 官方媒体平台切换按钮（核心央媒/省级媒体/地市级媒体/行业媒体）——标题与按钮同一行，按钮靠右；样式与走势图粒度按钮一致 */
.dp-mh-om-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dp-mh-om-head h4 { margin: 0; }
.dp-mh-om-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 0 auto; background: var(--accent-glow, #f0f3f8); padding: 3px; border-radius: 10px; }
.dp-mh-om-tabs button {
    border: none; background: transparent; color: var(--text-secondary);
    padding: 4px 12px; border-radius: 8px; font-size: 12px; cursor: pointer;
    transition: all .15s; font-family: inherit;
}
.dp-mh-om-tabs button:hover { color: var(--accent, #2f6bff); }
.dp-mh-om-tabs button.on { background: #fff; color: var(--accent, #2f6bff); box-shadow: 0 1px 4px rgba(20,35,70,.12); }
@media (max-width: 1100px) {
html:not([data-fit]) .dp-mh-peak-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
html:not([data-fit]) .dp-mh-ml3 { grid-template-columns: 1fr; }
html:not([data-fit]) .dp-mh-ml3 .dp-mh-ml-right { grid-template-columns: 1fr; }
}
.dp-mh-ml2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dp-mh-ml2 h4 { margin: 0 0 8px; font-size: 13.5px; color: var(--text-secondary); }
/* 用户画像卡片：两排两列（活跃作者/地域、年龄/标签），地图在窄列内适当缩小 */
.dp-mh-ml2 .dp-mh-chinamap { height: 360px; }
/* 地域分布卡片：左地图（缩小）+ 右排名表格 */
.dp-mh-region-wrap { display: flex; gap: 18px; align-items: stretch; min-width: 0; }
.dp-mh-region-wrap .dp-mh-chinamap { width: 58%; height: 470px; min-width: 0; flex: 0 0 58%; margin: 0; }
.dp-mh-region-side { flex: 1; min-width: 0; display: flex; flex-direction: column; border-left: 1px dashed var(--border-color, #e8ecf3); padding-left: 16px; }
.dp-mh-region-hd { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.dp-mh-region-hd::before { content: ''; width: 4px; height: 13px; border-radius: 2px; background: var(--accent, #2f6bff); }
.dp-mh-region-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.dp-mh-region-list .rr { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.dp-mh-region-list .rr .rk { width: 18px; height: 18px; flex: none; border-radius: 5px; background: #f1f5f9; color: #64748b; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dp-mh-region-list .rr .rk.rk1 { background: #fef2f2; color: #dc2626; }
.dp-mh-region-list .rr .rk.rk2 { background: #fff7ed; color: #ea580c; }
.dp-mh-region-list .rr .rk.rk3 { background: #fefce8; color: #ca8a04; }
.dp-mh-region-list .rr .nm { width: 58px; flex: none; color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.dp-mh-region-list .rr .track { flex: 1; height: 8px; border-radius: 4px; background: #f1f5f9; overflow: hidden; }
.dp-mh-region-list .rr .track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.dp-mh-region-list .rr .vl { width: 96px; flex: none; text-align: right; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
html:not([data-fit]) .dp-mh-region-wrap { flex-direction: column; }
html:not([data-fit]) .dp-mh-region-wrap .dp-mh-chinamap { width: 100%; flex-basis: auto; height: 320px; }
html:not([data-fit]) .dp-mh-region-side { border-left: none; padding-left: 0; }
}
/* 媒体级别分布图：左 hbar + 右双榜表格 */
.dp-mh-ml3 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; align-items: start; }
.dp-mh-ml3 h4 { margin: 0 0 8px; font-size: 13.5px; color: var(--text-secondary); }
.dp-mh-ml3 .dp-mh-ml-left { min-width: 0; }
.dp-mh-ml3 .dp-mh-ml-right { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.dp-mh-ml3 .dp-mh-hbar .it .nm { width: 84px; flex: 0 0 84px; }
.dp-mh-ml3 .dp-mh-hbar .it .vl em { display: block; font-style: normal; font-size: 11px; color: var(--text-muted); }
.dp-mh-rank { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dp-mh-rank td { padding: 5px 4px; border-bottom: 1px dashed var(--border-color); color: var(--text-secondary); vertical-align: middle; }
.dp-mh-rank tr:last-child td { border-bottom: 0; }
.dp-mh-rank .rk { color: var(--accent, #2f6bff); font-weight: 800; width: 22px; }
.dp-mh-rank .nm { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 96px; }
.dp-mh-rank .vl { text-align: right; font-weight: 700; color: var(--text-primary); width: 74px; white-space: nowrap; }
.dp-mh-rank .vl .track { display: inline-block; width: 40px; height: 6px; border-radius: 3px; background: var(--accent-glow, #eef1f7); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.dp-mh-rank .vl .track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent, #2f6bff), #6f9bff); }
@media (max-width: 1100px) {
html:not([data-fit]) .dp-mh-ml3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
html:not([data-fit]) .dp-mh-ml3 .dp-mh-ml-right { grid-template-columns: 1fr; }
}
.dp-mh-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 180px; color: var(--text-muted); text-align: center; padding: 20px; }
.dp-mh-empty .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-glow, #f0f3f8); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.dp-mh-empty p { margin: 0; font-size: 13px; max-width: 300px; line-height: 1.6; }
/* 加载动效：与 /ReportIntelligentSearch 右侧报告列表一致（圆环旋转 + 文字） */
.dp-mh-loading {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px; min-height: 220px; padding: 20px;
    color: var(--text-muted, #64748b); text-align: center;
}
.dp-mh-loading .dp-spinner {
    width: 40px; height: 40px; flex-shrink: 0;
    border: 3px solid rgba(47, 107, 255, 0.15);
    border-top-color: var(--accent, #2f6bff);
    border-radius: 50%;
    animation: dp-spin 0.8s linear infinite;
}
.dp-mh-loading .dp-loading-text { color: var(--text-secondary, #64748b); font-size: 13px; line-height: 1.6; }
.dp-mh-loading .dp-loading-hint { color: var(--text-muted, #94a3b8); font-size: 11px; }
@keyframes dp-spin { to { transform: rotate(360deg); } }
.dp-mh-linecard svg { width: 100%; height: 200px; display: block; }
.dp-mh-linecard .meta { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 900px) {
html:not([data-fit]) .dp-mh-grid { grid-template-columns: 1fr; }
html:not([data-fit]) .dp-mh-kpis { grid-template-columns: 1fr; }
html:not([data-fit]) .dp-mh-ml2 { grid-template-columns: 1fr; }
}

/* ===== 信息来源走势图（ECharts 交互版） ===== */
.dp-mh-trend-chart { width: 100%; height: 300px; min-width: 0; }
.dp-mh-chinamap { width: 100%; height: 380px; min-width: 0; margin: 4px 0; }
.dp-mh-trend-card .dp-mh-trend-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
/* 走势图 tab：与右侧粒度按钮一致（灰底分段控件） */
.dp-mh-trend-card .dp-mh-trend-tabs { display: inline-flex; gap: 4px; background: var(--accent-glow, #f0f3f8); padding: 3px; border-radius: 10px; }
.dp-mh-trend-card .dp-mh-trend-tabs button { border: none; background: transparent; color: var(--text-secondary); padding: 4px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; transition: all .15s; font-family: inherit; }
.dp-mh-trend-card .dp-mh-trend-tabs button.on { background: #fff; color: var(--accent, #2f6bff); box-shadow: 0 1px 4px rgba(20,35,70,.12); }
.dp-mh-trend-card .dp-mh-trend-granwrap { display: flex; justify-content: flex-end; width: 100%; margin-bottom: 10px; }
.dp-mh-trend-card .dp-mh-trend-gran { margin-left: auto; display: inline-flex; width: fit-content; gap: 4px; background: var(--accent-glow, #f0f3f8); padding: 3px; border-radius: 10px; }
.dp-mh-trend-card .dp-mh-trend-gran button { border: none; background: transparent; color: var(--text-secondary); padding: 4px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.dp-mh-trend-card .dp-mh-trend-gran button.on { background: #fff; color: var(--accent, #2f6bff); box-shadow: 0 1px 4px rgba(20,35,70,.12); }
.dp-mh-trend-card .dp-mh-trend-chart { width: 100%; height: 300px; min-width: 0; }
@media (max-width: 900px) {
html:not([data-fit]) .dp-mh-trend-card .dp-mh-trend-gran { margin-left: 0; }
html:not([data-fit]) .dp-mh-trend-card .dp-mh-trend-chart { height: 240px; }
}
/* 词频表格（关键词 + 词频，可滚动） */
.dp-mh-wordlist { max-height: 300px; overflow-y: auto; padding-right: 4px; }
.dp-mh-wordlist::-webkit-scrollbar { width: 4px; }
.dp-mh-wordlist::-webkit-scrollbar-thumb { background: rgba(100,116,139,.35); border-radius: 2px; }
.dp-mh-wordlist table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dp-mh-wordlist th { text-align: left; font-size: 12px; color: var(--text-muted, #94a3b8); font-weight: 600; padding: 6px 8px; border-bottom: 2px solid var(--border-color, #e8ecf3); }
.dp-mh-wordlist td { padding: 6px 8px; border-bottom: 1px dashed var(--border-color, #eef1f7); }
.dp-mh-wordlist tr:hover td { background: var(--accent-glow, #fafbff); }
.dp-mh-wordlist .rk { width: 34px; color: var(--accent, #2f6bff); font-weight: 800; }
.dp-mh-wordlist .nm { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 0; }
.dp-mh-wordlist .cnt { width: 70px; text-align: right; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* ===== 事件脉络 / 信息传播详情时间线 ===== */
.dp-mh-timeline-card .dp-mh-c-head { display: flex; align-items: center; gap: 8px; }
.dp-mh-timeline-card .dp-mh-timeline-count { margin-left: auto; font-size: 12px; color: var(--text-secondary); font-weight: 400; }
.dp-mh-timeline { max-height: 460px; overflow-y: auto; padding-right: 4px; margin-top: 4px; }
.tl-scroll { position: relative; max-height: 540px; overflow-y: auto; padding-right: 4px; }
.tl-day { position: relative; padding-left: 4px; }
.tl-day-label { position: sticky; top: 0; z-index: 2; display: inline-block; margin: 6px 0 8px; padding: 3px 12px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--accent, #2f6bff); border-radius: 20px; }
.tl-items { position: relative; margin-left: 16px; border-left: 2px solid var(--border-color, #e8ecf3); padding-left: 18px; padding-bottom: 4px; }
.tl-item { position: relative; padding: 8px 0 12px; }
.tl-node { position: absolute; left: -25px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: #9aa7bd; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--border-color, #e8ecf3); }
.tl-node.m-news { background: #2f6bff; }
.tl-node.m-bbs { background: #00b8a3; }
.tl-node.m-blog { background: #8b5cf6; }
.tl-node.m-weibo { background: #ff5a5f; }
.tl-node.m-weixin { background: #16b864; }
.tl-node.m-video { background: #ff9f1c; }
.tl-node.m-short { background: #ff6f91; }
.tl-node.m-other { background: #9aa7bd; }
.tl-body { display: flex; flex-direction: column; gap: 3px; }
.tl-time { font-size: 11.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.tl-title { font-size: 13.5px; color: var(--text-color, #1f2937); text-decoration: none; line-height: 1.5; font-weight: 500; transition: color .15s; }
.tl-title:hover { color: var(--accent, #2f6bff); text-decoration: underline; }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.tl-tag { font-size: 11px; padding: 1px 8px; border-radius: 10px; color: #fff; background: #2f6bff; font-weight: 600; }
.tl-tag.m-news { background: #2f6bff; }
.tl-tag.m-bbs { background: #00b8a3; }
.tl-tag.m-blog { background: #8b5cf6; }
.tl-tag.m-weibo { background: #ff5a5f; }
.tl-tag.m-weixin { background: #16b864; }
.tl-tag.m-video { background: #ff9f1c; }
.tl-tag.m-short { background: #ff6f91; }
.tl-tag.m-other { background: #2f6bff; }
.tl-site { font-size: 12px; color: var(--text-secondary); }
.tl-author { font-size: 12px; color: var(--text-secondary); }
.tl-author::before { content: '作者：'; color: var(--border-color, #c2cad6); }

/* 首发信源卡片 */
.dp-mh-first { margin: 4px 0 10px; padding: 10px 12px; background: linear-gradient(135deg, rgba(47,107,255,.08), rgba(22,184,100,.06)); border: 1px solid var(--border-color, #e8ecf3); border-radius: 10px; }
.dp-mh-first .fp-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.dp-mh-first .fp-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 0 3px rgba(255,90,95,.18); }
.dp-mh-first .fp-label { font-size: 12.5px; font-weight: 700; color: #ff5a5f; }
.dp-mh-first .fp-range { margin-left: auto; font-size: 11.5px; color: var(--text-secondary); }
.dp-mh-first .fp-title { display: block; font-size: 14px; font-weight: 600; color: var(--text-color, #1f2937); text-decoration: none; line-height: 1.5; }
.dp-mh-first .fp-title:hover { color: var(--accent, #2f6bff); text-decoration: underline; }
.dp-mh-first .fp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.dp-mh-first .fp-time { font-size: 11.5px; color: var(--text-secondary); }
.dp-mh-empty.sm { padding: 8px; }
.dp-mh-empty.sm .ic { font-size: 18px; }

/* 关键节点文章时间线 */
.dp-mh-timeline .kn-item { position: relative; display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border-color, #eef1f6); }
.dp-mh-timeline .kn-item:last-child { border-bottom: none; }
.dp-mh-timeline .kn-item.peak { background: linear-gradient(90deg, rgba(255,90,95,.05), transparent); border-radius: 8px; }
.dp-mh-timeline .kn-node { flex: 0 0 auto; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: #2f6bff; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--border-color, #e8ecf3); position: relative; z-index: 1; }
.dp-mh-timeline .kn-node.m-news { background: #2f6bff; }
.dp-mh-timeline .kn-node.m-bbs { background: #00b8a3; }
.dp-mh-timeline .kn-node.m-blog { background: #8b5cf6; }
.dp-mh-timeline .kn-node.m-weibo { background: #ff5a5f; }
.dp-mh-timeline .kn-node.m-weixin { background: #16b864; }
.dp-mh-timeline .kn-node.m-video { background: #ff9f1c; }
.dp-mh-timeline .kn-node.m-short { background: #ff6f91; }
.dp-mh-timeline .kn-node.m-other { background: #9aa7bd; }
.dp-mh-timeline .kn-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dp-mh-timeline .kn-top { display: flex; align-items: center; gap: 8px; }
.dp-mh-timeline .kn-time { font-size: 11.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.dp-mh-timeline .kn-badge { font-size: 10.5px; padding: 1px 7px; border-radius: 9px; color: #fff; }
.dp-mh-timeline .kn-badge.first { background: #1f2937; }
.dp-mh-timeline .kn-badge.peak { background: #ff5a5f; }
.dp-mh-timeline .kn-title { font-size: 13.5px; font-weight: 600; color: var(--text-color, #1f2937); text-decoration: none; line-height: 1.5; }
.dp-mh-timeline .kn-title:hover { color: var(--accent, #2f6bff); text-decoration: underline; }
.dp-mh-timeline .kn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dp-mh-timeline .kn-stat { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; font-size: 11.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.dp-mh-timeline .kn-stat .kn-heat { color: #ff5a5f; font-weight: 600; }

/* 信息传播路径（ECharts 多级思维导图） */
.dp-mh-path { width: 100%; height: 460px; }
.dp-card-wide .dp-mh-path { height: 520px; }

/* 首发概述条 */
.dp-mh-stage-intro { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dp-mh-first-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.dp-mh-first-link { font-size: 12.5px; color: var(--text-color, #1f2937); text-decoration: none; }
.dp-mh-first-link:hover { text-decoration: underline; color: #2f6bff; }

/* ===== 多级传播路径：阶段轨道 + 平台占比条 + 跃迁箭头 ===== */
.dp-mh-stage { margin-top: 14px; }
.dp-mh-stage:first-of-type { margin-top: 0; }
.dp-mh-stage-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dp-mh-stage-name { font-size: 13px; font-weight: 700; color: var(--text-color, #1f2937); }
.dp-mh-stage-name.peak { color: #ff5a5f; }
.dp-mh-stage-range { font-size: 11.5px; color: var(--text-secondary, #5b6678); font-variant-numeric: tabular-nums; }
.dp-mh-stage-cnt { margin-left: auto; font-size: 11.5px; color: var(--text-secondary); }
.dp-mh-stage-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: #eef1f6; }
.dp-mh-stage-bar > span { display: block; height: 100%; min-width: 2px; transition: width .3s; }
.dp-mh-stage-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; font-size: 11.5px; color: var(--text-secondary); }
.dp-mh-stage-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.dp-mh-stage-legend .lg-dot { width: 9px; height: 9px; border-radius: 2px; }
.dp-mh-stage-legend .lg-dom { font-weight: 700; color: var(--text-color); }
.dp-mh-shift { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; font-size: 11.5px; color: #8a5cf6; }
.dp-mh-shift .sh-arrow { color: #8b5cf6; font-weight: 700; }
.dp-mh-shift.changed { color: #ff6f91; font-weight: 600; }
.dp-mh-shift .sh-from, .dp-mh-shift .sh-to { padding: 1px 8px; border-radius: 9px; background: rgba(139,92,246,.1); color: #6d28d9; }
.dp-mh-shift.changed .sh-to { background: rgba(255,111,145,.14); color: #e11d6b; }

/* ===== 数据面板顶栏（维度导航 + 与信息列表共用的筛选条件概要；时间等筛选条件统一走上方筛选栏） ===== */
.dp-mh-timebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border-color, #e8ecf3); border-radius: 12px; padding: 10px 16px; box-shadow: 0 1px 2px rgba(20,35,70,.04), 0 4px 14px rgba(20,35,70,.06); }
/* 共用筛选条件概要：复用列表的 .fs-tag 标签样式，靠左展示当前生效的筛选条件 */
.dp-shared-filter { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-start; max-width: 62%; }
.dp-shared-filter:empty { display: none; }
/* 维度导航固定靠右（条件概要为空时也贴右，不随 space-between 漂到左边） */
#dpMhTimeBar .dp-navbar { margin-left: auto; }
.dp-mh-timebar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dp-mh-timebar-label { font-size: 13px; font-weight: 600; color: var(--text-secondary, #5b6678); display: inline-flex; align-items: center; gap: 6px; }
.dp-mh-timebar-opts { display: inline-flex; gap: 4px; align-items: center; background: var(--accent-glow, #f0f3f8); padding: 3px; border-radius: 10px; }
.dp-mh-timebar-opts .dp-time-opt { font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 8px; cursor: pointer; border: none; background: transparent; color: var(--text-secondary); transition: all .15s; user-select: none; font-family: inherit; }
.dp-mh-timebar-opts .dp-time-opt:hover { color: var(--accent, #2f6bff); }
.dp-mh-timebar-opts .dp-time-opt.active { background: #fff; color: var(--accent, #2f6bff); box-shadow: 0 1px 4px rgba(20,35,70,.12); }
.dp-mh-timebar-custom { display: flex; align-items: center; gap: 6px; }
.dp-mh-timebar-custom .dp-time-input { width: 120px; height: 28px; padding: 0 8px; font-size: 12px; border: 1px solid var(--border-color, #cbd5e1); border-radius: 8px; color: var(--text-primary); outline: none; }
.dp-mh-timebar-custom .dp-time-input:focus { border-color: var(--accent, #2f6bff); }
.dp-mh-timebar-custom .dp-time-sep { color: var(--text-muted, #9aa6b8); font-size: 12px; }
.dp-mh-timebar-custom .dp-time-apply { height: 28px; padding: 0 14px; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent, #2f6bff); border: none; border-radius: 8px; cursor: pointer; }
.dp-mh-timebar-custom .dp-time-apply:hover { background: var(--accent-deep, #1d4fd0); }
.dp-mh-timebar-now { font-size: 12px; color: var(--text-muted, #9aa6b8); }
@media (max-width: 900px) {
html:not([data-fit]) .dp-mh-timebar-now { display: none; }
}

/* ===== Monitor 数据列表：数据复制入口（右下角互动量之后） ===== */
.art-mi-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.10);
    border: 1px solid rgba(139, 92, 246, 0.32);
    border-radius: 6px;
    padding: 1px 9px;
    cursor: pointer;
    user-select: none;
    transition: all .15s;
}
.art-mi-copy i { font-size: 11px; }
.art-mi-copy:hover {
    color: #fff;
    background: #7c3aed;
    border-color: #7c3aed;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}
/* 无互动量数据时仍把按钮推到行尾（右下角） */
.art-meta:not(:has(.art-mi-stats)) .art-mi-copy { margin-left: auto; }

/* ===== 数据复制/报送弹窗（参照旧平台 msgBs 表单式布局） ===== */
.msg-report-card { width: 900px; max-width: 96vw; }
.msg-report-card .msg-report-header { padding: 14px 20px; }
.msg-report-sub {
    margin-left: 10px;
    font-size: 12px; font-weight: 500; color: var(--text-muted, #94a3b8);
}
.msg-report-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 22px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.msg-report-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; min-height: 300px; color: var(--text-muted, #94a3b8); font-size: 13px;
}
/* 选择模板行 */
.msg-tpl-row { display: flex; align-items: flex-start; gap: 12px; }
.msg-tpl-label {
    width: 84px; flex-shrink: 0;
    padding-top: 9px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--text-primary, #1f2937);
}
.msg-tpl-label i { color: var(--accent, #2f6bff); font-size: 13px; }
.msg-tpl-ctrl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.msg-tpl-ctrl select {
    width: 100%; height: 38px; padding: 0 12px;
    box-sizing: border-box;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #cbd5e1);
    border-radius: 9px;
    color: var(--text-primary, #1f2937);
    font-size: 13px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.msg-tpl-ctrl select:focus {
    border-color: var(--accent, #2f6bff);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 59, 130, 246), 0.12);
}
.msg-tpl-hint { font-size: 11px; color: var(--text-muted, #94a3b8); display: inline-flex; align-items: center; gap: 4px; }

/* 内容预览头（标题 + AI 分析 + 复制，操作放右，仿旧页 msgBs） */
.msg-con-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 12px;
    background: linear-gradient(180deg, #f6f7fb, #eef0f7);
    border: 1px solid var(--border-color, #d8dee9);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    margin-top:15px;
}
.msg-con-title {
    display: inline-flex; align-items: center; gap: 6px;
    margin-right: auto;
    font-size: 13px; font-weight: 700; color: var(--text-primary, #1f2937);
}
.msg-con-title i { color: var(--accent, #2f6bff); }
.msg-con-tip { font-size: 11px; font-weight: 400; color: var(--text-muted, #94a3b8); }
.msg-act {
    display: inline-flex; align-items: center; gap: 5px;
    height: 28px; padding: 0 12px;
    border-radius: 7px;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    user-select: none;
    white-space: nowrap;
    transition: all .15s;
}
.msg-act:disabled { opacity: .55; cursor: not-allowed; }
.msg-act i { font-size: 12px; }
.msg-ai-act {
    color: #0198f3;
    background: #fff;
    border: 1px solid #0198f3;
}
.msg-ai-act:hover:not(:disabled) { background: #0198f3; color: #fff; box-shadow: 0 2px 8px rgba(1, 152, 243, .3); }
.msg-copy-act {
    color: #7c3aed;
    background: #faf7ff;
    border: 1px solid #d8c7f8;
}
.msg-copy-act:hover:not(:disabled) { background: #7c3aed; color: #fff; border-color: #7c3aed; }
/* 内容大文本框（与预览头同宽同圆角） */
.msg-report-textarea {
    width: 100%;
    height: 380px;
    padding: 12px 14px;
    box-sizing: border-box;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #cbd5e1);
    border-top: none;
    border-radius: 0 0 10px 10px;
    color: var(--text-primary, #1f2937);
    font-size: 13px;
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    line-height: 1.9;
    resize: vertical;
    outline: none;
    white-space: pre-wrap;
    word-break: break-word;
    transition: border-color .2s, box-shadow .2s;
}
.msg-report-textarea:focus {
    border-color: var(--accent, #2f6bff);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 59, 130, 246), 0.08);
}
/* 底栏 */
.msg-report-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color, #e3e8f0);
    flex-shrink: 0;
}
.msg-foot-note {
    flex: 1;
    min-width: 0;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: var(--text-muted, #94a3b8);
}