:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #68736f;
  --line: #dfe7e2;
  --bg: #f7faf8;
  --panel: #ffffff;
  --green: #0d7c66;
  --green-dark: #075c4a;
  --rose: #dc6b7a;
  --gold: #c79235;
  --shadow: 0 20px 60px rgba(31, 47, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 248, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.actions,
.wizard-actions,
.field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
}

.hero,
.section,
.page-title,
.create-shell,
.status-page,
.result-layout,
.contact-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 34px;
  min-height: calc(100vh - 86px);
}

.hero h1,
.page-title h1,
.create-intro h1,
.contact-page h1,
.status-page h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 8vw, 76px);
  line-height: 1.02;
}

.hero-copy,
.page-title p,
.create-intro p,
.status-page p,
.contact-page p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-media {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  background: var(--green);
  color: #fff;
}

.btn.primary:hover {
  background: var(--green-dark);
}

.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.section-head {
  margin-bottom: 18px;
}

.section h2,
.page-title h1,
.create-intro h1,
.result-panel h2,
.contact-form h2 {
  margin-top: 6px;
}

.cards,
.examples-grid,
.template-grid,
.option-grid {
  display: grid;
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card,
.example-card,
.create-form,
.result-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(31, 47, 42, 0.06);
}

.case-card {
  overflow: hidden;
}

.case-card div,
.example-body,
.result-panel,
.contact-form {
  padding: 18px;
}

.case-card h3,
.example-body h2 {
  margin: 10px 0 8px;
}

.case-card p,
.example-body p,
.result-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f4f0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.band {
  max-width: none;
  background: #eaf2ee;
}

.band > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(13, 124, 102, 0.18);
  border-radius: 8px;
  background: #fff;
}

.steps strong {
  display: block;
  color: var(--gold);
  font-size: 30px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

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

.examples-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.compare figure {
  margin: 0;
  background: #fff;
}

.compare figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.create-shell {
  display: grid;
  gap: 22px;
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.progress span {
  padding: 10px;
  border-radius: 8px;
  background: #e4ece8;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.progress span.active {
  background: var(--green);
  color: #fff;
}

.create-form {
  padding: 18px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.option-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card,
.template-card,
.upload-box {
  display: grid;
  gap: 10px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.template-card[hidden] {
  display: none;
}

.option-card input,
.template-card input {
  accent-color: var(--green);
}

.option-card:has(input:checked),
.template-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.12);
}

.template-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.upload-box {
  place-items: center;
  min-height: 170px;
  border-style: dashed;
  text-align: center;
}

.upload-box input {
  max-width: 100%;
}

.upload-box small {
  color: var(--muted);
}

.upload-preview {
  width: 160px;
  margin-top: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.field-row {
  align-items: stretch;
  margin-top: 16px;
}

.field-row label,
.full-field,
.lead-form {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.summary {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
}

.form-message,
[data-lead-message] {
  min-height: 22px;
  color: var(--rose);
}

.status-page {
  display: grid;
  justify-items: center;
  text-align: center;
}

.loader {
  width: 58px;
  height: 58px;
  border: 5px solid #d8e7e1;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.result-image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.result-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.watermark {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--green);
  font-weight: 800;
}

.empty-result {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 420px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

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

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-list span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.site-footer {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .hero,
  .result-layout,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .cards,
  .examples-grid,
  .template-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .option-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    gap: 10px;
  }

  .hero,
  .section,
  .page-title,
  .create-shell,
  .status-page,
  .result-layout,
  .contact-page {
    padding: 30px 14px;
  }

  .cards,
  .examples-grid,
  .template-grid,
  .steps,
  .option-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .field-row {
    display: grid;
  }

  .progress {
    grid-template-columns: repeat(2, 1fr);
  }

  .actions,
  .wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
