:root {
  --ink: #18352c;
  --muted: #6c7973;
  --green: #0e654c;
  --paper: #f6f5ef;
  --card: #fff;
  --line: rgba(24, 53, 44, .12);
  --shadow: 0 18px 45px rgba(22, 52, 43, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a, button { -webkit-tap-highlight-color: transparent; }
body.is-transitioning { overflow: hidden; }
.page { width: min(100%, 480px); min-height: 100svh; margin: 0 auto; overflow: hidden; background: transparent; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
  padding: max(10px, env(safe-area-inset-top)) 20px 0;
}
.brand-mini { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.mini-icon { width: 28px; height: 28px; overflow: hidden; border-radius: 9px; box-shadow: 0 6px 16px rgba(14,101,76,.20); }
.mini-icon img, .app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mini-icon.is-empty { background: transparent; box-shadow: none; }
.official-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; color: var(--green);
  background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700;
}
.official-tag::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; color: white; background: var(--green); border-radius: 50%; font-size: 10px; }

main { padding: 28px 20px 126px; }
.hero { text-align: center; }
.app-icon {
  width: 104px; height: 104px; margin: 12px auto 24px; overflow: hidden; border: 4px solid rgba(255,255,255,.95);
  border-radius: 28px; background: white; box-shadow: 0 20px 40px rgba(14,101,76,.22);
}
.app-icon.is-empty { background: transparent; border-color: transparent; box-shadow: none; }
h1 { margin: 0; font-size: clamp(30px, 9vw, 40px); line-height: 1.1; letter-spacing: -.055em; }
.slogan { margin: 13px auto 0; max-width: 330px; color: var(--muted); font-size: 15px; line-height: 1.75; }

.download-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.download-btn {
  min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 17px;
  width: 100%; border: 0; cursor: pointer; text-decoration: none; font-size: 15px; font-weight: 760; transition: transform .18s ease, box-shadow .18s ease;
}
.download-btn:active { transform: scale(.975); }
.download-btn.primary { color: white; background: var(--green); box-shadow: 0 13px 28px rgba(14,101,76,.23); }
.download-btn.secondary { color: var(--ink); background: var(--card); border: 1px solid var(--line); }
.download-btn.is-disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.download-icon { position: relative; width: 19px; height: 19px; flex: 0 0 19px; background: linear-gradient(currentColor,currentColor) center 1px / 2px 10px no-repeat; }
.download-icon::before { content: ""; position: absolute; left: 50%; top: 5px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(-50%) rotate(45deg); }
.download-icon::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 1px; height: 6px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 4px 4px; }

.app-info-card { width: calc(100% - 12px); margin: 28px auto 0; padding: 4px 16px; text-align: left; background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 10px 28px rgba(24,53,44,.05); }
.app-info-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; font-size: 13px; }
.app-info-row + .app-info-row { border-top: 1px solid var(--line); }
.app-info-label { flex: 0 0 auto; color: var(--muted); }
.app-info-value { color: var(--ink); font-weight: 750; text-align: right; }

