:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5f6f89;
  --line: #dfe6ef;
  --paper: #f7f9fc;
  --blue: #2563eb;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-line-bg {
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg width='1440' height='760' viewBox='0 0 1440 760' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-80 185C110 90 234 88 380 178C544 280 686 320 870 225C1022 146 1155 122 1520 224' stroke='%232563eb' stroke-opacity='.1' stroke-width='2'/%3E%3Cpath d='M-92 332C96 238 258 252 442 365C616 472 750 502 934 397C1098 304 1242 284 1538 382' stroke='%2310b981' stroke-opacity='.11' stroke-width='2'/%3E%3Cpath d='M-40 590C154 430 318 426 514 552C686 662 838 684 1018 568C1192 456 1328 456 1488 552' stroke='%2314213d' stroke-opacity='.07' stroke-width='2'/%3E%3Cpath d='M194 -84C286 66 292 198 210 342C126 489 118 610 226 806' stroke='%232563eb' stroke-opacity='.08' stroke-width='2'/%3E%3Cpath d='M1192 -102C1080 72 1074 214 1182 382C1288 548 1292 654 1180 840' stroke='%2310b981' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E"),
    radial-gradient(circle at 18% 22%, rgba(37, 99, 235, 0.08), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(16, 185, 129, 0.08), transparent 30%);
  background-repeat: no-repeat;
    background-position: center top;
    background-size: 100vw 100vh, 780px 520px, 680px 500px;
  }

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(100%, 1440px);
  height: 68px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 0 clamp(18px, 3vw, 32px);
  background: rgba(247, 249, 252, 0.86);
  border-bottom: 1px solid rgba(223, 230, 239, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

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

.site-nav a:hover {
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.auth-entry,
.auth-user-box {
  align-items: center;
  gap: 8px;
}

.auth-entry {
  display: flex;
  margin-left: auto;
}

.auth-user-box.flex {
  display: flex;
}

.auth-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.auth-link:hover {
  background: #f3f4f6;
}

.hero {
  width: min(100%, 1440px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0 auto;
  padding: 96px clamp(18px, 3vw, 32px) 36px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.hero-text {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 880px;
  margin: 24px 0 0;
}

.hero-facts div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.hero-sell {
  max-width: 760px;
  margin: 18px 0 0;
  color: #334155;
  font-size: 16px;
  font-weight: 800;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-tags span {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 20px;
  font-weight: 800;
}

.primary-action {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.secondary-action {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: min(80vh, 760px);
  border: 1px solid rgba(223, 230, 239, 0.96);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 33, 61, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(20, 33, 61, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: 36px 36px;
  box-shadow: 0 30px 90px rgba(20, 33, 61, 0.14);
}

.stage-toolbar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.stage-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.stage-toolbar span:nth-child(1) {
  background: var(--red);
}

.stage-toolbar span:nth-child(2) {
  background: var(--yellow);
}

.stage-toolbar span:nth-child(3) {
  background: var(--green);
}

.stage-toolbar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.photo-transform {
  position: relative;
  min-height: calc(min(80vh, 760px) - 46px);
  padding: 22px;
}

.transform-set {
  position: absolute;
  inset: 22px;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
  gap: 22px;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
}

.transform-set.is-active {
  opacity: 1;
}

.original-grid {
  position: relative;
  overflow: hidden;
  padding: 34px 14px 14px;
  border: 1px solid rgba(223, 230, 239, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.original-grid::before {
  content: "10 张原图";
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.original-thumb {
  position: absolute;
  width: 21%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 4px;
  object-fit: contain;
  border: 5px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 33, 61, 0.14);
}

.original-thumb:nth-child(1) {
  top: 14%;
  left: 5%;
  transform: rotate(-7deg);
}

.original-thumb:nth-child(2) {
  top: 9%;
  left: 28%;
  transform: rotate(5deg);
}

.original-thumb:nth-child(3) {
  top: 16%;
  left: 51%;
  transform: rotate(-4deg);
}

.original-thumb:nth-child(4) {
  top: 11%;
  left: 73%;
  transform: rotate(6deg);
}

.original-thumb:nth-child(5) {
  top: 39%;
  left: 14%;
  transform: rotate(4deg);
}

.original-thumb:nth-child(6) {
  top: 36%;
  left: 38%;
  transform: rotate(-6deg);
}

.original-thumb:nth-child(7) {
  top: 43%;
  left: 62%;
  transform: rotate(5deg);
}

.original-thumb:nth-child(8) {
  top: 66%;
  left: 7%;
  transform: rotate(6deg);
}

.original-thumb:nth-child(9) {
  top: 64%;
  left: 32%;
  transform: rotate(-4deg);
}

.original-thumb:nth-child(10) {
  top: 66%;
  left: 58%;
  transform: rotate(7deg);
}

.result-preview {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(223, 230, 239, 0.94);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08)),
    rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.result-preview::after {
  content: "";
  position: absolute;
  inset: -30%;
  opacity: 0;
  transform: translateX(-55%) rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.72),
    transparent
  );
}

.result-preview.is-exporting::after {
  animation: exportShine 0.9s ease-out both;
}

@keyframes exportShine {
  0% {
    opacity: 0;
    transform: translateX(-55%) rotate(18deg);
  }

  20% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translateX(55%) rotate(18deg);
  }
}

.result-label {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.result-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(min(80vh, 760px) - 120px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(20, 33, 61, 0.2);
}

.export-pill {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.features,
.workflow,
.audience,
.pricing,
.faq,
.use-case-strip,
.style-strip {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 86px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width:960px;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-grid,
.step-grid,
.audience-grid,
.plan-grid,
.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

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

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

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

.feature-card,
.step-card {
  min-height: 150px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20, 33, 61, 0.07);
}

.feature-card span,
.step-card span {
  color: var(--blue);
  font-weight: 900;
}

.feature-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.use-case-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.use-case-strip h2 {
  font-size: clamp(26px, 3vw, 42px);
}

.use-case-strip p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.style-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 28px;
  background: #101828;
  color: #fff;
}

.style-copy .eyebrow {
  color: #93c5fd;
}

.style-copy p:not(.eyebrow) {
  color: #cbd5e1;
  line-height: 1.7;
}

.style-marquee {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.style-marquee span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.audience-card,
.plan-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20, 33, 61, 0.06);
}

.audience-card,
.faq-item {
  padding: 24px;
}

.audience-card p,
.plan-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing {
  background: #eef6f4;
}

.plan-card {
  padding: 28px;
}

.plan-card-featured {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 20px 52px rgba(37, 99, 235, 0.12);
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  line-height: 1.6;
}

.plan-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.detail-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 116px clamp(18px, 5vw, 56px) 72px;
}

.detail-hero {
  max-width: 820px;
  margin-bottom: 42px;
}

.detail-hero p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

@media (max-width: 900px) {
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 70vh;
  }

  .photo-transform {
    min-height: calc(70vh - 46px);
  }

  .transform-set {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(150px, 0.7fr) minmax(260px, 1.3fr);
    gap: 16px;
  }

  .result-image {
    max-height: calc(70vh - 280px);
  }

  .feature-grid,
  .step-grid,
  .audience-grid,
  .plan-grid,
  .faq-list,
  .use-case-strip,
  .detail-grid,
  .style-strip {
    grid-template-columns: 1fr;
  }

  .use-case-strip {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding: 0 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .site-nav {
    gap: 8px;
    font-size: 12px;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-facts div {
    min-height: auto;
  }

  .features,
  .workflow,
  .audience,
  .pricing,
  .faq,
  .use-case-strip,
  .style-strip {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .detail-main {
    padding-top: 96px;
  }

  .auth-link {
    font-size: 12px;
  }

  .hero-stage {
    min-height: 76vh;
    border-radius: 18px;
  }

  .photo-transform {
    min-height: calc(76vh - 46px);
    padding: 12px;
  }

  .transform-set {
    inset: 12px;
    grid-template-rows: minmax(120px, 0.55fr) minmax(300px, 1.45fr);
    gap: 12px;
  }

  .original-grid {
    padding: 30px 10px 10px;
    border-radius: 14px;
  }

  .original-grid::before {
    top: 10px;
    left: 10px;
  }

  .original-thumb {
    width: 19%;
    padding: 3px;
    border-width: 3px;
    border-radius: 9px;
  }

  .original-thumb:nth-child(1) {
    top: 16%;
    left: 5%;
  }

  .original-thumb:nth-child(2) {
    top: 11%;
    left: 28%;
  }

  .original-thumb:nth-child(3) {
    top: 16%;
    left: 51%;
  }

  .original-thumb:nth-child(4) {
    top: 12%;
    left: 74%;
  }

  .original-thumb:nth-child(5) {
    top: 41%;
    left: 15%;
  }

  .original-thumb:nth-child(6) {
    top: 37%;
    left: 39%;
  }

  .original-thumb:nth-child(7) {
    top: 42%;
    left: 63%;
  }

  .original-thumb:nth-child(8) {
    top: 65%;
    left: 8%;
  }

  .original-thumb:nth-child(9) {
    top: 62%;
    left: 33%;
  }

  .original-thumb:nth-child(10) {
    top: 65%;
    left: 59%;
  }

  .result-preview {
    padding: 14px;
    border-radius: 12px;
  }

  .result-image {
    max-height: calc(76vh - 260px);
    border-radius: 10px;
  }

  .export-pill {
    right: 14px;
    bottom: 14px;
  }
}
#hero-title,
#features-title,
#workflow-title,
#style-title,
#audience-title,
#pricing-title,
#faq-title {
  line-height: 1.15;
}

@media (max-width: 768px) {
  #hero-title,
  #features-title,
  #workflow-title,
  #style-title,
  #audience-title,
  #pricing-title,
  #faq-title {
    line-height: 1.25;
  }
}
