:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --border: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0066cc;
  --yellow: #ffdd00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.07;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

h3 {
  font-size: 19px;
}

p {
  margin: 0;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 52px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.brand img {
  width: 24px;
  height: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav a {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  border: 0;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--blue-hover);
  text-decoration: none;
}

.btn.small {
  padding: 6px 14px;
  font-size: 14px;
}

.btn.ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn.ghost:hover {
  background: rgba(0, 113, 227, 0.08);
}

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero p.lead {
  margin: 20px auto 32px;
  max-width: 620px;
  color: var(--muted);
  font-size: 21px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero .note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

section.block {
  padding: 72px 0;
}

section.block.alt {
  background: var(--surface);
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 19px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* 四个为一组的卡片用两列排布，避免出现 3 + 1 的孤行 */
.grid.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.steps li {
  list-style: none;
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
}

.steps ul {
  margin: 0;
  padding: 0;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.faq details {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.cta {
  text-align: center;
  padding: 80px 0;
}

.cta p {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 19px;
}

.site-footer {
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

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

/* 答案块：每个 H3 是一个问句，紧随的段落第一句就是结论。
   结构刻意保持扁平，方便生成式引擎整段摘取。 */
.answers {
  display: grid;
  gap: 18px;
}

.answer {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.answer h3 {
  margin-bottom: 10px;
}

.answer p {
  color: var(--muted);
  font-size: 16px;
}

.answer p + p {
  margin-top: 10px;
}

/* 对比表 */
.compare-wrap {
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  font-size: 15px;
}

.compare th,
.compare td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

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

.compare td:first-child {
  font-weight: 500;
}

/* 模板预览图：保留原始宽高比，避免加载时布局跳动 */
.card img.tpl-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .nav .hide-sm {
    display: none;
  }
}
