:root {
  --bg-0: #fff7f1;
  --bg-1: #ffe8d6;
  --bg-2: #ffd3b0;
  --ink: #1c1410;
  --ink-soft: #5a463a;
  --ink-faint: #8a7264;
  --accent: #ff6a1a;
  --accent-deep: #e4550c;
  --accent-soft: rgba(255, 106, 26, 0.12);
  --line: rgba(28, 20, 16, 0.1);
  --white: #ffffff;
  --shadow-soft: 0 24px 60px rgba(228, 85, 12, 0.18);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  /* 效果对比图 / 贴图示意统一边长 */
  --demo-size: 420px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  background: var(--bg-0);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 70% at 12% -10%, rgba(255, 180, 110, 0.55), transparent 60%),
    radial-gradient(70% 55% at 95% 8%, rgba(255, 106, 26, 0.22), transparent 55%),
    radial-gradient(60% 50% at 70% 95%, rgba(255, 196, 140, 0.35), transparent 60%),
    linear-gradient(165deg, #fffaf6 0%, #ffe9d8 48%, #fff4eb 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  /* 不透底：避免首屏大「免费」贴纸滚过时透到导航中间 */
  backdrop-filter: none;
  background: #fff7f1;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(228, 85, 12, 0.2);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.top-nav .nav-cta {
  margin-left: 0.35rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.top-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
  overflow: visible;
}

.brand-name {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.6vw, 3.05rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--ink);
  position: relative;
  /* 低于 sticky 顶栏，滚动时钻到导航后面 */
  z-index: 1;
  overflow: visible;
}

.brand-name .hl-free-sticker {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -0.28em;
  left: 0.08em;
  z-index: 1;
  width: clamp(5rem, 11vw, 15.2rem);
  height: auto;
  margin: -0.2em 0.28em -0.2em 0;
  transform-origin: center center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
  animation: free-pulse 1.35s ease-in-out infinite;
  pointer-events: none;
}

.brand-name.sm {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
}

