:root {
  color-scheme: light;
  --text: #172331;
  --muted: #778392;
  --link: #365ff3;
  --mark: #ed4149;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f4f6fb;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.page { width: min(100%, 680px); margin: 24px auto; padding: 34px 30px calc(44px + env(safe-area-inset-bottom)); background: #fff; border-radius: 18px; }
.tutorial-index { width: min(100%, 520px); margin: 0 auto; background: transparent; padding-top: 34px; }
.back { display: inline-block; font-size: 13px; margin-bottom: 27px; color: #788492; }
.back::before { content: '←'; margin-right: 8px; }
h1 { margin: 0 0 24px; font-size: 29px; letter-spacing: -.7px; line-height: 1.4; font-weight: 650; }
h2 { margin: 35px 0 28px; font-size: 20px; font-weight: 650; }
h3 { margin: 0 0 11px; font-size: 19px; line-height: 1.65; font-weight: 600; }
p { margin: 0 0 16px; }
.steps { margin: 0; padding: 0 0 28px 1.6em; border-bottom: 1px solid #e8edf3; }
.steps li { padding-left: 5px; margin: 12px 0; color: #536171; }
.steps li::marker { color: var(--link); font-weight: 600; }
.picture-step { margin: 0 0 38px; padding-bottom: 38px; border-bottom: 1px solid #edf0f5; }
.picture-step:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.picture-step p { color: #788492; font-size: 14px; }
.shot { display: block; position: relative; width: min(100%, 360px); margin: 23px auto 0; }
.shot img { display: block; width: 100%; height: auto; }
.marker { position: absolute; border: 2px solid var(--mark); border-radius: 5px; pointer-events: none; }
.page-intro { color: var(--muted); margin-top: -12px; margin-bottom: 31px; font-size: 14px; }
.topics { display: flex; flex-direction: column; background: #fff; padding: 0 20px; border-radius: 17px; }
.topics .topic:last-child { border: 0; }
.topic, .standalone-link { display: flex; align-items: center; gap: 16px; color: var(--text); padding: 23px 0; border-bottom: 1px solid #e8edf3; }
.topic:hover, .standalone-link:hover { text-decoration: none; color: var(--link); }
.topic svg, .standalone-link svg { width: 24px; height: 24px; flex-shrink: 0; stroke: var(--link); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.link-copy { flex: 1; }
.link-copy strong { display: block; font-size: 16px; font-weight: 600; }
.link-copy small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.chevron { color: #a5afbb; font-size: 22px; font-weight: 300; }
.download { width: min(100%, 480px); margin: 0 auto; padding: 34px 22px calc(30px + env(safe-area-inset-bottom)); }
.brand { text-align: center; margin-bottom: 26px; }
.brand img { display: block; width: 68px; height: 68px; margin: 0 auto 13px; border-radius: 18px; }
.brand h1 { font-size: 30px; letter-spacing: -.9px; font-weight: 650; margin: 0; }
.brand p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.download-options { background: #fff; padding: 20px; border-radius: 18px; }
.download-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #edf0f5; }
.download-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.platform-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.platform-heading h2 { font-size: 15px; font-weight: 600; margin: 0; }
.platform-heading span { color: #8b96a3; font-size: 12px; }
.download-button { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 49px; border-radius: 10px; background: var(--link); color: #fff; font-size: 15px; font-weight: 550; }
.download-button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.download-button:hover { text-decoration: none; background: #294fe0; }
.download-button.secondary { color: var(--link); background: #f0f4ff; }
.download-button.secondary:hover { background: #e7edff; }
.download-section p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.download-nav { background: #fff; border-radius: 17px; padding: 0 20px; margin-top: 15px; }
.download-nav .standalone-link:last-child { border-bottom: 0; }
.standalone-link { padding: 17px 0; }
.standalone-link .link-copy strong { font-size: 14px; }
.standalone-link .link-copy small { font-size: 11px; margin-top: 1px; }
.wechat-mask { display: none; position: fixed; inset: 0; z-index: 10; background: #fff; padding: max(44px, env(safe-area-inset-top)) 30px 36px; }
.wechat-mask.show { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wechat-mask h2 { margin: 0 0 18px; font-size: 20px; }
.wechat-mask p { max-width: 310px; color: #555e68; }
.wechat-mask button { margin-top: 15px; padding: 9px; border: 0; background: transparent; color: var(--link); font: inherit; cursor: pointer; }
@media (max-width: 700px) { .page { margin: 0 auto; border-radius: 0; min-height: 100vh; padding-left: 24px; padding-right: 24px; } .tutorial-index { min-height: 0; } }

/* Small, one-time entrances and direct feedback; scrolling stays native. */
.download-options, .download-nav, .topics {
  box-shadow: 0 8px 30px rgba(35, 57, 104, .035);
}
.download-button {
  position: relative;
  overflow: hidden;
  transition: transform .28s var(--ease), background-color .22s ease, box-shadow .28s var(--ease);
}
.download-button:not(.secondary) { box-shadow: 0 5px 15px rgba(54, 95, 243, .14); }
.download-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .22) 48%, transparent 70%);
  transform: translateX(-110%);
  pointer-events: none;
}
.download-button:active { transform: translateY(1px) scale(.985); }
.topic, .standalone-link {
  position: relative;
  isolation: isolate;
  transition: color .22s ease, transform .25s var(--ease);
}
.topic::before, .standalone-link::before {
  content: '';
  position: absolute;
  inset: 5px -9px;
  z-index: -1;
  border-radius: 10px;
  background: #f4f7ff;
  opacity: 0;
  transition: opacity .25s ease;
}
.link-copy, .chevron { transition: transform .3s var(--ease), color .22s ease; }
.topic:active, .standalone-link:active { transform: scale(.988); }
.back { transition: color .2s ease; }
.back::before { display: inline-block; transition: transform .3s var(--ease); }
.shot { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.shot:active { transform: scale(.995); }

@media (hover: hover) and (pointer: fine) {
  .download-button:hover { transform: translateY(-2px); }
  .download-button:not(.secondary):hover { box-shadow: 0 9px 23px rgba(54, 95, 243, .23); }
  .download-button:hover::after { transform: translateX(110%); transition: transform .7s var(--ease); }
  .download-button:active { transform: translateY(1px) scale(.985); }
  .topic:hover::before, .standalone-link:hover::before { opacity: 1; }
  .topic:hover .link-copy, .standalone-link:hover .link-copy { transform: translateX(2px); }
  .topic:hover .chevron, .standalone-link:hover .chevron { transform: translateX(4px); color: var(--link); }
  .back:hover::before { transform: translateX(-3px); }
  .shot:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(27, 44, 77, .1); }
}

@keyframes guide-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .brand { animation: guide-enter .65s var(--ease) both; }
  .download-options { animation: guide-enter .7s var(--ease) .07s both; }
  .download-nav { animation: guide-enter .7s var(--ease) .14s both; }
  .page > .back, .page > h1, .page > .steps, .page > h2,
  .tutorial-index > .page-intro, .tutorial-index > .topics { animation: guide-enter .55s var(--ease) both; }
  .will-reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
  .will-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
}
