{% extends "base.html" %} {% block title %}采集结果 - AI答案采集平台{% endblock %} {% block styles %} .header { background: white; padding: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 25px; } .stat-card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); border: 1px solid #f0f0f0; } .stat-label { font-size: 13px; color: #8c8c8c; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; } .stat-value { font-size: 28px; font-weight: 600; color: #262626; } .stat-unit { font-size: 14px; color: #8c8c8c; margin-left: 4px; font-weight: normal; } .result-card { background: white; border-radius: 8px; padding: 24px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); border: 1px solid #f0f0f0; transition: box-shadow 0.3s; } .result-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); } .result-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; } .result-question { font-size: 16px; font-weight: 600; color: #262626; line-height: 1.5; flex: 1; } .result-content { margin-bottom: 20px; } .result-content:last-child { margin-bottom: 0; } .content-label { font-size: 13px; color: #8c8c8c; margin-bottom: 10px; font-weight: 500; display: flex; align-items: center; gap: 5px; } .content-text { font-size: 14px; color: #262626; line-height: 1.8; white-space: pre-wrap; word-wrap: break-word; } .references-list { list-style: none; padding: 0; margin: 0; } .reference-item { padding: 8px 12px; background: #fafafa; border-radius: 6px; margin-bottom: 6px; border: 1px solid #f0f0f0; transition: background 0.2s; } /* 排名列表样式 */ .rankings-list { list-style: none; padding: 0; margin: 0; } .ranking-item { display: flex; align-items: center; padding: 10px 12px; background: #fafafa; border-radius: 6px; margin-bottom: 6px; border: 1px solid #f0f0f0; transition: background 0.2s; } .ranking-item:hover { background: #f5f5f5; } .rank-badge { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; } .rank-badge.top3 { background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); } .ranking-info { flex: 1; min-width: 0; } .ranking-name { font-weight: 600; color: #262626; margin-bottom: 2px; } .ranking-hospital { font-size: 13px; color: #8c8c8c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ranking-group { font-size: 12px; color: #10b981; background: rgba(16, 185, 129, 0.1); padding: 2px 6px; border-radius: 4px; margin-left: 8px; } .reference-item:hover { background: #f0f9ff; } .reference-item:last-child { margin-bottom: 0; } .reference-title { font-size: 13px; color: #262626; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; } .reference-url { font-size: 12px; color: #1890ff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } /* 百度指数风格 - 核心词卡片 */ .index-cards-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(48%, 1fr)); gap: 20px; margin-top: 20px; } .index-card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); border: 1px solid #f0f0f0; transition: all 0.3s; cursor: pointer; position: relative; overflow: hidden; } .index-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); transform: translateY(-2px); } .index-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; } .index-keyword { font-size: 18px; font-weight: 600; color: #262626; display: flex; align-items: center; gap: 8px; } .index-rank { background: linear-gradient(135deg, #1890ff 0%, #69c0ff 100%); color: white; font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: 600; } .index-rank.no1 { background: linear-gradient(135deg, #fa8c16 0%, #ffa940 100%); } .index-rank.no2 { background: linear-gradient(135deg, #8c8c8c 0%, #bfbfbf 100%); } .index-rank.no3 { background: linear-gradient(135deg, #d46b08 0%, #fa8c16 100%); } .index-values { display: flex; gap: 30px; margin-bottom: 15px; } .index-value-item { display: flex; flex-direction: column; } .index-value-label { font-size: 12px; color: #8c8c8c; margin-bottom: 4px; } .index-value-number { font-size: 28px; font-weight: 600; color: #1890ff; line-height: 1; } .index-value-number.success { color: #52c41a; } .index-value-number.info { color: #8c8c8c; } .index-value-diff { font-size: 12px; margin-left: 8px; display: inline-flex; align-items: center; } .index-value-diff.up { color: #ff4d4f; } .index-value-diff.down { color: #52c41a; } /* 舆情标签样式 */ .sentiment-item .index-value-label { margin-bottom: 8px; } .sentiment-content { display: flex; gap: 6px; font-size: 14px; font-weight: 500; } .sentiment-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.05); transition: all 0.2s; } .sentiment-tag:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .sentiment-dot { width: 6px; height: 6px; border-radius: 50%; } .sentiment-text { font-size: 12px; font-weight: 500; } .sentiment-num { font-size: 14px; font-weight: 600; } /* 正面 */ .sentiment-tag.positive { background: rgba(82, 196, 26, 0.1); } .sentiment-tag.positive .sentiment-dot { background: #52c41a; } .sentiment-tag.positive .sentiment-text, .sentiment-tag.positive .sentiment-num { color: #52c41a; } /* 中性 */ .sentiment-tag.neutral { background: rgba(140, 140, 140, 0.1); } .sentiment-tag.neutral .sentiment-dot { background: #8c8c8c; } .sentiment-tag.neutral .sentiment-text, .sentiment-tag.neutral .sentiment-num { color: #8c8c8c; } /* 负面 */ .sentiment-tag.negative { background: rgba(255, 77, 79, 0.1); } .sentiment-tag.negative .sentiment-dot { background: #ff4d4f; } .sentiment-tag.negative .sentiment-text, .sentiment-tag.negative .sentiment-num { color: #ff4d4f; } /* 智慧舆情样式 */ .ai-sentiment { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #8c8c8c; } .ai-item { display: inline-flex; align-items: center; gap: 2px; } .ai-dot { width: 5px; height: 5px; border-radius: 50%; } .ai-num { font-size: 11px; font-weight: 500; } .ai-item.positive .ai-dot { background: #52c41a; } .ai-item.positive .ai-num { color: #52c41a; } .ai-item.neutral .ai-dot { background: #8c8c8c; } .ai-item.neutral .ai-num { color: #8c8c8c; } .ai-item.negative .ai-dot { background: #ff4d4f; } .ai-item.negative .ai-num { color: #ff4d4f; } /* 舆情分隔符 */ .sentiment-divider { color: #e8e8e8; margin: 0 8px; } .sentiment-content { display: flex; align-items: center; gap: 4px; } .index-chart-container { height: 80px; width: 100%; margin-top: 10px; position: relative; } .index-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; } .index-rate-bar { flex: 1; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; margin-right: 15px; } .index-rate-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; } .index-rate-fill.high { background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%); } .index-rate-fill.medium { background: linear-gradient(90deg, #fa8c16 0%, #ffa940 100%); } .index-rate-fill.low { background: linear-gradient(90deg, #8c8c8c 0%, #bfbfbf 100%); } .index-rate-text { font-size: 14px; font-weight: 600; min-width: 60px; text-align: right; } .index-detail-btn { color: #1890ff; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 4px; } .index-detail-btn:hover { text-decoration: underline; } } .reference-url:hover { text-decoration: underline; } .screenshot-preview { max-width: 100%; cursor: pointer; transition: transform 0.3s; display: block; } .screenshot-preview:hover { transform: scale(1.01); } .exposure-badge { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; height: 24px; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; } .exposure-yes { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; } .exposure-no { background: #fafafa; color: #8c8c8c; border: 1px solid #d9d9d9; } .keyword-tag { display: inline-block; padding: 3px 10px; background: #1890ff; color: white; border-radius: 4px; font-size: 12px; margin-right: 6px; margin-bottom: 4px; font-weight: 500; } .platform-stats { margin-top: 16px; } .platform-stat-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fafafa; border-radius: 6px; margin-bottom: 10px; border: 1px solid #f0f0f0; } .platform-stat-item:last-child { margin-bottom: 0; } /* 平台筛选器 */ .platform-filter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .platform-btn { height: 32px; padding: 0 14px; border-radius: 6px; border: 1px solid #d9d9d9; background: white; color: #595959; font-size: 13px; cursor: pointer; transition: all 0.2s; line-height: 30px; white-space: nowrap; } .platform-btn:hover { border-color: #1890ff; color: #1890ff; } .platform-btn.active { background: #1890ff; border-color: #1890ff; color: white; font-weight: 500; } .task-info-card { background: white; padding: 24px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); border: 1px solid #f0f0f0; } .task-info-card h2 { margin: 0 0 16px 0; font-size: 20px; font-weight: 600; color: #262626; } .task-info-card .info-row { display: flex; align-items: center; margin-bottom: 8px; font-size: 14px; color: #595959; } .task-info-card .info-row:last-child { margin-bottom: 0; } .task-info-card .info-label { color: #8c8c8c; margin-right: 8px; } .task-info-card .info-divider { color: #d9d9d9; margin: 0 16px; } .section-card { background: white; padding: 24px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); border: 1px solid #f0f0f0; } .section-card h3 { margin: 0 0 16px 0; font-size: 16px; font-weight: 600; color: #262626; } {% endblock %} {% block content %}