:root {
  --paper: #faf6ed;
  --paper-deep: #f3eadb;
  --ink: #292522;
  --muted: #746c63;
  --hairline: rgba(57, 47, 38, 0.14);
  --seal: #b64c35;
  --seal-dark: #983c2a;
  --ivory: #fffdf8;
  --sage: #74836d;
  --shadow: 0 22px 70px rgba(66, 48, 29, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(100deg, #fffaf0 0%, var(--paper) 48%, #f8f0e4 100%);
  font-family: "Noto Serif SC", "Songti SC", serif;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--hairline);
  background: rgba(250, 246, 237, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fffaf2;
  background: linear-gradient(145deg, var(--seal), #8d3225);
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 24px;
  box-shadow: 0 10px 28px rgba(150, 55, 38, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  font-weight: 600;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  color: #403936;
  font-size: 16px;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--seal);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(52px, 7vw, 104px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 98px) clamp(24px, 5vw, 72px) 72px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.subtitle {
  margin: 28px 0 0;
  color: #59514b;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.7;
}

.brush-line {
  width: 104px;
  height: 2px;
  margin: 54px 0 56px;
  background: linear-gradient(90deg, var(--seal), var(--seal) 62%, transparent 62%, transparent 72%, var(--seal) 72%);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.benefits article {
  min-width: 0;
}

.benefits span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid rgba(182, 76, 53, 0.44);
  border-radius: 50%;
  color: var(--seal);
}

.benefits strong,
.benefits small {
  display: block;
}

.benefits strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.benefits small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.creator-panel {
  display: grid;
  gap: 24px;
}

.upload-preview {
  position: relative;
  display: block;
  min-height: 448px;
  overflow: hidden;
  border-radius: 8px;
  background: #dde8ec;
  box-shadow: var(--shadow);
  cursor: pointer;
}

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

.upload-preview > img {
  width: 100%;
  height: 100%;
  min-height: 448px;
  object-fit: cover;
  transition: transform 600ms ease;
}

.upload-preview:hover > img {
  transform: scale(1.025);
}

.upload-card {
  position: absolute;
  bottom: 34px;
  left: 34px;
  display: grid;
  gap: 8px;
  width: 212px;
  padding: 23px 24px;
  border-radius: 8px;
  color: #fff;
  background: rgba(34, 54, 66, 0.72);
  backdrop-filter: blur(14px);
}

.upload-card svg {
  width: 28px;
  height: 28px;
}

.upload-card strong {
  font-size: 22px;
}

.upload-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.printed-qr-chip {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 14px 36px rgba(27, 24, 20, 0.18);
  font-size: 13px;
  font-weight: 600;
}

.mini-qr {
  display: block;
  background:
    linear-gradient(90deg, var(--ink) 50%, transparent 0) 0 0 / 8px 8px,
    linear-gradient(var(--ink) 50%, transparent 0) 0 0 / 8px 8px,
    #fffdf8;
}

.mini-qr {
  width: 38px;
  height: 38px;
  border: 5px solid #fffdf8;
  outline: 1px solid rgba(41, 37, 34, 0.22);
}

.qr-process-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(182, 76, 53, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
}

.qr-process-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
}

.qr-process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.step-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--seal);
}

.step-pills small {
  padding: 6px 9px;
  border: 1px solid rgba(182, 76, 53, 0.2);
  border-radius: 999px;
  background: rgba(255, 247, 240, 0.84);
  font-size: 12px;
}

.prompt-row label,
.function-picker legend,
.result-preview > p,
.section-heading p {
  display: block;
  margin-bottom: 10px;
  color: #625a53;
  font-size: 14px;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 0 0 0 20px;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.input-wrap span {
  flex: 0 0 auto;
  padding-right: 18px;
  color: #9c948b;
  font-size: 13px;
}

.function-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.function-picker legend {
  width: 100%;
}

.function-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: #443d38;
  background: rgba(255, 253, 248, 0.68);
  cursor: pointer;
  transition: 180ms ease;
}

.function-chip:hover,
.function-chip.is-active {
  border-color: rgba(182, 76, 53, 0.72);
  color: var(--seal);
  background: rgba(255, 247, 240, 0.92);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.primary-button {
  min-width: 244px;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  color: #fffaf2;
  background: linear-gradient(135deg, var(--seal), var(--seal-dark));
  box-shadow: 0 18px 32px rgba(169, 65, 43, 0.24);
  cursor: pointer;
  font-size: 18px;
  transition: 180ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(169, 65, 43, 0.28);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.action-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #847b72;
  font-size: 14px;
}

.print-story {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px clamp(24px, 5vw, 72px) 78px;
}

.print-story .section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.printed-photo-demo {
  display: grid;
  grid-template-columns: minmax(460px, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
}

.paper-photo {
  position: relative;
  padding: 18px 18px 88px;
  border: 1px solid rgba(57, 47, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 26px 84px rgba(66, 48, 29, 0.14);
  transform: rotate(-1deg);
}

.paper-photo > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  bottom: 24px;
  left: 28px;
  display: grid;
  gap: 5px;
}

.photo-caption span {
  color: #8a8178;
  font-size: 12px;
}

.photo-caption strong {
  font-size: 18px;
  font-weight: 500;
}

.qr-sticker {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: grid;
  grid-template-rows: 72px auto;
  gap: 6px;
  justify-items: center;
  width: 94px;
  padding: 10px;
  border: 1px solid rgba(41, 37, 34, 0.14);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(27, 24, 20, 0.12);
}

.qr-code-art {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: contain;
}

.qr-sticker small {
  color: #4e4741;
  font-size: 11px;
}

.scan-preview {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(41, 37, 34, 0.16);
  border-radius: 28px;
  background: #2a2623;
  box-shadow: 0 28px 62px rgba(34, 28, 23, 0.24);
}

.phone-frame > img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  object-fit: cover;
}

.phone-play {
  position: absolute;
  top: 46%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(41, 37, 34, 0.82);
  background: rgba(255, 253, 248, 0.76);
  transform: translate(-50%, -50%);
}

.phone-play svg {
  margin-left: 3px;
  fill: currentColor;
}

.phone-bar {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  padding: 9px 10px;
  border-radius: 999px;
  color: #fffdf8;
  background: rgba(31, 27, 24, 0.62);
  text-align: center;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.number-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(182, 76, 53, 0.42);
  border-radius: 50%;
  color: var(--seal);
  font-size: 13px;
}

.scan-preview h3 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 500;
}

.scan-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.possibilities {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(460px, 1.22fr);
  gap: clamp(36px, 5vw, 72px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 58px clamp(24px, 5vw, 72px) 72px;
  border-top: 1px solid rgba(57, 47, 38, 0.08);
}

.section-heading {
  grid-column: 1 / -1;
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.35;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 16px 40px rgba(68, 49, 29, 0.07);
}

.before-after {
  position: relative;
  height: 122px;
  overflow: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.before-after::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
  content: "";
}

.before-after span {
  position: absolute;
  inset: 0 50% 0 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: saturate(0.45) blur(1px);
}

.before-after > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  color: #fff;
  background: rgba(35, 32, 29, 0.56);
  transform: translate(-50%, -50%);
}

.mountain {
  background-image: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=600&q=80");
}

.dog {
  background-image: url("https://images.unsplash.com/photo-1552053831-71594a27632d?auto=format&fit=crop&w=600&q=80");
}

.cat {
  background-image: url("https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?auto=format&fit=crop&w=600&q=80");
}

.feature-card h3 {
  margin: 0 0 9px;
  font-size: 22px;
  font-weight: 500;
}

.feature-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--seal);
  font-size: 14px;
}

