/* 工具详情页样式（配合 scene.css 使用，只作用于 .tool-page） */

.tool-page { padding-bottom: 30px; }
.tool-inner { max-width: 920px; margin: 0 auto; }

/* 面包屑沿用场景页的 scene-crumb */

.tool-hero {
  background: #fff; border: 1px solid #eceafd; border-radius: 18px;
  padding: 30px 34px; margin: 18px 0 22px;
}
.tool-hero-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tool-logo {
  width: 76px; height: 76px; border-radius: 18px; object-fit: cover;
  border: 1px solid #eee; background: #fff; flex: none;
}
.tool-h1 { font-size: 30px; font-weight: 700; color: #090524; margin: 0; line-height: 1.3; }
.tool-classify {
  display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px;
  background: #eeedfd; color: #5961f9; font-size: 13px;
}
.tool-intro { color: #4a4a58; font-size: 15px; line-height: 1.9; margin: 18px 0 0; }

.tool-facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px;
  padding-top: 18px; border-top: 1px dashed #e6e6f0;
}
.tool-facts span { font-size: 13.5px; color: #6c6c7c; }
.tool-facts b { color: #090524; font-weight: 600; }
.tool-facts .score { color: #f59e0b; font-weight: 700; }
.tool-visit {
  margin-left: auto; padding: 8px 22px; border-radius: 999px; background: #5961f9;
  color: #fff !important; font-size: 14px; text-decoration: none; flex: none;
}
.tool-visit:hover { opacity: .88; }

/* 详情正文（details.js 的富文本） */
.tool-body {
  background: #fff; border: 1px solid #eceafd; border-radius: 18px;
  padding: 28px 34px; margin-bottom: 22px;
}
.tool-body h2 { font-size: 19px; font-weight: 700; color: #090524; margin: 26px 0 10px; }
.tool-body h2:first-child { margin-top: 0; }
.tool-body p, .tool-body li { font-size: 15px; color: #4a4a58; line-height: 1.95; }
.tool-body ul, .tool-body ol { padding-left: 22px; margin: 8px 0 14px; }
.tool-body li { margin: 4px 0; }
.tool-body strong { color: #090524; }
.tool-body a { color: #5961f9; }
.tool-body img { max-width: 100%; border-radius: 10px; }
.tool-body span { color: inherit; }

.tool-pics { margin-bottom: 22px; }
.tool-pics img {
  display: block; width: 100%; border-radius: 14px; border: 1px solid #eceafd;
  margin-bottom: 14px;
}

/* 场景推荐卡片：复用 scene-related / rel-card 的样式 */

/* 同类工具 */
.tool-same { display: grid; grid-template-columns: repeat(auto-fill, minmax(0, 1fr)); gap: 12px; }
.tool-same a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #fff; border: 1px solid #eceafd; border-radius: 12px; text-decoration: none;
  transition: border-color .15s; min-width: 0;
}
.tool-same a:hover { border-color: #5961f9; }
.tool-same img { width: 34px; height: 34px; border-radius: 9px; flex: none; object-fit: cover; }
.tool-same .ts-meta { min-width: 0; }
.tool-same .ts-name { font-size: 14px; color: #090524; font-weight: 600; display: block; }
.tool-same .ts-desc {
  font-size: 12px; color: #9a9aa8; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

/* 工具库索引页 */
.tool-catalog {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
}
.tc-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: #fff; border: 1px solid #eceafd; border-radius: 12px;
  text-decoration: none; transition: border-color .15s;
}
.tc-row:hover { border-color: #5961f9; }
.tc-row img { width: 40px; height: 40px; border-radius: 10px; flex: none; object-fit: cover; }
.tc-meta { min-width: 0; }
.tc-name { display: block; font-size: 15px; font-weight: 600; color: #090524; }
.tc-desc {
  display: block; font-size: 13px; color: #9a9aa8; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 720px) {
  .tool-hero { padding: 22px 20px; }
  .tool-body { padding: 22px 18px; }
  .tool-h1 { font-size: 24px; }
  .tool-visit { margin-left: 0; }
}
