/* ==========================================================================
   首页（/）—— 在 theme.css 的设计令牌之上叠加营销版块
   宣纸 + 墨 + 朱印：暖白纸底、墨黑正文、朱砂单点强调。
   ========================================================================== */

/* ---------------- hero ---------------- */
.hero {
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 320px at 78% 10%, rgba(180, 52, 42, 0.07), transparent 70%),
    radial-gradient(520px 280px at 6% 92%, rgba(44, 93, 138, 0.06), transparent 70%);
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.hero__copy .h1 { margin: 16px 0 18px; }
.hero__copy .h1 .hl {
  color: var(--seal);
  background: linear-gradient(transparent 62%, var(--seal-soft) 62%);
  padding: 0 2px;
}
.hero__copy .lead { max-width: 50ch; }
.hero__copy .lead strong { color: var(--ink); font-weight: 650; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .dot { background: var(--ok); }

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}
.hero__paper {
  position: relative;
  width: min(100%, 392px);
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: var(--sh-3);
  transform: rotate(-1.6deg);
}
/* The corner "seal" on the hero paper is the brand mark itself: the delivered
   app icon (seal ground + white card + 字 + cut line), not a hand-drawn CSS
   tile. It used to be the old 朱印「写」, which the HanziPress redesign retired.
   drop-shadow rather than box-shadow — box-shadow would show its square
   corners behind the icon's rounded ones. */
.hero__paper::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -16px;
  width: 46px;
  height: 46px;
  background: url("/app-icon.svg") center / contain no-repeat;
  filter: drop-shadow(0 6px 14px rgba(27, 25, 22, 0.18));
}
.hero__paper img { width: 100%; height: auto; border-radius: 2px; }
.hero__art .chip {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--line-2);
  box-shadow: var(--sh-1);
  font-weight: 600;
}
.hero__art .chip.c1 { top: 6px; left: -8px; }
.hero__art .chip.c2 { top: 42%; right: -10px; }
.hero__art .chip.c3 { bottom: 14px; left: 18px; }

/* ---------------- 数据规模条 ---------------- */
.statband {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -1px;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.statband__i { padding: 16px 20px; border-right: 1px solid var(--line); }
.statband__i:last-child { border-right: none; }
.statband__n { font-family: var(--f-serif); font-size: 26px; line-height: 1.1; }
.statband__l { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ---------------- 信任条 ---------------- */
.trust {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}
.trust__in {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.trust .cap {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.trust .names {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--f-serif);
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------------- 步骤 ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}
.step__n {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--f-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--seal-line);
}
.step .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--seal);
}
.step h3 { font-size: 17px; font-weight: 650; margin: 8px 0 6px; }
.step p { color: var(--ink-3); font-size: 13.5px; line-height: 1.65; }

/* ---------------- 功能卡 ---------------- */
.feat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.feat:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.feat__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--seal-soft);
  border: 1px solid var(--seal-line);
  color: var(--seal);
}
.feat__icon svg { width: 21px; height: 21px; }
.feat h3 { font-size: 16px; font-weight: 650; }
.feat p { color: var(--ink-3); font-size: 13.5px; line-height: 1.65; }

/* ---------------- 快速开始 ---------------- */
.tpl-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tpl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.tpl:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--seal-line); }
.tpl__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tpl__top h3 { font-size: 16px; font-weight: 650; }
.tpl p { color: var(--ink-3); font-size: 13px; }
.tpl__go { margin-top: auto; font-size: 12.5px; font-weight: 650; color: var(--seal); }
.tpl:hover .tpl__go { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  padding: 15px 18px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-serif);
  font-size: 20px;
  line-height: 1;
  color: var(--seal);
  transition: transform 0.18s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---------------- CTA ----------------
   .cta-band now lives in the shared design system (public/theme.css) so the
   Next.js content pages can reuse it; only the mobile padding override stays. */

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero__art { min-height: auto; padding: 12px 0 20px; }
  .statband { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statband__i:nth-child(2) { border-right: none; }
  .steps, .tpl-row { grid-template-columns: minmax(0, 1fr); }
  .trust__in { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
  .hero { padding: 34px 0 30px; }
  .cta-band { padding: 34px 22px; }
  .statband__i { padding: 13px 16px; }
  .statband__n { font-size: 22px; }
}
