/* ==========================================================
   鲲鹏AI · AI获客工具页样式
   ========================================================== */

.tool-hero {
  padding: 52px 0 40px;
  background:
    radial-gradient(900px 320px at 12% -10%, rgba(122, 92, 255, .16), transparent 60%),
    radial-gradient(760px 300px at 88% 0%, rgba(15, 198, 194, .14), transparent 62%),
    linear-gradient(180deg, #fbfcfe 0%, #f4f6fa 100%);
  border-bottom: 1px solid var(--line, #eef0f4);
}

.tool-hero h1 {
  font-size: 34px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--ink, #1f2329);
}

.tool-hero .lead {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: #5c6472;
  max-width: 860px;
}

.tool-hero__stats {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tool-hero__stat {
  background: #fff;
  border: 1px solid #e9ecf2;
  border-radius: 12px;
  padding: 12px 20px;
  min-width: 132px;
}

.tool-hero__stat b {
  display: block;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #1f76f3, #6a3ff0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-hero__stat span {
  font-size: 12.5px;
  color: #8b93a1;
}

/* ---------- 工具网格 ---------- */
.ai-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ai-tool {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 26px 24px 22px;
  background: #fff;
  border: 1px solid #e9ecf2;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ai-tool:hover {
  transform: translateY(-4px);
  border-color: #d7dcea;
  box-shadow: 0 16px 36px rgba(31, 35, 41, .09);
}

.ai-tool__bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}

.ai-tool__ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
}

.ai-tool__cat {
  display: inline-block;
  font-size: 11.5px;
  color: #8b93a1;
  background: #f4f6fa;
  border-radius: 20px;
  padding: 3px 10px;
}

.ai-tool__name {
  margin: 10px 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: #1f2329;
}

.ai-tool__tagline {
  font-size: 13.5px;
  color: #4c5462;
  font-weight: 600;
  line-height: 1.6;
}

.ai-tool__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: #767e8c;
}

.ai-tool__stats {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.ai-tool__stat {
  flex: 1;
  background: #f8fafc;
  border-radius: 9px;
  padding: 8px 6px;
  text-align: center;
}

.ai-tool__stat b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #1f2329;
}

.ai-tool__stat span {
  font-size: 11px;
  color: #8b93a1;
}

.ai-tool__course {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e6e9f0;
  font-size: 12px;
  color: #8b93a1;
}

.ai-tool__go {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1f76f3;
}

/* ---------- 关联课程 ---------- */
.link-course-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.link-course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e9ecf2;
  border-radius: 13px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}

.link-course:hover {
  border-color: #bfd4f7;
  transform: translateX(3px);
}

.link-course h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1f2329;
}

.link-course p {
  margin-top: 5px;
  font-size: 12.5px;
  color: #8b93a1;
}

.link-course__go {
  color: #b6bdc9;
  font-size: 18px;
  flex-shrink: 0;
}

/* ---------- 学习闭环三步 ---------- */
.loop-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* 双列变体（用类而非内联样式，内联会压过移动端媒体查询导致横向溢出） */
.loop-steps--2 { grid-template-columns: repeat(2, 1fr); }
.link-course-list--2 { grid-template-columns: repeat(2, 1fr); }

.loop-step {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #e9ecf2;
  border-radius: 15px;
}

.loop-step b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #dfe4ee;
  line-height: 1;
  margin-bottom: 12px;
}

.loop-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2329;
}

.loop-step p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: #767e8c;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .ai-tool-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-steps--2,
  .link-course-list--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tool-hero { padding: 34px 0 30px; }
  .tool-hero h1 { font-size: 25px; }
  .tool-hero .lead { font-size: 14.5px; margin-top: 12px; }
  .tool-hero__stats { gap: 10px; margin-top: 20px; }
  .tool-hero__stat { flex: 1 1 calc(33% - 10px); min-width: 0; padding: 10px 8px; }
  .tool-hero__stat b { font-size: 18px; }
  .tool-hero__stat span { font-size: 11px; }
  .ai-tool-grid,
  .link-course-list,
  .loop-steps { grid-template-columns: 1fr; gap: 14px; }
  /* 双列变体在移动端也必须回落单列 */
  .loop-steps--2,
  .link-course-list--2 { grid-template-columns: 1fr; }
  .ai-tool { padding: 22px 20px 20px; }
}
