
.message-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}
.image-message {
    text-align: center;
}
.message-image {
    max-width: 100%;
    max-height: 300px;
    cursor: pointer;
}
.image-viewer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.full-image {
    max-width: 100%;
    max-height: 80vh;
}
.image-viewer-dialog {
    background: rgba(0, 0, 0, 0.7);
}
.image-viewer-dialog .el-dialog__header,
.image-viewer-dialog .el-dialog__body {
    padding: 0;
}

/* 高亮记录样式 */
.timeline-content[id^="recordDetail-"].temp-highlight {
    animation: highlight-pulse 2s ease-in-out;
    border-left: 4px solid #E6A23C;
    background-color: rgba(230, 162, 60, 0.1);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
@keyframes highlight-pulse {
0% {
        box-shadow: 0 0 0 0 rgba(230, 162, 60, 0.4);
}
50% {
        box-shadow: 0 0 0 10px rgba(230, 162, 60, 0.7);
}
100% {
        box-shadow: 0 0 0 0 rgba(230, 162, 60, 0);
}
}


/* 整体布局样式 */
.dashboard-container {
    padding: 24px;
    background-color: #f5f7fa;
    min-height: calc(100vh - 120px);
}

/* 搜索面板样式 */
.search-panel {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

/* 标题区域样式 */
.dashboard-title {
    margin-bottom: 30px;
    padding: 20px 0;
}
.title-container {
    text-align: center;
}
.dashboard-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #303133;
    margin: 0;
    letter-spacing: 1px;
}
.dashboard-subtitle {
    font-size: 14px;
    color: #606266;
    margin-top: 16px;
    font-weight: 500;
}

/* 数据面板样式 */
.data-panel {
    margin-bottom: 30px;
}

/* 统计行样式 */
.stat-row {
    margin-bottom: 20px;
}
.stat-card {
    height: 90px;
    border-radius: 8px;
    padding: 15px 18px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    background-color: #fff;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

/* AI统计卡片特殊样式 */
.ai-stat-card {
    height: 85px;
    padding: 12px 15px;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
}
.stat-card-1 {
    border-left: 4px solid #409EFF;
}
.stat-card-2 {
    border-left: 4px solid #67C23A;
}
.stat-card-3 {
    border-left: 4px solid #E6A23C;
}
.stat-card-4 {
    border-left: 4px solid #F56C6C;
}
.stat-card-5 {
    border-left: 4px solid #909399;
}
.stat-card-6 {
    border-left: 4px solid #9254de;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(64, 158, 255, 0.05);
    z-index: 0;
}
.stat-card-1::before {
    background: rgba(64, 158, 255, 0.05);
}
.stat-card-2::before {
    background: rgba(103, 194, 58, 0.05);
}
.stat-card-3::before {
    background: rgba(230, 162, 60, 0.05);
}
.stat-card-4::before {
    background: rgba(245, 108, 108, 0.05);
}
.stat-card-5::before {
    background: rgba(144, 147, 153, 0.05);
}
.stat-card-6::before {
    background: rgba(146, 84, 222, 0.05);
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    background-color: rgba(64, 158, 255, 0.1);
    flex-shrink: 0;
}

/* AI统计卡片的图标更小 */
.ai-stat-card .stat-icon {
    width: 36px;
    height: 36px;
    margin-right: 12px;
}
.stat-card-1 .stat-icon {
    background-color: rgba(64, 158, 255, 0.1);
    color: #409EFF;
}
.stat-card-2 .stat-icon {
    background-color: rgba(103, 194, 58, 0.1);
    color: #67C23A;
}
.stat-card-3 .stat-icon {
    background-color: rgba(230, 162, 60, 0.1);
    color: #E6A23C;
}
.stat-card-4 .stat-icon {
    background-color: rgba(64, 158, 255, 0.1);
    color: #409EFF;
}
.stat-card-5 .stat-icon {
    background-color: rgba(103, 194, 58, 0.1);
    color: #67C23A;
}
.stat-card-6 .stat-icon {
    background-color: rgba(245, 108, 108, 0.1);
    color: #F56C6C;
}
.stat-card-7 .stat-icon {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}
.stat-card-8 .stat-icon {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}
.stat-card-9 .stat-icon {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}
.stat-card-10 .stat-icon {
    background-color: rgba(146, 84, 222, 0.1);
    color: #9254de;
}
.stat-card-11 .stat-icon {
    background-color: rgba(32, 201, 151, 0.1);
    color: #20c997;
}
.stat-icon i {
    font-size: 20px;
}
.ai-stat-card .stat-icon i {
    font-size: 18px;
}
.stat-content {
    flex: 1;
    z-index: 1;
    min-width: 0;
}
.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 6px;
    line-height: 1.2;
}
.stat-label {
    font-size: 13px;
    color: #909399;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



/* 表格区域样式 */
.data-tables {
    margin-bottom: 20px;
}
.table-panel {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.table-panel:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.table-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
}
.table-header i {
    font-size: 22px;
    margin-right: 12px;
    color: #409EFF;
    background: rgba(64, 158, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.table-header:nth-of-type(2) i {
    color: #F56C6C;
    background: rgba(245, 108, 108, 0.1);
}
.table-header span {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
}

/* 表格内部样式 */
.header {
    background-color: #f5f7fa !important;
    color: #606266 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    height: 50px !important;
}
.el-table {
    border-radius: 8px;
    overflow: hidden;
    border: none !important;
}
.el-table th {
    background-color: #f8fafc !important;
    border-bottom: 2px solid #ebeef5 !important;
}
.el-table td {
    padding: 16px 0 !important;
}
.el-table--striped .el-table__body tr.el-table__row--striped td {
    background-color: #fafbfc !important;
}
.el-table--enable-row-hover .el-table__body tr:hover>td {
    background-color: #f2f6fc !important;
}
.el-tag {
    border-radius: 6px;
    padding: 2px 10px;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 1200px) {
.stat-row {
        margin-bottom: 16px;
}
}
@media (max-width: 992px) {

    /* 中等屏幕调整 */
.stat-card {
        height: 80px;
        padding: 12px 15px;
        margin-bottom: 12px;
}
.ai-stat-card {
        height: 75px;
        padding: 10px 12px;
}
.stat-icon {
        width: 36px;
        height: 36px;
        margin-right: 12px;
}
.ai-stat-card .stat-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
}
.stat-value {
        font-size: 18px;
}
.stat-label {
        font-size: 12px;
}
}
@media (max-width: 768px) {
.dashboard-container {
        padding: 16px;
}
.search-panel {
        padding: 16px;
}
.dashboard-title h2 {
        font-size: 20px;
}
.data-panel {
        margin-bottom: 20px;
}
.stat-row {
        margin-bottom: 12px;
}
.stat-card {
        height: 75px;
        padding: 10px 12px;
        margin-bottom: 10px;
}
.ai-stat-card {
        height: 70px;
        padding: 8px 10px;
}
.stat-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
}
.ai-stat-card .stat-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
}
.stat-icon i {
        font-size: 16px;
}
.ai-stat-card .stat-icon i {
        font-size: 14px;
}
.stat-value {
        font-size: 16px;
        margin-bottom: 4px;
}
.stat-label {
        font-size: 11px;
}
.table-panel {
        padding: 15px;
}
}
@media (max-width: 576px) {

    /* AI统计在小屏幕上改为2列显示 */
.stat-card {
        height: 70px;
        padding: 8px 10px;
}
.ai-stat-card {
        height: 65px;
        padding: 6px 8px;
}
.stat-value {
        font-size: 14px;
}
.stat-label {
        font-size: 10px;
}
}

/* 聊天标题 */
.chat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.chat-info {
    display: flex;
    align-items: center;
}
.chat-info i {
    margin-right: 8px;
    color: #409EFF;
}
.chat-time {
    margin-left: 15px;
    color: #909399;
    font-size: 12px;
    font-weight: normal;
}
.chat-title-header {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #409EFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.chat-title-header span {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    display: flex;
    align-items: center;
}
.chat-title-header i {
    margin-right: 8px;
    color: #409EFF;
}

/* 关键词链接样式 */
.keyword-link {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s;
}
.keyword-link:hover {
    color: #555555;
    text-decoration: underline;
}

/* 明细按钮样式 */
.detail-btn {
    margin-left: auto;
}

/* 明细链接样式 */
.detail-link {
    margin-left: auto;
    color: #409EFF;
    font-size: 13px;
    text-decoration: none;
    padding: 5px 10px;
    transition: all 0.3s;
}
.detail-link:hover {
    color: #66b1ff;
    text-decoration: underline;
}

/* 高亮记录样式 */
.highlight-record {
    position: relative;
    border-left: 4px solid #E6A23C;
    background-color: rgba(230, 162, 60, 0.1);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 临时闪烁效果 */
.temp-highlight {
    animation: highlight-pulse 2s ease-in-out;
}

/* 对话明细弹窗内容区域 */
.detail-dialog-content {
    max-height: 70vh;
    overflow-y: auto;
}
@keyframes highlight-pulse {
0% {
        box-shadow: 0 0 0 0 rgba(230, 162, 60, 0.4);
}
50% {
        box-shadow: 0 0 0 10px rgba(230, 162, 60, 0.7);
}
100% {
        box-shadow: 0 0 0 0 rgba(230, 162, 60, 0);
}
}

/* 11个统计卡片颜色样式 */
.stat-card-7 {
    border-left: 4px solid #17a2b8;
}
.stat-card-8 {
    border-left: 4px solid #fd7e14;
}
.stat-card-9 {
    border-left: 4px solid #6f42c1;
}
.stat-card-10 {
    border-left: 4px solid #9254de;
}
.stat-card-11 {
    border-left: 4px solid #20c997;
}
.stat-card-7::before {
    background: rgba(23, 162, 184, 0.05);
}
.stat-card-8::before {
    background: rgba(253, 126, 20, 0.05);
}
.stat-card-9::before {
    background: rgba(111, 66, 193, 0.05);
}
.stat-card-10::before {
    background: rgba(146, 84, 222, 0.05);
}
.stat-card-11::before {
    background: rgba(32, 201, 151, 0.05);
}

/* 饼图统计区域样式 */
.pie-charts-section {
    margin-bottom: 30px;
    margin-top: 20px;
}
.chart-panel {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}
.chart-panel:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.chart-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
    position: relative;
}
.chart-header i {
    font-size: 20px;
    margin-right: 10px;
    color: #409EFF;
    background: rgba(64, 158, 255, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.chart-header span {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}
.chart-content {
    min-height: 320px;
}
.pie-chart-container {
    width: 100%;
    height: 180px;
    margin: 10px 0;
}

/* 图例样式 */
.chart-legend {
    margin: 15px 0;
    padding: 0 10px;
    position: relative;
}

/* 分析报告按钮样式 - 位于右下角 */
.analysis-report-btn {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    z-index: 10;
}
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 0;
    transition: all 0.3s;
}
.legend-item:hover {
    background-color: #f8fafc;
    border-radius: 4px;
    padding-left: 4px;
}

/* 空白占位图例项样式 */
.legend-placeholder {
    visibility: hidden;
    /* 完全隐藏但保留空间 */
}
.legend-placeholder:hover {
    background-color: transparent !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
}
.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.legend-text {
    flex: 1;
    font-size: 13px;
    color: #606266;
    font-weight: 500;
}
.legend-value {
    font-size: 12px;
    color: #909399;
    font-weight: 600;
    background: #f5f7fa;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* 响应式调整图例 */
@media (max-width: 992px) {
.legend-item {
        margin-bottom: 6px;
}
.legend-text {
        font-size: 12px;
}
.legend-value {
        font-size: 11px;
}
}
@media (max-width: 768px) {
.chart-content {
        min-height: 300px;
}
.pie-chart-container {
        height: 160px;
}
.chart-legend {
        margin: 10px 0;
}
}
.chart-stats {
    margin-bottom: 15px;
}
.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f7fa;
}
.stat-item:last-child {
    border-bottom: none;
}
.stat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}
.stat-text {
    flex: 1;
    font-size: 14px;
    color: #606266;
}
.stat-number {
    font-weight: 600;
    font-size: 16px;
    color: #303133;
}

/* 饼图颜色配置 */
.stat-dot.with-human {
    background-color: #67C23A;
}
.stat-dot.without-human {
    background-color: #E6A23C;
}
.stat-dot.ai-user {
    background-color: #409EFF;
}
.stat-dot.ai-success {
    background-color: #67C23A;
}
.stat-dot.ai-fail {
    background-color: #F56C6C;
}
.stat-dot.human-user {
    background-color: #909399;
}
.stat-dot.human-staff {
    background-color: #9254de;
}
.chart-summary {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

/* 响应式调整 */
@media (max-width: 992px) {
.pie-charts-section .el-col {
        margin-bottom: 20px;
}
.chart-panel {
        padding: 20px;
}
}
@media (max-width: 768px) {
.stat-card {
        margin-bottom: 15px;
}
.chart-panel {
        padding: 16px;
}
.chart-header i {
        width: 32px;
        height: 32px;
        font-size: 18px;
}
}


/* 分析报告弹窗样式 */
.analysis-report-dialog {
    border-radius: 12px;
}
.analysis-content {
    padding: 20px;
    min-height: 400px;
    max-height: 70vh;
    overflow-y: auto;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #ebeef5;
}
.analysis-content h1,
.analysis-content h2,
.analysis-content h3,
.analysis-content h4,
.analysis-content h5,
.analysis-content h6 {
    color: #303133;
    margin: 20px 0 15px 0;
    font-weight: 600;
}
.analysis-content h1 {
    font-size: 24px;
    border-bottom: 2px solid #409EFF;
    padding-bottom: 10px;
}
.analysis-content h2 {
    font-size: 20px;
    color: #409EFF;
}
.analysis-content h3 {
    font-size: 18px;
    color: #606266;
}
.analysis-content p {
    line-height: 1.8;
    margin: 10px 0;
    color: #606266;
}
.analysis-content ul,
.analysis-content ol {
    padding-left: 20px;
    margin: 15px 0;
}
.analysis-content li {
    line-height: 1.8;
    margin: 8px 0;
    color: #606266;
}
.analysis-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.analysis-content table th,
.analysis-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}
.analysis-content table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #303133;
}
.analysis-content table td {
    color: #606266;
}
.analysis-content strong {
    color: #303133;
    font-weight: 600;
}
.analysis-content em {
    color: #409EFF;
    font-style: normal;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
.analysis-report-dialog {
        width: 95% !important;
}
.analysis-content {
        padding: 15px;
        min-height: 300px;
        max-height: 60vh;
}
}

