/* ═══════════════════════════════════════
   Step 3: 工具推荐（含难度/难点/价值评估）
   ═══════════════════════════════════════ */

.summary-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 28px;
}

.summary-card {
  padding: 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-sm);
}
.summary-card.summary-hot {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.summary-card.summary-hot .summary-num {
  background: linear-gradient(135deg, #d97706, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.summary-card.summary-hot .summary-label {
  color: #78350f;
  font-weight: 700;
}

.summary-num {
  display: block; font-size: 32px; font-weight: 800;
  color: var(--brand); line-height: 1.1;
}

.summary-label {
  display: block; font-size: 13px; color: var(--muted);
  margin-top: 4px;
}

.rec-card {
  position: relative;
  background: var(--panel); border: 1.5px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.rec-card-classroom {
  border-color: #f59e0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12), var(--shadow-sm);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 120px);
}
.classroom-ribbon {
  position: absolute; top: 0; right: 0;
  padding: 6px 16px 6px 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  border-bottom-left-radius: 10px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  z-index: 2;
}

.rec-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.rec-title { margin: 0; font-size: 18px; font-weight: 700; }
.rec-source { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.tool-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}

.tool-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; font-size: 13px; font-weight: 700;
  border-radius: 6px; color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tool-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* 按品类的主力工具颜色 */
.tool-badge.chat    { background: #0ea5e9; }  /* 对话助手：天蓝 */
.tool-badge.kb      { background: #059669; }  /* 企业知识库：翠绿 */
.tool-badge.agent   { background: #f97316; }  /* 智能体：橙 */
.tool-badge.agent2  { background: #dc2626; }  /* 通用 Agent：红 */
.tool-badge.ide     { background: #6366f1; }  /* AI 编程：靛蓝 */
.tool-badge.table   { background: #2563eb; }  /* 多维表格：蓝 */
.tool-badge.doc     { background: #64748b; }  /* 文档协作：灰 */
.tool-badge.voice   { background: #8b5cf6; }  /* 会议转写：紫 */
.tool-badge.image   { background: #ec4899; }  /* AI 图像：粉 */
.tool-badge.video   { background: #d946ef; }  /* AI 视频：洋红 */
.tool-badge.audio   { background: #10b981; }  /* AI 音频：薄荷 */
.tool-badge.design  { background: #f59e0b; }  /* AI PPT/设计：金 */
.tool-badge.search  { background: #0d9488; }  /* AI 搜索：青 */

/* 旧映射保留以防万一 */
.tool-badge.coze      { background: #f97316; }
.tool-badge.workbuddy { background: #0d9488; }
.tool-badge.notebook  { background: #059669; }
.tool-badge.miaoji    { background: #8b5cf6; }

/* 辅助工具：白底描边 */
.tool-badge.assist {
  background: #fff; color: var(--ink);
  border: 1.5px solid #d1d5db; font-weight: 600;
}
.tool-badge.assist:hover {
  background: #f8fafc; border-color: var(--brand); color: var(--brand);
}

.rec-body { padding: 20px 24px 24px; }

/* ── 难度/难点/价值评估三联 ── */
.eval-grid {
  display: grid; grid-template-columns: 1fr 1.3fr 1.3fr;
  gap: 10px; margin-bottom: 18px;
}

.eval-item {
  padding: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
}

.eval-item.diff-easy { background: #ecfdf5; border-color: #6ee7b7; }
.eval-item.diff-mid  { background: #fefce8; border-color: #fde68a; }
.eval-item.diff-hard { background: #fef2f2; border-color: #fca5a5; }

.eval-label {
  display: block; font-size: 11px; font-weight: 800;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.03em; margin-bottom: 6px;
}

.eval-value {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--ink); line-height: 1.5;
}

.diff-stars {
  display: block; margin-top: 6px;
  font-size: 14px; letter-spacing: 2px;
  color: #cbd5e1;
}
.diff-stars .star.on { color: #f59e0b; }

.rec-reason {
  padding: 12px 16px; margin-bottom: 18px;
  background: #f0fdf4; border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-size: 14px; color: #334155; line-height: 1.6;
}

/* ── 课堂现场校验警告弹窗 ── */
.cw-summary {
  padding: 14px 16px;
  background: #fef3c7; border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 14px; color: #78350f; line-height: 1.6;
  margin: 0 0 16px;
}
.cw-summary strong { color: #b45309; font-size: 16px; }

.cw-section { margin-bottom: 14px; }
.cw-section h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; }
.cw-section ul { margin: 0; padding: 0; list-style: none; }
.cw-section li {
  padding: 6px 10px; margin-bottom: 4px;
  background: #f8fafc; border-radius: 6px;
  font-size: 13px; line-height: 1.4;
  display: flex; align-items: center; gap: 6px;
}
.cw-section li strong { color: var(--ink); flex: 1; }
.cw-section li.cw-empty { color: var(--muted); justify-content: center; font-style: italic; background: transparent; }
.cw-diff {
  padding: 1px 8px; font-size: 11px; font-weight: 700;
  background: var(--line); color: var(--muted);
  border-radius: 999px;
}
.cw-good h4 { color: #047857; }
.cw-good li { background: #ecfdf5; }
.cw-hard h4 { color: #b91c1c; }
.cw-hard li { background: #fef2f2; }

.cw-tips {
  margin-top: 16px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
}
.cw-tips h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #1e40af; }
.cw-tips ul { margin: 0; padding-left: 20px; }
.cw-tips li { font-size: 13px; color: #334155; line-height: 1.7; }

/* ── 工具下载卡 ── */
.tool-download-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.tool-download-card {
  display: block;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdfa 0%, #fff 60%);
  border: 1.5px solid #99f6e4;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.tool-download-card:hover {
  border-color: var(--brand);
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 60%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.12);
}

.tdl-head {
  display: flex; align-items: center;
  gap: 8px; margin-bottom: 6px;
}

.tdl-name {
  font-size: 16px; font-weight: 800;
  color: var(--brand-dark);
}

.tdl-region {
  padding: 2px 8px;
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tdl-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tdl-url {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--brand);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

.tdl-url span:first-of-type {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tdl-open {
  flex-shrink: 0;
  padding: 2px 10px;
  font-family: inherit;
  font-weight: 800;
  background: var(--brand);
  color: #fff !important;
  border-radius: 999px;
  font-size: 11px;
}

.rec-section-title {
  font-size: 14px; font-weight: 700; color: var(--brand-dark);
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.rec-section-title svg { width: 16px; height: 16px; }

.step-list {
  display: grid; gap: 10px; padding: 0;
  margin: 0 0 20px; list-style: none;
}
.step-list li {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 10px; align-items: start;
}
.step-list b {
  display: grid; width: 32px; height: 32px;
  place-items: center; color: #fff;
  background: var(--brand); border-radius: 8px;
  font-size: 14px;
}
.step-list span {
  padding-top: 5px; font-size: 15px;
  color: #334155; line-height: 1.5;
}

.prompt-box {
  position: relative; padding: 16px;
  background: #fffbeb; border: 1.5px solid #fde68a;
  border-radius: 8px;
}

.prompt-box .prompt-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--accent); margin-bottom: 6px;
}

.prompt-box .prompt-text {
  font-size: 14px; color: #334155; line-height: 1.6;
  margin: 0; padding-right: 70px;
}

.copy-btn {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
  color: var(--accent); background: #fff;
  border: 1px solid #fde68a; border-radius: 6px;
  cursor: pointer; transition: all 0.2s;
}
.copy-btn:hover { background: #fef3c7; }
.copy-btn svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .eval-grid { grid-template-columns: 1fr; }
  .rec-head, .rec-body { padding: 16px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .summary-strip { grid-template-columns: 1fr; }
}
