:root {
  --ink: #111e30;
  --muted: #506078;
  --line: #dce5ef;
  --accent: #1959c2;
  --ice: #f3f7fc;
  --header-size: 66px;
}

html { scroll-padding-top: calc(var(--header-size) + 20px); }
body[data-product-version] .shell { width: min(1200px, calc(100% - 96px)); }
body[data-product-version] .narrow { max-width: 780px; }
:is(button, a, summary, [tabindex="0"]):focus-visible { outline-color: var(--accent); }
.site-header { background: #ffffffed; }
.header-inner { min-height: var(--header-size); }
.brand img { width: 34px; height: 34px; flex-basis: 34px; }
.navigation > a { color: var(--muted); font-size: 13px; }
.navigation > a:hover { color: var(--accent); }
.navigation > .lang-switch {
  min-height: 32px;
  padding: 4px 11px;
  border-color: var(--line);
  border-radius: 999px;
  background: var(--ice);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.navigation > .lang-switch:hover {
  border-color: #c7daf4;
  background: #f0f6ff;
  color: var(--accent);
}
.navigation > .nav-download {
  margin-left: 0;
  padding-inline: 16px;
  border-color: #c7daf4;
  border-radius: 24px;
  color: var(--accent);
  background: #f0f6ff;
}
.button { min-height: 48px; gap: 12px; padding-inline: 22px; border-radius: 30px; font-size: 14px; }
.button-primary { background: var(--accent); }
.button-primary:hover { background: #124cae; }
.button-secondary { border-color: #c8d8ed; }
.button-secondary:hover { background: var(--ice); }
.text-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.text-action:hover { text-decoration: underline; text-underline-offset: 5px; }

.product-hero {
  padding-block: clamp(52px, 6vw, 94px) clamp(78px, 9vw, 148px);
  text-align: center;
}
.product-platform { color: var(--accent); font-size: 15px; font-weight: 600; }
.product-intro h1 {
  max-width: 13em;
  margin: 13px auto 0;
  font-size: clamp(48px, 6.1vw, 92px);
  font-weight: 710;
  letter-spacing: -.045em;
  line-height: 1.13;
}
.product-description {
  max-width: 33em;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 20px);
  line-height: 1.75;
  text-wrap: pretty;
}
.product-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px; margin-top: 25px; }
.product-cover { margin-top: clamp(32px, 5vw, 61px); }
.cover-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 2.66;
  min-height: 315px;
  overflow: hidden;
  border: 1px solid #dce9fa;
  border-radius: clamp(21px, 3.2vw, 46px);
  background:
    radial-gradient(ellipse at 49% -15%, #fff 8%, #f4faff 43%, transparent 76%),
    linear-gradient(152deg, #e4effe, #c8defa 61%, #dceaff);
}
.cover-stage::before, .cover-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 105%;
  aspect-ratio: 2.1;
  border-radius: 50%;
  transform: translateX(-50%) rotate(-16deg);
  pointer-events: none;
}
.cover-stage::before {
  top: 37%;
  border: 1px solid #fff;
  background: linear-gradient(110deg, #ffffffab, #ffffff0a 63%);
  box-shadow: 0 0 52px #7ea9e638, inset 0 1px 18px #fff9;
}
.cover-stage::after { top: 48%; left: 52%; border: 1px solid #6e9fda43; }
.cover-devices { position: absolute; inset: 0; }
.cover-phone {
  position: absolute;
  width: clamp(175px, 25%, 286px);
  border: clamp(4px, .65vw, 8px) solid #24384d;
  border-radius: clamp(24px, 3vw, 43px);
  background: #e7effb;
  box-shadow: 0 0 0 1px #829ab5, 0 0 0 2px #e3eefc, 0 38px 67px -18px #2a548b84;
}
.cover-phone-back { top: 22%; left: 50%; transform: translateX(-94%) rotate(-16deg); }
.cover-phone-front { top: 10%; left: 50%; transform: translateX(-9%) rotate(13deg); }
figcaption { color: var(--muted); font-size: 12px; }

.chapter-heading { max-width: 760px; }
.chapter-heading h2, .section-title h2, .guide-copy h2, .download-section h2 {
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 690;
  letter-spacing: -.035em;
  line-height: 1.16;
}
.chapter-heading > p {
  margin-top: 17px;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.75;
  text-wrap: pretty;
}
.workflow-section { padding-bottom: clamp(60px, 7vw, 106px); }
.workflow-section .chapter-heading { margin-bottom: clamp(30px, 5vw, 64px); }
.story-rail { display: grid; gap: 34px; }
.story-step {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(26px, 6vw, 96px);
}
.story-copy h3 { font-size: clamp(25px, 3vw, 42px); font-weight: 690; letter-spacing: -.028em; }
.story-copy p { max-width: 25em; margin-top: 10px; color: var(--muted); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.8; }
.story-copy .text-action { margin-top: 10px; }
.story-backdrop, .story-frame {
  border-radius: clamp(20px, 3vw, 38px);
  background: radial-gradient(ellipse at 50% 23%, #fff, #eff6ff 53%, #e3eefc);
}
.story-backdrop { display: none; }
.story-frame { display: grid; align-content: center; justify-items: center; padding: 24px 18px 19px; }
.story-frame .screenshot-button { width: min(59%, 225px); border-radius: 26px; }
.phone-image {
  border-color: #263a50;
  background: #eef4fc;
  box-shadow: 0 0 0 1px #a3b6cb, 0 18px 32px -14px #2a4c7b72;
}
.story-frame figcaption { margin-top: 11px; }

@media (min-width: 880px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  .story-rail.is-pinned {
    --stage-height: min(69svh, 640px);
    --stage-top: max(calc(var(--header-size) + 18px), calc((100svh - var(--stage-height)) / 2 + 18px));
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    row-gap: 0;
    column-gap: clamp(32px, 6vw, 98px);
  }
  .is-pinned .story-step { display: contents; }
  .is-pinned .story-copy {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: clamp(370px, 58svh, 560px);
    padding-block: 28px;
    border-bottom: 1px solid var(--line);
  }
  .is-pinned .story-step:last-child .story-copy { border-bottom: 0; }
  .is-pinned .story-backdrop, .is-pinned .story-frame {
    position: sticky;
    top: var(--stage-top);
    grid-area: 1 / 2 / span 3;
    align-self: start;
    height: var(--stage-height);
  }
  .is-pinned .story-backdrop { display: block; box-shadow: inset 0 0 0 1px #dfebf9; }
  .is-pinned .story-frame {
    background: transparent;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px) scale(.975);
    pointer-events: none;
    transition: opacity 300ms ease, transform 450ms cubic-bezier(.2,.7,.3,1), visibility 0s linear 300ms;
  }
  .is-pinned .story-frame .screenshot-button { width: min(64%, 260px, calc((var(--stage-height) - 68px) * .46)); }
  .is-pinned[data-current-step="ask"] [data-story-step="ask"] .story-frame,
  .is-pinned[data-current-step="files"] [data-story-step="files"] .story-frame,
  .is-pinned[data-current-step="result"] [data-story-step="result"] .story-frame {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
}

.tablet-section {
  padding-block: clamp(64px, 8vw, 132px) clamp(64px, 8vw, 115px);
  background: linear-gradient(180deg, #f1f7ff, #e6f0ff 62%, #f6faff);
  overflow: clip;
}
.tablet-section .chapter-heading { margin-inline: auto; text-align: center; }
.tablet-showcase { width: min(100%, 956px); margin: clamp(25px, 4.5vw, 64px) auto 0; }
.tablet-screen {
  padding: clamp(4px, 1vw, 12px);
  border: 1px solid #526b86;
  border-radius: clamp(10px, 2.1vw, 28px);
  background: #263a50;
  box-shadow: 0 28px 48px -32px #20447380, 0 0 0 2px #c1d4ea;
}
.tablet-screen img { border-radius: clamp(5px, 1.25vw, 17px); }
@media (prefers-reduced-motion: no-preference) {
  .tablet-screen { transform: translateY(var(--tablet-rise, 0px)) scale(var(--tablet-scale, 1)); transform-origin: 50% 100%; }
  .browser-frame { transform: translateY(var(--web-rise, 0px)) scale(var(--web-scale, 1)); transform-origin: 50% 100%; }
  .cover-devices { transform: translateY(var(--cover-lift, 0px)); }
}

.web-section {
  padding-block: clamp(64px, 8vw, 128px) clamp(64px, 8vw, 115px);
  background: linear-gradient(180deg, #ffffff, #f7faff 58%, #ffffff);
  overflow: clip;
}
.web-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
}
.web-header .eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.web-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ice);
}
.web-tabs > button {
  min-height: 38px;
  padding: 6px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.web-tabs > button:hover { color: var(--ink); }
.web-tabs > button[aria-selected="true"] {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 2px 8px #1a3b6e18, 0 0 0 1px #d6e4f7;
}
.web-showcase {
  width: min(100%, 1060px);
  margin: clamp(26px, 4vw, 48px) auto 0;
}
.browser-frame {
  border: 1px solid #cbd9ec;
  border-radius: clamp(12px, 1.8vw, 22px);
  background: #f5f8fd;
  box-shadow: 0 32px 64px -38px #183a6d75, 0 0 0 1px #ffffff inset;
  overflow: hidden;
}
.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid #dce6f4;
  background: linear-gradient(180deg, #fafcff, #f0f5fc);
}
.browser-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.browser-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cdd9ea;
}
.browser-dots i:nth-child(1) { background: #f29a94; }
.browser-dots i:nth-child(2) { background: #f3cc7a; }
.browser-dots i:nth-child(3) { background: #8ed19a; }
.browser-address {
  flex: 1;
  max-width: 420px;
  padding: 4px 14px;
  border: 1px solid #dce6f4;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-badge {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.browser-viewport {
  width: 100%;
  background: #eef4fc;
}
.browser-viewport img {
  width: 100%;
  height: auto;
  display: block;
}
.web-showcase figcaption {
  margin-top: 14px;
}
.web-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1060px);
  margin: clamp(28px, 4vw, 44px) auto 0;
}
.web-highlights article {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}
.web-highlights h3 {
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -.015em;
}
.web-highlights p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.web-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 24px;
  margin-top: 26px;
}

#possibilities { padding-block: clamp(65px, 8vw, 120px); }
#possibilities .feature-grid {
  gap: 22px 38px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
#possibilities .feature-grid article { padding: 20px 0 12px; border: 0; border-top: 1px solid var(--line); }
#possibilities .feature-grid h3 { font-size: 18px; font-weight: 660; }
#possibilities .feature-grid p { max-width: 24em; }
.screens-section { padding-block: clamp(65px, 8vw, 120px); }
.gallery-layout { max-width: 1100px; }
.gallery-stage { background: radial-gradient(ellipse at 49% 17%, #f9fcff, #e7f1ff); }
.gallery-controls > button { color: var(--muted); }
.gallery-controls > button[aria-selected="true"] { color: var(--accent); }
.gallery-caption, .image-hint { color: var(--muted); }
.store-reel { scrollbar-color: #97abc5 #edf4fd; }
.store-reel-pc { grid-auto-columns: 340px; }
.store-poster img { border-color: var(--line); }
#whats-new { background: var(--ice); }
.section-title .eyebrow { color: var(--accent); font-size: 13px; }
#whats-new .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
#whats-new .feature-grid article,
#whats-new .feature-grid article:nth-child(-n+2) {
  grid-column: auto;
  border-color: var(--line);
  border-radius: 20px;
  background: #fff;
}
#whats-new .feature-grid h3 { font-size: 19px; }
#whats-new .feature-grid a { color: var(--accent); }
#whats-new .feature-grid a:hover { color: #0e3e8d; }
.guide-section { background: #fff; }
.guide-illustration {
  border-color: #acbfd7;
  background: linear-gradient(150deg, #f6faff, #d9e8fb);
  box-shadow: -8px 0 0 -1px #f4f8ff, -9px 0 0 #acbfd7, 0 23px 43px -30px #2a4c7b84;
}
.guide-illustration > span:not(.guide-page-corner), .guide-version { color: var(--muted); }
.guide-page-corner { background: var(--accent); }
.guide-actions > a:not(.button) { color: var(--accent); }
.questions-section { background: var(--ice); }
.download-section .shell {
  color: var(--ink);
  background: radial-gradient(ellipse at 80% 0%, #fafcff, #e5efff 81%);
  border: 1px solid #dee9f8;
}
.download-section .shell > p { color: var(--muted); }
.download-section .invite-link, .download-section .invite-link:hover { color: var(--accent); }
.download-section .button-secondary { background: #fff; border-color: #c8d8ed; }
.site-footer { background: #f7f9fc; }
.footer-link-group .xiaohongshu-link, .footer-link-group h3, .footer-bottom a { color: var(--ink); }
.social-qr-button, .lightbox, .lightbox-close, .lightbox.is-qr .qr-action-link { border-color: var(--line); }
.social-qr-button:hover, .lightbox-load-status { background: var(--ice); }
.lightbox::backdrop { background: #0f213dc4; }

@media (max-width: 900px) {
  body[data-product-version] .shell { width: calc(100% - 64px); }
  .navigation { gap: 15px; }
  .navigation > a { font-size: 12px; }
  .web-header { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
  .web-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #whats-new .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --header-size: 62px; }
  body[data-product-version] .shell { width: calc(100% - 36px); }
  .navigation { inset-inline: -18px; background: #fff; }
  .navigation > a { font-size: 14px; }
  .navigation > .nav-download { border-radius: 12px; }
  .menu-lines { border-color: var(--muted); }
  .product-hero { padding-top: 44px; }
  .product-intro h1 { max-width: 9em; font-size: clamp(40px, 9.6vw, 60px); }
  .product-description { max-width: 23em; margin-top: 14px; }
  .product-actions { margin-top: 20px; gap: 8px 17px; }
  .product-actions .button { padding-inline: 15px; font-size: 13px; }
  .product-actions .text-action { font-size: 13px; }
  .cover-stage { aspect-ratio: 1.43; min-height: 248px; }
  .cover-phone { width: clamp(113px, 40%, 217px); }
  .cover-phone-back { transform: translateX(-97%) rotate(-13deg); }
  .cover-phone-front { transform: translateX(-12%) rotate(11deg); }
  .story-rail { gap: 37px; }
  .story-step { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .story-copy { padding-top: 20px; border-top: 1px solid var(--line); }
  .story-frame { padding-top: 19px; }
  .story-frame .screenshot-button { width: min(61%, 215px); }
  .browser-chrome { padding: 9px 12px; }
  .browser-address { font-size: 10px; padding: 3px 10px; }
  .browser-badge { display: none; }
  .web-tabs { width: 100%; justify-content: space-between; }
  .web-tabs > button { flex: 1 1 auto; padding-inline: 10px; font-size: 12px; text-align: center; }
  .web-highlights { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .web-highlights article { padding: 18px 20px; }
  .gallery-controls > button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .store-reel-pc { grid-auto-columns: 290px; }
  #possibilities .feature-grid { gap: 12px; }
}
@media (max-width: 510px) {
  #whats-new .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

/* English typography & responsive ergonomics */
html[lang="en"] .product-intro h1 {
  max-width: 14em;
  font-size: clamp(38px, 5.2vw, 78px);
  letter-spacing: -.035em;
  line-height: 1.09;
}
html[lang="en"] .product-description { max-width: 40em; }
html[lang="en"] .chapter-heading h2,
html[lang="en"] .section-title h2,
html[lang="en"] .guide-copy h2,
html[lang="en"] .download-section h2 {
  font-size: clamp(30px, 3.7vw, 54px);
  letter-spacing: -.03em;
  line-height: 1.14;
}
html[lang="en"] .story-copy h3 {
  font-size: clamp(23px, 2.5vw, 36px);
  letter-spacing: -.024em;
  line-height: 1.2;
}
html[lang="en"] .story-copy p,
html[lang="en"] #possibilities .feature-grid p { max-width: 34em; }
html[lang="en"] .web-tabs > button { white-space: nowrap; }
html[lang="en"] .gallery-controls > button { font-size: 15px; line-height: 1.35; }
html[lang="en"] #whats-new .feature-grid h3 { font-size: 18px; line-height: 1.3; }
html[lang="en"] .guide-illustration > span:not(.guide-page-corner) {
  letter-spacing: .02em;
  text-align: center;
  padding-inline: 12px;
}

@media (max-width: 1180px) {
  html[lang="en"] .header-inner { gap: 18px; }
  html[lang="en"] .navigation { gap: 18px; }
  html[lang="en"] .navigation > a { font-size: 12px; }
}
@media (max-width: 960px) {
  html[lang="en"] .header-inner { position: relative; }
  html[lang="en"] .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 0 8px 12px;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
  }
  html[lang="en"] .menu-lines {
    position: relative;
    display: block;
    width: 18px;
    height: 10px;
    border-top: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
  }
  html[lang="en"] .navigation {
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: -36px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 36px 18px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 18px 34px -24px #111e3038;
  }
  html[lang="en"] .navigation.is-open { display: flex; }
  html[lang="en"] .navigation > a { justify-content: space-between; padding: 8px 5px; font-size: 14px; }
  html[lang="en"] .navigation > .lang-switch { align-self: flex-start; min-height: 36px; margin-top: 6px; padding: 5px 14px; font-size: 13px; }
  html[lang="en"] .navigation > .nav-download { margin-top: 10px; padding-inline: 14px; border-radius: 12px; }
}
@media (max-width: 900px) {
  html[lang="en"] .navigation { inset-inline: -32px; padding-inline: 32px; }
}
@media (max-width: 767px) {
  .navigation > .lang-switch { align-self: flex-start; min-height: 36px; margin-top: 6px; padding: 5px 14px; font-size: 13px; }
  html[lang="en"] .navigation { inset-inline: -18px; padding: 10px 18px 17px; }
  html[lang="en"] .product-intro h1 { max-width: 12em; font-size: clamp(32px, 8.8vw, 50px); line-height: 1.12; }
  html[lang="en"] .product-description { max-width: 32em; }
  html[lang="en"] .web-tabs > button { white-space: normal; }
  html[lang="en"] .gallery-controls > button { font-size: 13px; gap: 10px; }
  .footer-bottom-links { gap: 14px; }
}
