/* home.css —— 首页、示例页、法律页、404 的页面专属样式。令牌来自 style.css。 */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-split { padding: 48px 0 56px; }
.hero-note { margin-top: 16px; }
.sample-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); max-width: 100%; }
.hero-sample .sample-frame { max-height: 520px; overflow: auto; }
.hero-sample .tpl { min-height: 0; }
.tpl-card { display: flex; flex-direction: column; gap: 4px; }
.tpl-card .btn { margin-top: auto; align-self: flex-start; }
.tpl-card h3 { margin-top: 12px; }
.thumb { height: 280px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; pointer-events: none; }
.thumb .tpl { min-height: 280px; padding: 20px 14px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1em; max-width: 720px; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; font: 600 1.4rem/1.2 var(--font-display); color: var(--accent); width: 32px; }
.occasion-title { margin-top: 32px; }
.occasion { margin-bottom: 0; }
.price-line { font: 600 1.35rem/1.4 var(--font-display); }
.final-cta { text-align: center; }
.final-cta .cta-row { justify-content: center; }
/* 示例页 */
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ex-preview .sample-frame { max-height: 640px; overflow: auto; }
.ex-preview .tpl { min-height: 0; }
.sample-text { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--ink); }
.sample-text p { margin: 0 0 .5em; }
.ex-text h3 { font-size: .95rem; font-family: var(--font-body); color: var(--ink-2); font-weight: 600; margin-bottom: .4em; }
/* 法律页、404 */
.legal { padding-top: 40px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal ul { margin-bottom: 1em; }
.legal code { background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.legal a { overflow-wrap: anywhere; }
.todo { background: var(--accent-soft); border-bottom: 1px dashed var(--accent); padding: 0 4px; }
.notfound { padding-top: 72px; min-height: 50vh; }
@media (max-width: 860px) {
  .hero-grid, .ex-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-sample .sample-frame { max-height: 420px; }
  .tpl-card .btn { align-self: stretch; }
}
