/* ============================================================
   Sagitnote landing / guide pages — shared styles
   ------------------------------------------------------------
   用于根目录下的 SEO 专题页（*‑alternative / annotate‑word / ai‑feedback 等）。
   依赖 styles.css 的设计令牌与通用组件（.nav/.btn/.section/.faq/.cta-band/.footer），
   这里只补专题页专属版式：紧凑 hero、面包屑、速答框、对比表、
   步骤列表、示例代码块、相关指南卡。纯静态，无 JS 依赖。
   ============================================================ */

/* --- Hero（紧凑变体：.nav 是 fixed，让出 60px） --- */
.lp-hero {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background:
    radial-gradient(ellipse 900px 380px at 50% -140px, var(--accent-soft), transparent 70%),
    var(--bg);
  text-align: center;
}

.lp-hero .section-label { display: inline-block; margin-bottom: 14px; }

.lp-hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 820px;
  margin: 0 auto 18px;
}

.lp-hero-lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 28px;
}

.lp-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.lp-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
}

.lp-chips li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-chips svg { color: var(--accent); flex-shrink: 0; }

/* --- 面包屑（页面顶部导航下方第一条路径线） --- */
.lp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.lp-crumbs a { color: var(--text-secondary); }
.lp-crumbs a:hover { color: var(--accent); }
.lp-crumbs-sep { color: var(--border); }

/* --- 速答框：H1 下第一个"直接回答"块，利于摘要抓取与 AI 引用 --- */
.lp-answer {
  max-width: 760px;
  margin: -26px auto 0;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 15.5px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.lp-answer strong { color: var(--text); font-weight: 600; }

/* --- 正文版式 --- */
.lp-body-text {
  max-width: 760px;
  margin: 0 auto;
}

.lp-prose { font-size: 16px; color: var(--text-secondary); }

.lp-prose p { margin: 0 0 16px; }
.lp-prose p:last-child { margin-bottom: 0; }
.lp-prose strong { color: var(--text); font-weight: 600; }
.lp-prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.lp-prose a:hover { color: var(--accent-hover); }

.lp-prose h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 30px 0 10px;
  letter-spacing: -0.01em;
}

/* 事实限定标注（"as of …"）统一弱化，既诚实又不抢戏 */
.lp-asof {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* --- 对比表 --- */
.lp-table-wrap {
  max-width: 860px;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.lp-table th,
.lp-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.55;
}

.lp-table thead th {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-alt);
  white-space: nowrap;
}

.lp-table tbody tr:last-child td { border-bottom: none; }
.lp-table td:first-child { color: var(--text); font-weight: 500; width: 34%; }
.lp-table td { color: var(--text-secondary); }

/* 差异语义：中性勾/信息符，不拉踩竞品 */
.lp-yes { color: var(--accent-strong); font-weight: 600; }
.lp-no { color: var(--text-muted); }

.lp-table-note {
  max-width: 860px;
  margin: 12px auto 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* --- 步骤列表（编号竖排） --- */
.lp-steps {
  max-width: 760px;
  margin: 0 auto;
  list-style: none;
  counter-reset: lpstep;
}

.lp-steps li {
  counter-increment: lpstep;
  position: relative;
  padding: 0 0 26px 58px;
}

.lp-steps li:last-child { padding-bottom: 0; }

.lp-steps li::before {
  content: counter(lpstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 竖向连接线（最后一步不画） */
.lp-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}

.lp-steps .lp-step-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  padding-top: 7px;
}

.lp-steps .lp-step-desc { font-size: 14.5px; color: var(--text-secondary); }
.lp-steps .lp-step-desc strong { color: var(--text); font-weight: 600; }
.lp-steps .lp-step-desc code {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
}

/* --- 示例输出 / 代码块 --- */
.lp-code {
  max-width: 760px;
  margin: 0 auto;
  background: #0F1A15;
  color: #DCE8E1;
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-family: Menlo, Consolas, 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre;
}

.lp-code-caption {
  max-width: 760px;
  margin: 10px auto 0;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

/* --- 相关指南互链卡 --- */
.lp-related {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lp-related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.lp-related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lp-related-tag {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.lp-related-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.lp-related-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- 行动卡（页中窄版 CTA，区别于页尾 .cta-band） --- */
.lp-inline-cta {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.lp-inline-cta h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.lp-inline-cta p { color: var(--text-secondary); font-size: 15px; margin-bottom: 20px; }
.lp-inline-cta .lp-hero-actions { margin-bottom: 0; }

/* --- FAQ（复用 .faq-list/.faq-item，套宽度容器） --- */
.lp-faq { max-width: 760px; margin: 0 auto; }

/* --- 响应式 --- */
@media (max-width: 768px) {
  .lp-hero { padding: calc(var(--nav-height) + 44px) 0 48px; }
  .lp-hero-title { font-size: 30px; }
  .lp-hero-lede { font-size: 16px; }
  .lp-answer { margin-top: -18px; padding: 20px 22px; font-size: 14.5px; }
  .lp-related { grid-template-columns: 1fr; }
  .lp-steps li { padding-left: 50px; }
  .lp-steps li::before { width: 34px; height: 34px; font-size: 15px; }
  .lp-steps li:not(:last-child)::after { left: 17px; top: 38px; }
}
