:root {
  --ink: #171313;
  --muted: #6b5f57;
  --paper: #fff8eb;
  --surface: #fffdf7;
  --line: #261f1a;
  --lime: #b7f558;
  --coral: #ff5a3d;
  --blue: #2f6df6;
  --yellow: #ffd942;
  --teal: #18b6a3;
  --shadow: 0 22px 60px rgba(23, 19, 19, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 19, 19, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 19, 19, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  font-family: "Trebuchet MS", "Aptos", sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 248, 235, 0.92);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
nav,
.channel-row,
.hero-actions,
.tabs,
.lang-switch {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--coral);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--line);
}

nav {
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 800;
}

.lang-switch {
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
}

.lang-option {
  min-width: 42px;
  min-height: 32px;
  padding: 6px 10px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.lang-option.active {
  color: white;
  background: var(--ink);
}

main {
  overflow: hidden;
}

.is-zh {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

.is-zh h1,
.is-zh h2 {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-weight: 900;
  line-height: 1.05;
}

.is-zh h1 {
  max-width: 760px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(34px, 6vw, 82px) clamp(18px, 6vw, 80px) 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text,
.section-heading p,
.form-intro p,
.success-panel p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.45;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--line);
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  box-shadow: 2px 2px 0 var(--line);
  transform: translate(3px, 3px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.primary {
  color: white;
  background: var(--ink);
}

.secondary {
  background: var(--yellow);
}

.channel-row {
  flex-wrap: wrap;
  gap: 8px;
}

.channel-row span {
  padding: 8px 10px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-studio {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
}

.phone {
  width: min(72vw, 270px);
  padding: 12px;
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow), 8px 8px 0 var(--line);
}

.phone p {
  margin: 10px 6px 4px;
  font-weight: 900;
}

.phone img {
  display: block;
  width: 100%;
  height: 420px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 18px;
}

.before-card img {
  height: 340px;
}

.before-card {
  position: absolute;
  left: 0;
  top: 48px;
  rotate: -8deg;
  width: min(54vw, 224px);
  background: #d8f6ff;
}

.after-card {
  position: absolute;
  right: 8px;
  bottom: 18px;
  rotate: 5deg;
  background: var(--lime);
}

.poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.poster img {
  filter: saturate(1.1) contrast(1.05);
}

.poster-overlay {
  position: absolute;
  inset: auto 10px 12px 10px;
  padding: 14px;
  color: white;
  background: rgba(23, 19, 19, 0.82);
  border: 2px solid white;
  border-radius: 14px;
}

.poster-overlay .tag,
.example-card .tag {
  display: inline-block;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
}

.poster-overlay h2 {
  margin: 8px 0 4px;
  font-family: "Trebuchet MS", "Aptos", sans-serif;
  font-size: 1.36rem;
  line-height: 1;
}

.poster-overlay strong {
  display: block;
  color: var(--lime);
  font-size: 1.9rem;
}

.poster-overlay p,
.poster-overlay small {
  margin: 6px 0 0;
  color: white;
  font-weight: 800;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 3px solid var(--line);
  background: var(--ink);
  color: white;
}

.proof-band div {
  padding: 28px clamp(18px, 4vw, 52px);
  border-right: 2px solid rgba(255, 255, 255, 0.22);
}

.proof-band strong {
  display: block;
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.proof-band span {
  display: block;
  margin-top: 8px;
  font-weight: 800;
}

.examples,
.form-section,
.faq-section,
.success-panel {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 6vw, 80px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 28px;
}

.tabs {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab {
  padding: 12px 16px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.tab.active {
  background: var(--teal);
  box-shadow: 4px 4px 0 var(--line);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.example-card {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  min-height: 360px;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 7px 7px 0 var(--line);
}

.example-before img,
.example-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-before {
  position: relative;
  min-height: 250px;
  border-right: 2px solid var(--line);
}

.example-before span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 8px;
  background: rgba(255, 253, 247, 0.9);
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 900;
}

.example-after {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 250px;
  padding: 14px;
  color: white;
  isolation: isolate;
}

.example-after::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(23, 19, 19, 0.1), rgba(23, 19, 19, 0.88));
  content: "";
}

.example-after h3 {
  margin: 10px 0 6px;
  font-size: 1.28rem;
  line-height: 1.05;
}

.example-after strong {
  color: var(--lime);
  font-size: 2rem;
  line-height: 1;
}

.example-after p {
  margin: 8px 0 0;
  font-weight: 800;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  background: var(--surface);
  border-block: 3px solid var(--line);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 900;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: var(--lime);
  border: 2px solid var(--line);
  border-radius: 50%;
  content: "✓";
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 30px);
  background: #f3e7ff;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--line);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 8px;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.upload-box {
  min-height: 150px;
  place-items: center;
  padding: 20px;
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.upload-box small,
.privacy-note {
  color: var(--muted);
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.submit-button {
  width: 100%;
  margin-top: 8px;
}

.success-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: center;
  background: var(--lime);
  border-bottom: 3px solid var(--line);
}

.hidden {
  display: none !important;
}

.success-preview {
  padding: 20px;
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 7px 7px 0 var(--line);
  font-weight: 900;
}

.result-frame {
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    linear-gradient(45deg, rgba(23, 19, 19, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(23, 19, 19, 0.06) 25%, transparent 25%),
    var(--paper);
  background-size: 22px 22px;
  border: 2px solid var(--line);
  border-radius: 8px;
}

.generated-canvas {
  display: block;
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 9 / 16;
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--line);
}

.result-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.result-summary {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid rgba(23, 19, 19, 0.14);
}

.result-summary span {
  color: var(--muted);
}

.faq-section {
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faq-grid article {
  min-height: 210px;
  padding: 24px;
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 7px 7px 0 var(--line);
}

.faq-grid h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.08;
}

.faq-grid p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.45;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 80px);
  color: white;
  background: var(--ink);
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero,
  .form-section,
  .success-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-studio {
    min-height: 560px;
  }

  .example-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding-inline: 14px;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .hero-studio {
    min-height: 500px;
  }

  .phone img {
    height: 340px;
  }

  .before-card img {
    height: 300px;
  }

  .before-card {
    left: -6px;
    top: 20px;
  }

  .after-card {
    right: -4px;
    bottom: 12px;
  }

  .proof-band {
    grid-template-columns: 1fr;
  }

  .proof-band div {
    border-right: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.22);
  }

  .example-card,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .example-before {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  footer {
    display: grid;
  }
}
