:root {
  --milk: #FFF7FB;
  --ink: #3A2A4D;
  --ink-soft: rgba(58, 42, 77, .62);
  --strawberry: #FF5C8A;
  --strawberry-deep: #D62E63;
  --grape: #8B5CFF;
  --sky: #3BB4FF;
  --lime: #6FD84A;
  --mango: #FFB020;
  --round: "Fredoka", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.65 var(--body);
  background:
    radial-gradient(60vw 50vw at 0% 0%, #FFD1E3 0, transparent 70%),
    radial-gradient(50vw 45vw at 100% 8%, #D4E4FF 0, transparent 70%),
    radial-gradient(55vw 40vw at 10% 100%, #FFF0B8 0, transparent 70%),
    radial-gradient(50vw 40vw at 100% 95%, #D8FFE9 0, transparent 70%),
    var(--milk);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 12px; }

h1, h2 { font-family: var(--round); font-weight: 700; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 1.06; }
html:lang(zh-Hans) h1, html:lang(zh-Hant) h1, html:lang(ja) h1, html:lang(ko) h1 { line-height: 1.2; letter-spacing: .02em; }
/* 每种语言用合适的字体：Fredoka 只管拉丁字母，越南语的声调字母它不全 */
html:lang(zh-Hant) { --round: "Fredoka", "PingFang TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif; --body: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
html:lang(ja) { --round: "Fredoka", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; --body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; }
html:lang(ko) { --round: "Fredoka", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
html:lang(th) { --round: "Fredoka", "Sukhumvit Set", "Thonburi", "Leelawadee UI", system-ui, sans-serif; }
html:lang(th) h1 { line-height: 1.3; }
html:lang(vi) { --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
html:lang(ar) { --round: "SF Arabic Rounded", "SF Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif; --body: "SF Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif; }
html:lang(ar) h1, html:lang(ar) h2 { letter-spacing: 0; line-height: 1.35; }
html:lang(es) h1, html:lang(vi) h1 { font-size: clamp(40px, 5.4vw, 70px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin-bottom: .55em; }
p { margin: 0 0 1em; max-width: 34em; }
.fine { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 247, 251, .6);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 21px var(--round); }
.bar nav { display: flex; align-items: center; gap: 8px; }
.bar-dl, .lang {
  font: 600 15px var(--round); color: var(--ink); text-decoration: none;
  padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .7);
}
.bar-dl:hover, .lang:hover { background: #fff; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-inline-end: 10px; }
.lang:focus-within { outline: 3px solid var(--grape); outline-offset: 2px; }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background-color: transparent; color: inherit;
  font: inherit; cursor: pointer; padding-inline-end: 14px; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 5px 5px; background-repeat: no-repeat;
  background-position: right 5px center, right 0 center;
}
[dir="rtl"] .lang select { background-position: left 0 center, left 5px center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* jelly button */
.jelly-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 22px;
  font: 600 19px var(--round); color: #fff; text-decoration: none;
  background: linear-gradient(160deg, #FF9DB8, var(--strawberry) 45%, var(--strawberry-deep));
  box-shadow: 0 12px 28px -10px rgba(214, 46, 99, .65), inset 0 -4px 0 rgba(150, 20, 60, .18);
  transition: transform .35s cubic-bezier(.3, 1.8, .5, 1);
}
.jelly-btn::before {
  content: ""; position: absolute; left: 14%; right: 30%; top: 6px; height: 34%;
  border-radius: 999px; background: rgba(255, 255, 255, .45);
}
.jelly-btn:hover { transform: scale(1.05, .96); }
.jelly-btn:active { transform: scale(.94, 1.04); transition-duration: .1s; }
.jelly-btn.big { font-size: 22px; padding: 18px 36px; border-radius: 26px; }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 5vw, 72px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 96px);
  max-width: 1360px; margin: 0 auto;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); margin: 22px 0 32px; max-width: 26em; }
.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.playground { margin: 0; position: relative; }
#jelly { width: 100%; aspect-ratio: 4 / 3; display: block; touch-action: manipulation; }
.freed {
  display: flex; align-items: baseline; gap: 4px; margin: 0 0 10px; margin-inline-start: 4px;
}
.freed-val { display: inline-flex; align-items: baseline; gap: 4px; }
.freed-num {
  font: 700 clamp(48px, 5vw, 64px)/1 "Fredoka", system-ui, sans-serif;
  background: linear-gradient(100deg, var(--strawberry), var(--grape));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.freed-unit { font: 700 22px "Fredoka", system-ui, sans-serif; color: var(--grape); }
.freed-label { font-size: 14px; color: var(--ink-soft); margin-inline-start: 6px; }
.freed.bump .freed-num { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 40% { transform: scale(1.18, .9); } }
.freed-num { display: inline-block; transform-origin: left bottom; }
figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 6px; min-height: 52px; }
.hint { font-size: 14px; color: var(--ink-soft); }
.clean-btn { font-size: 16px; padding: 11px 22px; border: 0; cursor: pointer; border-radius: 18px; }
.clean-btn span { position: relative; font-variant-numeric: tabular-nums; }
.clean-btn:disabled { cursor: default; filter: grayscale(.7) opacity(.55); transform: none; }
.stage { position: relative; }
.toast {
  position: absolute; left: 50%; bottom: 34px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  padding: 12px 22px; border-radius: 20px; pointer-events: none;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 18px 40px -16px rgba(91, 50, 140, .45), 0 0 0 1px rgba(139, 92, 255, .12);
  transform: translate(-50%, 16px) scale(.9); opacity: 0;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .25s;
}
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.toast-title { font: 700 18px var(--round); }
.toast-sub { font-size: 13px; color: var(--ink-soft); }
.again {
  font: 600 15px var(--round); color: var(--grape); cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 2px dashed rgba(139, 92, 255, .5); background: rgba(255, 255, 255, .7);
}

/* features */
.feature {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px);
}
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--ink-soft); }
.shot img {
  border-radius: 18px;
  box-shadow: 0 40px 80px -40px rgba(91, 50, 140, .55), 0 0 0 1px rgba(58, 42, 77, .06);
}

/* uninstall illustration */
.leftovers { position: relative; aspect-ratio: 16 / 10; }
.leftovers > div {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: #fff; font: 600 15px/1.2 var(--round);
  box-shadow: 0 18px 30px -16px var(--shade), inset 0 -6px 0 rgba(0, 0, 0, .08);
}
.leftovers span, .leftovers b { position: relative; }
.leftovers > div::before {
  content: ""; position: absolute; left: 14%; right: 28%; top: 7%; height: 22%;
  border-radius: 999px; background: rgba(255, 255, 255, .45);
}
.app-jelly {
  --shade: rgba(91, 60, 220, .7);
  left: 6%; top: 10%; width: 46%; height: 78%; border-radius: 30%;
  background: linear-gradient(160deg, #C9B5FF, var(--grape) 50%, #5B32D6);
  font-size: 20px !important;
}
.app-jelly b { display: block; font-size: 15px; opacity: .85; margin-top: 4px; }
.crumb { border-radius: 32%; animation: drift 5s ease-in-out infinite; }
.crumb.c1 { --shade: rgba(224, 122, 0, .7); left: 58%; top: 8%; width: 24%; height: 34%; background: linear-gradient(160deg, #FFE08A, var(--mango) 50%, #E07A00); }
.crumb.c2 { --shade: rgba(20, 130, 210, .7); left: 66%; top: 50%; width: 22%; height: 30%; background: linear-gradient(160deg, #B5E4FF, var(--sky) 50%, #1C82D6); animation-delay: -1.6s; }
.crumb.c3 { --shade: rgba(58, 166, 42, .7); left: 86%; top: 24%; width: 13%; height: 20%; background: linear-gradient(160deg, #C8F7A0, var(--lime) 50%, #3AA62A); animation-delay: -3s; font-size: 12px !important; }
.crumb.c4 { --shade: rgba(214, 46, 99, .7); left: 89%; top: 70%; width: 8%; height: 12%; background: linear-gradient(160deg, #FFB3C7, var(--strawberry) 50%, var(--strawberry-deep)); animation-delay: -2.2s; }
@keyframes drift { 50% { transform: translate(-6px, 5px) scale(1.04, .97); } }

/* download */
.download {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: clamp(56px, 8vw, 110px) 16px clamp(48px, 6vw, 80px);
}
.download h2 { margin: 6px 0 12px; }
.download .fine { max-width: 32em; }
.dl-icon { width: 112px; filter: drop-shadow(0 18px 24px rgba(214, 46, 99, .3)); }

footer {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  padding: 28px 16px 40px; font-size: 14px; color: var(--ink-soft);
}

@media (max-width: 860px) {
  .hero, .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-text { order: 0; }
  .hero { padding-top: 16px; }
  .playground { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crumb { animation: none; }
  .jelly-btn, .freed.bump .freed-num { transition: none; animation: none; }
}

/* 反馈与建议 */
footer .fb-open { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
dialog.fb {
  width: min(460px, calc(100vw - 32px)); border: 0; padding: 0; border-radius: 26px; color: var(--ink);
  background: var(--milk); box-shadow: 0 40px 80px -30px rgba(91, 50, 140, .5);
}
dialog.fb::backdrop { background: rgba(58, 42, 77, .28); backdrop-filter: blur(4px); }
.fb-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.fb-form h2 { font-size: 24px; margin: 0 0 4px; }
.fb-form textarea, .fb-form input {
  font: 15px/1.5 var(--body); color: var(--ink); width: 100%;
  border: 0; border-radius: 16px; padding: 12px 14px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(58, 42, 77, .1);
}
.fb-form textarea { resize: vertical; min-height: 120px; }
.fb-form textarea:focus, .fb-form input:focus { outline: 3px solid rgba(139, 92, 255, .45); outline-offset: 0; }
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--strawberry-deep); }
.fb-status.ok { color: #2E8B3A; }
.fb-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.fb-cancel { font: 600 15px var(--round); color: var(--ink-soft); background: none; border: 0; cursor: pointer; padding: 10px 12px; }
.fb-send { font-size: 16px; padding: 11px 24px; border: 0; cursor: pointer; border-radius: 18px; }
.fb-send:disabled { filter: grayscale(.6) opacity(.6); cursor: default; }
.fb-send span { position: relative; }
.fb-mail { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fb-copy { font: 600 13px var(--round); color: var(--grape); background: rgba(139, 92, 255, .1); border: 0; border-radius: 999px; padding: 3px 10px; cursor: pointer; }


/* 支持布丁：顶栏一个粉色小胶囊，下载区一个次要按钮（不抢“下载”的风头） */
.bar-support {
  font: 600 15px var(--round); color: #fff; text-decoration: none;
  padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(160deg, #FF9DB8, var(--strawberry) 60%);
  box-shadow: 0 6px 14px -8px rgba(214, 46, 99, .6);
}
.bar-support:hover { filter: brightness(1.05); }
.support-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; }
.support-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 18px; text-decoration: none;
  font: 600 16px var(--round); color: var(--strawberry-deep);
  background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 2px rgba(255, 92, 138, .35);
  transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), box-shadow .2s;
}
.support-btn:hover { transform: scale(1.04, .97); box-shadow: inset 0 0 0 2px rgba(255, 92, 138, .6); }
.support-price { font: 600 13px var(--round); color: var(--ink-soft); }
@media (max-width: 520px) { .bar-support { display: none; } }
