/* ============================================================
   Photoera — shared stylesheet
   看图够快、改图够顺的轻量图片编辑器
   设计语言延续 Mosuzo 站点族（Recordera / Shotera），主色改为品红紫。
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --bg-deep: #eceef5;
  --ink: #111111;
  --ink-2: #61616b;
  --ink-3: #8b8b96;
  --line: #e4e6ee;
  --line-2: #d5d8e3;

  --accent: #5c4ee5;
  --accent-deep: #443ac0;
  --accent-soft: #ebe9fd;
  --accent-ink: #6f63f0;

  --tint-violet: #ebe9fd;
  --tint-violet-ink: #5c4ee5;
  --tint-teal: #e0f5f1;
  --tint-teal-ink: #1f8f85;
  --tint-amber: #fdf0df;
  --tint-amber-ink: #bd782a;
  --tint-rose: #fde8ef;
  --tint-rose-ink: #cf4f79;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --maxw: 1140px;
  --nav-h: 64px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono",
    Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--ink-3); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- top notice bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .86);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 9px 24px;
  text-align: center;
}
.topbar .inner {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #f5a524; flex: none;
  animation: pulse 2s ease-in-out infinite;
}
.topbar .sep { color: rgba(255, 255, 255, .3); }

@media (max-width: 720px) {
  .topbar { font-size: 11.5px; padding: 7px 16px; }
  .topbar .sep { display: none; }
  .topbar .inner { gap: 4px 8px; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); transition: color .16s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--bg-alt);
}
.lang a {
  font-size: 13px; line-height: 1;
  padding: 6px 11px; border-radius: 999px; color: var(--ink-2);
  transition: background-color .16s ease, color .16s ease;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,17,.07); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 0; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -140px 0 auto; height: 460px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(92,78,229,.11), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 13px; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-alt);
  font-size: 12.5px; color: var(--ink-2);
}
.badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.45; transform:scale(.82);} }

.hero h1 {
  font-size: clamp(38px, 6.2vw, 66px);
  letter-spacing: -0.035em;
  max-width: 16em; margin: 0 auto;
}
.hero .hero-sub {
  font-size: clamp(17px, 2.3vw, 21px);
  color: var(--ink-2);
  max-width: 34em; margin: 22px auto 0;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ---------- app mock ---------- */
.mock-wrap { margin-top: 62px; padding-bottom: 4px; }