.hero-sub {
  margin: 0 0 1.15rem;
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.hero-tags,
.pill-tags {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags li,
.pill-tags li {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 106, 26, 0.22);
  box-shadow: 0 4px 14px rgba(228, 85, 12, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-slogan {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(228, 85, 12, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary.lg,
.btn-ghost.lg {
  min-height: 54px;
  padding-inline: 1.8rem;
  font-size: 1.05rem;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(228, 85, 12, 0.35);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.hero-glow {
  position: absolute;
  width: min(92%, 520px);
  aspect-ratio: 4 / 3;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.28) 0%, rgba(255, 106, 26, 0) 70%);
  filter: blur(10px);
  animation: pulse-glow 5.5s ease-in-out infinite;
}

.hero-shot {
  position: relative;
  width: min(100%, 460px);
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  animation: float-y 6s ease-in-out infinite;
}

.story,
.features,
.privacy,
.download,
.showcases,
.faq,
.workflow {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
}

.story {
  border-top: 1px solid var(--line);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 1.5rem 2rem;
  align-items: center;
}

.story-inner {
  max-width: 42rem;
}

.story-badge {
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(340px, 100%);
  filter: drop-shadow(0 16px 32px rgba(228, 85, 12, 0.4));
}

.story-badge img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
  animation: free-pulse 1.35s ease-in-out infinite;
}

@keyframes free-pulse {
  0%, 100% { transform: scale(0.92) rotate(-4deg); }
  50% { transform: scale(1.12) rotate(-2deg); }
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.section-lead {
  margin: -0.4rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.story-text {
  margin: 0;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.features-head {
  margin-bottom: 1.6rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 20, 16, 0.08);
  box-shadow: 0 10px 28px rgba(228, 85, 12, 0.06);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.feature-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, color 0.35s ease;
}

.feature-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.feature-link {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-deep);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: rgba(255, 106, 26, 0.35);
  box-shadow:
    0 18px 40px rgba(228, 85, 12, 0.16),
    0 0 0 1px rgba(255, 106, 26, 0.08);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  color: #fff;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.feature-card:hover .feature-link {
  opacity: 1;
  transform: translateX(4px);
}

.feature-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* —— 可拖动前后对比（非视频） —— */
.showcase {
  display: grid;
  grid-template-columns: var(--demo-size) minmax(0, 1fr);
  gap: 1.6rem 2rem;
  align-items: center;
  margin-bottom: 2rem;
  justify-content: start;
}

.showcase:last-child {
  margin-bottom: 0;
}

/* 文左图右：列宽与贴图区 workflow 一致，避免图落在 1fr 列里显得居中 */
.showcase-flip {
  grid-template-columns: minmax(0, 1fr) var(--demo-size);
}

.showcase-flip .showcase-media {
  order: 2;
  justify-self: stretch;
}

.showcase-flip .showcase-copy {
  order: 1;
}

.showcase-copy h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
}

.showcase-copy p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.compare {
  --pos: 50%;
  position: relative;
  width: var(--demo-size);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin-inline: 0;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #ddd;
}

.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-after,
.compare-before {
  position: absolute;
  inset: 0;
}

.compare-before-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 只露出左侧「处理前」；--pos 由拖动手柄写入 */
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  z-index: 3;
  pointer-events: none;
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  grid-auto-flow: column;
  gap: 5px;
}

.compare-knob i {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

.compare-knob i:first-child {
  border-width: 5px 7px 5px 0;
  border-color: transparent var(--ink) transparent transparent;
}

.compare-knob i:last-child {
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--ink);
}

.compare-label {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.compare-label.left { left: 12px; }
.compare-label.right { right: 12px; }

.compare-range {
  /* 仅保留无障碍/键盘；拖动交给 pointer */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.workflow-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--demo-size);
  gap: 1.6rem 2rem;
  align-items: center;
  justify-content: start;
}

.workflow-copy {
  order: 1;
}

.workflow-media {
  order: 2;
  width: var(--demo-size);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #ece7e2 0%, #d9d3cc 100%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.workflow-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workflow-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.workflow-desc {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.workflow-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--accent-deep);
  transition: transform 0.2s ease, color 0.2s ease;
}

.workflow-link:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.privacy-panel {
  padding: 1rem 0 0;
  max-width: 40rem;
  border-top: 1px solid var(--line);
}

.privacy-panel p {
  margin: 0 0 1.2rem;
  max-width: 38rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.privacy-tags {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.2rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-weight: 500;
  font-family: var(--font-body);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.download {
  text-align: center;
  padding-bottom: 3.5rem;
}

.download-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.download-desc {
  margin: 0 0 1.75rem;
  color: var(--ink-faint);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1rem;
}

.download-actions .download-btn {
  min-width: 13.5rem;
  box-sizing: border-box;
}

.download-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.footer {
  border-top: none;
  background: #141210;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.6rem 1.5rem 2.2rem;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
  color: rgba(255, 247, 241, 0.72);
  font-size: 0.95rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff7f1;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-site {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.footer-slogan {
  margin: 0;
  max-width: 36rem;
  line-height: 1.6;
  color: rgba(255, 247, 241, 0.78);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
  font-size: 0.9rem;
  color: rgba(255, 247, 241, 0.7);
}

.footer-nav a:hover {
  color: #fff;
}

.copy {
  margin: 0.35rem 0 0;
  padding-top: 1.1rem;
  width: min(100%, 40rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 247, 241, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero-copy .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-copy .reveal:nth-child(2) { transition-delay: 0.14s; }
.hero-copy .reveal:nth-child(3) { transition-delay: 0.22s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.3s; }
.hero-copy .reveal:nth-child(5) { transition-delay: 0.38s; }
.hero-copy .reveal:nth-child(6) { transition-delay: 0.46s; }
.hero-visual.reveal { transition-delay: 0.22s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (max-width: 900px) {
  .hero,
  .showcase,
  .showcase-flip,
  .workflow-inner,
  .story-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .story-badge {
    justify-self: center;
    width: min(220px, 55vw);
    order: -1;
  }

  .showcase-flip .showcase-media,
  .showcase-flip .showcase-copy {
    order: initial;
  }

  .hero {
    padding-top: 0.85rem;
  }

  .hero-visual {
    order: -1;
    min-height: 0;
  }

  .hero-shot {
    width: min(96%, 520px);
  }

  .brand-name {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  }

  .brand-name .hl-free-sticker {
    top: -0.2em;
  }

  .showcase,
  .workflow-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare,
  .workflow-media {
    width: min(var(--demo-size), 86vw);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .top-nav a:not(.nav-cta) {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-shot,
  .hero-glow,
  .story-badge img,
  .brand-name .hl-free-sticker {
    animation: none;
  }

  .feature-card,
  .feature-card:hover,
  .feature-card:hover .feature-icon,
  .feature-card:hover .feature-link {
    transition: none;
    transform: none;
  }
}