.result-preview {
  align-self: stretch;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #d7dfd3;
  box-shadow: var(--shadow);
}

.video-frame > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.2;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(38, 34, 30, 0.78);
  background: rgba(255, 253, 248, 0.68);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.play-button svg {
  margin-left: 4px;
  fill: currentColor;
}

.video-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(18, 22, 17, 0.72));
}

.progress {
  position: relative;
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
}

.progress span {
  position: absolute;
  inset: 0 58% 0 0;
  border-radius: inherit;
  background: var(--seal);
}

.closing {
  max-width: 1320px;
  margin: 0 auto;
  padding: 70px clamp(24px, 5vw, 72px);
  text-align: center;
}

.closing p {
  margin: 20px 0 26px;
  color: #5e554e;
  font-size: 17px;
  letter-spacing: 0;
}

.closing span {
  display: block;
  width: 58px;
  height: 1px;
  margin: 0 auto;
  background: rgba(182, 76, 53, 0.54);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--hairline);
  color: #928a82;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 52px;
}

svg {
  width: 1em;
  height: 1em;
  stroke-width: 1.7;
}

@media (max-width: 980px) {
  .site-header {
    height: 74px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .printed-photo-demo,
  .possibilities {
    grid-template-columns: 1fr;
  }

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

  .upload-preview,
  .upload-preview > img {
    min-height: 360px;
  }

  .feature-card {
    grid-template-columns: 160px 1fr;
  }

  .scan-preview {
    grid-template-columns: 170px 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 18px;
  }

  .brand strong {
    font-size: 17px;
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: 46px;
  }

  .subtitle {
    font-size: 19px;
  }

  .brush-line {
    margin: 36px 0;
  }

  .upload-card {
    bottom: 20px;
    left: 20px;
    width: 190px;
  }

  .printed-qr-chip {
    right: 18px;
    bottom: 18px;
  }

  .qr-process-card,
  .scan-preview {
    grid-template-columns: 1fr;
  }

  .qr-process-card {
    display: grid;
  }

  .step-pills {
    flex-wrap: wrap;
  }

  .paper-photo {
    padding: 12px 12px 84px;
    transform: none;
  }

  .photo-caption {
    left: 18px;
    max-width: calc(100% - 128px);
  }

  .qr-sticker {
    grid-template-rows: 62px auto;
    width: 84px;
  }

  .phone-frame {
    max-width: 230px;
  }

  .function-chip {
    width: 100%;
    justify-content: center;
  }

  .primary-button {
    width: 100%;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .before-after {
    height: 168px;
  }

  .video-controls {
    gap: 10px;
    padding: 16px;
    font-size: 12px;
  }

  .site-footer,
  .site-footer nav {
    flex-direction: column;
    gap: 14px;
  }
}