.mock {
  max-width: 960px; margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 24px 56px -32px rgba(17,17,17,.28);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.mock-bar .mock-title {
  margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- stage: thumbnail rail + canvas --- */
.mock-stage { display: flex; aspect-ratio: 16 / 9; background: var(--bg-deep); }

.rail {
  width: 60px; flex: none;
  padding: 12px 0; display: flex; flex-direction: column; gap: 9px; align-items: center;
  background: #fff; border-right: 1px solid var(--line);
}
.rail .th { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.rail .th.active { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }
.th.t1 { background: linear-gradient(160deg, #ffd07a, #f0785f 55%, #7a3f79); }
.th.t2 { background: linear-gradient(160deg, #9fe6dd, #2f9e9c 60%, #1d5c73); }
.th.t3 { background: linear-gradient(160deg, #cfe6a2, #5f9b52 60%, #2f5b3c); }
.th.t4 { background: linear-gradient(160deg, #cfc6f4, #7a63d8 60%, #3a2f6e); }
.th.t5 { background: linear-gradient(160deg, #f2d7c3, #c89a72 60%, #6d4b3a); }

.canvas { position: relative; flex: 1; overflow: hidden; }

/* --- the photo, split into before / after --- */
.photo { position: absolute; inset: 0; overflow: hidden; }
.photo.base {
  background: linear-gradient(180deg, #93b8d8 0%, #c7a8b9 40%, #ab7f96 66%, #5b5470 100%);
  filter: saturate(.42) contrast(.92) brightness(1.04);
}
.photo.after {
  background: linear-gradient(180deg, #ffd479 0%, #ff9d5c 30%, #ef6a63 56%, #8e4a86 78%, #3b2f6e 100%);
  filter: saturate(1.22) contrast(1.06);
  clip-path: inset(0 0 0 66%);
  animation: baClip 9s ease-in-out infinite;
}
.photo .sun {
  position: absolute; left: 60%; top: 26%; width: 13%; aspect-ratio: 1;
  border-radius: 50%; background: #fff6d8;
  box-shadow: 0 0 46px 14px rgba(255,238,196,.62);
}
.photo .ridge { position: absolute; left: -6%; right: -6%; bottom: 0; }
.photo .r1 {
  height: 44%; background: #2c2a4d;
  clip-path: polygon(0 62%, 14% 32%, 28% 56%, 42% 20%, 58% 50%, 72% 28%, 86% 54%, 100% 34%, 100% 100%, 0 100%);
}
.photo .r2 {
  height: 28%; background: #191830;
  clip-path: polygon(0 70%, 18% 40%, 34% 66%, 52% 36%, 70% 62%, 88% 42%, 100% 64%, 100% 100%, 0 100%);
}

.ba-line {
  position: absolute; top: 0; bottom: 0; left: 66%; width: 2px; margin-left: -1px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(17,17,17,.14);
  animation: baLine 9s ease-in-out infinite;
}
.ba-line i {
  position: absolute; top: 50%; left: 50%; width: 30px; height: 30px;
  margin: -15px 0 0 -15px; border-radius: 50%;
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 16px -5px rgba(17,17,17,.55);
}
.ba-line i::before, .ba-line i::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-style: solid; transform: translateY(-50%);
}
.ba-line i::before { left: 7px; border-width: 4px 5px 4px 0; border-color: transparent #6b6b6b transparent transparent; }
.ba-line i::after { right: 7px; border-width: 4px 0 4px 5px; border-color: transparent transparent transparent #6b6b6b; }

@keyframes baClip {
  0%, 12%   { clip-path: inset(0 0 0 66%); }
  44%, 58%  { clip-path: inset(0 0 0 20%); }
  90%, 100% { clip-path: inset(0 0 0 66%); }
}
@keyframes baLine {
  0%, 12%   { left: 66%; }
  44%, 58%  { left: 20%; }
  90%, 100% { left: 66%; }
}

.ba-tag {
  position: absolute; top: 14px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(17,17,17,.5); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ba-tag.l { left: 14px; }
.ba-tag.r { right: 14px; }

.chip {
  position: absolute; right: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1;
  padding: 6px 9px; border-radius: 7px;
  background: rgba(255,255,255,.9); color: var(--ink-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px -4px rgba(17,17,17,.35);
}

/* --- bottom editor bar --- */
.mock-foot {
  display: flex; align-items: center; gap: 4px;
  height: 54px; padding: 0 14px;
  background: #fff; border-top: 1px solid var(--line);
}
.mock-foot .ft {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px; border-radius: 9px;
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.mock-foot .ft svg { width: 15px; height: 15px; flex: none; }
.mock-foot .ft.on { background: var(--accent-soft); color: var(--accent-deep); }
.mock-foot .spacer { margin-left: auto; }
.mock-foot .ft.export { background: var(--ink); color: #fff; padding: 0 14px; }

.mock-caption { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ---------- trust strip ---------- */
.trust { padding: 34px 0; border-bottom: 1px solid var(--line); }
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 14px 44px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-2);
}
.trust-inner span { display: inline-flex; align-items: center; gap: 8px; }
.trust-inner svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-2); line-height: 1.65; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(17,17,17,.3); }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 18px; margin-bottom: 9px; }
.card p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.t-violet { background: var(--tint-violet); color: var(--tint-violet-ink); }
.t-teal { background: var(--tint-teal); color: var(--tint-teal-ink); }
.t-amber { background: var(--tint-amber); color: var(--tint-amber-ink); }
.t-rose { background: var(--tint-rose); color: var(--tint-rose-ink); }

/* ---------- split feature rows ---------- */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feat {
  display: flex; gap: 16px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.feat .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.feat .ico svg { width: 19px; height: 19px; }
.feat h3 { font-size: 16.5px; margin-bottom: 6px; }
.feat p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.step .num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 13px;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.step .kbd {
  display: inline-block; margin-top: 14px; padding: 4px 10px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); background: var(--bg-alt);
}

/* ---------- dark performance block ---------- */
.dark {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.dark h2 { font-size: clamp(26px, 3.4vw, 36px); color: #fff; }
.dark p { margin-top: 18px; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.7; }
.dark .dark-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dark .dark-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.86); }
.dark .dark-list svg { width: 19px; height: 19px; color: #7fe0c4; flex: none; margin-top: 3px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
.stat .n {
  font-size: clamp(26px, 3vw, 34px); font-weight: 600;
  letter-spacing: -0.03em; color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .n em { font-style: normal; font-size: .52em; color: #a79bff; margin-left: 3px; font-weight: 500; }
.stat .l { margin-top: 9px; font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.5; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 104px 0; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); }
.cta p { margin: 18px auto 0; max-width: 30em; font-size: 17px; color: var(--ink-2); }
.cta .hero-actions { margin-top: 34px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; font-size: 16.5px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  width: 20px; height: 20px; flex: none; color: var(--ink-3);
  transition: transform .22s ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 2px 24px; font-size: 15px; color: var(--ink-2); line-height: 1.7; max-width: 62ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 62px 0 40px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 13px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 14.5px; color: var(--ink-2); transition: color .16s ease; }
.footer ul a:hover { color: var(--ink); }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--ink-2); max-width: 26em; line-height: 1.6; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.footer-bottom .lang { background: #fff; }

/* ---------- language splash (root) ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
@supports (min-height: 100dvh) { .page { min-height: 100dvh; } }

.splash {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 24px;
  background: var(--bg-alt);
}
.splash .brand { font-size: 22px; margin-bottom: 14px; }
.splash .brand-mark { width: 32px; height: 32px; }
.splash h1 { font-size: 30px; }
.splash p { margin-top: 12px; color: var(--ink-2); }
.splash-links { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.splash-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 240px; padding: 20px 22px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.splash-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 36px -26px rgba(17,17,17,.3); }
.splash-card strong { font-size: 16px; font-weight: 600; }
.splash-card span { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .photo.after { clip-path: inset(0 0 0 50%); }
  .ba-line { left: 50%; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .dark { grid-template-columns: 1fr; gap: 34px; padding: 44px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding: 68px 0; }
  .hero { padding-top: 52px; }
  .mock-wrap { margin-top: 44px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .rail { display: none; }
  .mock-foot .ft.hide-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .ba-tag { font-size: 10px; padding: 4px 7px; }
  .chip { font-size: 10px; }
}