.section { margin-top: 56px; }
.hero + .section { margin-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.slide-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.carousel-shell { width: 100%; max-width: 720px; margin-inline: auto; }
.carousel-viewport { overflow: hidden; padding: 10px 0 28px; outline: none; }
.carousel-viewport:focus-visible { box-shadow: inset 0 0 0 2px rgba(14,101,76,.2); border-radius: 24px; }
.carousel-track { display: flex; gap: 18px; will-change: transform; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.screenshot-card { position: relative; flex: 0 0 195px; height: 375px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 8px 28px rgba(0,0,0,.08); opacity: .5; transform: scale(.94); transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease; }
.screenshot-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.screenshot-card.is-active { opacity: 1; transform: scale(1); }
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 10px; margin-top: 4px; }
.carousel-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: #d8ddda; cursor: pointer; transition: width .25s ease, background .25s ease; }
.carousel-dot.active { width: 22px; background: var(--green); }
.carousel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel-nav-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; color: var(--ink); background: white; border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 25px; line-height: 1; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.carousel-nav-btn:hover { color: white; background: var(--green); border-color: var(--green); }
.carousel-nav-btn:active { transform: scale(.94); }

.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.trust-item { padding: 17px 8px; text-align: center; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 18px; }
.trust-icon { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 10px; color: var(--green); background: #edf3dc; border-radius: 11px; font-size: 15px; font-weight: 900; }
.trust-item b { display: block; font-size: 12px; }
.trust-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

footer { padding: 8px 20px calc(26px + env(safe-area-inset-bottom)); color: #98a19d; text-align: center; font-size: 10px; line-height: 1.8; }
.sticky-download { position: fixed; left: 50%; bottom: 0; z-index: 20; width: min(100%,480px); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(120%); background: rgba(246,245,239,.88); border-top: 1px solid rgba(24,53,44,.08); backdrop-filter: blur(16px); transition: transform .25s ease; }
.sticky-download.show { transform: translateX(-50%) translateY(0); }
.sticky-download .download-btn { min-height: 54px; }

.front-toast {
  position: fixed; left: 50%; top: max(18px,env(safe-area-inset-top)); z-index: 80; width: min(calc(100% - 32px),440px);
  padding: 13px 16px; transform: translateX(-50%); color: white; background: #8d3b3b; border-radius: 14px;
  box-shadow: 0 14px 38px rgba(45,20,20,.22); text-align: center; font-size: 13px; animation: toast-show .3s ease both;
}
@keyframes toast-show { from { opacity: 0; transform: translate(-50%,-8px); } }

.download-transition {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(8,35,27,.72); backdrop-filter: blur(13px); opacity: 1; transition: opacity .18s ease;
}
.download-transition[hidden] { display: none; }
.transition-card {
  width: min(100%,320px); padding: 32px 24px 27px; text-align: center; background: #fbfcf8; border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px; box-shadow: 0 28px 80px rgba(0,0,0,.28); animation: transition-in .3s cubic-bezier(.2,.8,.2,1) both;
}
.transition-symbol { position: relative; width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 22px; color: white; background: var(--green); border-radius: 24px; box-shadow: 0 15px 35px rgba(14,101,76,.26); }
.transition-symbol > img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.transition-symbol > .download-icon { transform: scale(1.35); }
.transition-symbol > i { position: absolute; inset: -7px; border: 2px solid rgba(14,101,76,.18); border-top-color: var(--green); border-radius: 29px; animation: transition-spin .85s linear infinite; }
.transition-card b { display: block; font-size: 18px; letter-spacing: -.025em; }
.transition-card > span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.loading-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.loading-dots i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: dot-pulse 1s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .14s; }
.loading-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes transition-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes transition-spin { to { transform: rotate(360deg); } }
@keyframes dot-pulse { 0%,100% { opacity: .24; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 360px) {
  main { padding-inline: 16px; }
  .download-group { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .screenshot-card { flex-basis: 175px; height: 340px; }
}
@media (min-width: 900px) {
  .page { width: 100%; max-width: none; overflow: visible; }
  .topbar { width: min(calc(100% - 80px),1180px); height: 78px; margin: 0 auto; padding: 12px 0 0; }
  main { width: min(calc(100% - 80px),1180px); margin: 0 auto; padding: 70px 0 150px; }
  .hero {
    display: grid;
    grid-template-columns: 128px minmax(300px,1fr) minmax(340px,410px);
    grid-template-rows: auto auto auto;
    column-gap: 30px;
    row-gap: 0;
    align-items: center;
    min-height: 240px;
    padding: 34px;
    text-align: left;
    background: rgba(255,255,255,.48);
    border: 1px solid var(--line);
    border-radius: 30px;
  }
  .app-icon { grid-column: 1; grid-row: 1 / 4; width: 116px; height: 116px; margin: 0; border-radius: 31px; }
  .hero h1 { grid-column: 2; grid-row: 1; align-self: end; font-size: 43px; }
  .slogan { grid-column: 2; grid-row: 2; align-self: start; max-width: 520px; margin: 10px 0 0; font-size: 15px; }
  .download-group { grid-column: 2; grid-row: 3; align-self: end; width: min(100%,440px); margin-top: 20px; }
  .app-info-card { grid-column: 3; grid-row: 1 / 4; width: 100%; margin: 0; padding-inline: 20px; background: rgba(255,255,255,.84); }
  .app-info-row { min-height: 54px; font-size: 13px; }
  .section { margin-top: 86px; }
  .hero + .section { margin-top: 78px; }
  .section-head { margin-bottom: 24px; }
  h2 { font-size: 30px; }
  .screenshot-section .section-head, .screenshot-section .carousel-shell { width: min(100%,720px); margin-left: auto; margin-right: auto; }
  .trust-grid { gap: 16px; }
  .trust-item { padding: 24px 14px; }
  .trust-icon { width: 42px; height: 42px; border-radius: 14px; font-size: 18px; }
  .trust-item b { font-size: 14px; }
  .trust-item small { margin-top: 6px; font-size: 11px; }
  footer { padding-bottom: 34px; }
  .sticky-download { width: 100%; }
  .sticky-download .download-btn { width: 420px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .transition-symbol > i, .loading-dots i, .transition-card { animation: none !important; }
}
