/* ==========================================================================
   pages.css — 内页专属：页头横幅、功能对比表、帮助中心、法律条款正文、404
   由 features / pricing / help / about / privacy / terms / 404 引用
   注：features.html 与 pricing.html 另外引用 home.css，
       复用其中的 .split / .mock / .remind-item / .plans / .faq / .cta-band，避免重复造样式
   ========================================================================== */

/* ---------- 内页页头 ---------- */

.page-hero {
  padding: clamp(44px, 4vw, 72px) 0 clamp(36px, 3vw, 56px);
  background:
    radial-gradient(720px 320px at 20% -20%, #e6edff 0%, rgba(230, 237, 255, 0) 64%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
  text-align: center;
}

.page-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-hero .lead {
  margin-top: 16px;
}

/* 面包屑 */
.crumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.crumb a {
  color: var(--muted);
}

.crumb a:hover {
  color: var(--brand);
}

.crumb span {
  margin: 0 6px;
  color: var(--line);
}

/* ---------- 功能对比表 ---------- */

.compare-wrap {
  max-width: 880px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare th,
.compare td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.compare thead th {
  position: sticky;
  top: 0;
  background: var(--surface-mute);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.compare th:not(:first-child),
.compare td:not(:first-child) {
  width: 150px;
  text-align: center;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare tbody th {
  color: var(--text);
  font-weight: 500;
}

.compare tbody tr:hover th,
.compare tbody tr:hover td {
  background: var(--brand-50);
}

/* 分组标题行 */
.compare__group th {
  background: var(--surface-mute);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 打勾 / 打叉 */
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.mark svg {
  width: 13px;
  height: 13px;
}

.mark--yes {
  background: var(--brand-50);
  color: var(--brand);
}

.mark--no {
  background: var(--surface-mute);
  color: #94a3b8;
}

.compare__note {
  max-width: 880px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ---------- 步骤（帮助中心 · 快速上手） ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}

.step {
  position: relative;
  padding: 22px 24px 22px 68px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.step__title {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.step__text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* ---------- 例句卡（可以这样跟小密说） ---------- */

.samples {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .samples {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sample {
  display: flex;
  gap: 11px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  background: var(--surface-soft);
  color: var(--brand-ink);
  font-size: 0.93rem;
  line-height: 1.7;
}

.sample--memo {
  border-left-color: var(--memo);
  background: var(--memo-soft);
  color: #047857;
}

.sample__icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
}

/* ---------- 联系方式卡 ---------- */

.contact-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  text-align: center;
}

.contact-card__title {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.contact-card__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.contact-card__value {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-ink);
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-all;
}

/* ---------- 法律条款 / 长文正文 ---------- */

.prose {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text);
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 1.32rem;
}

.prose h2:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 28px;
  font-size: 1.06rem;
}

.prose p {
  color: var(--text);
  line-height: 1.9;
}

.prose ul {
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
  line-height: 1.9;
}

.prose ul li + li {
  margin-top: 8px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.82em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-200);
}

.prose strong {
  color: var(--ink);
}

/* 条款更新时间 / 提示条 */
.prose__meta {
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.callout {
  padding: 16px 20px;
  border-left: 3px solid var(--warn);
  border-radius: var(--r-md);
  background: var(--warn-soft);
  color: #92400e;
  font-size: 0.92rem;
  line-height: 1.8;
}

/* 目录 */
.toc {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-mute);
}

.toc__title {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.toc ol {
  counter-reset: toc;
  columns: 2;
  column-gap: 28px;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

.toc li {
  counter-increment: toc;
  break-inside: avoid;
  font-size: 0.92rem;
  line-height: 2;
}

.toc li::before {
  content: counter(toc) ". ";
  color: var(--faint);
}

/* ---------- 关于我们：数据条 ---------- */

.stat-row {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  text-align: center;
}

.stat__num {
  color: var(--brand);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat__label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* 技术栈徽章 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- 404 ---------- */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 200px);
  padding: 72px 24px;
  text-align: center;
}

.error-page__code {
  color: var(--brand-200);
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-page__title {
  margin: 16px 0 12px;
  font-size: 1.5rem;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
