/**
 * 大模型验证器（Model Validator）产品介绍页
 *
 * 与 smart-model-intro.css 叠加使用：Hero、Section、Feature 卡、Spec 条与底部 CTA
 * 全部复用 tp-sm-* 版式，本文件只补三类正文件——产品截图框、对比示意、步骤与 FAQ。
 * 颜色沿用站点主色（indigo #4f46e5 / violet #7c3aed），不引入新的视觉语言。
 */

.tp-validator-main {
  --tp-sm-accent: #4f46e5;
  --tp-sm-accent-soft: #6366f1;
  --tp-sm-violet: #7c3aed;
  --tp-sm-text: #0f172a;
  --tp-sm-muted: #64748b;
  --tp-sm-border: rgba(15, 23, 42, 0.08);
  --tp-sm-content-max: 100%;
}

/* ---------------------------------------------------------------- 产品截图框 */

.tp-vd-figure {
  max-width: var(--tp-sm-content-max);
  margin: 0 auto 8px;
  padding: 0;
}

.tp-vd-figure--slim {
  max-width: 1120px;
  margin: 36px auto 0;
}

.tp-vd-figure__frame {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--tp-sm-border);
  background: #fff;
  box-shadow: 0 18px 48px -24px rgba(15, 23, 42, 0.28), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.tp-vd-figure__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tp-vd-figure__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2e8f0;
}

.tp-vd-figure__dot:first-child {
  background: #fca5a5;
}

.tp-vd-figure__dot:nth-child(2) {
  background: #fcd34d;
}

.tp-vd-figure__dot:nth-child(3) {
  background: #86efac;
}

.tp-vd-figure__url {
  margin-left: 8px;
  font-size: 11.5px;
  line-height: 1;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-vd-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.tp-vd-figcaption {
  margin: 12px 2px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--tp-sm-muted);
}

/* ------------------------------------------------------------------ 页签名 */

.tp-vd-tabname {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--tp-sm-accent);
  font-size: 13px;
  font-weight: 700;
}

/* -------------------------------------------------------------- 对比示意图 */

.tp-vd-compare {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--tp-sm-border);
  background: #fff;
}

.tp-vd-compare__prompt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

.tp-vd-compare__tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--tp-sm-muted);
}

.tp-vd-compare__prompt code {
  font-family: var(--font-mono, Menlo, Consolas, monospace);
  font-size: 12px;
  color: #334155;
  word-break: break-all;
}

.tp-vd-compare__split {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

/* 提示词 → 两条链路的连线：中间一根竖线，再用横臂分到两条通道 */
.tp-vd-compare__split::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 1px;
  height: 22px;
  background: rgba(15, 23, 42, 0.14);
}

.tp-vd-compare__split::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 25%;
  right: 25%;
  height: 1px;
  background: rgba(15, 23, 42, 0.14);
}

.tp-vd-lane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--tp-sm-border);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.06), rgba(255, 255, 255, 0));
}

.tp-vd-lane::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 1px;
  height: 12px;
  background: rgba(15, 23, 42, 0.14);
}

.tp-vd-lane--third {
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.07), rgba(255, 255, 255, 0));
}

.tp-vd-lane__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-sm-accent);
}

.tp-vd-lane--third .tp-vd-lane__tag {
  color: #0284c7;
}

.tp-vd-lane strong {
  font-size: 14px;
  color: var(--tp-sm-text);
}

.tp-vd-lane__meta {
  font-size: 12.5px;
  color: var(--tp-sm-muted);
}

.tp-vd-compare__note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
}

/* ------------------------------------------------------------------ 步骤 */

.tp-vd-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tpVdStep;
}

.tp-vd-step {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--tp-sm-border);
  background: #fff;
}

.tp-vd-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--tp-sm-accent);
  font-size: 13px;
  font-weight: 800;
}

.tp-vd-step__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tp-sm-text);
}

.tp-vd-step__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tp-sm-muted);
}

.tp-vd-start-note {
  margin: 18px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 12.5px;
  line-height: 1.6;
  color: #64748b;
}

.tp-vd-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ------------------------------------------------------------------ FAQ */

.tp-vd-faq-section {
  padding-bottom: clamp(40px, 3vw, 56px);
}

.tp-vd-faq {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-vd-faq__item {
  border-radius: 12px;
  border: 1px solid var(--tp-sm-border);
  background: #fff;
  padding: 0 18px;
}

.tp-vd-faq__item summary {
  position: relative;
  padding: 15px 24px 15px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tp-sm-text);
  cursor: pointer;
  list-style: none;
}

.tp-vd-faq__item summary::-webkit-details-marker {
  display: none;
}

.tp-vd-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  color: #94a3b8;
}

.tp-vd-faq__item[open] summary::after {
  content: "–";
}

.tp-vd-faq__item p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--tp-sm-muted);
}

/* --------------------------------------------------------------- 底部 CTA */

.tp-vd-cta-ghost {
  margin-left: 10px;
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

.tp-vd-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

/* --------------------------------------------------------------- 响应式 */

@media (max-width: 900px) {
  .tp-vd-steps {
    grid-template-columns: 1fr;
  }

  .tp-vd-compare__split {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .tp-vd-compare__split::before,
  .tp-vd-compare__split::after,
  .tp-vd-lane::before {
    display: none;
  }

  .tp-vd-figure--slim {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .tp-vd-figure__bar {
    height: 30px;
  }

  .tp-vd-figure__url {
    display: none;
  }

  .tp-vd-compare {
    padding: 16px;
  }

  .tp-vd-cta-ghost {
    margin-left: 0;
  }
}
